5 instantiations of AnalyzerConfigDocumentState
Microsoft.CodeAnalysis.Workspaces (5)
Workspace\Solution\AnalyzerConfigDocumentState.cs (3)
41
=> new
AnalyzerConfigDocumentState
(
51
=> new
AnalyzerConfigDocumentState
(
71
return new
AnalyzerConfigDocumentState
(
Workspace\Solution\ProjectState.cs (2)
106
AnalyzerConfigDocumentStates = new TextDocumentStates<AnalyzerConfigDocumentState>(projectInfoFixed.AnalyzerConfigDocuments, info => new
AnalyzerConfigDocumentState
(languageServices.SolutionServices, info, loadTextOptions));
296
typeof(TDocumentState) == typeof(AnalyzerConfigDocumentState) ? new
AnalyzerConfigDocumentState
(LanguageServices.SolutionServices, documentInfo, new LoadTextOptions(ChecksumAlgorithm)) :
32 references to AnalyzerConfigDocumentState
Microsoft.CodeAnalysis.Workspaces (32)
Workspace\Solution\AnalyzerConfigDocument.cs (1)
9
internal AnalyzerConfigDocument(Project project,
AnalyzerConfigDocumentState
state)
Workspace\Solution\AnalyzerConfigDocumentState.cs (6)
60
public new
AnalyzerConfigDocumentState
UpdateText(TextLoader loader, PreservationMode mode)
61
=> (
AnalyzerConfigDocumentState
)base.UpdateText(loader, mode);
63
public new
AnalyzerConfigDocumentState
UpdateText(SourceText text, PreservationMode mode)
64
=> (
AnalyzerConfigDocumentState
)base.UpdateText(text, mode);
66
public 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)
22
private readonly struct AnalyzerConfigOptionsCache(TextDocumentStates<
AnalyzerConfigDocumentState
> analyzerConfigDocumentStates, StructuredAnalyzerConfigOptions fallbackOptions)
Workspace\Solution\ProjectState.cs (11)
47
public readonly TextDocumentStates<
AnalyzerConfigDocumentState
> AnalyzerConfigDocumentStates;
73
TextDocumentStates<
AnalyzerConfigDocumentState
> analyzerConfigDocumentStates,
106
AnalyzerConfigDocumentStates = new TextDocumentStates<
AnalyzerConfigDocumentState
>(projectInfoFixed.AnalyzerConfigDocuments, info => new AnalyzerConfigDocumentState(languageServices.SolutionServices, info, loadTextOptions));
141
typeof(TDocumentState) == typeof(
AnalyzerConfigDocumentState
) ? AnalyzerConfigDocumentStates :
296
typeof(TDocumentState) == typeof(
AnalyzerConfigDocumentState
) ? new AnalyzerConfigDocumentState(LanguageServices.SolutionServices, documentInfo, new LoadTextOptions(ChecksumAlgorithm)) :
685
TextDocumentStates<
AnalyzerConfigDocumentState
>? analyzerConfigDocumentStates = null,
883
public ProjectState AddAnalyzerConfigDocuments(ImmutableArray<
AnalyzerConfigDocumentState
> documents)
895
private ProjectState CreateNewStateForChangedAnalyzerConfig(TextDocumentStates<
AnalyzerConfigDocumentState
> newAnalyzerConfigDocumentStates, StructuredAnalyzerConfigOptions fallbackOptions)
1011
public ProjectState UpdateAnalyzerConfigDocument(
AnalyzerConfigDocumentState
newDocument)
1014
public ProjectState UpdateAnalyzerConfigDocuments(ImmutableArray<
AnalyzerConfigDocumentState
> oldDocuments, ImmutableArray<
AnalyzerConfigDocumentState
> newDocuments)
Workspace\Solution\Solution.cs (2)
1112
=> WithCompilationState(CompilationState.AddDocumentsToMultipleProjects<
AnalyzerConfigDocumentState
>(documentInfos));
1175
=> WithCompilationState(CompilationState.RemoveDocumentsFromMultipleProjects<
AnalyzerConfigDocumentState
>(documentIds));
Workspace\Solution\SolutionCompilationState.cs (5)
609
UpdateDocuments<
AnalyzerConfigDocumentState
>(info.AnalyzerConfigDocuments);
895
ImmutableArray<
AnalyzerConfigDocumentState
> analyzerConfigNewDocumentStates => GetUpdateAnalyzerConfigDocumentsTranslationAction(oldProjectState, analyzerConfigNewDocumentStates),
913
TranslationAction GetUpdateAnalyzerConfigDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<
AnalyzerConfigDocumentState
> newDocumentStates)
1736
ImmutableArray<
AnalyzerConfigDocumentState
> _ => new TranslationAction.TouchAnalyzerConfigDocumentsAction(oldProject, oldProject.RemoveAnalyzerConfigDocuments(documentIds)),
1745
ImmutableArray<
AnalyzerConfigDocumentState
> analyzerConfigDocumentStates => new TranslationAction.TouchAnalyzerConfigDocumentsAction(oldProject, oldProject.AddAnalyzerConfigDocuments(analyzerConfigDocumentStates)),
Workspace\Solution\SolutionState.cs (5)
307
private
AnalyzerConfigDocumentState
GetRequiredAnalyzerConfigDocumentState(DocumentId documentId)
1032
var
oldDocument = GetRequiredAnalyzerConfigDocumentState(documentId);
1080
var
oldDocument = GetRequiredAnalyzerConfigDocumentState(documentId);
1134
var
oldDocument = GetRequiredAnalyzerConfigDocumentState(documentId);
1165
private StateChange UpdateAnalyzerConfigDocumentState(
AnalyzerConfigDocumentState
newDocument)