3 instantiations of AttributeUsageInfo
Microsoft.CodeAnalysis (3)
MetadataReader\PEModule.cs (1)
1537usageInfo = new AttributeUsageInfo((AttributeTargets)validOn, allowMultiple, inherited);
Symbols\Attributes\AttributeUsageInfo.cs (1)
53internal static readonly AttributeUsageInfo Default = new AttributeUsageInfo(validTargets: AttributeTargets.All, allowMultiple: false, inherited: true);
Symbols\Attributes\CommonAttributeData.cs (1)
576return new AttributeUsageInfo(validOn, allowMultiple, inherited);
18 references to AttributeUsageInfo
Microsoft.CodeAnalysis (17)
MetadataReader\PEModule.cs (1)
1498internal bool HasAttributeUsageAttribute(EntityHandle token, IAttributeNamedArgumentDecoder attributeNamedArgumentDecoder, out AttributeUsageInfo usageInfo)
Symbols\Attributes\AttributeUsageInfo.cs (11)
14internal readonly struct AttributeUsageInfo : IEquatable<AttributeUsageInfo> 53internal static readonly AttributeUsageInfo Default = new AttributeUsageInfo(validTargets: AttributeTargets.All, allowMultiple: false, inherited: true); 55internal static readonly AttributeUsageInfo Null = default(AttributeUsageInfo); 106public static bool operator ==(AttributeUsageInfo left, AttributeUsageInfo right) 111public static bool operator !=(AttributeUsageInfo left, AttributeUsageInfo right) 118if (obj is AttributeUsageInfo) 120return this.Equals((AttributeUsageInfo)obj); 126public bool Equals(AttributeUsageInfo other)
Symbols\Attributes\CommonAttributeData.cs (2)
550internal AttributeUsageInfo DecodeAttributeUsageAttribute() 555internal static AttributeUsageInfo DecodeAttributeUsageAttribute(TypedConstant positionalArg, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArgs)
Symbols\Attributes\CommonTypeEarlyWellKnownAttributeData.cs (3)
18private AttributeUsageInfo _attributeUsageInfo = AttributeUsageInfo.Null; 19public AttributeUsageInfo AttributeUsageInfo
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\NamedTypeSymbol.vb (1)
704''' Gets the associated <see cref="AttributeUsageInfo"/> for an attribute type.