95 references to GetLeadingTrivia
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (95)
LexicalAndXml\LexicalTests.cs (20)
191
var trivia = token.
GetLeadingTrivia
().ToArray();
213
var trivia = token.
GetLeadingTrivia
().ToArray();
235
var trivia = token.
GetLeadingTrivia
().ToArray();
253
var trivia = token.
GetLeadingTrivia
().ToArray();
275
var trivia = token.
GetLeadingTrivia
().ToArray();
299
var trivia = token.
GetLeadingTrivia
().ToArray();
323
var trivia = token.
GetLeadingTrivia
().ToArray();
345
var trivia = token.
GetLeadingTrivia
().ToArray();
367
var trivia = token.
GetLeadingTrivia
().ToArray();
389
var trivia = token.
GetLeadingTrivia
().ToArray();
409
var trivia = token.
GetLeadingTrivia
().ToArray();
437
var trivia = token.
GetLeadingTrivia
().ToArray();
544
var trivia = token.
GetLeadingTrivia
().ToArray();
576
Assert.Single(token.
GetLeadingTrivia
());
577
Assert.Equal(SyntaxKind.IfDirectiveTrivia, token.
GetLeadingTrivia
()[0].Kind());
582
Assert.Single(token.
GetLeadingTrivia
());
583
Assert.Equal(SyntaxKind.EndIfDirectiveTrivia, token.
GetLeadingTrivia
()[0].Kind());
3617
var leading = token.
GetLeadingTrivia
();
3635
leading = token.
GetLeadingTrivia
();
3656
leading = token.
GetLeadingTrivia
();
LexicalAndXml\SyntaxTokenParserTests.cs (1)
85
var docCommentTrivia = result.Token.
GetLeadingTrivia
()[0];
LexicalAndXml\XmlDocCommentTests.cs (69)
217
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
240
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
263
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
290
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
318
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
367
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
420
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
447
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
475
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
504
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
534
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
563
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
593
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
624
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
647
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
669
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
691
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
713
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
735
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
755
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
789
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
822
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
853
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
881
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
957
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
984
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1015
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1043
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1093
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1120
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1153
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1184
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1237
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1265
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1310
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1334
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1359
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1383
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1408
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1432
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1457
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1481
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1561
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1589
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1617
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1643
var leading = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1712
var trivias = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1751
var trivias = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
1793
var trivias = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
();
2084
var trivias = bracket.
GetLeadingTrivia
();
2117
var trivias = bracket.
GetLeadingTrivia
();
2149
var trivias = bracket.
GetLeadingTrivia
();
2179
var trivias = bracket.
GetLeadingTrivia
();
2210
var trivias = bracket.
GetLeadingTrivia
();
2259
var trivias = classKeyword.
GetLeadingTrivia
();
2288
var topTrivias = eofToken.
GetLeadingTrivia
();
2329
var trivias = eofToken.
GetLeadingTrivia
();
2363
var trivias = eofToken.
GetLeadingTrivia
();
2387
var doc = classKeyword.
GetLeadingTrivia
()[0].GetStructure() as DocumentationCommentTriviaSyntax;
2417
var doc = classKeyword.
GetLeadingTrivia
()[0].GetStructure() as DocumentationCommentTriviaSyntax;
2443
var trivias = classKeyword.
GetLeadingTrivia
();
2469
var trivias = classKeyword.
GetLeadingTrivia
();
2496
var trivias = classKeyword.
GetLeadingTrivia
();
2521
var trivias = classKeyword.
GetLeadingTrivia
();
2569
var trivias = classKeyword.
GetLeadingTrivia
();
2639
var doc = classKeyword.
GetLeadingTrivia
()[0].GetStructure() as DocumentationCommentTriviaSyntax;
2657
var doc = classKeyword.
GetLeadingTrivia
()[0].GetStructure() as DocumentationCommentTriviaSyntax;
2746
var trivias = classKeyword.
GetLeadingTrivia
();
2770
var trivias = classKeyword.
GetLeadingTrivia
();
Parsing\ScriptParsingTests.cs (3)
9639
var trivia = eof.
GetLeadingTrivia
().Single();
9650
var leading = eof.
GetLeadingTrivia
().ToArray();
9713
Assert.Equal(SyntaxKind.SingleLineCommentTrivia, eof.
GetLeadingTrivia
().Single().Kind());
Syntax\SyntaxNodeTests.cs (2)
1331
var trivia = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
()[0];
1342
var trivia = tree.GetCompilationUnitRoot().EndOfFileToken.
GetLeadingTrivia
()[0];