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