26 references to SupportsSyntaxTree
dotnet-format (1)
CodeFormatter.cs (1)
218if (!isFileIncluded || !document.SupportsSyntaxTree)
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupHelpers.cs (1)
17Contract.ThrowIfFalse(document.SupportsSyntaxTree);
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupHelpers.cs (1)
17Contract.ThrowIfFalse(document.SupportsSyntaxTree);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupHelpers.cs (1)
17Contract.ThrowIfFalse(document.SupportsSyntaxTree);
Microsoft.CodeAnalysis.Features (3)
Diagnostics\Service\DiagnosticAnalyzerService_GetDiagnosticsForSpan.cs (1)
64var incrementalAnalysis = range is null && document is Document { SupportsSyntaxTree: true };
DocumentSpanExtensions.cs (1)
33if (document.SupportsSyntaxTree)
Snippets\SnippetProviders\AbstractSnippetProvider.cs (1)
145if (document.SupportsSyntaxTree)
Microsoft.CodeAnalysis.Workspaces (18)
CodeActions\CodeAction.cs (1)
467if (document.SupportsSyntaxTree)
CodeActions\CodeAction_Cleanup.cs (3)
137if (document.SupportsSyntaxTree) 150if (!document.SupportsSyntaxTree) 200Contract.ThrowIfFalse(document.SupportsSyntaxTree, "GetDocumentIdsAndOptionsAsync should only be returning documents that support syntax");
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (2)
87var newRoot = newDocument.SupportsSyntaxTree ? await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false) : null; 88var newText = newDocument.SupportsSyntaxTree ? null : await newDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Diagnostics\Extensions.cs (1)
54var tree = textDocument is Document { SupportsSyntaxTree: true } document
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
723if (!document.SupportsSyntaxTree)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupHelpers.cs (1)
17Contract.ThrowIfFalse(document.SupportsSyntaxTree);
Workspace\Solution\Document.cs (9)
40/// A cached task that can be returned once the tree has already been created. This is only set if <see cref="SupportsSyntaxTree"/> returns true, 154return this.SupportsSyntaxTree && this.Project.SupportsCompilation; 162/// The returned syntax tree can be <see langword="null"/> if the <see cref="SupportsSyntaxTree"/> returns <see 171if (!this.SupportsSyntaxTree) 199if (!this.SupportsSyntaxTree) 223/// cref="SupportsSyntaxTree"/> returns <see langword="false"/>. This function will return 228if (!this.SupportsSyntaxTree) 244if (!this.SupportsSyntaxTree) 494if (this.SupportsSyntaxTree)
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupHelpers.cs (1)
17Contract.ThrowIfFalse(document.SupportsSyntaxTree);