3 overrides of GetLeadingTrivia
Microsoft.CodeAnalysis.CSharp (3)
Syntax\InternalSyntax\SyntaxToken.SyntaxIdentifierWithTrivia.cs (1)
58public override GreenNode GetLeadingTrivia()
Syntax\InternalSyntax\SyntaxToken.SyntaxLiteralWithTrivia.cs (1)
53public override GreenNode GetLeadingTrivia()
Syntax\InternalSyntax\SyntaxToken.SyntaxTokenWithTrivia.cs (1)
46public override GreenNode GetLeadingTrivia()
26 references to GetLeadingTrivia
Microsoft.CodeAnalysis.CSharp (26)
Parser\DirectiveParser.cs (2)
158eod = eod.TokenWithLeadingTrivia(SyntaxList.Concat(SyntaxFactory.DisabledText(expr.ToFullString()), eod.GetLeadingTrivia())); 815var leading = identifier.GetLeadingTrivia();
Parser\DocumentationCommentParser.cs (5)
1029operatorToken.GetLeadingTrivia(), 1040operatorToken.GetLeadingTrivia(), 1062operatorToken.GetLeadingTrivia(), 1073operatorToken.GetLeadingTrivia(), 1083operatorToken.GetLeadingTrivia(),
Parser\LanguageParser.cs (5)
3885opToken = SyntaxFactory.Token(opToken.GetLeadingTrivia(), SyntaxKind.GreaterThanGreaterThanGreaterThanToken, opToken2.GetTrailingTrivia()); 3889opToken = SyntaxFactory.Token(opToken.GetLeadingTrivia(), SyntaxKind.GreaterThanGreaterThanToken, opToken2.GetTrailingTrivia()); 11255token1.GetLeadingTrivia(), 11269token1.GetLeadingTrivia(), 11392var dotDotToken = SyntaxFactory.Token(token1.GetLeadingTrivia(), SyntaxKind.DotDotToken, token2.GetTrailingTrivia());
Parser\LanguageParser_InterpolatedString.cs (3)
65result = result.WithDiagnosticsGreen(MoveDiagnostics(new[] { error }, originalToken.GetLeadingTrivia()?.FullWidth ?? 0)); 81originalToken.GetLeadingTrivia(), 423var leading = this.CurrentToken.GetLeadingTrivia();
Parser\SyntaxParser.cs (2)
952builder.Add(token.GetLeadingTrivia()); 1024var leadingTrivia = target.GetLeadingTrivia();
Syntax\InternalSyntax\CSharpSyntaxNode.cs (2)
120return this.GetLeadingTrivia(); 202GetDirectives(t.GetLeadingTrivia(), directives);
Syntax\InternalSyntax\SyntaxToken.cs (6)
322var leading = this.GetLeadingTrivia(); 334get { return new SyntaxList<CSharpSyntaxNode>(this.GetLeadingTrivia()); } 378stack = ApplyDirectivesToTrivia(this.GetLeadingTrivia(), stack); 409var trivia = this.GetLeadingTrivia(); 442var thisLeading = this.GetLeadingTrivia(); 443var otherLeading = otherToken.GetLeadingTrivia();
Syntax\SyntaxTreeDiagnosticEnumerator.cs (1)
162var leading = token.GetLeadingTrivia();