9 references to ChecksumCache
Microsoft.CodeAnalysis.Workspaces (9)
FindSymbols\SymbolTree\SymbolTreeInfo_Metadata.cs (2)
193
if (
ChecksumCache
.TryGetValue(reference, out var cached))
203
return
ChecksumCache
.GetOrCreate(reference, _ =>
Workspace\Solution\ProjectState_Checksum.cs (5)
41
?
ChecksumCache
.GetOrCreate(this.ParseOptions, _ => serializer.CreateParseOptionsChecksum(this.ParseOptions))
59
var compilationOptionsChecksum = SupportsCompilation ?
ChecksumCache
.GetOrCreate(CompilationOptions, _ => serializer.CreateChecksum(CompilationOptions, cancellationToken)) : Checksum.Null;
63
var projectReferenceChecksums =
ChecksumCache
.GetOrCreate<ChecksumCollection>(ProjectReferences, _ => new ChecksumCollection(ProjectReferences.SelectAsArray(r => serializer.CreateChecksum(r, cancellationToken))));
64
var metadataReferenceChecksums =
ChecksumCache
.GetOrCreate<ChecksumCollection>(MetadataReferences, _ => new ChecksumCollection(MetadataReferences.SelectAsArray(r => serializer.CreateChecksum(r, cancellationToken))));
65
var analyzerReferenceChecksums =
ChecksumCache
.GetOrCreate<ChecksumCollection>(AnalyzerReferences, _ => new ChecksumCollection(AnalyzerReferences.SelectAsArray(r => serializer.CreateChecksum(r, cancellationToken))));
Workspace\Solution\SolutionState_Checksum.cs (2)
123
var orderedProjectIds =
ChecksumCache
.GetOrCreate(ProjectIds, _ => ProjectIds.OrderBy(id => id.Id).ToImmutableArray());
157
var analyzerReferenceChecksums =
ChecksumCache
.GetOrCreate<ChecksumCollection>(AnalyzerReferences,