1 write to TextDocument
Microsoft.CodeAnalysis.Workspaces (1)
Diagnostics\DocumentAnalysisScope.cs (1)
33
TextDocument
= document;
13 references to TextDocument
Microsoft.CodeAnalysis.Workspaces (13)
Diagnostics\DocumentAnalysisScope.cs (8)
49
/// Gets the <see cref="AdditionalText"/> corresponding to the <see cref="
TextDocument
"/>.
50
/// NOTE: Throws an exception if <see cref="
TextDocument
"/> is not an <see cref="AdditionalDocument"/>.
56
Contract.ThrowIfFalse(
TextDocument
is AdditionalDocument);
58
var filePath =
TextDocument
.FilePath ??
TextDocument
.Name;
59
return
TextDocument
.Project.AnalyzerOptions.AdditionalFiles.First(a => PathUtilities.Comparer.Equals(a.Path, filePath));
63
=> new(
TextDocument
, span, ProjectAnalyzers, HostAnalyzers, Kind);
66
=> new(
TextDocument
, Span, projectAnalyzers, hostAnalyzers, Kind);
Diagnostics\Extensions.cs (5)
117
if (documentAnalysisScope.
TextDocument
is Document document)
163
tree: null, documentAnalysisScope.
TextDocument
.Id, spanToAnalyze, AnalysisKind.Syntax, diagnosticIdsToFilter, includeSuppressedDiagnostics);
354
if (documentAnalysisScope.
TextDocument
is Document document)
365
var model = await ((Document)documentAnalysisScope.
TextDocument
).GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
389
if (documentAnalysisScope.
TextDocument
is not Document document)