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