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