4 types derived from CSharpAttributeData
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Attributes\PEAttributeData.cs (1)
18internal sealed class PEAttributeData : CSharpAttributeData
Symbols\Attributes\RetargetingAttributeData.cs (1)
15internal sealed class RetargetingAttributeData : CSharpAttributeData
Symbols\Attributes\SourceAttributeData.cs (1)
18internal sealed class SourceAttributeData : CSharpAttributeData
Symbols\Source\SynthesizedAttributeData.cs (1)
15internal abstract class SynthesizedAttributeData : CSharpAttributeData
404 references to CSharpAttributeData
Microsoft.CodeAnalysis.CSharp (404)
Binder\Binder_Attributes.cs (3)
75CSharpAttributeData?[] attributeDataArray, 126internal (CSharpAttributeData, BoundAttribute) GetAttribute( 282private CSharpAttributeData GetAttribute(BoundAttribute boundAttribute, BindingDiagnosticBag diagnostics)
Binder\EarlyWellKnownAttributeBinder.cs (2)
26internal (CSharpAttributeData, BoundAttribute) GetAttribute( 42internal new (CSharpAttributeData, BoundAttribute) GetAttribute(
Compiler\ClsComplianceChecker.cs (8)
144foreach (CSharpAttributeData assemblyLevelAttribute in peModule.GetAssemblyAttributes()) 342foreach (CSharpAttributeData attribute in symbol.GetAttributes()) 599private void CheckForAttributeWithArrayArgumentInternal(ImmutableArray<CSharpAttributeData> attributes) 601foreach (CSharpAttributeData attribute in attributes) 655private bool TryGetAttributeWarningLocation(CSharpAttributeData attribute, out Location location) 766private bool TryGetClsComplianceAttributeLocation(ImmutableArray<CSharpAttributeData> attributes, out Location attributeLocation) 768foreach (CSharpAttributeData data in attributes) 1187foreach (CSharpAttributeData data in symbol.GetAttributes())
Emitter\Model\MethodSymbolAdapter.cs (1)
512ImmutableArray<CSharpAttributeData> userDefined = AdaptedMethodSymbol.GetReturnTypeAttributes();
Emitter\Model\SourceAssemblySymbolAdapter.cs (2)
16internal IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder, bool emittingRefAssembly, bool emittingAssemblyAttributesInNetModule) 20ImmutableArray<CSharpAttributeData> userDefined = this.GetAttributes();
Emitter\Model\SymbolAdapter.cs (9)
84internal virtual IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder) 92internal IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder, bool emittingAssemblyAttributesInNetModule) 97ImmutableArray<CSharpAttributeData> userDefined; 111internal IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit( 112ImmutableArray<CSharpAttributeData> userDefined, 122return SpecializedCollections.EmptyEnumerable<CSharpAttributeData>(); 128private IEnumerable<CSharpAttributeData> GetCustomAttributesToEmitIterator( 129ImmutableArray<CSharpAttributeData> userDefined, 150CSharpAttributeData attribute = userDefined[i];
Emitter\NoPia\EmbeddedEvent.cs (2)
23protected override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder) 73foreach (var attrData in underlyingContainingType.GetAttributes())
Emitter\NoPia\EmbeddedField.cs (1)
34protected override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder)
Emitter\NoPia\EmbeddedMethod.cs (1)
35protected override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder)
Emitter\NoPia\EmbeddedParameter.cs (1)
39protected override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder)
Emitter\NoPia\EmbeddedProperty.cs (1)
25protected override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder)
Emitter\NoPia\EmbeddedType.cs (2)
244protected override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder) 249protected override CSharpAttributeData CreateTypeIdentifierAttribute(bool hasGuid, SyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics)
Emitter\NoPia\EmbeddedTypesManager.cs (5)
33EmbeddedTypesManager<PEModuleBuilder, ModuleCompilationState, EmbeddedTypesManager, SyntaxNode, CSharpAttributeData, 119internal override int GetTargetAttributeSignatureIndex(CSharpAttributeData attrData, AttributeDescription description) 124internal override CSharpAttributeData CreateSynthesizedAttribute(WellKnownMember constructor, ImmutableArray<TypedConstant> constructorArguments, ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, SyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics) 156internal override bool TryGetAttributeArguments(CSharpAttributeData attrData, out ImmutableArray<TypedConstant> constructorArguments, out ImmutableArray<KeyValuePair<string, TypedConstant>> namedArguments, SyntaxNode syntaxNodeOpt, DiagnosticBag diagnostics) 635protected override CSharpAttributeData CreateCompilerGeneratedAttribute()
Errors\MessageProvider.cs (3)
261diagnostics.Add(ErrorCode.ERR_InvalidAttributeArgument, ((CSharpAttributeData)attribute).GetAttributeArgumentLocation(parameterIndex), node.GetErrorDisplayName()); 278diagnostics.Add(ErrorCode.ERR_MarshalUnmanagedTypeNotValidForFields, ((CSharpAttributeData)attribute).GetAttributeArgumentLocation(parameterIndex), unmanagedTypeName); 283diagnostics.Add(ErrorCode.ERR_MarshalUnmanagedTypeOnlyValidForFields, ((CSharpAttributeData)attribute).GetAttributeArgumentLocation(parameterIndex), unmanagedTypeName);
FlowAnalysis\DefiniteAssignment.cs (1)
1906private void VisitAttributes(ImmutableArray<(CSharpAttributeData, BoundAttribute)> boundAttributes)
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
28foreach (var attrData in @interface.GetAttributes())
Lowering\StateMachineRewriter\StateMachineTypeSymbol.cs (7)
18private ImmutableArray<CSharpAttributeData> _attributes; 53public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 59ArrayBuilder<CSharpAttributeData> builder = null; 63foreach (var attribute in kickoffType.GetAttributes()) 70builder = ArrayBuilder<CSharpAttributeData>.GetInstance(2); // only 2 different attributes are inherited at the moment 78builder == null ? ImmutableArray<CSharpAttributeData>.Empty : builder.ToImmutableAndFree(), 79default(ImmutableArray<CSharpAttributeData>));
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.cs (7)
63private ImmutableArray<CSharpAttributeData> _attributes; 70public override ImmutableArray<CSharpAttributeData> GetAttributes() 76ArrayBuilder<CSharpAttributeData> builder = null; 80foreach (var attribute in kickoffMethod.GetAttributes()) 89builder = ArrayBuilder<CSharpAttributeData>.GetInstance(4); // only 4 different attributes are inherited at the moment 97builder == null ? ImmutableArray<CSharpAttributeData>.Empty : builder.ToImmutableAndFree(), 98default(ImmutableArray<CSharpAttributeData>));
Lowering\SynthesizedMethodBaseSymbol.cs (4)
165public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 170: ImmutableArray<CSharpAttributeData>.Empty; 173public sealed override ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() 176return InheritsBaseMethodAttributes ? BaseMethod.GetReturnTypeAttributes() : ImmutableArray<CSharpAttributeData>.Empty;
Symbols\Attributes\AttributeData.cs (7)
215internal void DecodeSecurityAttribute<T>(Symbol targetSymbol, CSharpCompilation compilation, ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 241internal static void DecodeSkipLocalsInitAttribute<T>(CSharpCompilation compilation, ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 252internal static void DecodeMemberNotNullAttribute<T>(TypeSymbol type, ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 288private static void ReportBadNotNullMemberIfNeeded(TypeSymbol type, DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments, string memberName) 302internal static void DecodeMemberNotNullWhenAttribute<T>(TypeSymbol type, ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 792internal static int IndexOfAttribute(this ImmutableArray<CSharpAttributeData> attributes, AttributeDescription description) 805internal static string? DecodeNotNullIfNotNullAttribute(this CSharpAttributeData attribute)
Symbols\Attributes\RetargetingAttributeData.cs (2)
17private readonly CSharpAttributeData _underlying; 24CSharpAttributeData underlying,
Symbols\Attributes\SourceAttributeData.cs (1)
114/// If the <see cref="CSharpAttributeData.ConstructorArguments"/> contains any named constructor arguments or default value arguments,
Symbols\EventSymbol.cs (2)
115public ImmutableArray<CSharpAttributeData> GetFieldAttributes() 118ImmutableArray<CSharpAttributeData>.Empty :
Symbols\Metadata\PE\PEAssemblySymbol.cs (2)
65private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 140public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\Metadata\PE\PEEventSymbol.cs (3)
33private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 360public override ImmutableArray<CSharpAttributeData> GetAttributes() 370internal override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder)
Symbols\Metadata\PE\PEFieldSymbol.cs (4)
120private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 580public override ImmutableArray<CSharpAttributeData> GetAttributes() 607internal override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder) 609foreach (CSharpAttributeData attribute in GetAttributes())
Symbols\Metadata\PE\PEMethodSymbol.cs (8)
308public ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 351retVal._lazyCustomAttributes = ImmutableArray<CSharpAttributeData>.Empty; 991public override ImmutableArray<CSharpAttributeData> GetAttributes() 996var attributeData = default(ImmutableArray<CSharpAttributeData>); 1066return ImmutableArray<CSharpAttributeData>.Empty; 1072? InterlockedOperations.Initialize(ref uncommonFields._lazyCustomAttributes, ImmutableArray<CSharpAttributeData>.Empty) 1077internal override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder) => GetAttributes(); 1079public override ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() => Signature.ReturnParam.GetAttributes();
Symbols\Metadata\PE\PEModuleSymbol.cs (21)
86private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 91private ImmutableArray<CSharpAttributeData> _lazyAssemblyAttributes; 242public override ImmutableArray<CSharpAttributeData> GetAttributes() 251internal ImmutableArray<CSharpAttributeData> GetAssemblyAttributes() 255ArrayBuilder<CSharpAttributeData> moduleAssemblyAttributesBuilder = null; 277moduleAssemblyAttributesBuilder = new ArrayBuilder<CSharpAttributeData>(); 290(moduleAssemblyAttributesBuilder != null) ? moduleAssemblyAttributesBuilder.ToImmutableAndFree() : ImmutableArray<CSharpAttributeData>.Empty, 291default(ImmutableArray<CSharpAttributeData>)); 296internal void LoadCustomAttributes(EntityHandle token, ref ImmutableArray<CSharpAttributeData> customAttributes) 303ref ImmutableArray<CSharpAttributeData> customAttributes) 309internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token, 316internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token, 329internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token, 349ArrayBuilder<CSharpAttributeData> customAttributesBuilder = null; 396customAttributesBuilder = ArrayBuilder<CSharpAttributeData>.GetInstance(); 410return ImmutableArray<CSharpAttributeData>.Empty; 416internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token) 428internal ImmutableArray<CSharpAttributeData> GetCustomAttributesForToken(EntityHandle token, 466private ImmutableArray<CSharpAttributeData> GetCustomAttributesFilterCompilerAttributes(EntityHandle token, out bool foundExtension, out bool foundReadOnly) 667ImmutableArray<CSharpAttributeData> assemblyAttributes = GetAssemblyAttributes(); 680ImmutableArray<CSharpAttributeData> assemblyAttributes = GetAssemblyAttributes();
Symbols\Metadata\PE\PENamedTypeSymbol.cs (4)
137internal ImmutableArray<CSharpAttributeData> lazyCustomAttributes; 695public override ImmutableArray<CSharpAttributeData> GetAttributes() 700return ImmutableArray<CSharpAttributeData>.Empty; 739internal override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder)
Symbols\Metadata\PE\PEParameterSymbol.cs (11)
159private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 185private ImmutableArray<CSharpAttributeData> _lazyHiddenAttributes; 270_lazyCustomAttributes = ImmutableArray<CSharpAttributeData>.Empty; 271_lazyHiddenAttributes = ImmutableArray<CSharpAttributeData>.Empty; 1055public override ImmutableArray<CSharpAttributeData> GetAttributes() 1089ImmutableArray<CSharpAttributeData> attributes = 1107var builder = ArrayBuilder<CSharpAttributeData>.GetInstance(); 1128ImmutableInterlocked.InterlockedInitialize(ref _lazyHiddenAttributes, ImmutableArray<CSharpAttributeData>.Empty); 1160internal override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder) 1162foreach (CSharpAttributeData attribute in GetAttributes()) 1168foreach (CSharpAttributeData attribute in _lazyHiddenAttributes)
Symbols\Metadata\PE\PEPropertySymbol.cs (7)
179public ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 367retVal._lazyCustomAttributes = ImmutableArray<CSharpAttributeData>.Empty; 730public override ImmutableArray<CSharpAttributeData> GetAttributes() 736ImmutableArray<CSharpAttributeData> attributes = containingPEModuleSymbol.GetCustomAttributesForToken( 755return ImmutableArray<CSharpAttributeData>.Empty; 762result = ImmutableArray<CSharpAttributeData>.Empty; 770internal override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder)
Symbols\Metadata\PE\PETypeParameterSymbol.cs (2)
45private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 640public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\MethodSymbol.cs (2)
389public virtual ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() 396return ImmutableArray<CSharpAttributeData>.Empty;
Symbols\PublicModel\MethodSymbol.cs (1)
268return _underlying.GetReturnTypeAttributes().Cast<CSharpAttributeData, AttributeData>();
Symbols\ReducedExtensionMethodSymbol.cs (1)
457public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\Retargeting\RetargetingAssemblySymbol.cs (2)
91private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 210public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\Retargeting\RetargetingEventSymbol.cs (2)
156public override ImmutableArray<CSharpAttributeData> GetAttributes() 161internal override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder)
Symbols\Retargeting\RetargetingFieldSymbol.cs (3)
31private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 78public override ImmutableArray<CSharpAttributeData> GetAttributes() 83internal override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder)
Symbols\Retargeting\RetargetingMethodSymbol.cs (5)
45private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 50private ImmutableArray<CSharpAttributeData> _lazyReturnTypeCustomAttributes; 211public override ImmutableArray<CSharpAttributeData> GetAttributes() 216internal override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder) 222public override ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes()
Symbols\Retargeting\RetargetingModuleSymbol.cs (2)
69private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 276public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (3)
37private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 222public override ImmutableArray<CSharpAttributeData> GetAttributes() 227internal override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder)
Symbols\Retargeting\RetargetingParameterSymbol.cs (3)
25private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 71public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 76internal sealed override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder)
Symbols\Retargeting\RetargetingPropertySymbol.cs (3)
32private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 216public override ImmutableArray<CSharpAttributeData> GetAttributes() 221internal override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder)
Symbols\Retargeting\RetargetingSymbolTranslator.cs (13)
344foreach (var attrData in type.GetAttributes()) 1143private ImmutableArray<CSharpAttributeData> RetargetAttributes(ImmutableArray<CSharpAttributeData> oldAttributes) 1148internal IEnumerable<CSharpAttributeData> RetargetAttributes(IEnumerable<CSharpAttributeData> attributes) 1150foreach (var attributeData in attributes) 1156private CSharpAttributeData RetargetAttributeData(CSharpAttributeData oldAttributeData) 1302internal ImmutableArray<CSharpAttributeData> GetRetargetedAttributes( 1303ImmutableArray<CSharpAttributeData> underlyingAttributes, 1304ref ImmutableArray<CSharpAttributeData> lazyCustomAttributes) 1309ImmutableArray<CSharpAttributeData> retargetedAttributes = this.RetargetAttributes(underlyingAttributes); 1311ImmutableInterlocked.InterlockedCompareExchange(ref lazyCustomAttributes, retargetedAttributes, default(ImmutableArray<CSharpAttributeData>));
Symbols\Retargeting\RetargetingTypeParameterSymbol.cs (2)
36private ImmutableArray<CSharpAttributeData> _lazyCustomAttributes; 63public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (9)
21private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 71public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 81private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 117internal sealed override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 119CSharpAttributeData? attributeData; 162protected override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 203MarshalAsAttributeDecoder<FieldWellKnownAttributeData, AttributeSyntax, CSharpAttributeData, AttributeLocation>.Decode(ref arguments, AttributeTargets.Field, MessageProvider.Instance); 264private void VerifyConstantValueMatches(ConstantValue attrValue, ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 312internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Source\ImplicitNamedTypeSymbol.cs (2)
34public override ImmutableArray<CSharpAttributeData> GetAttributes() 37return ImmutableArray<CSharpAttributeData>.Empty;
Symbols\Source\SourceAssemblySymbol.cs (45)
65private CustomAttributesBag<CSharpAttributeData> _lazySourceAttributesBag; 70private CustomAttributesBag<CSharpAttributeData> _lazyNetModuleAttributesBag; 1145private bool IsKnownAssemblyAttribute(CSharpAttributeData attribute) 1188private HashSet<CSharpAttributeData> GetUniqueSourceAssemblyAttributes() 1190ImmutableArray<CSharpAttributeData> appliedSourceAttributes = this.GetSourceAttributesBag().Attributes; 1192HashSet<CSharpAttributeData> uniqueAttributes = null; 1196CSharpAttributeData attribute = appliedSourceAttributes[i]; 1209private static bool AddUniqueAssemblyAttribute(CSharpAttributeData attribute, ref HashSet<CSharpAttributeData> uniqueAttributes) 1215uniqueAttributes = new HashSet<CSharpAttributeData>(comparer: CommonAttributeDataComparer.Instance); 1221private bool ValidateAttributeUsageForNetModuleAttribute(CSharpAttributeData attribute, string netModuleName, BindingDiagnosticBag diagnostics, ref HashSet<CSharpAttributeData> uniqueAttributes) 1280private ImmutableArray<CSharpAttributeData> GetNetModuleAttributes(out ImmutableArray<string> netModuleNames) 1282ArrayBuilder<CSharpAttributeData> moduleAssemblyAttributesBuilder = null; 1289foreach (var attributeData in peModuleSymbol.GetAssemblyAttributes()) 1294moduleAssemblyAttributesBuilder = ArrayBuilder<CSharpAttributeData>.GetInstance(); 1305return ImmutableArray<CSharpAttributeData>.Empty; 1313ImmutableArray<CSharpAttributeData> attributesFromNetModules, 1325HashSet<CSharpAttributeData> uniqueAttributes = GetUniqueSourceAssemblyAttributes(); 1327var arguments = new DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation>(); 1339CSharpAttributeData attribute = attributesFromNetModules[i]; 1362private void LoadAndValidateNetModuleAttributes(ref CustomAttributesBag<CSharpAttributeData> lazyNetModuleAttributesBag) 1366Interlocked.CompareExchange(ref lazyNetModuleAttributesBag, CustomAttributesBag<CSharpAttributeData>.Empty, null); 1373ImmutableArray<CSharpAttributeData> attributesFromNetModules = GetNetModuleAttributes(out netModuleNames); 1431CustomAttributesBag<CSharpAttributeData> netModuleAttributesBag; 1435netModuleAttributesBag = new CustomAttributesBag<CSharpAttributeData>(); 1440if (netModuleAttributesBag.IsEmpty) netModuleAttributesBag = CustomAttributesBag<CSharpAttributeData>.Empty; 1444netModuleAttributesBag = CustomAttributesBag<CSharpAttributeData>.Empty; 1470ImmutableArray<CSharpAttributeData> attributesFromNetModules = GetNetModuleAttributes(out netModuleNames); 1483WellKnownAttributeData limitedDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> attributesFromNetModules, 1492HashSet<CSharpAttributeData> uniqueAttributes = null; 1499CSharpAttributeData attribute = attributesFromNetModules[i]; 1511void limitedDecodeWellKnownAttribute(CSharpAttributeData attribute, QuickAttributes attributeMatches, ref CommonAssemblyWellKnownAttributeData result) 1534private CustomAttributesBag<CSharpAttributeData> GetNetModuleAttributesBag() 1581private CustomAttributesBag<CSharpAttributeData> GetSourceAttributesBag() 1595public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 1662CustomAttributesBag<CSharpAttributeData>? attributesBag = _lazySourceAttributesBag; 1710CustomAttributesBag<CSharpAttributeData> attributesBag = _lazySourceAttributesBag; 1779private static IEnumerable<Cci.SecurityAttribute> GetSecurityAttributes(CustomAttributesBag<CSharpAttributeData> attributesBag) 1789foreach (var securityAttribute in securityData.GetSecurityAttributes<CSharpAttributeData>(attributesBag.Attributes)) 2201private void DecodeTypeForwardedToAttribute(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 2269CSharpAttributeData attrData, 2357protected override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 2362private void DecodeWellKnownAttribute(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments, int index, bool isFromNetModule) 2593private static void ValidateIntegralAttributeNonNegativeArguments(CSharpAttributeData attribute, AttributeSyntax nodeOpt, BindingDiagnosticBag diagnostics)
Symbols\Source\SourceClonedParameterSymbol.cs (1)
113public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\Source\SourceComplexParameterSymbol.cs (25)
37private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 583internal sealed override CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 617public ImmutableArray<(CSharpAttributeData, BoundAttribute)> BindParameterAttributes() 628if (CSharpAttributeData.IsTargetEarlyAttribute(attributeType, attributeSyntax, AttributeDescription.OptionalAttribute)) 645internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 647if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.DefaultParameterValueAttribute)) 651else if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.DecimalConstantAttribute)) 655else if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.DateTimeConstantAttribute)) 659else if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.UnscopedRefAttribute)) 668if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.CallerLineNumberAttribute)) 672else if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.CallerFilePathAttribute)) 676else if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.CallerMemberNameAttribute)) 680else if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.CallerArgumentExpressionAttribute)) 709private (CSharpAttributeData?, BoundAttribute?) EarlyDecodeAttributeForDefaultParameterValue(AttributeDescription description, ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 738protected override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 788MarshalAsAttributeDecoder<ParameterWellKnownAttributeData, AttributeSyntax, CSharpAttributeData, AttributeLocation>.Decode(ref arguments, AttributeTargets.Parameter, MessageProvider.Instance); 890private static bool? DecodeMaybeNullWhenOrNotNullWhenOrDoesNotReturnIfAttribute(CSharpAttributeData attribute) 898private void DecodeDefaultParameterValueAttribute(AttributeDescription description, ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 940private ConstantValue DecodeDefaultParameterValueAttribute(AttributeDescription description, CSharpAttributeData attribute, AttributeSyntax node, bool diagnose, BindingDiagnosticBag diagnosticsOpt) 959private ConstantValue DecodeDefaultParameterValueAttribute(CSharpAttributeData attribute, AttributeSyntax node, bool diagnose, BindingDiagnosticBag diagnosticsOpt) 1164private void ValidateCallerArgumentExpressionAttribute(AttributeSyntax node, CSharpAttributeData attribute, BindingDiagnosticBag diagnostics) 1247private void DecodeInterpolatedStringHandlerArgumentAttribute(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments, BindingDiagnosticBag diagnostics, int attributeIndex) 1330(int Ordinal, ParameterSymbol? Parameter)? decodeName(TypedConstant constant, ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 1387static void setInterpolatedStringHandlerAttributeError(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 1394internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Source\SourceConstructorSymbolBase.cs (2)
232internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 236if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.SetsRequiredMembersAttribute))
Symbols\Source\SourceEventSymbol.cs (7)
31private CustomAttributesBag<CSharpAttributeData>? _lazyCustomAttributesBag; 191private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 213public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 253internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 255CSharpAttributeData? attributeData; 296protected sealed override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 316CSharpAttributeData.DecodeSkipLocalsInitAttribute<CommonEventWellKnownAttributeData>(DeclaringCompilation, ref arguments);
Symbols\Source\SourceFieldSymbol.cs (1)
114protected sealed override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1426foreach (var attr in symbol.GetAttributes())
Symbols\Source\SourceMemberFieldSymbol.cs (1)
131internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Source\SourceMethodSymbolWithAttributes.cs (32)
29private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 30private CustomAttributesBag<CSharpAttributeData> _lazyReturnTypeCustomAttributesBag; 247private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 264private CustomAttributesBag<CSharpAttributeData> GetReturnTypeAttributesBag() 275private CustomAttributesBag<CSharpAttributeData> GetAttributesBag(ref CustomAttributesBag<CSharpAttributeData> lazyCustomAttributesBag, bool forReturnType) 317public override ImmutableArray<CSharpAttributeData> GetAttributes() 326public override ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes() 332internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 340if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.ConditionalAttribute)) 355else if (EarlyDecodeDeprecatedOrExperimentalOrObsoleteAttribute(ref arguments, out CSharpAttributeData? attributeData, out BoundAttribute? boundAttribute, out ObsoleteAttributeData? obsoleteData)) 364else if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.UnmanagedCallersOnlyAttribute)) 372else if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.OverloadResolutionPriorityAttribute)) 402public ImmutableArray<(CSharpAttributeData, BoundAttribute)> BindMethodAttributes() 510protected override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 525private void DecodeWellKnownAttributeAppliedToMethod(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 539AttributeData.DecodeMethodImplAttribute<MethodWellKnownAttributeData, AttributeSyntax, CSharpAttributeData, AttributeLocation>(ref arguments, MessageProvider.Instance); 590CSharpAttributeData.DecodeSkipLocalsInitAttribute<MethodWellKnownAttributeData>(DeclaringCompilation, ref arguments); 599CSharpAttributeData.DecodeMemberNotNullAttribute<MethodWellKnownAttributeData>(ContainingType, ref arguments); 604CSharpAttributeData.DecodeMemberNotNullWhenAttribute<MethodWellKnownAttributeData>(ContainingType, ref arguments); 687ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments, 714private void ValidateConditionalAttribute(CSharpAttributeData attribute, AttributeSyntax node, BindingDiagnosticBag diagnostics) 778private void DecodeWellKnownAttributeAppliedToReturnValue(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 789MarshalAsAttributeDecoder<ReturnTypeWellKnownAttributeData, AttributeSyntax, CSharpAttributeData, AttributeLocation>.Decode(ref arguments, AttributeTargets.ReturnValue, MessageProvider.Instance); 817private void DecodeDllImportAttribute(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 942private void DecodeModuleInitializerAttribute(DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 991private void DecodeInterceptsLocationAttribute(DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 1009private void DecodeInterceptsLocationChecksumBased(DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments, int version, string? data) 1164DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments, 1377private void DecodeUnmanagedCallersOnlyAttribute(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 1433static UnmanagedCallersOnlyAttributeData DecodeUnmanagedCallersOnlyAttributeData(SourceMethodSymbol @this, CSharpAttributeData attribute, Location location, BindingDiagnosticBag diagnostics) 1463internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Source\SourceModuleSymbol.cs (5)
43private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 506private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 529public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 551protected override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 577CSharpAttributeData.DecodeSkipLocalsInitAttribute<ModuleWellKnownAttributeData>(DeclaringCompilation, ref arguments);
Symbols\Source\SourceNamedTypeSymbol.cs (19)
29private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 835private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 857public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 897internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 900CSharpAttributeData? attributeData; 903if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.ComImportAttribute)) 918if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.CodeAnalysisEmbeddedAttribute)) 933if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.ConditionalAttribute)) 960if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.AttributeUsageAttribute)) 992if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.InterpolatedStringHandlerAttribute)) 1007if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.InlineArrayAttribute)) 1025if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.CollectionBuilderAttribute)) 1090protected sealed override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 1133AttributeData.DecodeStructLayoutAttribute<TypeWellKnownAttributeData, AttributeSyntax, CSharpAttributeData, AttributeLocation>( 1178CSharpAttributeData.DecodeSkipLocalsInitAttribute<TypeWellKnownAttributeData>(DeclaringCompilation, ref arguments); 1291private AttributeUsageInfo DecodeAttributeUsageAttribute(CSharpAttributeData attribute, AttributeSyntax node, bool diagnose, BindingDiagnosticBag diagnosticsOpt = null) 1328private void DecodeCoClassAttribute(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 1381private void ValidateConditionalAttribute(CSharpAttributeData attribute, AttributeSyntax node, BindingDiagnosticBag diagnostics) 1563internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Source\SourceParameterSymbol.cs (2)
191internal abstract CustomAttributesBag<CSharpAttributeData> GetAttributesBag(); 197public sealed override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\Source\SourcePropertySymbolBase.cs (14)
69private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 471CustomAttributesBag<CSharpAttributeData>? temp = null; 1279private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 1324public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 1418internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 1420CSharpAttributeData? attributeData; 1434if (CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.IndexerNameAttribute)) 1454else if (IsIndexer && CSharpAttributeData.IsTargetEarlyAttribute(arguments.AttributeType, arguments.AttributeSyntax, AttributeDescription.OverloadResolutionPriorityAttribute)) 1498protected override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 1524CSharpAttributeData.DecodeSkipLocalsInitAttribute<PropertyWellKnownAttributeData>(DeclaringCompilation, ref arguments); 1562CSharpAttributeData.DecodeMemberNotNullAttribute<PropertyWellKnownAttributeData>(ContainingType, ref arguments); 1567CSharpAttributeData.DecodeMemberNotNullWhenAttribute<PropertyWellKnownAttributeData>(ContainingType, ref arguments); 1681internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 1693private void ValidateIndexerNameAttribute(CSharpAttributeData attribute, AttributeSyntax node, BindingDiagnosticBag diagnostics)
Symbols\Source\SourceSimpleParameterSymbol.cs (2)
149internal override CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 152return CustomAttributesBag<CSharpAttributeData>.Empty;
Symbols\Source\SourceTypeParameterSymbol.cs (5)
31private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 166public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 177internal virtual CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 194CustomAttributesBag<CSharpAttributeData> attributesBag = typeParameter.GetAttributesBag(); 426protected sealed override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments)
Symbols\SubstitutedEventSymbol.cs (1)
54public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\SubstitutedFieldSymbol.cs (1)
77public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\SubstitutedMethodSymbol.cs (2)
206public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 211public override ImmutableArray<CSharpAttributeData> GetReturnTypeAttributes()
Symbols\SubstitutedNamedTypeSymbol.cs (2)
205public sealed override ImmutableArray<CSharpAttributeData> GetAttributes() 468internal override IEnumerable<CSharpAttributeData> GetCustomAttributesToEmit(PEModuleBuilder moduleBuilder)
Symbols\SubstitutedPropertySymbol.cs (1)
63public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\Symbol.cs (3)
1524internal bool ReportExplicitUseOfReservedAttributes(in DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments, ReservedAttributes reserved) 1604bool reportExplicitUseOfReservedAttribute(CSharpAttributeData attribute, in DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments, in AttributeDescription attributeDescription)
Symbols\Symbol_Attributes.cs (30)
28public virtual ImmutableArray<CSharpAttributeData> GetAttributes() 35return ImmutableArray<CSharpAttributeData>.Empty; 142internal virtual (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 149out CSharpAttributeData? attributeData, 157if (CSharpAttributeData.IsTargetEarlyAttribute(type, syntax, AttributeDescription.ObsoleteAttribute)) 161else if (CSharpAttributeData.IsTargetEarlyAttribute(type, syntax, AttributeDescription.DeprecatedAttribute)) 165else if (CSharpAttributeData.IsTargetEarlyAttribute(type, syntax, AttributeDescription.WindowsExperimentalAttribute)) 169else if (CSharpAttributeData.IsTargetEarlyAttribute(type, syntax, AttributeDescription.ExperimentalAttribute)) 216protected void DecodeWellKnownAttribute(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 238protected virtual void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 260internal virtual void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData) 301ref CustomAttributesBag<CSharpAttributeData>? lazyCustomAttributesBag, 318ImmutableArray<CSharpAttributeData> boundAttributes; 329Interlocked.CompareExchange(ref lazyCustomAttributesBag, new CustomAttributesBag<CSharpAttributeData>(), null); 355var attributeDataArray = new CSharpAttributeData[totalAttributesCount]; 393boundAttributes = ImmutableArray<CSharpAttributeData>.Empty; 396Interlocked.CompareExchange(ref lazyCustomAttributesBag, CustomAttributesBag<CSharpAttributeData>.WithEmptyData(), null); 435if (lazyCustomAttributesBag.IsEmpty) lazyCustomAttributesBag = CustomAttributesBag<CSharpAttributeData>.Empty; 442void removeObsoleteDiagnosticsForForwardedTypes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> attributesToBind, ref BindingDiagnosticBag diagnostics) 474CSharpAttributeData boundAttribute = boundAttributes[i]; 540protected ImmutableArray<(CSharpAttributeData, BoundAttribute)> BindAttributes(OneOrMany<SyntaxList<AttributeListSyntax>> attributeDeclarations, Binder? rootBinder) 542var boundAttributeArrayBuilder = ArrayBuilder<(CSharpAttributeData, BoundAttribute)>.GetInstance(); 562private void RecordPresenceOfBadAttributes(ImmutableArray<CSharpAttributeData> boundAttributes) 564foreach (var attribute in boundAttributes) 770CSharpAttributeData?[] attributeDataArray, 798(CSharpAttributeData? earlyAttributeDataOpt, BoundAttribute? boundAttributeOpt) = this.EarlyDecodeWellKnownAttribute(ref arguments); 840ImmutableArray<CSharpAttributeData> boundAttributes, 852var arguments = new DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation>(); 859CSharpAttributeData boundAttribute = boundAttributes[i]; 887CSharpAttributeData attribute,
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (3)
140internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 149protected override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 157internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (2)
128protected sealed override void DecodeWellKnownAttributeImpl(ref DecodeWellKnownAttributeArguments<AttributeSyntax, CSharpAttributeData, AttributeLocation> arguments) 154internal override void PostDecodeWellKnownAttributes(ImmutableArray<CSharpAttributeData> boundAttributes, ImmutableArray<AttributeSyntax> allAttributeSyntaxNodes, BindingDiagnosticBag diagnostics, AttributeLocation symbolPart, WellKnownAttributeData decodedData)
Symbols\Synthesized\SynthesizedParameterSymbol.cs (2)
374public override ImmutableArray<CSharpAttributeData> GetAttributes() 376return _baseParameterForAttributes?.GetAttributes() ?? ImmutableArray<CSharpAttributeData>.Empty;
Symbols\Synthesized\SynthesizedSubstitutedTypeParameterSymbol.cs (2)
45public override ImmutableArray<CSharpAttributeData> GetAttributes() 52return ImmutableArray<CSharpAttributeData>.Empty;
Symbols\Tuples\TupleFieldSymbol.cs (2)
134public override ImmutableArray<CSharpAttributeData> GetAttributes() 325public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\TypeSymbol.cs (1)
1964foreach (var attributeData in implementingSymbol.GetAttributes())
Symbols\Wrapped\WrappedParameterSymbol.cs (1)
69public override ImmutableArray<CSharpAttributeData> GetAttributes()
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
178public override ImmutableArray<CSharpAttributeData> GetAttributes()