public override void VisitMarkupTagHelperDirectiveAttribute(MarkupTagHelperDirectiveAttributeSyntax node) { if (node.TagHelperAttributeInfo.Bound) { Visit(node.Transition); Visit(node.NamePrefix); AddSemanticRange(node.Name, RazorSemanticTokensLegend.RazorDirectiveAttribute); Visit(node.NameSuffix); if (node.Colon != null) { AddSemanticRange(node.Colon, RazorSemanticTokensLegend.RazorDirectiveColon); } if (node.ParameterName != null) { AddSemanticRange(node.ParameterName, RazorSemanticTokensLegend.RazorDirectiveAttribute); } } AddSemanticRange(node.EqualsToken, RazorSemanticTokensLegend.MarkupOperator); AddSemanticRange(node.ValuePrefix, RazorSemanticTokensLegend.MarkupAttributeQuote); Visit(node.Value); AddSemanticRange(node.ValueSuffix, RazorSemanticTokensLegend.MarkupAttributeQuote); }
public override void VisitMarkupTagHelperDirectiveAttribute(MarkupTagHelperDirectiveAttributeSyntax node) { if (node.TagHelperAttributeInfo.Bound) { var transition = CreateSemanticRange(node.Transition, SyntaxKind.Transition); AddNode(transition); var directiveAttribute = CreateSemanticRange(node.Name, SyntaxKind.MarkupTagHelperDirectiveAttribute); AddNode(directiveAttribute); if (node.Colon != null) { var colon = CreateSemanticRange(node.Colon, SyntaxKind.Colon); AddNode(colon); } if (node.ParameterName != null) { var parameterName = CreateSemanticRange(node.ParameterName, SyntaxKind.MarkupTagHelperDirectiveAttribute); AddNode(parameterName); } } base.VisitMarkupTagHelperDirectiveAttribute(node); }
public override void VisitMarkupTagHelperDirectiveAttribute(MarkupTagHelperDirectiveAttributeSyntax node) { if (node.TagHelperAttributeInfo.Bound) { var transition = new SyntaxResult(node.Transition, SyntaxKind.Transition, _razorCodeDocument); _syntaxNodes.Add(transition); var directiveAttribute = new SyntaxResult(node.Name, SyntaxKind.MarkupTagHelperDirectiveAttribute, _razorCodeDocument); _syntaxNodes.Add(directiveAttribute); if (node.Colon != null) { var colon = new SyntaxResult(node.Colon, SyntaxKind.Colon, _razorCodeDocument); _syntaxNodes.Add(colon); } if (node.ParameterName != null) { var parameterName = new SyntaxResult(node.ParameterName, SyntaxKind.MarkupTagHelperDirectiveAttribute, _razorCodeDocument); _syntaxNodes.Add(parameterName); } } base.VisitMarkupTagHelperDirectiveAttribute(node); }
public override void VisitMarkupTagHelperDirectiveAttribute(MarkupTagHelperDirectiveAttributeSyntax node) { if (node.TagHelperAttributeInfo.Bound) { AddSemanticRange(node.Transition, SyntaxKind.Transition); AddSemanticRange(node.Name, SyntaxKind.MarkupTagHelperDirectiveAttribute); if (node.Colon != null) { AddSemanticRange(node.Colon, SyntaxKind.Colon); } if (node.ParameterName != null) { AddSemanticRange(node.ParameterName, SyntaxKind.MarkupTagHelperDirectiveAttribute); } } AddSemanticRange(node.EqualsToken); base.VisitMarkupTagHelperDirectiveAttribute(node); }
public override void VisitMarkupTagHelperDirectiveAttribute(MarkupTagHelperDirectiveAttributeSyntax node) { Visit(node.Transition); Visit(node.Colon); Visit(node.Value); }