31 references to SupportsSyntaxTree
Microsoft.CodeAnalysis.EditorFeatures (5)
Classification\Semantic\AbstractSemanticOrEmbeddedClassificationViewTaggerProvider.cs (1)
149if (!document.SupportsSyntaxTree)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (1)
494: lastProcessedDocument.SupportsSyntaxTree
CommentSelection\AbstractCommentSelectionBase.cs (1)
143if (edits.ResultOperation == Operation.Uncomment && document.SupportsSyntaxTree)
Editor\GoToAdjacentMemberCommandHandler.cs (1)
62if (document?.SupportsSyntaxTree != true)
Preview\AbstractPreviewFactoryService.cs (1)
436if (newDocument.SupportsSyntaxTree)
Microsoft.CodeAnalysis.Features (3)
DocumentSpanExtensions.cs (1)
32if (document.SupportsSyntaxTree)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
525Debug.Assert(newDocument.SupportsSyntaxTree);
Snippets\SnippetProviders\AbstractSnippetProvider.cs (1)
142if (document.SupportsSyntaxTree)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (1)
107&& document is Document { SupportsSyntaxTree: true };
Handler\Breakpoints\ValidateBreakableRangeHandler.cs (1)
62if (document.SupportsSyntaxTree)
Microsoft.CodeAnalysis.Workspaces (18)
CodeActions\CodeAction.cs (1)
479if (document.SupportsSyntaxTree)
CodeActions\CodeAction_Cleanup.cs (4)
49Contract.ThrowIfFalse(document.SupportsSyntaxTree); 95if (document.SupportsSyntaxTree) 108if (!document.SupportsSyntaxTree) 156Contract.ThrowIfFalse(document.SupportsSyntaxTree, "GetDocumentIdsAndOptionsAsync should only be returning documents that support syntax");
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (2)
90var newRoot = newDocument.SupportsSyntaxTree ? await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false) : null; 91var newText = newDocument.SupportsSyntaxTree ? null : await newDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Diagnostics\Extensions.cs (1)
50var tree = textDocument is Document { SupportsSyntaxTree: true } document
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
743if (!document.SupportsSyntaxTree)
Workspace\Solution\Document.cs (9)
41/// A cached task that can be returned once the tree has already been created. This is only set if <see cref="SupportsSyntaxTree"/> returns true, 155return this.SupportsSyntaxTree && this.Project.SupportsCompilation; 163/// The returned syntax tree can be <see langword="null"/> if the <see cref="SupportsSyntaxTree"/> returns <see 172if (!this.SupportsSyntaxTree) 200if (!this.SupportsSyntaxTree) 224/// cref="SupportsSyntaxTree"/> returns <see langword="false"/>. This function will return 229if (!this.SupportsSyntaxTree) 245if (!this.SupportsSyntaxTree) 457if (this.SupportsSyntaxTree)
Microsoft.VisualStudio.LanguageServices (3)
LanguageService\AbstractLanguageService`2.IVsLanguageBlock.cs (1)
74if (document == null || !document.SupportsSyntaxTree)
TaskList\ProjectExternalErrorReporter.cs (1)
319document.SupportsSyntaxTree)
Venus\ContainedDocument.cs (1)
764if (!document.SupportsSyntaxTree)