Beispiel #1
0
 public override void VisitUnclassifiedTextLiteral(UnclassifiedTextLiteralSyntax node)
 {
     WriteNode(node, isHtml: true, base.VisitUnclassifiedTextLiteral);
 }
Beispiel #2
0
 public override void VisitUnclassifiedTextLiteral(UnclassifiedTextLiteralSyntax node)
 {
     WriteSpan(node, SpanKindInternal.None);
     base.VisitUnclassifiedTextLiteral(node);
 }
Beispiel #3
0
 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);
            }