7 references to TryGetSyntaxRoot
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
81
if (document.
TryGetSyntaxRoot
(out var root))
Microsoft.CodeAnalysis.Features (2)
SolutionCrawler\AbstractDocumentDifferenceService.cs (2)
55
if (!oldDocument.
TryGetSyntaxRoot
(out var oldRoot) ||
56
!newDocument.
TryGetSyntaxRoot
(out var newRoot))
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (1)
81
if (document.
TryGetSyntaxRoot
(out var root))
Microsoft.CodeAnalysis.Workspaces.UnitTests (3)
SolutionTests\SolutionTests.cs (3)
310
Assert.True(newSolution1.GetDocument(documentId)!.
TryGetSyntaxRoot
(out var actualRoot));
3143
Assert.False(document.
TryGetSyntaxRoot
(out _));
3149
Assert.True(document.
TryGetSyntaxRoot
(out root));