2 instantiations of AttributeSemanticModel
Microsoft.CodeAnalysis.CSharp (2)
Compilation\AttributeSemanticModel.cs (1)
42
return new
AttributeSemanticModel
(syntax, attributeType, attributeTarget, aliasOpt, rootBinder, containingSemanticModel, parentRemappedSymbolsOpt: parentRemappedSymbolsOpt);
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
55
_memberModel = new
AttributeSemanticModel
(syntax, attributeType, getAttributeTargetFromPosition(position, parentSemanticModel), aliasOpt, rootBinder, containingPublicSemanticModel: this, parentRemappedSymbolsOpt: parentRemappedSymbolsOpt);
7 references to AttributeSemanticModel
Microsoft.CodeAnalysis.CSharp (7)
Compilation\AttributeSemanticModel.cs (1)
39
public static
AttributeSemanticModel
Create(PublicSemanticModel containingSemanticModel, AttributeSyntax syntax, NamedTypeSymbol attributeType, AliasSymbol aliasOpt, Symbol? attributeTarget, Binder rootBinder, ImmutableDictionary<Symbol, Symbol>? parentRemappedSymbolsOpt)
Compilation\MemberSemanticModel.cs (3)
158
Debug.Assert(_lazySnapshotManager is object || this is
AttributeSemanticModel
|| !IsNullableAnalysisEnabled());
165
Debug.Assert(_lazyRemappedSymbols is object || this is
AttributeSemanticModel
|| !IsNullableAnalysisEnabled());
1513
this is
AttributeSemanticModel
)) ||
Compilation\PublicSemanticModel.cs (2)
17
protected
AttributeSemanticModel
CreateModelForAttribute(Binder enclosingBinder, AttributeSyntax attribute, MemberSemanticModel containingModel)
25
return
AttributeSemanticModel
.Create(
Compilation\SyntaxTreeSemanticModel.cs (1)
763
return
AttributeSemanticModel
.CreateSpeculative(this, attribute, attributeType, aliasOpt, binder, memberModel?.GetRemappedSymbols(), position);