2 instantiations of MethodBodySemanticModel
Microsoft.CodeAnalysis.CSharp (2)
Compilation\MethodBodySemanticModel.cs (1)
64var result = new MethodBodySemanticModel(owner, initialState.Binder, initialState.Syntax, containingSemanticModel);
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
114_memberModel = new MethodBodySemanticModel(owner, rootBinder, syntax, containingPublicSemanticModel: this, parentRemappedSymbolsOpt: parentRemappedSymbolsOpt);
14 references to MethodBodySemanticModel
Microsoft.CodeAnalysis.CSharp (14)
Compilation\InitializerSemanticModel.cs (1)
19/// block (for that, use a <see cref="MethodBodySemanticModel"/>).
Compilation\MethodBodySemanticModel.cs (3)
16/// Initial state for a MethodBodySemanticModel. Shared between here and the <see cref="MethodCompiler"/>. Used to make a <see cref="MethodBodySemanticModel"/> 61internal static MethodBodySemanticModel Create(SyntaxTreeSemanticModel containingSemanticModel, MethodSymbol owner, InitialState initialState) 64var result = new MethodBodySemanticModel(owner, initialState.Binder, initialState.Syntax, containingSemanticModel);
Compilation\SyntaxTreeSemanticModel.cs (6)
1203return MethodBodySemanticModel.Create(this, symbol, new MethodBodySemanticModel.InitialState(exprDecl, binder: binder)); 1227return MethodBodySemanticModel.Create( 1230new MethodBodySemanticModel.InitialState(node, binder: new ExecutableCodeBinder(node, scriptInitializer, new ScriptLocalScopeBinder(_globalStatementLabels, defaultOuter())))); 1250return MethodBodySemanticModel.Create(this, symbol, new MethodBodySemanticModel.InitialState(memberDecl, binder: binder));
Compiler\MethodCompiler.cs (4)
1006MethodBodySemanticModel.InitialState forSemanticModel = default; 1185return MethodBodySemanticModel.Create(semanticModelWithCachedBoundNodes, 1898out MethodBodySemanticModel.InitialState forSemanticModel) 1994forSemanticModel = new MethodBodySemanticModel.InitialState(syntaxNode, methodBodyForSemanticModel, bodyBinder, snapshotManager, remappedSymbols);