1 instantiation of BoundAttribute
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
6256var 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)
76BoundAttribute?[]? boundAttributeArray, 97(attributeDataArray[i], var boundAttribute) = binder.GetAttribute(attributeSyntax, boundAttributeType, beforeAttributePartBound, afterAttributePartBound, diagnostics); 126internal (CSharpAttributeData, BoundAttribute) GetAttribute( 133var boundAttribute = new ExecutableCodeBinder(node, this.ContainingMemberOrLambda, this).BindAttribute(node, boundAttributeType, (this as ContextualAttributeBinder)?.AttributedMember, diagnostics); 138internal BoundAttribute BindAttribute(AttributeSyntax node, NamedTypeSymbol attributeType, Symbol? attributedMember, BindingDiagnosticBag diagnostics) 155private static BoundAttribute BindAttributeCore(Binder binder, AttributeSyntax node, NamedTypeSymbol attributeType, Symbol? attributedMember, BindingDiagnosticBag diagnostics) 282private CSharpAttributeData GetAttribute(BoundAttribute boundAttribute, BindingDiagnosticBag diagnostics)
Binder\EarlyWellKnownAttributeBinder.cs (2)
26internal (CSharpAttributeData, BoundAttribute) GetAttribute( 42internal new (CSharpAttributeData, BoundAttribute) GetAttribute(
Compilation\CSharpSemanticModel.cs (6)
401private BoundAttribute GetSpeculativelyBoundAttribute(int position, AttributeSyntax attribute, out Binder binder) 417var boundNode = new ExecutableCodeBinder(attribute, binder.ContainingMemberOrLambda, binder).BindAttribute(attribute, attributeType, attributedMember: null, BindingDiagnosticBag.Discarded); 3593var attribute = (BoundAttribute)boundNode; 3994BoundAttribute boundAttribute = (BoundAttribute)boundNodeForSyntacticParent;
FlowAnalysis\AbstractFlowPass.cs (1)
901public override BoundNode VisitAttribute(BoundAttribute node)
FlowAnalysis\DefiniteAssignment.cs (1)
1918private void VisitAttributes(ImmutableArray<(CSharpAttributeData, BoundAttribute)> boundAttributes)
FlowAnalysis\NullableWalker.cs (1)
12525public override BoundNode? VisitAttribute(BoundAttribute node)
Generated\BoundNodes.xml.Generated.cs (10)
6252public BoundAttribute Update(MethodSymbol? constructor, ImmutableArray<BoundExpression> constructorArguments, ImmutableArray<string?> constructorArgumentNamesOpt, ImmutableArray<int> constructorArgumentsToParamsOpt, bool constructorExpanded, BitVector constructorDefaultArguments, ImmutableArray<BoundAssignmentOperator> namedArguments, LookupResultKind resultKind, TypeSymbol type) 6256var result = new BoundAttribute(this.Syntax, constructor, constructorArguments, constructorArgumentNamesOpt, constructorArgumentsToParamsOpt, constructorExpanded, constructorDefaultArguments, namedArguments, resultKind, type, this.HasErrors); 9181return VisitAttribute((BoundAttribute)node, arg); 9488public virtual R VisitAttribute(BoundAttribute node, A arg) => this.DefaultVisit(node, arg); 9724public virtual BoundNode? VisitAttribute(BoundAttribute node) => this.DefaultVisit(node); 10490public override BoundNode? VisitAttribute(BoundAttribute node) 11883public override BoundNode? VisitAttribute(BoundAttribute node) 14134public override BoundNode? VisitAttribute(BoundAttribute node) 14139BoundAttribute updatedNode; 16583public override TreeDumperNode VisitAttribute(BoundAttribute node, object? arg) => new TreeDumperNode("attribute", null, new TreeDumperNode[]
Operations\CSharpOperationFactory.cs (2)
287return CreateBoundAttributeOperation((BoundAttribute)boundNode); 499private IOperation CreateBoundAttributeOperation(BoundAttribute boundAttribute)
Operations\CSharpOperationFactory_Methods.cs (2)
226var attribute = (BoundAttribute)containingExpression;
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (2)
117internal sealed override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 120BoundAttribute? boundAttribute;
Symbols\Source\SourceComplexParameterSymbol.cs (3)
607public ImmutableArray<(CSharpAttributeData, BoundAttribute)> BindParameterAttributes() 635internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 699private (CSharpAttributeData?, BoundAttribute?) EarlyDecodeAttributeForDefaultParameterValue(AttributeDescription description, ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
Symbols\Source\SourceConstructorSymbolBase.cs (1)
239internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)
Symbols\Source\SourceEventSymbol.cs (2)
298internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 301BoundAttribute? boundAttribute;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (3)
333internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 356else if (EarlyDecodeDeprecatedOrExperimentalOrObsoleteAttribute(ref arguments, out CSharpAttributeData? attributeData, out BoundAttribute? boundAttribute, out ObsoleteAttributeData? obsoleteData)) 403public ImmutableArray<(CSharpAttributeData, BoundAttribute)> BindMethodAttributes()
Symbols\Source\SourceNamedTypeSymbol.cs (2)
901internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 905BoundAttribute? boundAttribute;
Symbols\Source\SourcePropertySymbolBase.cs (2)
1442internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 1445BoundAttribute? boundAttribute;
Symbols\Symbol_Attributes.cs (9)
141internal virtual (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments) 149out BoundAttribute? boundAttribute, 312BoundAttribute[]? boundAttributeArray; 355boundAttributeArray = interestedInDiagnostics ? new BoundAttribute[totalAttributesCount] : null; 419var boundAttribute = boundAttributeArray[i]; 539protected ImmutableArray<(CSharpAttributeData, BoundAttribute)> BindAttributes(OneOrMany<SyntaxList<AttributeListSyntax>> attributeDeclarations, Binder? rootBinder) 541var boundAttributeArrayBuilder = ArrayBuilder<(CSharpAttributeData, BoundAttribute)>.GetInstance(); 770BoundAttribute?[]? boundAttributeArray) 797(CSharpAttributeData? earlyAttributeDataOpt, BoundAttribute? boundAttributeOpt) = this.EarlyDecodeWellKnownAttribute(ref arguments);
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
141internal override (CSharpAttributeData?, BoundAttribute?) EarlyDecodeWellKnownAttribute(ref EarlyDecodeWellKnownAttributeArguments<EarlyWellKnownAttributeBinder, NamedTypeSymbol, AttributeSyntax, AttributeLocation> arguments)