public override void VisitUnclassifiedTextLiteral(UnclassifiedTextLiteralSyntax node) { WriteNode(node, isHtml: true, base.VisitUnclassifiedTextLiteral); }
public override void VisitUnclassifiedTextLiteral(UnclassifiedTextLiteralSyntax node) { WriteSpan(node, SpanKindInternal.None); base.VisitUnclassifiedTextLiteral(node); }
public override void VisitUnclassifiedTextLiteral(UnclassifiedTextLiteralSyntax node) { WriteSpan(node, FormattingSpanKind.None); base.VisitUnclassifiedTextLiteral(node); }
static bool TryGetLeadingWhitespace(SyntaxList <RazorSyntaxNode> children, out UnclassifiedTextLiteralSyntax whitespace) { // If there is whitespace between the directive and the brace, it will be in the first child // of the 4 total children whitespace = null; if (children.Count == 4 && children[0] is UnclassifiedTextLiteralSyntax literal && literal.ContainsOnlyWhitespace()) { whitespace = literal; } return(whitespace != null); }