public StatementVisitor(IMetadataHost host, CommonSemanticModel semanticModel, ReferenceMapper mapper, IMethodDefinition method, ExpressionVisitor expressionVisitor) { this.host = host; this.semanticModel = semanticModel; this.mapper = mapper; this.method = method; this.tree = semanticModel.SyntaxTree as SyntaxTree; this.expressionVisitor = expressionVisitor; }
public ExpressionVisitor(IMetadataHost host, CommonSemanticModel semanticModel, ReferenceMapper mapper, IMethodDefinition method) { this.host = host; this.semanticModel = semanticModel; this.mapper = mapper; this.method = method; this.parameters.Add(method, new List <IParameterDefinition>(method.Parameters)); this.tree = semanticModel.SyntaxTree; }
public NodeVisitor(IMetadataHost host, CommonSemanticModel semanticModel, ISourceLocationProvider /*?*/ sourceLocationProvider) { this.host = host; this.nameTable = host.NameTable; this.semanticModel = semanticModel; this.sourceLocationProvider = sourceLocationProvider; this.contractMethods = new ContractMethods(host); // translate the entire metadata model for the assembly // the actual visit is just to get method bodies for any methods // defined in the cone that is visited. this.mapper = ReferenceMapper.TranslateAssembly(host, semanticModel.Compilation.Assembly); }