31 references to SupportsSyntaxTree
Microsoft.CodeAnalysis.EditorFeatures (5)
Classification\Semantic\AbstractSemanticOrEmbeddedClassificationViewTaggerProvider.cs (1)
149
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 (3)
DocumentSpanExtensions.cs (1)
33
if (document.
SupportsSyntaxTree
)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
525
Debug.Assert(newDocument.
SupportsSyntaxTree
);
Snippets\SnippetProviders\AbstractSnippetProvider.cs (1)
142
if (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)
58
if (document.
SupportsSyntaxTree
)
Microsoft.CodeAnalysis.Workspaces (18)
CodeActions\CodeAction.cs (1)
479
if (document.
SupportsSyntaxTree
)
CodeActions\CodeAction_Cleanup.cs (4)
49
Contract.ThrowIfFalse(document.
SupportsSyntaxTree
);
95
if (document.
SupportsSyntaxTree
)
108
if (!document.
SupportsSyntaxTree
)
156
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)
50
var tree = textDocument is Document {
SupportsSyntaxTree
: true } document
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
745
if (!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,
155
return this.
SupportsSyntaxTree
&& this.Project.SupportsCompilation;
163
/// The returned syntax tree can be <see langword="null"/> if the <see cref="
SupportsSyntaxTree
"/> returns <see
172
if (!this.
SupportsSyntaxTree
)
200
if (!this.
SupportsSyntaxTree
)
224
/// cref="
SupportsSyntaxTree
"/> returns <see langword="false"/>. This function will return
229
if (!this.
SupportsSyntaxTree
)
245
if (!this.
SupportsSyntaxTree
)
475
if (this.
SupportsSyntaxTree
)
Microsoft.VisualStudio.LanguageServices (3)
LanguageService\AbstractLanguageService`2.IVsLanguageBlock.cs (1)
74
if (document == null || !document.
SupportsSyntaxTree
)
TaskList\ProjectExternalErrorReporter.cs (1)
319
document.
SupportsSyntaxTree
)
Venus\ContainedDocument.cs (1)
764
if (!document.
SupportsSyntaxTree
)