4 types derived from MemberSemanticModel
Microsoft.CodeAnalysis.CSharp (4)
Compilation\AttributeSemanticModel.cs (1)
16
internal sealed class AttributeSemanticModel :
MemberSemanticModel
Compilation\InitializerSemanticModel.cs (1)
21
internal sealed class InitializerSemanticModel :
MemberSemanticModel
Compilation\MemberSemanticModel.SpeculativeMemberSemanticModel.cs (1)
21
internal sealed class SpeculativeMemberSemanticModel :
MemberSemanticModel
Compilation\MethodBodySemanticModel.cs (1)
13
internal sealed class MethodBodySemanticModel :
MemberSemanticModel
101 references to MemberSemanticModel
Microsoft.CodeAnalysis.CSharp (84)
Compilation\CSharpSemanticModel.cs (5)
800
MemberSemanticModel
memberModel = GetMemberModel(existingConstructorInitializer);
822
private static SymbolInfo GetSymbolInfoFromBoundConstructorInitializer(
MemberSemanticModel
memberModel, Binder binder, BoundExpressionStatement bnode)
872
MemberSemanticModel
memberModel = GetMemberModel(existingConstructorInitializer);
1229
internal abstract
MemberSemanticModel
GetMemberModel(SyntaxNode node);
2390
if (Compilation.TestOnlyCompilationData is
MemberSemanticModel
.MemberSemanticBindingCounter counter)
Compilation\MemberSemanticModel.cs (3)
145
internal override
MemberSemanticModel
GetMemberModel(SyntaxNode node)
2393
private readonly
MemberSemanticModel
_semanticModel;
2395
internal IncrementalBinder(
MemberSemanticModel
semanticModel, Binder next)
Compilation\PublicSemanticModel.cs (1)
17
protected AttributeSemanticModel CreateModelForAttribute(Binder enclosingBinder, AttributeSyntax attribute,
MemberSemanticModel
containingModel)
Compilation\SpeculativeSemanticModelWithMemberModel.cs (13)
18
/// internal <see cref="
MemberSemanticModel
"/>.
25
private readonly
MemberSemanticModel
_memberModel;
26
private ImmutableDictionary<CSharpSyntaxNode,
MemberSemanticModel
> _childMemberModels = ImmutableDictionary<CSharpSyntaxNode,
MemberSemanticModel
>.Empty;
97
_memberModel = new
MemberSemanticModel
.SpeculativeMemberSemanticModel(this, owner, type, rootBinder, parentRemappedSymbolsOpt);
136
private
MemberSemanticModel
GetEnclosingMemberModel(int position)
143
private
MemberSemanticModel
GetEnclosingMemberModel(SyntaxNode node)
160
MemberSemanticModel
containing = GetEnclosingMemberModel(attributeOrParameter.Parent);
178
private
MemberSemanticModel
GetOrAddModelForAttribute(
MemberSemanticModel
containing, AttributeSyntax attribute)
185
private
MemberSemanticModel
GetOrAddModelForParameter(SyntaxNode node,
MemberSemanticModel
containing, ParameterSyntax paramDecl)
215
internal override
MemberSemanticModel
GetMemberModel(SyntaxNode node)
Compilation\SyntaxTreeSemanticModel.cs (60)
35
private ImmutableDictionary<CSharpSyntaxNode,
MemberSemanticModel
> _memberModels = ImmutableDictionary<CSharpSyntaxNode,
MemberSemanticModel
>.Empty;
38
private Func<CSharpSyntaxNode,
MemberSemanticModel
> _createMemberModelFunction;
160
MemberSemanticModel
memberModel = GetMemberModel(position);
171
MemberSemanticModel
model;
209
var
model = this.GetMemberModel(node);
293
var
model = this.GetMemberModel(collectionInitializer);
310
var
model = this.GetMemberModel(node);
402
var
model = this.GetMemberModel(node);
411
var
model = this.GetMemberModel(node);
420
var
model = this.GetMemberModel(node);
427
var
model = this.GetMemberModel(node);
434
var
model = this.GetMemberModel(node);
441
var
model = this.GetMemberModel(node);
448
var
model = this.GetMemberModel(declaratorSyntax);
455
var
model = this.GetMemberModel(declaratorSyntax);
462
var
model = this.GetMemberModel(declaratorSyntax);
469
var
model = this.GetMemberModel(declaratorSyntax);
476
var
model = this.GetMemberModel(node);
483
var
model = this.GetMemberModel(node);
490
var
model = this.GetMemberModel(node);
497
var
model = this.GetMemberModel(node);
546
var
model = this.GetMemberModel(expression);
567
var
model = this.GetMemberModel(expression);
598
var
model = this.GetMemberModel(position);
634
var
model = this.GetMemberModel(position);
648
var
model = this.GetMemberModel(position);
662
var
model = this.GetMemberModel(position);
676
var
model = this.GetMemberModel(position);
690
var
model = this.GetMemberModel(position);
708
var
model = this.GetMemberModel(position);
727
var
model = this.GetMemberModel(existingConstructorInitializer);
750
var
model = GetMemberModel(position);
762
var
memberModel = IsNullableAnalysisEnabledAtSpeculativePosition(position, attribute) ? GetMemberModel(position) : null;
777
private
MemberSemanticModel
GetMemberModel(int position)
835
internal override
MemberSemanticModel
GetMemberModel(SyntaxNode node)
913
var
binding = GetOrAddModelIfContains(variableDecl.Initializer, span);
973
internal ImmutableDictionary<CSharpSyntaxNode,
MemberSemanticModel
> TestOnlyMemberModels => _memberModels;
975
private
MemberSemanticModel
GetOrAddModelForAttribute(AttributeSyntax attribute)
977
MemberSemanticModel
containing = attribute.Parent != null ? GetMemberModel(attribute.Parent) : null;
1004
private
MemberSemanticModel
GetOrAddModelForParameter(ParameterSyntax paramDecl, TextSpan span)
1007
MemberSemanticModel
containing = paramDecl.Parent != null ? GetMemberModel(paramDecl.Parent) : null;
1045
private
MemberSemanticModel
GetOrAddModelIfContains(CSharpSyntaxNode node, TextSpan span)
1054
private
MemberSemanticModel
GetOrAddModel(CSharpSyntaxNode node)
1062
internal
MemberSemanticModel
GetOrAddModel(CSharpSyntaxNode node, Func<CSharpSyntaxNode,
MemberSemanticModel
> createMemberModelFunction)
1070
private
MemberSemanticModel
CreateMemberModel(CSharpSyntaxNode node)
1241
MemberSemanticModel
createMethodBodySemanticModel(CSharpSyntaxNode memberDecl, SourceMemberMethodSymbol symbol)
1850
var
memberModel = this.GetMemberModel(declarationSyntax);
1857
var
memberModel = this.GetMemberModel(declarationSyntax);
1886
var
memberModel = this.GetMemberModel(declarationSyntax);
1900
var
memberModel = this.GetMemberModel(declarationSyntax);
2113
MemberSemanticModel
memberModel = this.GetMemberModel(declarationSyntax);
2293
private static BoundNode GetBoundRoot(
MemberSemanticModel
memberModel, out Symbol member)
2356
MemberSemanticModel
memberModel = GetMemberModel(node);
2362
MemberSemanticModel
memberModel = GetMemberModel(node);
2368
MemberSemanticModel
memberModel = GetMemberModel(node);
2374
MemberSemanticModel
memberModel = GetMemberModel(node);
2380
MemberSemanticModel
memberModel = GetMemberModel(node);
2401
var
memberModel = GetMemberModel(position);
Compilation\SyntaxTreeSemanticModel_RegionAnalysisContext.cs (2)
30
var
memberModel = GetMemberModel(expression);
47
var
memberModel = GetMemberModel(firstStatement);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
CodeGen\CodeGenAwaitForeachTests.cs (12)
1672
var
memberModel = model.GetMemberModel(foreachSyntax);
2975
var
memberModel = model.GetMemberModel(foreachSyntax);
3294
var
memberModel = model.GetMemberModel(foreachSyntax);
3352
var
memberModel = model.GetMemberModel(foreachSyntax);
3548
var
memberModel = model.GetMemberModel(foreachSyntax);
3596
var
memberModel = model.GetMemberModel(foreachSyntax);
3729
var
memberModel = model.GetMemberModel(foreachSyntax);
4477
var
memberModel = model.GetMemberModel(foreachSyntax);
4550
var
memberModel = model.GetMemberModel(foreachSyntax);
4660
var
memberModel = model.GetMemberModel(foreachSyntax);
5063
var
memberModel = model.GetMemberModel(foreachSyntax);
5144
var
memberModel = model.GetMemberModel(foreachSyntax);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\ForEachTests.cs (1)
3262
var
memberModel = treeModel.GetMemberModel(syntaxNode);
Semantics\LambdaTests.cs (2)
8165
var
defaultValueModel = model.GetMemberModel(defaultValue);
8170
var
methodModel = model.GetMemberModel(methodSyntax.Body);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (1)
2314
var
memberModel = ((CSharpSemanticModel)model).GetMemberModel(statementSyntax);
Symbols\ConversionTests.cs (1)
1736
var
memberModel = ((CSharpSemanticModel)model).GetMemberModel(forEachSyntax);