1 instantiation of MarkupTagHelperDirectiveAttributeSyntax
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Syntax\Generated\Syntax.xml.Internal.Generated.cs (1)
2099
internal override SyntaxNode CreateRed(SyntaxNode parent, int position) => new Syntax.
MarkupTagHelperDirectiveAttributeSyntax
(this, parent, position);
50 references to MarkupTagHelperDirectiveAttributeSyntax
Microsoft.CodeAnalysis.Razor.Compiler (28)
Language\Legacy\ClassifiedSpanVisitor.cs (2)
208
MarkupTagHelperDirectiveAttributeSyntax
or
248
public override void VisitMarkupTagHelperDirectiveAttribute(
MarkupTagHelperDirectiveAttributeSyntax
node)
Language\Legacy\TagHelperBlockRewriter.cs (2)
341
private static
MarkupTagHelperDirectiveAttributeSyntax
RewriteToDirectiveAttribute(
546
else if (attributeBlock is
MarkupTagHelperDirectiveAttributeSyntax
directiveAttribute)
Language\Syntax\Generated\Syntax.xml.Main.Generated.cs (8)
84
public virtual TResult VisitMarkupTagHelperDirectiveAttribute(
MarkupTagHelperDirectiveAttributeSyntax
node) => DefaultVisit(node);
210
public virtual void VisitMarkupTagHelperDirectiveAttribute(
MarkupTagHelperDirectiveAttributeSyntax
node) => DefaultVisit(node);
335
public override SyntaxNode VisitMarkupTagHelperDirectiveAttribute(
MarkupTagHelperDirectiveAttributeSyntax
node)
663
public static
MarkupTagHelperDirectiveAttributeSyntax
MarkupTagHelperDirectiveAttribute(MarkupTextLiteralSyntax namePrefix, RazorMetaCodeSyntax transition, MarkupTextLiteralSyntax name, RazorMetaCodeSyntax colon, MarkupTextLiteralSyntax parameterName, MarkupTextLiteralSyntax nameSuffix, SyntaxToken equalsToken, MarkupTextLiteralSyntax valuePrefix, MarkupTagHelperAttributeValueSyntax value, MarkupTextLiteralSyntax valueSuffix, TagHelperAttributeInfo tagHelperAttributeInfo)
667
if (equalsToken.Kind is not (SyntaxKind.Equals)) return ThrowHelper.ThrowArgumentException<
MarkupTagHelperDirectiveAttributeSyntax
>(nameof(equalsToken), $"Invalid SyntaxKind. Expected 'SyntaxKind.Equals', but it was {equalsToken.Kind}");
669
return (
MarkupTagHelperDirectiveAttributeSyntax
)InternalSyntax.SyntaxFactory.MarkupTagHelperDirectiveAttribute(namePrefix == null ? null : (InternalSyntax.MarkupTextLiteralSyntax)namePrefix.Green, transition == null ? null : (InternalSyntax.RazorMetaCodeSyntax)transition.Green, name == null ? null : (InternalSyntax.MarkupTextLiteralSyntax)name.Green, colon == null ? null : (InternalSyntax.RazorMetaCodeSyntax)colon.Green, parameterName == null ? null : (InternalSyntax.MarkupTextLiteralSyntax)parameterName.Green, nameSuffix == null ? null : (InternalSyntax.MarkupTextLiteralSyntax)nameSuffix.Green, (Syntax.InternalSyntax.SyntaxToken)equalsToken.Node, valuePrefix == null ? null : (InternalSyntax.MarkupTextLiteralSyntax)valuePrefix.Green, value == null ? null : (InternalSyntax.MarkupTagHelperAttributeValueSyntax)value.Green, valueSuffix == null ? null : (InternalSyntax.MarkupTextLiteralSyntax)valueSuffix.Green, tagHelperAttributeInfo).CreateRed();
673
public static
MarkupTagHelperDirectiveAttributeSyntax
MarkupTagHelperDirectiveAttribute(MarkupTextLiteralSyntax namePrefix, RazorMetaCodeSyntax transition, MarkupTextLiteralSyntax name, RazorMetaCodeSyntax colon, MarkupTextLiteralSyntax parameterName, MarkupTextLiteralSyntax nameSuffix, MarkupTextLiteralSyntax valuePrefix, MarkupTagHelperAttributeValueSyntax value, MarkupTextLiteralSyntax valueSuffix, TagHelperAttributeInfo tagHelperAttributeInfo)
677
public static
MarkupTagHelperDirectiveAttributeSyntax
MarkupTagHelperDirectiveAttribute(RazorMetaCodeSyntax transition, MarkupTextLiteralSyntax name, TagHelperAttributeInfo tagHelperAttributeInfo)
Language\Syntax\Generated\Syntax.xml.Syntax.Generated.cs (16)
1449
public
MarkupTagHelperDirectiveAttributeSyntax
Update(MarkupTextLiteralSyntax namePrefix, RazorMetaCodeSyntax transition, MarkupTextLiteralSyntax name, RazorMetaCodeSyntax colon, MarkupTextLiteralSyntax parameterName, MarkupTextLiteralSyntax nameSuffix, SyntaxToken equalsToken, MarkupTextLiteralSyntax valuePrefix, MarkupTagHelperAttributeValueSyntax value, MarkupTextLiteralSyntax valueSuffix, TagHelperAttributeInfo tagHelperAttributeInfo)
1453
var
newNode = SyntaxFactory.MarkupTagHelperDirectiveAttribute(namePrefix, transition, name, colon, parameterName, nameSuffix, equalsToken, valuePrefix, value, valueSuffix, tagHelperAttributeInfo);
1463
public
MarkupTagHelperDirectiveAttributeSyntax
WithNamePrefix(MarkupTextLiteralSyntax namePrefix) => Update(namePrefix, Transition, Name, Colon, ParameterName, NameSuffix, EqualsToken, ValuePrefix, Value, ValueSuffix, TagHelperAttributeInfo);
1464
public
MarkupTagHelperDirectiveAttributeSyntax
WithTransition(RazorMetaCodeSyntax transition) => Update(NamePrefix, transition, Name, Colon, ParameterName, NameSuffix, EqualsToken, ValuePrefix, Value, ValueSuffix, TagHelperAttributeInfo);
1465
public
MarkupTagHelperDirectiveAttributeSyntax
WithName(MarkupTextLiteralSyntax name) => Update(NamePrefix, Transition, name, Colon, ParameterName, NameSuffix, EqualsToken, ValuePrefix, Value, ValueSuffix, TagHelperAttributeInfo);
1466
public
MarkupTagHelperDirectiveAttributeSyntax
WithColon(RazorMetaCodeSyntax colon) => Update(NamePrefix, Transition, Name, colon, ParameterName, NameSuffix, EqualsToken, ValuePrefix, Value, ValueSuffix, TagHelperAttributeInfo);
1467
public
MarkupTagHelperDirectiveAttributeSyntax
WithParameterName(MarkupTextLiteralSyntax parameterName) => Update(NamePrefix, Transition, Name, Colon, parameterName, NameSuffix, EqualsToken, ValuePrefix, Value, ValueSuffix, TagHelperAttributeInfo);
1468
public
MarkupTagHelperDirectiveAttributeSyntax
WithNameSuffix(MarkupTextLiteralSyntax nameSuffix) => Update(NamePrefix, Transition, Name, Colon, ParameterName, nameSuffix, EqualsToken, ValuePrefix, Value, ValueSuffix, TagHelperAttributeInfo);
1469
public
MarkupTagHelperDirectiveAttributeSyntax
WithEqualsToken(SyntaxToken equalsToken) => Update(NamePrefix, Transition, Name, Colon, ParameterName, NameSuffix, equalsToken, ValuePrefix, Value, ValueSuffix, TagHelperAttributeInfo);
1470
public
MarkupTagHelperDirectiveAttributeSyntax
WithValuePrefix(MarkupTextLiteralSyntax valuePrefix) => Update(NamePrefix, Transition, Name, Colon, ParameterName, NameSuffix, EqualsToken, valuePrefix, Value, ValueSuffix, TagHelperAttributeInfo);
1471
public
MarkupTagHelperDirectiveAttributeSyntax
WithValue(MarkupTagHelperAttributeValueSyntax value) => Update(NamePrefix, Transition, Name, Colon, ParameterName, NameSuffix, EqualsToken, ValuePrefix, value, ValueSuffix, TagHelperAttributeInfo);
1472
public
MarkupTagHelperDirectiveAttributeSyntax
WithValueSuffix(MarkupTextLiteralSyntax valueSuffix) => Update(NamePrefix, Transition, Name, Colon, ParameterName, NameSuffix, EqualsToken, ValuePrefix, Value, valueSuffix, TagHelperAttributeInfo);
1473
public
MarkupTagHelperDirectiveAttributeSyntax
WithTagHelperAttributeInfo(TagHelperAttributeInfo tagHelperAttributeInfo) => Update(NamePrefix, Transition, Name, Colon, ParameterName, NameSuffix, EqualsToken, ValuePrefix, Value, ValueSuffix, tagHelperAttributeInfo);
1475
public
MarkupTagHelperDirectiveAttributeSyntax
AddTransitionMetaCode(params SyntaxToken[] items) => WithTransition(this.Transition.WithMetaCode(this.Transition.MetaCode.AddRange(items)));
1477
public
MarkupTagHelperDirectiveAttributeSyntax
AddNameLiteralTokens(params SyntaxToken[] items) => WithName(this.Name.WithLiteralTokens(this.Name.LiteralTokens.AddRange(items)));
1479
public
MarkupTagHelperDirectiveAttributeSyntax
AddValueChildren(params RazorSyntaxNode[] items) => WithValue(this.Value.WithChildren(this.Value.Children.AddRange(items)));
Microsoft.CodeAnalysis.Razor.Workspaces (22)
CodeActions\Razor\GenerateEventHandlerCodeActionProvider.cs (2)
91
MarkupTagHelperDirectiveAttributeSyntax
markupTagHelperDirectiveAttribute => TryGetEventNameAndMethodName(markupTagHelperDirectiveAttribute, binding, out methodName, out eventParameterType, out allowAsync),
98
MarkupTagHelperDirectiveAttributeSyntax
markupTagHelperDirectiveAttribute,
Completion\DirectiveAttributeCompletionItemProvider.cs (2)
88
&& owner is not (
MarkupTagHelperDirectiveAttributeSyntax
or MarkupAttributeBlockSyntax)
89
&& owner.Parent is not (
MarkupTagHelperDirectiveAttributeSyntax
or MarkupAttributeBlockSyntax);
Completion\DirectiveAttributeCompletionItemProviderBase.cs (2)
78
case
MarkupTagHelperDirectiveAttributeSyntax
directiveAttribute:
164
case
MarkupTagHelperDirectiveAttributeSyntax
directiveAttribute:
Completion\DirectiveAttributeEventParameterCompletionItemProvider.cs (1)
27
if (owner is not
MarkupTagHelperDirectiveAttributeSyntax
directiveAttributeSyntax)
Extensions\RazorCodeDocumentExtensions_ClassifiedSpans.cs (2)
236
MarkupTagHelperDirectiveAttributeSyntax
or
276
public override void VisitMarkupTagHelperDirectiveAttribute(
MarkupTagHelperDirectiveAttributeSyntax
node)
Extensions\RazorSyntaxNodeExtensions.cs (1)
430
MarkupTagHelperDirectiveAttributeSyntax
or
Formatting\FormattingVisitor.cs (2)
399
public override void VisitMarkupTagHelperDirectiveAttribute(
MarkupTagHelperDirectiveAttributeSyntax
node)
453
if (node.Parent is
MarkupTagHelperDirectiveAttributeSyntax
{ TagHelperAttributeInfo.Bound: true })
Formatting\Passes\CSharpOnTypeFormattingPass.cs (2)
508
MarkupTagHelperDirectiveAttributeSyntax
{ TagHelperAttributeInfo.Bound: true } or
1006
MarkupTagHelperDirectiveAttributeSyntax
{ TagHelperAttributeInfo.Bound: true } or
Hover\HoverFactory.cs (3)
144
else if (attribute is
MarkupTagHelperDirectiveAttributeSyntax
directiveAttribute)
160
var
directiveAttribute = (
MarkupTagHelperDirectiveAttributeSyntax
)attribute.Parent;
HtmlFacts.cs (1)
250
case
MarkupTagHelperDirectiveAttributeSyntax
tagHelperDirectiveAttribute:
RazorSyntaxFacts.cs (2)
33
MarkupTagHelperDirectiveAttributeSyntax
att => att.Name,
95
MarkupTagHelperDirectiveAttributeSyntax
att => CalculateFullSpan(att.Name, att.ParameterName, att.Transition),
SemanticTokens\SemanticTokensVisitor.cs (1)
398
public override void VisitMarkupTagHelperDirectiveAttribute(
MarkupTagHelperDirectiveAttributeSyntax
node)
TagHelperFacts.cs (1)
175
case
MarkupTagHelperDirectiveAttributeSyntax
directiveAttribute: