2 instantiations of MethodBodySemanticModel
Microsoft.CodeAnalysis.CSharp (2)
Compilation\MethodBodySemanticModel.cs (1)
64
var 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
"/>
61
internal static
MethodBodySemanticModel
Create(SyntaxTreeSemanticModel containingSemanticModel, MethodSymbol owner, InitialState initialState)
64
var
result = new MethodBodySemanticModel(owner, initialState.Binder, initialState.Syntax, containingSemanticModel);
Compilation\SyntaxTreeSemanticModel.cs (6)
1203
return
MethodBodySemanticModel
.Create(this, symbol, new
MethodBodySemanticModel
.InitialState(exprDecl, binder: binder));
1227
return
MethodBodySemanticModel
.Create(
1230
new
MethodBodySemanticModel
.InitialState(node, binder: new ExecutableCodeBinder(node, scriptInitializer, new ScriptLocalScopeBinder(_globalStatementLabels, defaultOuter()))));
1250
return
MethodBodySemanticModel
.Create(this, symbol, new
MethodBodySemanticModel
.InitialState(memberDecl, binder: binder));
Compiler\MethodCompiler.cs (4)
954
MethodBodySemanticModel
.InitialState forSemanticModel = default;
1133
return
MethodBodySemanticModel
.Create(semanticModelWithCachedBoundNodes,
1743
out
MethodBodySemanticModel
.InitialState forSemanticModel)
1839
forSemanticModel = new
MethodBodySemanticModel
.InitialState(syntaxNode, methodBodyForSemanticModel, bodyBinder, snapshotManager, remappedSymbols);