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)
102
AnalyzerConfigDocumentStates = new TextDocumentStates<AnalyzerConfigDocumentState>(projectInfoFixed.AnalyzerConfigDocuments, info => new
AnalyzerConfigDocumentState
(languageServices.SolutionServices, info, loadTextOptions));
321
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)
45
public readonly TextDocumentStates<
AnalyzerConfigDocumentState
> AnalyzerConfigDocumentStates;
72
TextDocumentStates<
AnalyzerConfigDocumentState
> analyzerConfigDocumentStates,
102
AnalyzerConfigDocumentStates = new TextDocumentStates<
AnalyzerConfigDocumentState
>(projectInfoFixed.AnalyzerConfigDocuments, info => new AnalyzerConfigDocumentState(languageServices.SolutionServices, info, loadTextOptions));
134
typeof(TDocumentState) == typeof(
AnalyzerConfigDocumentState
) ? AnalyzerConfigDocumentStates :
321
typeof(TDocumentState) == typeof(
AnalyzerConfigDocumentState
) ? new AnalyzerConfigDocumentState(LanguageServices.SolutionServices, documentInfo, new LoadTextOptions(ChecksumAlgorithm)) :
710
TextDocumentStates<
AnalyzerConfigDocumentState
>? analyzerConfigDocumentStates = null,
908
public ProjectState AddAnalyzerConfigDocuments(ImmutableArray<
AnalyzerConfigDocumentState
> documents)
920
private ProjectState CreateNewStateForChangedAnalyzerConfig(TextDocumentStates<
AnalyzerConfigDocumentState
> newAnalyzerConfigDocumentStates, StructuredAnalyzerConfigOptions fallbackOptions)
1036
public ProjectState UpdateAnalyzerConfigDocument(
AnalyzerConfigDocumentState
newDocument)
1039
public 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)
609
UpdateDocuments<
AnalyzerConfigDocumentState
>(info.AnalyzerConfigDocuments);
873
ImmutableArray<
AnalyzerConfigDocumentState
> analyzerConfigNewDocumentStates => GetUpdateAnalyzerConfigDocumentsTranslationAction(oldProjectState, analyzerConfigNewDocumentStates),
891
TranslationAction GetUpdateAnalyzerConfigDocumentsTranslationAction(ProjectState oldProjectState, ImmutableArray<
AnalyzerConfigDocumentState
> newDocumentStates)
1737
ImmutableArray<
AnalyzerConfigDocumentState
> _ => new TranslationAction.TouchAnalyzerConfigDocumentsAction(oldProject, oldProject.RemoveAnalyzerConfigDocuments(documentIds)),
1746
ImmutableArray<
AnalyzerConfigDocumentState
> analyzerConfigDocumentStates => new TranslationAction.TouchAnalyzerConfigDocumentsAction(oldProject, oldProject.AddAnalyzerConfigDocuments(analyzerConfigDocumentStates)),
Workspace\Solution\SolutionState.cs (5)
307
private
AnalyzerConfigDocumentState
GetRequiredAnalyzerConfigDocumentState(DocumentId documentId)
997
var
oldDocument = GetRequiredAnalyzerConfigDocumentState(documentId);
1045
var
oldDocument = GetRequiredAnalyzerConfigDocumentState(documentId);
1099
var
oldDocument = GetRequiredAnalyzerConfigDocumentState(documentId);
1130
private StateChange UpdateAnalyzerConfigDocumentState(
AnalyzerConfigDocumentState
newDocument)