4 instantiations of CustomAttributesBag
Microsoft.CodeAnalysis (2)
Symbols\Attributes\CustomAttributesBag.cs (2)
30public static readonly CustomAttributesBag<T> Empty = new CustomAttributesBag<T>(CustomAttributeBagCompletionPart.All, ImmutableArray<T>.Empty); 48return new CustomAttributesBag<T>(CustomAttributeBagCompletionPart.EarlyDecodedWellKnownAttributeData | CustomAttributeBagCompletionPart.DecodedWellKnownAttributeData, default(ImmutableArray<T>));
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SourceAssemblySymbol.cs (1)
1436netModuleAttributesBag = new CustomAttributesBag<CSharpAttributeData>();
Symbols\Symbol_Attributes.cs (1)
329Interlocked.CompareExchange(ref lazyCustomAttributesBag, new CustomAttributesBag<CSharpAttributeData>(), null);
77 references to CustomAttributesBag
Microsoft.CodeAnalysis (2)
Symbols\Attributes\CustomAttributesBag.cs (2)
30public static readonly CustomAttributesBag<T> Empty = new CustomAttributesBag<T>(CustomAttributeBagCompletionPart.All, ImmutableArray<T>.Empty); 46public static CustomAttributesBag<T> WithEmptyData()
Microsoft.CodeAnalysis.CSharp (75)
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (5)
22private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 82private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 84var bag = _lazyCustomAttributesBag; 108var attributesBag = _lazyCustomAttributesBag; 152var lazyCustomAttributesBag = _lazyCustomAttributesBag;
Symbols\Source\SourceAssemblySymbol.cs (16)
66private CustomAttributesBag<CSharpAttributeData> _lazySourceAttributesBag; 71private CustomAttributesBag<CSharpAttributeData> _lazyNetModuleAttributesBag; 1363private void LoadAndValidateNetModuleAttributes(ref CustomAttributesBag<CSharpAttributeData> lazyNetModuleAttributesBag) 1367Interlocked.CompareExchange(ref lazyNetModuleAttributesBag, CustomAttributesBag<CSharpAttributeData>.Empty, null); 1432CustomAttributesBag<CSharpAttributeData> netModuleAttributesBag; 1441if (netModuleAttributesBag.IsEmpty) netModuleAttributesBag = CustomAttributesBag<CSharpAttributeData>.Empty; 1445netModuleAttributesBag = CustomAttributesBag<CSharpAttributeData>.Empty; 1535private CustomAttributesBag<CSharpAttributeData> GetNetModuleAttributesBag() 1546var attributesBag = this.GetNetModuleAttributesBag(); 1582private CustomAttributesBag<CSharpAttributeData> GetSourceAttributesBag() 1647var attributesBag = _lazySourceAttributesBag; 1663CustomAttributesBag<CSharpAttributeData>? attributesBag = _lazySourceAttributesBag; 1711CustomAttributesBag<CSharpAttributeData> attributesBag = _lazySourceAttributesBag; 1780private static IEnumerable<Cci.SecurityAttribute> GetSecurityAttributes(CustomAttributesBag<CSharpAttributeData> attributesBag) 2910var lazySourceAttributesBag = _lazySourceAttributesBag; 2920var lazyNetModuleAttributesBag = _lazyNetModuleAttributesBag;
Symbols\Source\SourceComplexParameterSymbol.cs (5)
38private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 542var attributesBag = _lazyCustomAttributesBag; 559var attributesBag = _lazyCustomAttributesBag; 574internal sealed override CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 586var attributesBag = copyFrom.GetAttributesBag();
Symbols\Source\SourceEventSymbol.cs (6)
35private CustomAttributesBag<CSharpAttributeData>? _lazyCustomAttributesBag; 205private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 207var bag = _lazyCustomAttributesBag; 272var attributesBag = _lazyCustomAttributesBag; 289var attributesBag = _lazyCustomAttributesBag; 331var lazyCustomAttributesBag = _lazyCustomAttributesBag;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (15)
28private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 29private CustomAttributesBag<CSharpAttributeData> _lazyReturnTypeCustomAttributesBag; 197var attributesBag = _lazyCustomAttributesBag; 214var attributesBag = _lazyCustomAttributesBag; 231var attributesBag = _lazyReturnTypeCustomAttributesBag; 246private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 248var bag = _lazyCustomAttributesBag; 263private CustomAttributesBag<CSharpAttributeData> GetReturnTypeAttributesBag() 265var bag = _lazyReturnTypeCustomAttributesBag; 274private CustomAttributesBag<CSharpAttributeData> GetAttributesBag(ref CustomAttributesBag<CSharpAttributeData> lazyCustomAttributesBag, bool forReturnType) 284var attributesBag = forReturnType ? copyFrom.GetReturnTypeAttributesBag() : copyFrom.GetAttributesBag(); 429var lazyCustomAttributesBag = _lazyCustomAttributesBag; 460var lazyCustomAttributesBag = _lazyCustomAttributesBag; 1705var attributesBag = this.GetAttributesBag();
Symbols\Source\SourceModuleSymbol.cs (4)
44private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 515private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 551var attributesBag = _lazyCustomAttributesBag; 722var attributesBag = _lazyCustomAttributesBag;
Symbols\Source\SourceNamedTypeSymbol.cs (7)
31private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 840private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 842var bag = _lazyCustomAttributesBag; 875var attributesBag = _lazyCustomAttributesBag; 893var attributesBag = _lazyCustomAttributesBag; 1075var lazyCustomAttributesBag = _lazyCustomAttributesBag; 1568var attributesBag = this.GetAttributesBag();
Symbols\Source\SourceParameterSymbol.cs (1)
191internal abstract CustomAttributesBag<CSharpAttributeData> GetAttributesBag();
Symbols\Source\SourcePropertySymbolBase.cs (8)
71private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 473CustomAttributesBag<CSharpAttributeData>? temp = null; 1304private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 1306var bag = _lazyCustomAttributesBag; 1323var attributesBag = copyFrom.GetAttributesBag(); 1362var attributesBag = _lazyCustomAttributesBag; 1379var attributesBag = _lazyCustomAttributesBag; 1513var lazyCustomAttributesBag = _lazyCustomAttributesBag;
Symbols\Source\SourceSimpleParameterSymbol.cs (2)
154internal override CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 157return CustomAttributesBag<CSharpAttributeData>.Empty;
Symbols\Source\SourceTypeParameterSymbol.cs (3)
32private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 178internal virtual CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 195CustomAttributesBag<CSharpAttributeData> attributesBag = typeParameter.GetAttributesBag();
Symbols\Symbol_Attributes.cs (3)
301ref CustomAttributesBag<CSharpAttributeData>? lazyCustomAttributesBag, 396Interlocked.CompareExchange(ref lazyCustomAttributesBag, CustomAttributesBag<CSharpAttributeData>.WithEmptyData(), null); 435if (lazyCustomAttributesBag.IsEmpty) lazyCustomAttributesBag = CustomAttributesBag<CSharpAttributeData>.Empty;