2 instantiations of MethodBodySemanticModel
Microsoft.CodeAnalysis.CSharp (2)
Compilation\MethodBodySemanticModel.cs (1)
67
var result = new
MethodBodySemanticModel
(owner, initialState.Binder, initialState.Syntax, containingSemanticModel);
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
113
_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)
19
/// Initial state for a MethodBodySemanticModel. Shared between here and the <see cref="MethodCompiler"/>. Used to make a <see cref="
MethodBodySemanticModel
"/>
64
internal static
MethodBodySemanticModel
Create(SyntaxTreeSemanticModel containingSemanticModel, MethodSymbol owner, InitialState initialState)
67
var
result = new MethodBodySemanticModel(owner, initialState.Binder, initialState.Syntax, containingSemanticModel);
Compilation\SyntaxTreeSemanticModel.cs (6)
1199
return
MethodBodySemanticModel
.Create(this, symbol, new
MethodBodySemanticModel
.InitialState(exprDecl, binder: binder));
1223
return
MethodBodySemanticModel
.Create(
1226
new
MethodBodySemanticModel
.InitialState(node, binder: new ExecutableCodeBinder(node, scriptInitializer, new ScriptLocalScopeBinder(_globalStatementLabels, defaultOuter()))));
1246
return
MethodBodySemanticModel
.Create(this, symbol, new
MethodBodySemanticModel
.InitialState(memberDecl, binder: binder));
Compiler\MethodCompiler.cs (4)
1005
MethodBodySemanticModel
.InitialState forSemanticModel = default;
1180
return
MethodBodySemanticModel
.Create(semanticModelWithCachedBoundNodes,
1778
out
MethodBodySemanticModel
.InitialState forSemanticModel)
1875
forSemanticModel = new
MethodBodySemanticModel
.InitialState(syntaxNode, methodBodyForSemanticModel, bodyBinder, snapshotManager, remappedSymbols);