5 overrides of AttributeClass
Microsoft.CodeAnalysis.CSharp (5)
Symbols\Attributes\PEAttributeData.cs (1)
34
public override NamedTypeSymbol?
AttributeClass
Symbols\Attributes\RetargetingAttributeData.cs (1)
40
public override NamedTypeSymbol?
AttributeClass
=> _attributeClass;
Symbols\Attributes\SourceAttributeData.cs (1)
89
public override NamedTypeSymbol
AttributeClass
Symbols\Source\SynthesizedAttributeData.cs (2)
47
public override NamedTypeSymbol
AttributeClass
=> _wellKnownMember.ContainingType;
77
public override NamedTypeSymbol
AttributeClass
=> _original.AttributeClass;
25 references to AttributeClass
Microsoft.CodeAnalysis.CSharp (25)
Compiler\ClsComplianceChecker.cs (3)
349
AttributeUsageInfo attributeUsage = attribute.
AttributeClass
.GetAttributeUsageInfo();
350
this.AddDiagnostic(ErrorCode.ERR_AttributeNotOnAccessor, attributeLocation, attribute.
AttributeClass
.Name, attributeUsage.GetValidTargetsErrorArgument());
1192
NamedTypeSymbol attributeClass = data.
AttributeClass
;
Emitter\Model\AttributeDataAdapter.cs (4)
46
context.Diagnostics.Add(ErrorCode.ERR_NotAnAttributeClass, context.Location ?? NoLocation.Singleton, this.
AttributeClass
);
91
return moduleBeingBuilt.Translate(this.
AttributeClass
, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, diagnostics: context.Diagnostics);
96
get { return this.
AttributeClass
.GetAttributeUsageInfo().AllowMultiple; }
180
var type = this.
AttributeClass
;
Symbols\Attributes\AttributeData.cs (10)
44
[MemberNotNullWhen(false, nameof(
AttributeClass
), nameof(AttributeConstructor))]
112
if (
AttributeClass
is object)
118
_lazyIsSecurityAttribute =
AttributeClass
.IsDerivedFrom(wellKnownType, TypeCompareKind.ConsiderEverything, useSiteInfo: ref discardedUseSiteInfo).ToThreeState();
137
if (this.
AttributeClass
is object)
139
string className = this.
AttributeClass
.ToDisplayString(SymbolDisplayFormat.TestFormat);
193
get { return this.
AttributeClass
.GetPublicSymbol(); }
518
Debug.Assert(
AttributeClass
is object);
519
NamedTypeSymbol attrType = this.
AttributeClass
;
651
if (
AttributeClass
is object)
653
foreach (var member in
AttributeClass
.GetMembers(memberName))
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1163
NamedTypeSymbol oldAttributeType = oldAttributeData.
AttributeClass
;
Symbols\Source\SourceAssemblySymbol.cs (3)
1225
var attributeClass = attribute.
AttributeClass
;
1258
diagnostics.Add(ErrorCode.WRN_AssemblyAttributeFromModuleIsOverridden, NoLocation.Singleton, attribute.
AttributeClass
, netModuleName);
1264
diagnostics.Add(ErrorCode.ERR_DuplicateAttributeInNetModule, NoLocation.Singleton, attribute.
AttributeClass
.Name, netModuleName);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
721
AttributeUsageInfo attributeUsage = attribute.
AttributeClass
.GetAttributeUsageInfo();
1435
Debug.Assert(attribute.
AttributeClass
is not null);
1446
bool isField = attribute.
AttributeClass
.GetMembers(key).Any(
Symbols\Symbol_Attributes.cs (1)
896
NamedTypeSymbol attributeType = attribute.
AttributeClass
;