31 references to SupportsSyntaxTree
Microsoft.CodeAnalysis.EditorFeatures (5)
Classification\Semantic\AbstractSemanticOrEmbeddedClassificationViewTaggerProvider.cs (1)
148
if (!document.
SupportsSyntaxTree
)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (1)
494
: lastProcessedDocument.
SupportsSyntaxTree
CommentSelection\AbstractCommentSelectionBase.cs (1)
143
if (edits.ResultOperation == Operation.Uncomment && document.
SupportsSyntaxTree
)
Editor\GoToAdjacentMemberCommandHandler.cs (1)
62
if (document?.
SupportsSyntaxTree
!= true)
Preview\AbstractPreviewFactoryService.cs (1)
439
if (newDocument.
SupportsSyntaxTree
)
Microsoft.CodeAnalysis.Features (4)
Diagnostics\Service\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (1)
83
&& document is Document {
SupportsSyntaxTree
: true };
DocumentSpanExtensions.cs (1)
33
if (document.
SupportsSyntaxTree
)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
522
Debug.Assert(newDocument.
SupportsSyntaxTree
);
Snippets\SnippetProviders\AbstractSnippetProvider.cs (1)
142
if (document.
SupportsSyntaxTree
)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\Breakpoints\ValidateBreakableRangeHandler.cs (1)
59
if (document.
SupportsSyntaxTree
)
Microsoft.CodeAnalysis.Workspaces (18)
CodeActions\CodeAction.cs (1)
478
if (document.
SupportsSyntaxTree
)
CodeActions\CodeAction_Cleanup.cs (4)
49
Contract.ThrowIfFalse(document.
SupportsSyntaxTree
);
99
if (document.
SupportsSyntaxTree
)
112
if (!document.
SupportsSyntaxTree
)
160
Contract.ThrowIfFalse(document.
SupportsSyntaxTree
, "GetDocumentIdsAndOptionsAsync should only be returning documents that support syntax");
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (2)
90
var newRoot = newDocument.
SupportsSyntaxTree
? await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false) : null;
91
var newText = newDocument.
SupportsSyntaxTree
? null : await newDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Diagnostics\Extensions.cs (1)
55
var tree = textDocument is Document {
SupportsSyntaxTree
: true } document
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
741
if (!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,
154
return this.
SupportsSyntaxTree
&& this.Project.SupportsCompilation;
162
/// The returned syntax tree can be <see langword="null"/> if the <see cref="
SupportsSyntaxTree
"/> returns <see
171
if (!this.
SupportsSyntaxTree
)
199
if (!this.
SupportsSyntaxTree
)
223
/// cref="
SupportsSyntaxTree
"/> returns <see langword="false"/>. This function will return
228
if (!this.
SupportsSyntaxTree
)
244
if (!this.
SupportsSyntaxTree
)
494
if (this.
SupportsSyntaxTree
)
Microsoft.VisualStudio.LanguageServices (3)
LanguageService\AbstractLanguageService`2.IVsLanguageBlock.cs (1)
74
if (document == null || !document.
SupportsSyntaxTree
)
TaskList\ProjectExternalErrorReporter.cs (1)
317
document.
SupportsSyntaxTree
)
Venus\ContainedDocument.cs (1)
764
if (!document.
SupportsSyntaxTree
)