2 instantiations of BoundAttribute
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Attributes.cs (1)
259
return new
BoundAttribute
(
Generated\BoundNodes.xml.Generated.cs (1)
6159
var result = new
BoundAttribute
(this.Syntax, constructor, constructorArguments, constructorArgumentNamesOpt, constructorArgumentsToParamsOpt, constructorExpanded, constructorDefaultArguments, namedArguments, resultKind, type, this.HasErrors);
56 references to BoundAttribute
Microsoft.CodeAnalysis.CSharp (56)
Binder\Binder_Attributes.cs (7)
77
BoundAttribute
?[]? boundAttributeArray,
98
(attributeDataArray[i],
var
boundAttribute) = binder.GetAttribute(attributeSyntax, boundAttributeType, beforeAttributePartBound, afterAttributePartBound, diagnostics);
127
internal (CSharpAttributeData,
BoundAttribute
) GetAttribute(
134
var
boundAttribute = new ExecutableCodeBinder(node, this.ContainingMemberOrLambda, this).BindAttribute(node, boundAttributeType, (this as ContextualAttributeBinder)?.AttributedMember, diagnostics);
139
internal
BoundAttribute
BindAttribute(AttributeSyntax node, NamedTypeSymbol attributeType, Symbol? attributedMember, BindingDiagnosticBag diagnostics)
156
private
BoundAttribute
BindAttributeCore(AttributeSyntax node, NamedTypeSymbol attributeType, Symbol? attributedMember, BindingDiagnosticBag diagnostics)
273
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);
3575
var
attribute = (
BoundAttribute
)boundNode;
3971
BoundAttribute
boundAttribute = (
BoundAttribute
)boundNodeForSyntacticParent;
FlowAnalysis\AbstractFlowPass.cs (1)
895
public override BoundNode VisitAttribute(
BoundAttribute
node)
FlowAnalysis\DefiniteAssignment.cs (1)
1780
private void VisitAttributes(ImmutableArray<(CSharpAttributeData,
BoundAttribute
)> boundAttributes)
FlowAnalysis\NullableWalker.cs (1)
11117
public override BoundNode? VisitAttribute(
BoundAttribute
node)
Generated\BoundNodes.xml.Generated.cs (10)
6155
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)
6159
var
result = new BoundAttribute(this.Syntax, constructor, constructorArguments, constructorArgumentNamesOpt, constructorArgumentsToParamsOpt, constructorExpanded, constructorDefaultArguments, namedArguments, resultKind, type, this.HasErrors);
8837
return VisitAttribute((
BoundAttribute
)node, arg);
9131
public virtual R VisitAttribute(
BoundAttribute
node, A arg) => this.DefaultVisit(node, arg);
9359
public virtual BoundNode? VisitAttribute(
BoundAttribute
node) => this.DefaultVisit(node);
10113
public override BoundNode? VisitAttribute(
BoundAttribute
node)
11356
public override BoundNode? VisitAttribute(
BoundAttribute
node)
13500
public override BoundNode? VisitAttribute(
BoundAttribute
node)
13505
BoundAttribute
updatedNode;
15854
public override TreeDumperNode VisitAttribute(
BoundAttribute
node, object? arg) => new TreeDumperNode("attribute", null, new TreeDumperNode[]
Operations\CSharpOperationFactory.cs (2)
283
return CreateBoundAttributeOperation((
BoundAttribute
)boundNode);
496
private IOperation CreateBoundAttributeOperation(
BoundAttribute
boundAttribute)
Operations\CSharpOperationFactory_Methods.cs (2)
232
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)
605
public ImmutableArray<(CSharpAttributeData,
BoundAttribute
)> BindParameterAttributes()
633
internal override (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
697
private (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeAttributeForDefaultParameterValue(AttributeDescription description, ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
Symbols\Source\SourceConstructorSymbolBase.cs (1)
255
internal sealed override (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
Symbols\Source\SourceEventSymbol.cs (2)
245
internal override (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
248
BoundAttribute
? boundAttribute;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
323
internal override (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
346
else if (EarlyDecodeDeprecatedOrExperimentalOrObsoleteAttribute(ref arguments, out CSharpAttributeData? attributeData, out
BoundAttribute
? boundAttribute, out ObsoleteAttributeData? obsoleteData))
371
public ImmutableArray<(CSharpAttributeData,
BoundAttribute
)> BindMethodAttributes()
Symbols\Source\SourceNamedTypeSymbol.cs (2)
900
internal override (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
904
BoundAttribute
? boundAttribute;
Symbols\Source\SourcePropertySymbolBase.cs (2)
1172
internal override (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
1175
BoundAttribute
? boundAttribute;
Symbols\Symbol_Attributes.cs (9)
142
internal virtual (CSharpAttributeData?,
BoundAttribute
?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
150
out
BoundAttribute
? boundAttribute,
304
BoundAttribute
[]? boundAttributeArray;
347
boundAttributeArray = interestedInDiagnostics ? new
BoundAttribute
[totalAttributesCount] : null;
411
var
boundAttribute = boundAttributeArray[i];
525
protected ImmutableArray<(CSharpAttributeData,
BoundAttribute
)> BindAttributes(OneOrMany<SyntaxList<AttributeListSyntax>> attributeDeclarations, Binder? rootBinder)
527
var boundAttributeArrayBuilder = ArrayBuilder<(CSharpAttributeData,
BoundAttribute
)>.GetInstance();
750
BoundAttribute
?[]? boundAttributeArray)
777
(CSharpAttributeData? earlyAttributeDataOpt,
BoundAttribute
? boundAttributeOpt) = this.EarlyDecodeWellKnownAttribute(ref arguments);