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