public CodeGenerator(SemanticModule module, SemanticContext semanticContext) { _module = module; _semanticContext = semanticContext; _typeSizeManager = new ILTypeSizeManager(_structLayoutManager); _structLayoutManager.Setup(new StructLayoutGenerator(_typeSizeManager)); }
public UnaryOperationCodeGenVisitor(FunctionBuilder builder, IExpressionVisitor expressionVisitor, SemanticModule semanticModule, ILTypeSizeManager typeSizeManager, FunctionStackLayout functionStackLayout, StructLayoutManager structLayoutManager) { _builder = builder; _expressionVisitor = expressionVisitor; _semanticModule = semanticModule; _typeSizeManager = typeSizeManager; _functionStackLayout = functionStackLayout; _structLayoutManager = structLayoutManager; }
public FunctionCodeGenVisitor( FunctionBuilder functionBuilder, FunctionStackLayout layout, FunctionManager functionManager, SemanticModule module, SemanticContext semanticContext, StructLayoutManager structLayoutManager, ILTypeSizeManager typeSizeManager, List <string> strings ) { _functionBuilder = functionBuilder; _layout = layout; _functionManager = functionManager; _module = module; _semanticContext = semanticContext; _structLayoutManager = structLayoutManager; _typeSizeManager = typeSizeManager; _strings = strings; }