Skip to content

Commit

Permalink
Ok, this is jank but working jank
Browse files Browse the repository at this point in the history
  • Loading branch information
thygrrr committed Nov 14, 2024
1 parent 9f82389 commit 8ac567c
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 125 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ Temp
*.DotSettings.user
*.Artifacts
.dist
*.old
*.old

generated/
6 changes: 3 additions & 3 deletions fennecs/generators/Streams.csx → fennecs/Streams.csx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class Streams

//public FormattableString Main() => $$"""{{{Class}}}""";

public void Main(ICodegenOutputFile writer)
public void Main(ICodegenContext context)
{
var source = new StringBuilder();

Expand Down Expand Up @@ -53,7 +53,7 @@ public class Streams

source.AppendLine(ClassFooter());
}
writer.Write($$"""{{source}}""");
context[$"Streams.g.cs"].Write($$"""{{source}}""");
}


Expand Down Expand Up @@ -181,7 +181,7 @@ public class Streams
return
$$"""
/// <include file='../XMLdoc.xml' path='members/member[@name="T:For{{(entity ? "E" : "")}}{{(uniform ? "U" : "")}}"]'/>
/// <include file='XMLdoc.xml' path='members/member[@name="T:For{{(entity ? "E" : "")}}{{(uniform ? "U" : "")}}"]'/>
[OverloadResolutionPriority(0b_{{(entity ? 1 << width : 0)&255:b8}}_{{bits:b8}})]
public void For{{(uniform ? "<U>(U uniform, " : "(")}}Action<{{ActionParams(width, entity, uniform, pattern)}}> action)
{
Expand Down
Loading

0 comments on commit 8ac567c

Please sign in to comment.