1 instantiation of BoundAttribute
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
6273
var result = new
BoundAttribute
(this.Syntax, constructor, constructorArguments, constructorArgumentNamesOpt, constructorArgumentsToParamsOpt, constructorExpanded, constructorDefaultArguments, namedArguments, resultKind, type, this.HasErrors);
57 references to BoundAttribute
Microsoft.CodeAnalysis.CSharp (57)
Binder\Binder_Attributes.cs (7)
76
BoundAttribute
?[]? boundAttributeArray,
97
(attributeDataArray[i],
var
boundAttribute) = binder.GetAttribute(attributeSyntax, boundAttributeType, beforeAttributePartBound, afterAttributePartBound, diagnostics);
126
internal (CSharpAttributeData,
BoundAttribute
) GetAttribute(
133
var
boundAttribute = new ExecutableCodeBinder(node, this.ContainingMemberOrLambda, this).BindAttribute(node, boundAttributeType, (this as ContextualAttributeBinder)?.AttributedMember, diagnostics);
138
internal
BoundAttribute
BindAttribute(AttributeSyntax node, NamedTypeSymbol attributeType, Symbol? attributedMember, BindingDiagnosticBag diagnostics)
155
private static
BoundAttribute
BindAttributeCore(Binder binder, AttributeSyntax node, NamedTypeSymbol attributeType, Symbol? attributedMember, BindingDiagnosticBag diagnostics)
282
private CSharpAttributeData GetAttribute(
BoundAttribute
boundAttribute, BindingDiagnosticBag diagnostics)
Binder\EarlyWellKnownAttributeBinder.cs (2)
26
internal (CSharpAttributeData,
BoundAttribute
) GetAttribute(
42
internal new (CSharpAttributeData,
BoundAttribute
) GetAttribute(
Compilation\CSharpSemanticModel.cs (6)
399
private
BoundAttribute
GetSpeculativelyBoundAttribute(int position, AttributeSyntax attribute, out Binder binder)
415
var
boundNode = new ExecutableCodeBinder(attribute, binder.ContainingMemberOrLambda, binder).BindAttribute(attribute, attributeType, attributedMember: null, BindingDiagnosticBag.Discarded);
3582
var
attribute = (
BoundAttribute
)boundNode;
3983
BoundAttribute
boundAttribute = (
BoundAttribute
)boundNodeForSyntacticParent;
FlowAnalysis\AbstractFlowPass.cs (1)
902
public override BoundNode VisitAttribute(
BoundAttribute
node)
FlowAnalysis\DefiniteAssignment.cs (1)
1906
private void VisitAttributes(ImmutableArray<(CSharpAttributeData,
BoundAttribute
)> boundAttributes)
FlowAnalysis\NullableWalker.cs (1)
12094
public override BoundNode? VisitAttribute(
BoundAttribute
node)
Generated\BoundNodes.xml.Generated.cs (10)
6269
public
BoundAttribute
Update(MethodSymbol? constructor, ImmutableArray<BoundExpression> constructorArguments, ImmutableArray<string?> constructorArgumentNamesOpt, ImmutableArray<int> constructorArgumentsToParamsOpt, bool constructorExpanded, BitVector constructorDefaultArguments, ImmutableArray<BoundAssignmentOperator> namedArguments, LookupResultKind resultKind, TypeSymbol type)
6273
var
result = new BoundAttribute(this.Syntax, constructor, constructorArguments, constructorArgumentNamesOpt, constructorArgumentsToParamsOpt, constructorExpanded, constructorDefaultArguments, namedArguments, resultKind, type, this.HasErrors);
9198
return VisitAttribute((
BoundAttribute
)node, arg);
9505
public virtual R VisitAttribute(
BoundAttribute
node, A arg) => this.DefaultVisit(node, arg);
9741
public virtual BoundNode? VisitAttribute(
BoundAttribute
node) => this.DefaultVisit(node);
10507
public override BoundNode? VisitAttribute(
BoundAttribute
node)
11788
public override BoundNode? VisitAttribute(
BoundAttribute
node)
14004
public override BoundNode? VisitAttribute(
BoundAttribute
node)
14009
BoundAttribute
updatedNode;
16452
public override TreeDumperNode VisitAttribute(
BoundAttribute
node, object? arg) => new TreeDumperNode("attribute", null, new TreeDumperNode[]
Operations\CSharpOperationFactory.cs (2)
287
return CreateBoundAttributeOperation((
BoundAttribute
)boundNode);
499
private IOperation CreateBoundAttributeOperation(
BoundAttribute
boundAttribute)
Operations\CSharpOperationFactory_Methods.cs (2)
226
var
attribute = (
BoundAttribute
)containingExpression;
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (2)
117
internal sealed override (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
120
BoundAttribute
? boundAttribute;
Symbols\Source\SourceComplexParameterSymbol.cs (3)
617
public ImmutableArray<(CSharpAttributeData,
BoundAttribute
)> BindParameterAttributes()
645
internal override (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
709
private (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeAttributeForDefaultParameterValue(AttributeDescription description, ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
Symbols\Source\SourceConstructorSymbolBase.cs (1)
232
internal override (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
Symbols\Source\SourceEventSymbol.cs (2)
253
internal override (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
256
BoundAttribute
? boundAttribute;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
332
internal override (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
355
else if (EarlyDecodeDeprecatedOrExperimentalOrObsoleteAttribute(ref arguments, out CSharpAttributeData? attributeData, out
BoundAttribute
? boundAttribute, out ObsoleteAttributeData? obsoleteData))
402
public ImmutableArray<(CSharpAttributeData,
BoundAttribute
)> BindMethodAttributes()
Symbols\Source\SourceNamedTypeSymbol.cs (2)
898
internal override (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
902
BoundAttribute
? boundAttribute;
Symbols\Source\SourcePropertySymbolBase.cs (2)
1418
internal override (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
1421
BoundAttribute
? boundAttribute;
Symbols\Symbol_Attributes.cs (9)
142
internal virtual (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
150
out
BoundAttribute
? boundAttribute,
313
BoundAttribute
[]? boundAttributeArray;
356
boundAttributeArray = interestedInDiagnostics ? new
BoundAttribute
[totalAttributesCount] : null;
420
var
boundAttribute = boundAttributeArray[i];
540
protected ImmutableArray<(CSharpAttributeData,
BoundAttribute
)> BindAttributes(OneOrMany<SyntaxList<AttributeListSyntax>> attributeDeclarations, Binder? rootBinder)
542
var boundAttributeArrayBuilder = ArrayBuilder<(CSharpAttributeData,
BoundAttribute
)>.GetInstance();
771
BoundAttribute
?[]? boundAttributeArray)
798
(CSharpAttributeData? earlyAttributeDataOpt,
BoundAttribute
? boundAttributeOpt) = this.EarlyDecodeWellKnownAttribute(ref arguments);
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
140
internal override (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)