12 references to TrailingTrivia
Microsoft.CodeAnalysis.CSharp (12)
Parser\DirectiveParser.cs (1)
300foreach (var t in keyword.TrailingTrivia)
Parser\LanguageParser.cs (4)
3626if (!style.IsMissing && explicitInterfaceOpt is not null && this.CurrentToken.Kind != SyntaxKind.OperatorKeyword && style.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia)) 6496if (separator.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia)) 8201token1.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia)) 11612if (this.CurrentToken.TrailingTrivia.Any((int)SyntaxKind.EndOfLineTrivia) &&
Parser\SyntaxParser.cs (4)
794foreach (var trivia in token.TrailingTrivia) 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)
24var trailing = this.VisitList(token.TrailingTrivia); 26if (leading != token.LeadingTrivia || trailing != token.TrailingTrivia) 33if (trailing != token.TrailingTrivia)