...
This commit is contained in:
@@ -2,13 +2,23 @@
|
||||
|
||||
namespace Compiler;
|
||||
|
||||
public sealed class Generator(List<TypedNodeDefinitionFunc> functions, ModuleGraph moduleGraph, bool compileLib)
|
||||
public class Generator
|
||||
{
|
||||
public static string Emit(List<TypedNodeDefinitionFunc> functions, ModuleGraph moduleGraph, bool compileLib)
|
||||
{
|
||||
return new Generator(functions, moduleGraph, compileLib).Emit();
|
||||
}
|
||||
|
||||
private Generator(List<TypedNodeDefinitionFunc> functions, ModuleGraph moduleGraph, bool compileLib)
|
||||
{
|
||||
this.functions = functions;
|
||||
this.moduleGraph = moduleGraph;
|
||||
this.compileLib = compileLib;
|
||||
}
|
||||
|
||||
private readonly List<TypedNodeDefinitionFunc> functions;
|
||||
private readonly ModuleGraph moduleGraph;
|
||||
private readonly bool compileLib;
|
||||
private readonly IndentedTextWriter writer = new();
|
||||
private readonly Dictionary<NubTypeStruct, string> structTypeNames = new();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user