5 instantiations of AnalyzerConfigDocumentState
Microsoft.CodeAnalysis.Workspaces (5)
Workspace\Solution\AnalyzerConfigDocumentState.cs (3)
41=> new AnalyzerConfigDocumentState( 51=> new AnalyzerConfigDocumentState( 71return new AnalyzerConfigDocumentState(
Workspace\Solution\ProjectState.cs (2)
102AnalyzerConfigDocumentStates = new TextDocumentStates<AnalyzerConfigDocumentState>(projectInfoFixed.AnalyzerConfigDocuments, info => new AnalyzerConfigDocumentState(languageServices.SolutionServices, info, loadTextOptions)); 321typeof(TDocumentState) == typeof(AnalyzerConfigDocumentState) ? new AnalyzerConfigDocumentState(LanguageServices.SolutionServices, documentInfo, new LoadTextOptions(ChecksumAlgorithm)) :
32 references to AnalyzerConfigDocumentState
Microsoft.CodeAnalysis.Workspaces (32)
Workspace\Solution\AnalyzerConfigDocument.cs (1)
9internal AnalyzerConfigDocument(Project project, AnalyzerConfigDocumentState state)
Workspace\Solution\AnalyzerConfigDocumentState.cs (6)
60public new AnalyzerConfigDocumentState UpdateText(TextLoader loader, PreservationMode mode) 61=> (AnalyzerConfigDocumentState)base.UpdateText(loader, mode); 63public new AnalyzerConfigDocumentState UpdateText(SourceText text, PreservationMode mode) 64=> (AnalyzerConfigDocumentState)base.UpdateText(text, mode); 66public new AnalyzerConfigDocumentState UpdateText(TextAndVersion newTextAndVersion, PreservationMode mode) 67=> (AnalyzerConfigDocumentState)base.UpdateText(newTextAndVersion, mode);
Workspace\Solution\Project.cs (1)
472(documentId, project) => project.State.AnalyzerConfigDocumentStates.TryGetState(documentId, out var state) ? new AnalyzerConfigDocument(project, state) : null;
Workspace\Solution\ProjectState.AnalyzerConfigOptionsCache.cs (1)
22private readonly struct AnalyzerConfigOptionsCache(TextDocumentStates<AnalyzerConfigDocumentState> analyzerConfigDocumentStates, StructuredAnalyzerConfigOptions fallbackOptions)
Workspace\Solution\ProjectState.cs (11)
45public readonly TextDocumentStates<AnalyzerConfigDocumentState> AnalyzerConfigDocumentStates; 72TextDocumentStates<AnalyzerConfigDocumentState> analyzerConfigDocumentStates, 102AnalyzerConfigDocumentStates = new TextDocumentStates<AnalyzerConfigDocumentState>(projectInfoFixed.AnalyzerConfigDocuments, info => new AnalyzerConfigDocumentState(languageServices.SolutionServices, info, loadTextOptions)); 134typeof(TDocumentState) == typeof(AnalyzerConfigDocumentState) ? AnalyzerConfigDocumentStates : 321typeof(TDocumentState) == typeof(AnalyzerConfigDocumentState) ? new AnalyzerConfigDocumentState(LanguageServices.SolutionServices, documentInfo, new LoadTextOptions(ChecksumAlgorithm)) : 710TextDocumentStates<AnalyzerConfigDocumentState>? analyzerConfigDocumentStates = null, 908public ProjectState AddAnalyzerConfigDocuments(ImmutableArray<AnalyzerConfigDocumentState> documents) 920private ProjectState CreateNewStateForChangedAnalyzerConfig(TextDocumentStates<AnalyzerConfigDocumentState> newAnalyzerConfigDocumentStates, StructuredAnalyzerConfigOptions fallbackOptions) 1036public ProjectState UpdateAnalyzerConfigDocument(AnalyzerConfigDocumentState newDocument) 1039public ProjectState UpdateAnalyzerConfigDocuments(ImmutableArray<AnalyzerConfigDocumentState> oldDocuments, ImmutableArray<AnalyzerConfigDocumentState> newDocuments)
Workspace\Solution\Solution.cs (2)
1122=> WithCompilationState(CompilationState.AddDocumentsToMultipleProjects<AnalyzerConfigDocumentState>(documentInfos)); 1185=> WithCompilationState(CompilationState.RemoveDocumentsFromMultipleProjects<AnalyzerConfigDocumentState>(documentIds));
Workspace\Solution\SolutionCompilationState.cs (5)
609UpdateDocuments<AnalyzerConfigDocumentState>(info.AnalyzerConfigDocuments); 873ImmutableArray<AnalyzerConfigDocumentState> analyzerConfigNewDocumentStates => GetUpdateAnalyzerConfigDocumentsTranslationAction(oldProjectState, analyzerConfigNewDocumentStates), 891TranslationAction GetUpdateAnalyzerConfigDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<AnalyzerConfigDocumentState> newDocumentStates) 1737ImmutableArray<AnalyzerConfigDocumentState> _ => new TranslationAction.TouchAnalyzerConfigDocumentsAction(oldProject, oldProject.RemoveAnalyzerConfigDocuments(documentIds)), 1746ImmutableArray<AnalyzerConfigDocumentState> analyzerConfigDocumentStates => new TranslationAction.TouchAnalyzerConfigDocumentsAction(oldProject, oldProject.AddAnalyzerConfigDocuments(analyzerConfigDocumentStates)),
Workspace\Solution\SolutionState.cs (5)
307private AnalyzerConfigDocumentState GetRequiredAnalyzerConfigDocumentState(DocumentId documentId) 997var oldDocument = GetRequiredAnalyzerConfigDocumentState(documentId); 1045var oldDocument = GetRequiredAnalyzerConfigDocumentState(documentId); 1099var oldDocument = GetRequiredAnalyzerConfigDocumentState(documentId); 1130private StateChange UpdateAnalyzerConfigDocumentState(AnalyzerConfigDocumentState newDocument)