10 references to LeadingTrivia
Microsoft.CodeAnalysis.CSharp (10)
Parser\DirectiveParser.cs (1)
316foreach (var node in eod.LeadingTrivia)
Parser\DocumentationCommentParser.cs (3)
88isTerminated = !_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); 1112var identifier = SyntaxToken.Identifier(token.Kind, token.LeadingTrivia.Node, token.Text, token.ValueText, token.TrailingTrivia.Node);
Syntax\InternalSyntax\CSharpSyntaxRewriter.cs (3)
23var leading = this.VisitList(token.LeadingTrivia); 26if (leading != token.LeadingTrivia || trailing != token.TrailingTrivia) 28if (leading != token.LeadingTrivia)