7 references to FindTrivia
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
179
var trivia = root.
FindTrivia
(position);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Syntax\SyntaxNodeTests.cs (5)
790
var trivia = tree.GetCompilationUnitRoot().
FindTrivia
(position);
3422
var trivia = tree.GetCompilationUnitRoot().
FindTrivia
(code.IndexOf("#r", StringComparison.Ordinal)); // ReferenceDirective.
3549
var rootTrivia = root.
FindTrivia
(0);
3554
var methodTrivia = method.
FindTrivia
(0);
3833
var trivia = tree.GetCompilationUnitRoot().
FindTrivia
(position);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
179
var trivia = root.
FindTrivia
(position);