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