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