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