12 references to TrailingTrivia
Microsoft.CodeAnalysis.CSharp (12)
Parser\DirectiveParser.cs (1)
292foreach (var t in keyword.TrailingTrivia)
Parser\LanguageParser.cs (4)
3645if (!style.IsMissing && explicitInterfaceOpt is not null && this.CurrentToken.Kind != SyntaxKind.OperatorKeyword && style.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia)) 6548if (separator.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia)) 8253token1.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia)) 11677if (this.CurrentToken.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia) &&
Parser\SyntaxParser.cs (4)
794foreach (var trivia in token.TrailingTrivia) 1101? SyntaxFactory.MissingToken(token.LeadingTrivia.Node, token.ContextualKind, token.TrailingTrivia.Node) 1102: SyntaxFactory.Token(token.LeadingTrivia.Node, token.ContextualKind, token.TrailingTrivia.Node); 1119var identifier = SyntaxToken.Identifier(token.Kind, token.LeadingTrivia.Node, token.Text, token.ValueText, token.TrailingTrivia.Node);
Syntax\InternalSyntax\CSharpSyntaxRewriter.cs (3)
24var trailing = this.VisitList(token.TrailingTrivia); 26if (leading != token.LeadingTrivia || trailing != token.TrailingTrivia) 33if (trailing != token.TrailingTrivia)