1 write to TextDocument
Microsoft.CodeAnalysis.Workspaces (1)
Diagnostics\DocumentAnalysisScope.cs (1)
33TextDocument = 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"/>. 56Contract.ThrowIfFalse(TextDocument is AdditionalDocument); 58var filePath = TextDocument.FilePath ?? TextDocument.Name; 59return 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)
117if (documentAnalysisScope.TextDocument is Document document) 163tree: null, documentAnalysisScope.TextDocument.Id, spanToAnalyze, AnalysisKind.Syntax, diagnosticIdsToFilter, includeSuppressedDiagnostics); 354if (documentAnalysisScope.TextDocument is Document document) 365var model = await ((Document)documentAnalysisScope.TextDocument).GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 389if (documentAnalysisScope.TextDocument is not Document document)