2 instantiations of BoundAttributeDescriptor
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\BoundAttributeDescriptorBuilder.cs (1)
155return new BoundAttributeDescriptor(
rzc (1)
Json\ObjectReaders_TagHelpers.cs (1)
98return new BoundAttributeDescriptor(
111 references to BoundAttributeDescriptor
Microsoft.CodeAnalysis.Razor.Compiler (96)
Language\BoundAttributeDescriptor.cs (1)
14public sealed class BoundAttributeDescriptor : TagHelperObject<BoundAttributeDescriptor>
Language\BoundAttributeDescriptorBuilder.cs (2)
12public sealed partial class BoundAttributeDescriptorBuilder : TagHelperObjectBuilder<BoundAttributeDescriptor> 153private protected override BoundAttributeDescriptor BuildCore(ImmutableArray<RazorDiagnostic> diagnostics)
Language\BoundAttributeDescriptorExtensions.cs (4)
11public static string? GetGloballyQualifiedTypeName(this BoundAttributeDescriptor attribute) 18public static bool IsDefaultKind(this BoundAttributeDescriptor attribute) 25internal static bool ExpectsStringValue(this BoundAttributeDescriptor attribute, string name) 36internal static bool ExpectsBooleanValue(this BoundAttributeDescriptor attribute, string name)
Language\BoundAttributeParameterDescriptor.cs (4)
13private BoundAttributeDescriptor? _parent; 60public BoundAttributeDescriptor Parent 61=> _parent ?? ThrowHelper.ThrowInvalidOperationException<BoundAttributeDescriptor>(Resources.Parent_has_not_been_set); 63internal void SetParent(BoundAttributeDescriptor parent)
Language\Components\ComponentBindLoweringPass.cs (8)
411out var valueAttribute, 412out var changeAttribute, 413out var expressionAttribute)) 654BoundAttributeDescriptor? valueAttribute) 698out BoundAttributeDescriptor? valueAttribute, 699out BoundAttributeDescriptor? changeAttribute, 700out BoundAttributeDescriptor? expressionAttribute) 762var attribute = boundAttributes[i];
Language\Components\ComponentDiagnosticFactory.cs (2)
247IEnumerable<BoundAttributeDescriptor> attributes) 264IEnumerable<BoundAttributeDescriptor> attributes)
Language\Components\ComponentGenericTypePass.cs (6)
70foreach (var attribute in componentTypeParameters) 264private bool TryFindGenericTypeNames(BoundAttributeDescriptor? boundAttribute, string? globallyQualifiedTypeName, [NotNullWhen(true)] out IReadOnlyList<string>? typeParameters) 299var missing = new List<BoundAttributeDescriptor>(); 423foreach (var attribute in node.Component.BoundAttributes) 541public Binding(BoundAttributeDescriptor attribute) => Attribute = attribute; 543public BoundAttributeDescriptor Attribute { get; }
Language\Components\ComponentLoweringPass.cs (8)
261foreach (var typeParam in tagHelper.GetTypeParameters()) 281foreach (var typeParam in component.GetTypeParameters()) 316foreach (var attr in genericComponent.BoundAttributes) 325foreach (var attr in nonGenericComponent.BoundAttributes) 383foreach (var requiredAttribute in tagHelper.EditorRequiredAttributes) 516var attribute = _component.Component.BoundAttributes 539var attribute = _component.Component.BoundAttributes 570private ComponentChildContentIntermediateNode RewriteChildContent(BoundAttributeDescriptor attribute, SourceSpan? source, IntermediateNodeCollection children)
Language\Components\ComponentNodeWriter.cs (1)
360static string serializeTypeParameter(BoundAttributeDescriptor attribute)
Language\Components\TagHelperBoundAttributeDescriptorExtensions.cs (14)
8public static bool IsDelegateProperty(this BoundAttributeDescriptor attribute) 11public static bool IsDelegateWithAwaitableResult(this BoundAttributeDescriptor attribute) 18/// <param name="attribute">The <see cref="BoundAttributeDescriptor"/>.</param> 20public static bool IsEventCallbackProperty(this BoundAttributeDescriptor attribute) 23public static bool IsGenericTypedProperty(this BoundAttributeDescriptor attribute) 26public static bool IsTypeParameterProperty(this BoundAttributeDescriptor attribute) 29public static bool IsCascadingTypeParameterProperty(this BoundAttributeDescriptor attribute) 36/// <param name="attribute">The <see cref="BoundAttributeDescriptor"/>.</param> 38public static bool IsChildContentProperty(this BoundAttributeDescriptor attribute) 54/// <param name="attribute">The <see cref="BoundAttributeDescriptor"/>.</param> 56public static bool IsParameterizedChildContentProperty(this BoundAttributeDescriptor attribute) 64/// <param name="attribute">The <see cref="BoundAttributeDescriptor"/>.</param> 74/// <param name="attribute">The <see cref="BoundAttributeDescriptor"/>.</param> 79public static bool IsChildContentParameterNameProperty(this BoundAttributeDescriptor attribute)
Language\Components\TagHelperDescriptorExtensions.cs (6)
57foreach (var boundAttribute in tagHelper.BoundAttributes) 129public static IEnumerable<BoundAttributeDescriptor> GetChildContentProperties(this TagHelperDescriptor tagHelper) 131foreach (var attribute in tagHelper.BoundAttributes) 145public static IEnumerable<BoundAttributeDescriptor> GetTypeParameters(this TagHelperDescriptor tagHelper) 147foreach (var attribute in tagHelper.BoundAttributes) 164foreach (var attribute in tagHelper.BoundAttributes)
Language\Extensions\DefaultTagHelperPropertyIntermediateNode.cs (1)
45public BoundAttributeDescriptor BoundAttribute { get; set; }
Language\Extensions\PreallocatedTagHelperPropertyIntermediateNode.cs (1)
40public BoundAttributeDescriptor BoundAttribute { get; set; }
Language\Intermediate\ComponentAttributeIntermediateNode.cs (1)
152public BoundAttributeDescriptor BoundAttribute { get; set; }
Language\Intermediate\ComponentChildContentIntermediateNode.cs (1)
16public BoundAttributeDescriptor BoundAttribute { get; set; }
Language\Intermediate\ComponentTypeArgumentIntermediateNode.cs (2)
10BoundAttributeDescriptor boundAttribute, CSharpIntermediateToken value) : IntermediateNode 12public BoundAttributeDescriptor BoundAttribute { get; } = boundAttribute;
Language\Intermediate\TagHelperDirectiveAttributeIntermediateNode.cs (1)
20public BoundAttributeDescriptor BoundAttribute => _match.Attribute;
Language\Intermediate\TagHelperDirectiveAttributeParameterIntermediateNode.cs (1)
21public BoundAttributeDescriptor BoundAttribute => BoundAttributeParameter.Parent;
Language\Intermediate\TagHelperPropertyIntermediateNode.cs (1)
17public BoundAttributeDescriptor BoundAttribute => _match.Attribute;
Language\TagHelperAttributeMatch.cs (2)
11BoundAttributeDescriptor attribute, 15public BoundAttributeDescriptor Attribute { get; } = attribute;
Language\TagHelperDescriptor.cs (12)
19private ImmutableArray<BoundAttributeDescriptor> _editorRequiredAttributes; 43public ImmutableArray<BoundAttributeDescriptor> BoundAttributes { get; } 66ImmutableArray<BoundAttributeDescriptor> attributeDescriptors, 91foreach (var boundAttribute in BoundAttributes) 120foreach (var descriptor in BoundAttributes) 133internal ImmutableArray<BoundAttributeDescriptor> EditorRequiredAttributes 144static ImmutableArray<BoundAttributeDescriptor> GetEditorRequiredAttributes(ImmutableArray<BoundAttributeDescriptor> attributes) 148return ImmutableArray<BoundAttributeDescriptor>.Empty; 151using var results = new PooledArrayBuilder<BoundAttributeDescriptor>(capacity: attributes.Length); 153foreach (var attribute in attributes) 185foreach (var boundAttribute in BoundAttributes)
Language\TagHelperDescriptorBuilder.cs (1)
104public TagHelperObjectBuilderCollection<BoundAttributeDescriptor, BoundAttributeDescriptorBuilder> BoundAttributes { get; }
Language\TagHelperMatchingConventions.cs (8)
93public static bool CanSatisfyBoundAttribute(string name, BoundAttributeDescriptor descriptor) 101BoundAttributeDescriptor descriptor, 115public static bool SatisfiesBoundAttributeIndexer(BoundAttributeDescriptor descriptor, ReadOnlySpan<char> name) 122public static bool SatisfiesBoundAttributeWithParameter(BoundAttributeParameterDescriptor descriptor, string name, BoundAttributeDescriptor parent) 229foreach (var attribute in descriptor.BoundAttributes) 240foreach (var attribute in descriptor.BoundAttributes) 254private static bool SatisfiesBoundAttributeName(BoundAttributeDescriptor descriptor, ReadOnlySpan<char> name) 302internal static StringComparison GetComparison(this BoundAttributeDescriptor descriptor)
Language\TagHelpers\Producers\BindTagHelperProducer.cs (4)
405foreach (var changeAttribute in tagHelper.BoundAttributes) 418BoundAttributeDescriptor? valueAttribute = null; 419BoundAttributeDescriptor? expressionAttribute = null; 424foreach (var attribute in tagHelper.BoundAttributes)
Language\TagHelpers\Producers\ComponentTagHelperProducer.cs (2)
70foreach (var childContent in shortNameMatchingDescriptor.GetChildContentProperties()) 548private static TagHelperDescriptor CreateChildContentDescriptor(TagHelperDescriptor component, BoundAttributeDescriptor attribute)
Mvc\ViewComponentTagHelperTargetExtension.cs (1)
57foreach (var attribute in tagHelper.BoundAttributes)
Mvc\ViewComponentTagHelperTargetExtensionBase.cs (1)
121foreach (var attribute in tagHelper.BoundAttributes)
rzc (15)
Json\ObjectReaders_TagHelpers.cs (14)
79static BoundAttributeDescriptor ReadBoundAttribute(JsonDataReader reader) 83static BoundAttributeDescriptor ReadFromProperties(JsonDataReader reader) 85var flags = (BoundAttributeFlags)reader.ReadByte(nameof(BoundAttributeDescriptor.Flags)); 86var name = reader.ReadString(nameof(BoundAttributeDescriptor.Name)); 87var propertyName = reader.ReadNonNullString(nameof(BoundAttributeDescriptor.PropertyName)); 88var typeNameObject = ReadTypeNameObject(reader, nameof(BoundAttributeDescriptor.TypeName)); 89var indexerNamePrefix = reader.ReadStringOrNull(nameof(BoundAttributeDescriptor.IndexerNamePrefix)); 90var indexerTypeNameObject = ReadTypeNameObject(reader, nameof(BoundAttributeDescriptor.IndexerTypeName)); 91var displayName = reader.ReadNonNullString(nameof(BoundAttributeDescriptor.DisplayName)); 92var containingType = reader.ReadStringOrNull(nameof(BoundAttributeDescriptor.ContainingType)); 93var documentationObject = ReadDocumentationObject(reader, nameof(BoundAttributeDescriptor.Documentation)); 94var parameters = reader.ReadImmutableArrayOrEmpty(nameof(BoundAttributeDescriptor.Parameters), ReadBoundAttributeParameter); 95var metadata = ReadMetadata(reader, nameof(BoundAttributeDescriptor.Metadata)); 96var diagnostics = reader.ReadImmutableArrayOrEmpty(nameof(BoundAttributeDescriptor.Diagnostics), ReadDiagnostic);
Json\ObjectWriters_TagHelpers.cs (1)
115static void WriteBoundAttribute(JsonDataWriter writer, BoundAttributeDescriptor value)