33 references to FindTrivia
Microsoft.CodeAnalysis (1)
Syntax\SyntaxNode.cs (1)
1572return FindTrivia(position, findInsideTrivia);
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
172var trivia = root.FindTrivia(position, findInsideTrivia);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
117var trivia = Root.FindTrivia(lastPos.Value);
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (3)
103var startTrivia = root.FindTrivia(startLine.Start); 104var firstMiddleTrivia = root.FindTrivia(firstMiddleLine.Start); 105var secondMiddleTrivia = root.FindTrivia(secondMiddleLine.Start);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (2)
40root.FindTrivia(diagnostic.Location.SourceSpan.Start).HasStructure) 85node = editor.OriginalRoot.FindTrivia(location.SourceSpan.Start).GetStructure()!;
Microsoft.CodeAnalysis.CSharp (1)
Syntax\CSharpSyntaxNode.cs (1)
439return base.FindTrivia(position, findInsideTrivia);
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (2)
226var trivia = syntaxTree.GetRoot(cancellationToken).FindTrivia(position); 496var trivia = syntaxTree.GetRoot(cancellationToken).FindTrivia(position, findInsideTrivia: false);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
162return syntaxTree.GetRoot(cancellationToken).FindTrivia(span.Start - 1, findInsideTrivia);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1105var trivia = syntaxTree.GetRoot(cancellationToken).FindTrivia(position, findInsideTrivia: false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\FormattingEngineTests.cs (1)
2541var markerTrivia = root.FindTrivia(position, findInsideTrivia: true);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (2)
226var trivia = syntaxTree.GetRoot(cancellationToken).FindTrivia(position); 496var trivia = syntaxTree.GetRoot(cancellationToken).FindTrivia(position, findInsideTrivia: false);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
162return syntaxTree.GetRoot(cancellationToken).FindTrivia(span.Start - 1, findInsideTrivia);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1105var trivia = syntaxTree.GetRoot(cancellationToken).FindTrivia(position, findInsideTrivia: false);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Structure\AbstractSyntaxTriviaStructureProviderTests.cs (1)
23var trivia = root.FindTrivia(position, findInsideTrivia: true);
Microsoft.CodeAnalysis.Features (5)
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (1)
303var trivia = syntaxTree.GetRoot(cancellationToken).FindTrivia(position, findInsideTrivia: false);
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (3)
103var startTrivia = root.FindTrivia(startLine.Start); 104var firstMiddleTrivia = root.FindTrivia(firstMiddleLine.Start); 105var secondMiddleTrivia = root.FindTrivia(secondMiddleLine.Start);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
85node = editor.OriginalRoot.FindTrivia(location.SourceSpan.Start).GetStructure()!;
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\VisualBasicSyntaxNode_TreeTraversalHelpers.vb (1)
24Return MyBase.FindTrivia(textPosition, findInsideTrivia)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
LineCommit\ContainingStatementInfo.vb (1)
60Dim trivia = syntaxTree.GetRoot(cancellationToken).FindTrivia(point)
SplitComment\VisualBasicSplitCommentService.vb (1)
31Dim previousTrivia = root.FindTrivia(currentTrivia.SpanStart - 1)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
TestSyntaxNodes.vb (2)
2352Dim trivia = tree.GetRoot().FindTrivia(position) 3438Dim trivia = tree.GetRoot().FindTrivia(4000)
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTreeExtensions.cs (1)
172var trivia = root.FindTrivia(position, findInsideTrivia);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
117var trivia = Root.FindTrivia(lastPos.Value);
Microsoft.VisualStudio.LanguageServices (1)
Extensions\DocumentExtensions.cs (1)
31var trivia = document.GetSyntaxRootSynchronously(cancellationToken).FindTrivia(line.Start);
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
Help\VisualBasicHelpContextService.vb (1)
53Dim trivia = tree.GetRoot(cancellationToken).FindTrivia(span.Start, findInsideTrivia:=True)