12 references to TrailingTrivia
Microsoft.CodeAnalysis.CSharp (12)
Parser\DirectiveParser.cs (1)
292
foreach (var t in keyword.
TrailingTrivia
)
Parser\LanguageParser.cs (4)
3645
if (!style.IsMissing && explicitInterfaceOpt is not null && this.CurrentToken.Kind != SyntaxKind.OperatorKeyword && style.
TrailingTrivia
.Any((int)SyntaxKind.EndOfLineTrivia))
6548
if (separator.
TrailingTrivia
.Any((int)SyntaxKind.EndOfLineTrivia))
8253
token1.
TrailingTrivia
.Any((int)SyntaxKind.EndOfLineTrivia))
11677
if (this.CurrentToken.
TrailingTrivia
.Any((int)SyntaxKind.EndOfLineTrivia) &&
Parser\SyntaxParser.cs (4)
794
foreach (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);
1119
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
)