10 references to LeadingTrivia
Microsoft.CodeAnalysis.CSharp (10)
Parser\DirectiveParser.cs (1)
316
foreach (var node in eod.
LeadingTrivia
)
Parser\DocumentationCommentParser.cs (3)
88
isTerminated = !_isDelimited || (eoc.
LeadingTrivia
.Count > 0 && eoc.
LeadingTrivia
[eoc.
LeadingTrivia
.Count - 1].ToString() == "*/");
Parser\SyntaxParser.cs (3)
1094
? SyntaxFactory.MissingToken(token.
LeadingTrivia
.Node, token.ContextualKind, token.TrailingTrivia.Node)
1095
: SyntaxFactory.Token(token.
LeadingTrivia
.Node, token.ContextualKind, token.TrailingTrivia.Node);
1112
var identifier = SyntaxToken.Identifier(token.Kind, token.
LeadingTrivia
.Node, token.Text, token.ValueText, token.TrailingTrivia.Node);
Syntax\InternalSyntax\CSharpSyntaxRewriter.cs (3)
23
var leading = this.VisitList(token.
LeadingTrivia
);
26
if (leading != token.
LeadingTrivia
|| trailing != token.TrailingTrivia)
28
if (leading != token.
LeadingTrivia
)