1 instantiation of AdditionalDocument
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\Project.cs (1)
469(documentId, project) => project.State.AdditionalDocumentStates.TryGetState(documentId, out var state) ? new AdditionalDocument(project, state) : null;
13 references to AdditionalDocument
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (2)
37case AdditionalDocument additionalDocument: 50Contract.ThrowIfFalse(textDocument is AdditionalDocument);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\DocumentAnalysisExecutor.cs (1)
148if (document == null && textDocument is not AdditionalDocument)
Microsoft.CodeAnalysis.TestAnalyzerReference (1)
NonSourceFileRefactoring.cs (1)
29if (document is AdditionalDocument)
Microsoft.CodeAnalysis.Workspaces (9)
Diagnostics\DocumentAnalysisScope.cs (2)
50/// NOTE: Throws an exception if <see cref="TextDocument"/> is not an <see cref="AdditionalDocument"/>. 56Contract.ThrowIfFalse(TextDocument is AdditionalDocument);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\TextDocumentExtensions.cs (2)
37case AdditionalDocument additionalDocument: 50Contract.ThrowIfFalse(textDocument is AdditionalDocument);
Workspace\Solution\Project.cs (3)
31private ImmutableDictionary<DocumentId, AdditionalDocument?> _idToAdditionalDocumentMap = ImmutableDictionary<DocumentId, AdditionalDocument?>.Empty; 468private static readonly Func<DocumentId, Project, AdditionalDocument?> s_tryCreateAdditionalDocumentFunction =
Workspace\Solution\Solution.cs (1)
1662/// including <see cref="AdditionalDocument"/>s or <see cref="AnalyzerConfigDocument" />s.
Workspace\Solution\TextDocumentKind.cs (1)
18/// Indicates an <see cref="CodeAnalysis.AdditionalDocument"/>