6 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)
1426netModuleAttributesBag = new CustomAttributesBag<CSharpAttributeData>();
Symbols\Symbol_Attributes.cs (1)
320Interlocked.CompareExchange(ref lazyCustomAttributesBag, new CustomAttributesBag<CSharpAttributeData>(), null);
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\Source\SourceAssemblySymbol.vb (1)
414netModuleAttributesBag = New CustomAttributesBag(Of VisualBasicAttributeData)()
Symbols\Symbol_Attributes.vb (1)
263Interlocked.CompareExchange(lazyCustomAttributesBag, New CustomAttributesBag(Of VisualBasicAttributeData)(), Nothing)
127 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 (70)
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (5)
21private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 81private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 83var bag = _lazyCustomAttributesBag; 107var attributesBag = _lazyCustomAttributesBag; 151var lazyCustomAttributesBag = _lazyCustomAttributesBag;
Symbols\Source\SourceAssemblySymbol.cs (14)
67private CustomAttributesBag<CSharpAttributeData> _lazySourceAttributesBag; 72private CustomAttributesBag<CSharpAttributeData> _lazyNetModuleAttributesBag; 1353private void LoadAndValidateNetModuleAttributes(ref CustomAttributesBag<CSharpAttributeData> lazyNetModuleAttributesBag) 1357Interlocked.CompareExchange(ref lazyNetModuleAttributesBag, CustomAttributesBag<CSharpAttributeData>.Empty, null); 1422CustomAttributesBag<CSharpAttributeData> netModuleAttributesBag; 1431if (netModuleAttributesBag.IsEmpty) netModuleAttributesBag = CustomAttributesBag<CSharpAttributeData>.Empty; 1435netModuleAttributesBag = CustomAttributesBag<CSharpAttributeData>.Empty; 1525private CustomAttributesBag<CSharpAttributeData> GetNetModuleAttributesBag() 1536var attributesBag = this.GetNetModuleAttributesBag(); 1572private CustomAttributesBag<CSharpAttributeData> GetSourceAttributesBag() 1637var attributesBag = _lazySourceAttributesBag; 1653CustomAttributesBag<CSharpAttributeData>? attributesBag = _lazySourceAttributesBag; 1701CustomAttributesBag<CSharpAttributeData> attributesBag = _lazySourceAttributesBag; 1770private static IEnumerable<Cci.SecurityAttribute> GetSecurityAttributes(CustomAttributesBag<CSharpAttributeData> attributesBag)
Symbols\Source\SourceComplexParameterSymbol.cs (5)
36private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 539var attributesBag = _lazyCustomAttributesBag; 556var attributesBag = _lazyCustomAttributesBag; 571internal sealed override CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 583var attributesBag = copyFrom.GetAttributesBag();
Symbols\Source\SourceEventSymbol.cs (5)
34private CustomAttributesBag<CSharpAttributeData>? _lazyCustomAttributesBag; 183private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 218var attributesBag = _lazyCustomAttributesBag; 235var attributesBag = _lazyCustomAttributesBag; 277var lazyCustomAttributesBag = _lazyCustomAttributesBag;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (15)
25private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 26private CustomAttributesBag<CSharpAttributeData> _lazyReturnTypeCustomAttributesBag; 189var attributesBag = _lazyCustomAttributesBag; 206var attributesBag = _lazyCustomAttributesBag; 223var attributesBag = _lazyReturnTypeCustomAttributesBag; 238private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 240var bag = _lazyCustomAttributesBag; 255private CustomAttributesBag<CSharpAttributeData> GetReturnTypeAttributesBag() 257var bag = _lazyReturnTypeCustomAttributesBag; 266private CustomAttributesBag<CSharpAttributeData> GetAttributesBag(ref CustomAttributesBag<CSharpAttributeData> lazyCustomAttributesBag, bool forReturnType) 276var attributesBag = forReturnType ? copyFrom.GetReturnTypeAttributesBag() : copyFrom.GetAttributesBag(); 399var lazyCustomAttributesBag = _lazyCustomAttributesBag; 430var lazyCustomAttributesBag = _lazyCustomAttributesBag; 1262var attributesBag = this.GetAttributesBag();
Symbols\Source\SourceModuleSymbol.cs (3)
43private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 460private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 496var attributesBag = _lazyCustomAttributesBag;
Symbols\Source\SourceNamedTypeSymbol.cs (7)
40private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 838private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 840var bag = _lazyCustomAttributesBag; 873var attributesBag = _lazyCustomAttributesBag; 891var attributesBag = _lazyCustomAttributesBag; 1035var lazyCustomAttributesBag = _lazyCustomAttributesBag; 1443var attributesBag = this.GetAttributesBag();
Symbols\Source\SourceParameterSymbol.cs (1)
193internal abstract CustomAttributesBag<CSharpAttributeData> GetAttributesBag();
Symbols\Source\SourcePropertySymbolBase.cs (7)
64private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 396CustomAttributesBag<CSharpAttributeData>? temp = null; 1049private CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 1051var bag = _lazyCustomAttributesBag; 1091var attributesBag = _lazyCustomAttributesBag; 1108var attributesBag = _lazyCustomAttributesBag; 1226var lazyCustomAttributesBag = _lazyCustomAttributesBag;
Symbols\Source\SourceSimpleParameterSymbol.cs (2)
121internal override CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 124return CustomAttributesBag<CSharpAttributeData>.Empty;
Symbols\Source\SourceTypeParameterSymbol.cs (3)
30private CustomAttributesBag<CSharpAttributeData> _lazyCustomAttributesBag; 176internal virtual CustomAttributesBag<CSharpAttributeData> GetAttributesBag() 193CustomAttributesBag<CSharpAttributeData> attributesBag = typeParameter.GetAttributesBag();
Symbols\Symbol_Attributes.cs (3)
292ref CustomAttributesBag<CSharpAttributeData>? lazyCustomAttributesBag, 387Interlocked.CompareExchange(ref lazyCustomAttributesBag, CustomAttributesBag<CSharpAttributeData>.WithEmptyData(), null); 420if (lazyCustomAttributesBag.IsEmpty) lazyCustomAttributesBag = CustomAttributesBag<CSharpAttributeData>.Empty;
Microsoft.CodeAnalysis.VisualBasic (55)
Symbols\Source\SourceAssemblySymbol.vb (10)
51Private _lazySourceAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 53Private _lazyNetModuleAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 355Private Sub LoadAndValidateNetModuleAttributes(ByRef lazyNetModuleAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData)) 364Interlocked.CompareExchange(lazyNetModuleAttributesBag, CustomAttributesBag(Of VisualBasicAttributeData).Empty, Nothing) 411Dim netModuleAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 419netModuleAttributesBag = CustomAttributesBag(Of VisualBasicAttributeData).Empty 501Friend Function GetNetModuleAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 544Friend Function GetSourceAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 559Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazySourceAttributesBag 589Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me.GetSourceAttributesBag()
Symbols\Source\SourceComplexParameterSymbol.vb (4)
23Private _lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 88Friend Overrides Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 109Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazyCustomAttributesBag 118Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazyCustomAttributesBag
Symbols\Source\SourceEventSymbol.vb (3)
52Private _lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 617Private Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 625Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazyCustomAttributesBag
Symbols\Source\SourceFieldSymbol.vb (4)
33Private _lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 631Private Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 639Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazyCustomAttributesBag 649Friend Sub SetCustomAttributeData(attributeData As CustomAttributesBag(Of VisualBasicAttributeData))
Symbols\Source\SourceMemberFieldSymbol.vb (1)
598fieldSymbol.SetCustomAttributeData(CustomAttributesBag(Of VisualBasicAttributeData).Empty)
Symbols\Source\SourceMethodSymbol.vb (10)
37Protected m_lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 41Protected m_lazyReturnTypeCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 1389Private Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 1393Private Function GetReturnTypeAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 1397Private Function GetAttributesBag(ByRef lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData), forReturnType As Boolean) As CustomAttributesBag(Of VisualBasicAttributeData) 1466Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me.m_lazyCustomAttributesBag 1482Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me.m_lazyReturnTypeCustomAttributesBag 1556Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me.m_lazyCustomAttributesBag 1925Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me.GetAttributesBag()
Symbols\Source\SourceModuleSymbol.vb (4)
39Private _lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 238Private Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 247Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazyCustomAttributesBag 973Friend Sub AtomicStoreAttributesAndDiagnostics(attributesBag As CustomAttributesBag(Of VisualBasicAttributeData),
Symbols\Source\SourceNamedTypeSymbol.vb (5)
32Protected m_lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 1835Private Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 1853Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me.m_lazyCustomAttributesBag 1909Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me.m_lazyCustomAttributesBag 2146Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me.GetAttributesBag()
Symbols\Source\SourceParameterSymbol.vb (1)
150Friend MustOverride Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData)
Symbols\Source\SourcePropertySymbol.vb (9)
42Private _lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 45Private _lazyReturnTypeCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData) 104prop.SetCustomAttributeData(CustomAttributesBag(Of VisualBasicAttributeData).Empty) 266prop.SetCustomAttributeData(CustomAttributesBag(Of VisualBasicAttributeData).Empty) 492Friend Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 499Friend Function GetReturnTypeAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 519Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazyCustomAttributesBag 528Dim attributesBag As CustomAttributesBag(Of VisualBasicAttributeData) = Me._lazyReturnTypeCustomAttributesBag 1182Private Sub SetCustomAttributeData(attributeData As CustomAttributesBag(Of VisualBasicAttributeData))
Symbols\Source\SourceSimpleParameterSymbol.vb (2)
56Friend Overrides Function GetAttributesBag() As CustomAttributesBag(Of VisualBasicAttributeData) 63Return CustomAttributesBag(Of VisualBasicAttributeData).Empty
Symbols\Symbol_Attributes.vb (2)
242ByRef lazyCustomAttributesBag As CustomAttributesBag(Of VisualBasicAttributeData), 287Interlocked.CompareExchange(lazyCustomAttributesBag, CustomAttributesBag(Of VisualBasicAttributeData).WithEmptyData(), Nothing)