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