Пример #1
0
 public EmitterContext(SemanticModel semanticModel)
 {
     this.SemanticModel        = semanticModel;
     this.DataFlowAnalyzer     = new(semanticModel);
     this.VariablesToInline    = InlineDependencyVisitor.GetVariablesToInline(semanticModel);
     this.ResourceDependencies = ResourceDependencyVisitor.GetResourceDependencies(semanticModel);
 }
Пример #2
0
 public EmitterContext(SemanticModel semanticModel, EmitterSettings settings)
 {
     Settings             = settings;
     SemanticModel        = semanticModel;
     DataFlowAnalyzer     = new(semanticModel);
     VariablesToInline    = InlineDependencyVisitor.GetVariablesToInline(semanticModel);
     ResourceDependencies = ResourceDependencyVisitor.GetResourceDependencies(semanticModel);
     FunctionVariables    = FunctionVariableGeneratorVisitor.GetFunctionVariables(semanticModel).ToImmutableDictionary();
 }