36 references to SupportsSyntaxTree
Microsoft.CodeAnalysis.EditorFeatures (8)
Classification\Semantic\ClassificationUtilities.cs (1)
104
if (!document.
SupportsSyntaxTree
)
CodeActions\CodeActionEditHandlerService.cs (1)
319
if (!document.
SupportsSyntaxTree
)
CommentSelection\AbstractCommentSelectionBase.cs (1)
146
if (edits.ResultOperation == Operation.Uncomment && document.
SupportsSyntaxTree
)
Editor\GoToAdjacentMemberCommandHandler.cs (1)
65
if (document?.
SupportsSyntaxTree
!= true)
InlineRename\InlineRenameSession.cs (1)
932
if (newDocument.
SupportsSyntaxTree
)
KeywordHighlighting\HighlighterViewTaggerProvider.cs (1)
83
if (document?.
SupportsSyntaxTree
!= true)
Organizing\OrganizeDocumentCommandHandler.cs (1)
162
var formattingOptions = document.
SupportsSyntaxTree
? document.GetSyntaxFormattingOptionsAsync(_globalOptions, cancellationToken).AsTask().WaitAndGetResult(cancellationToken) : null;
Preview\AbstractPreviewFactoryService.cs (1)
438
if (newDocument.
SupportsSyntaxTree
)
Microsoft.CodeAnalysis.Features (3)
DocumentSpanExtensions.cs (1)
32
if (document.
SupportsSyntaxTree
)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
514
Debug.Assert(newDocument.
SupportsSyntaxTree
);
Snippets\SnippetProviders\AbstractSnippetProvider.cs (1)
162
if (document.
SupportsSyntaxTree
)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (1)
337
&& sourceDocument.
SupportsSyntaxTree
Handler\Breakpoints\ValidateBreakableRangeHandler.cs (1)
62
if (document.
SupportsSyntaxTree
)
Microsoft.CodeAnalysis.Workspaces (19)
CodeActions\CodeAction.cs (1)
352
if (document.
SupportsSyntaxTree
)
CodeFixes\FixAllOccurrences\DocumentBasedFixAllProvider.cs (2)
131
var node = newDocument.
SupportsSyntaxTree
? await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false) : null;
132
var text = newDocument.
SupportsSyntaxTree
? null : await newDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\FixAllOccurences\DocumentBasedFixAllProvider.cs (2)
113
var node = newDocument.
SupportsSyntaxTree
? await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false) : null;
114
var text = newDocument.
SupportsSyntaxTree
? null : await newDocument.GetTextAsync(cancellationToken).ConfigureAwait(false);
Diagnostics\Extensions.cs (1)
51
var tree = textDocument is Document {
SupportsSyntaxTree
: true } document
FindSymbols\Shared\AbstractSyntaxIndex.cs (3)
47
if (!document.
SupportsSyntaxTree
)
78
if (!document.
SupportsSyntaxTree
)
114
Contract.ThrowIfFalse(document.
SupportsSyntaxTree
);
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
736
if (!document.
SupportsSyntaxTree
)
Workspace\Solution\Document.cs (9)
36
/// A cached task that can be returned once the tree has already been created. This is only set if <see cref="
SupportsSyntaxTree
"/> returns true,
150
return this.
SupportsSyntaxTree
&& this.Project.SupportsCompilation;
158
/// The returned syntax tree can be <see langword="null"/> if the <see cref="
SupportsSyntaxTree
"/> returns <see
167
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
)
404
if (this.
SupportsSyntaxTree
)
Microsoft.VisualStudio.LanguageServices (4)
LanguageService\AbstractLanguageService`2.IVsLanguageBlock.cs (1)
74
if (document == null || !document.
SupportsSyntaxTree
)
LanguageService\AbstractLanguageService`2.VsLanguageDebugInfo.cs (1)
317
if (initialBreakpointSpan.Length > 0 && document.
SupportsSyntaxTree
)
TaskList\ProjectExternalErrorReporter.cs (1)
328
document.
SupportsSyntaxTree
)
Venus\ContainedDocument.cs (1)
767
if (!document.
SupportsSyntaxTree
)