3 instantiations of SourceAttributeData
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Attributes.cs (2)
296
return new
SourceAttributeData
(Compilation, (AttributeSyntax)boundAttribute.Syntax, attributeType, attributeConstructor, hasErrors);
333
return new
SourceAttributeData
(
Symbols\Attributes\SourceAttributeData.cs (1)
186
return new
SourceAttributeData
(this._compilation, this.ApplicationSyntaxReference, this.AttributeClass, this.AttributeConstructor, this.CommonConstructorArguments,
25 references to SourceAttributeData
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder_Attributes.cs (2)
94
var
attribute = (
SourceAttributeData
?)attributeDataArray[i];
Symbols\Attributes\AttributeData.cs (1)
807
Debug.Assert(attribute is
SourceAttributeData
);
Symbols\Attributes\RetargetingAttributeData.cs (1)
30
Debug.Assert(underlying is
SourceAttributeData
or SynthesizedAttributeData);
Symbols\Attributes\SourceAttributeData.cs (1)
178
internal
SourceAttributeData
WithOmittedCondition(bool isConditionallyOmitted)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
1428
Debug.Assert(attr is
SourceAttributeData
);
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
816
foreach (
var
attributeData in _property.MemberNotNullAttributeIfExists)
824
foreach (
var
attributeData in _property.MemberNotNullWhenAttributeIfExists)
Symbols\Source\SourcePropertySymbolBase.cs (10)
1650
internal
SourceAttributeData
DisallowNullAttributeIfExists
1653
internal
SourceAttributeData
AllowNullAttributeIfExists
1656
internal
SourceAttributeData
MaybeNullAttributeIfExists
1659
internal
SourceAttributeData
NotNullAttributeIfExists
1662
internal ImmutableArray<
SourceAttributeData
> MemberNotNullAttributeIfExists
1665
internal ImmutableArray<
SourceAttributeData
> MemberNotNullWhenAttributeIfExists
1670
private
SourceAttributeData
FindAttribute(AttributeDescription attributeDescription)
1671
=> (
SourceAttributeData
)GetAttributes().First(a => a.IsTargetAttribute(attributeDescription));
1673
private ImmutableArray<
SourceAttributeData
> FindAttributes(AttributeDescription attributeDescription)
1674
=> GetAttributes().Where(a => a.IsTargetAttribute(attributeDescription)).Cast<
SourceAttributeData
>().ToImmutableArray();
Symbols\Source\SynthesizedAttributeData.cs (5)
22
public static SynthesizedAttributeData Create(
SourceAttributeData
original)
58
return
SourceAttributeData
.GetTargetAttributeSignatureIndex(_compilation, AttributeClass, AttributeConstructor, description);
63
return
SourceAttributeData
.IsTargetAttribute(AttributeClass, namespaceName, typeName);
69
private readonly
SourceAttributeData
_original;
71
internal FromSourceAttributeData(
SourceAttributeData
original)
Symbols\Symbol.cs (1)
1529
Debug.Assert(attribute is
SourceAttributeData
);
Symbols\TypeSymbol.cs (1)
1966
if (attributeData is
SourceAttributeData
{ ApplicationSyntaxReference: { } applicationSyntaxReference } &&