1 write to States
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\TextDocumentStates.cs (1)
62
States
= map;
47 references to States
Microsoft.CodeAnalysis.Workspaces (47)
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (1)
62
regularDocumentStates.
States
.Select(kvp => (kvp.Key, kvp.Value)).Concat(
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
94
var textChecksumsTasks = projectState.DocumentStates.
States
.Values.OrderBy(state => state.FilePath, StringComparer.Ordinal).Select(async state =>
Workspace\ProjectSystem\ProjectSystemProject.cs (1)
304
foreach (var (_, documentState) in projectState.DocumentStates.
States
)
Workspace\Solution\ChecksumCollection.cs (1)
76
foreach (var (_, state) in documentStates.
States
)
Workspace\Solution\ProjectState.cs (5)
147
foreach (var (documentId, documentState) in this.DocumentStates.
States
)
202
foreach (var (_, state) in documentStates.
States
)
213
foreach (var (_, state) in additionalDocumentStates.
States
)
260
foreach (var (_, state) in documentStates.
States
)
268
foreach (var (_, state) in additionalDocumentStates.
States
)
Workspace\Solution\SolutionCompilationState.CompilationTracker.CompilationTrackerState.cs (2)
103
foreach (var generatedDocument in generatorInfo.Documents.
States
.Values)
203
foreach (var generatedDocument in generatorInfo.Documents.
States
.Values)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (3)
822
var syntaxTrees = generatorInfo.Documents.
States
.Values.Select(state => state.GetSyntaxTree(cancellationToken));
959
foreach (var documentInProjectState in projectState.DocumentStates.
States
)
968
foreach (var generatedDocument in generatorInfo.Value.Documents.
States
)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (6)
41
var generatedSyntaxTrees = await generatorInfo.Documents.
States
.Values.SelectAsArrayAsync(
144
oldGeneratedDocuments.
States
.All(kvp => kvp.Value.ParseOptions.Equals(this.ProjectState.ParseOptions)))
223
await newGeneratedDocuments.
States
.Values.SelectAsArrayAsync(
255
foreach (var documentState in ProjectState.DocumentStates.
States
)
365
await newGeneratedDocuments.
States
.Values.SelectAsArrayAsync(
377
foreach (var (_, state) in states.
States
)
Workspace\Solution\SolutionCompilationState.WithFrozenSourceGeneratedDocumentsCompilationTracker.cs (2)
114
foreach (var (id, replacementState) in _replacementDocumentStates.
States
)
180
foreach (var (id, replacementState) in _replacementDocumentStates.
States
)
Workspace\Solution\TextDocumentStates.cs (25)
81
=> new(ids,
States
, _filePathToDocumentIds);
84
=>
States
.Count;
90
=>
States
.ContainsKey(id);
93
=>
States
.TryGetValue(documentId, out state);
96
=>
States
.TryGetValue(documentId, out var state) ? state : null;
99
=>
States
.TryGetValue(documentId, out var state) ? state : throw ExceptionUtilities.Unreachable();
122
var map =
States
;
133
var result = new FixedSizeArrayBuilder<TValue>(
States
.Count);
134
foreach (var (_, state) in
States
)
150
States
.AddRange(states.Select(state => KeyValuePairUtil.Create(state.Id, state))),
172
return new(_ids.RemoveRange(enumerableIds),
States
.RemoveRange(enumerableIds), filePathToDocumentIds: null);
180
var builder =
States
.ToBuilder();
186
var oldState =
States
[id];
200
var builder =
States
.ToBuilder();
202
foreach (var (id, state) in
States
)
234
var newState =
States
[id];
273
=> !
States
.Values.SequenceEqual(oldStates.
States
.Values);
282
=>
States
== other.
States
&& _ids == other.Ids;
309
var attributeChecksums = new FixedSizeArrayBuilder<Checksum>(
States
.Count);
310
var textChecksums = new FixedSizeArrayBuilder<Checksum>(
States
.Count);
311
var documentIds = new FixedSizeArrayBuilder<DocumentId>(
States
.Count);
313
foreach (var (documentId, state) in
States
)
359
foreach (var (documentId, state) in
States
)