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