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);
15 references to MethodBodySemanticModel
Microsoft.CodeAnalysis.CSharp (15)
Binder\InMethodBinder.cs (1)
30/// This map is used by <see cref="MethodCompiler.BindMethodBody(MethodSymbol, TypeCompilationState, BindingDiagnosticBag, bool, BoundNode?, bool, out ImportChain?, out bool, out bool, out MethodBodySemanticModel.InitialState)"/>
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)
954MethodBodySemanticModel.InitialState forSemanticModel = default; 1133return MethodBodySemanticModel.Create(semanticModelWithCachedBoundNodes, 1743out MethodBodySemanticModel.InitialState forSemanticModel) 1839forSemanticModel = new MethodBodySemanticModel.InitialState(syntaxNode, methodBodyForSemanticModel, bodyBinder, snapshotManager, remappedSymbols);