3 instantiations of CompilationCache
Microsoft.CodeAnalysis (3)
SourceGeneration\CompilationCache.cs (3)
36
public static readonly CompilationCache Empty =
new
();
131
return new
CompilationCache
(_compilationWithPostInit, _inputCompilation, ImmutableArray<SyntaxTree>.Empty, ImmutableArray<PreCompCacheKey>.Empty);
148
return new
CompilationCache
(newCompilation, _inputCompilation, postInitTrees, preCompKeys);
10 references to CompilationCache
Microsoft.CodeAnalysis (10)
SourceGeneration\CompilationCache.cs (6)
36
public static readonly
CompilationCache
Empty = new();
81
private readonly
CompilationCache
_previous;
88
internal Builder(
CompilationCache
previous, Compilation inputCompilation, Compilation compilationWithPostInit)
114
/// producing a new entry. Always returns a cache whose <see cref="
CompilationCache
.Compilation"/>
116
/// <see cref="
CompilationCache
"/> indicates the cache state is unchanged.
118
public
CompilationCache
ToImmutableAndFree()
SourceGeneration\GeneratorDriver.cs (1)
40
_state = new GeneratorDriverState(parseOptions, optionsProvider, generators, incrementalGenerators, additionalTexts, ImmutableArray.Create(new GeneratorState[generators.Length]), DriverStateTable.Empty, SyntaxStore.Empty, driverOptions, runtime: TimeSpan.Zero, compilationCache:
CompilationCache
.Empty);
SourceGeneration\GeneratorDriverState.cs (3)
25
CompilationCache
compilationCache)
113
internal readonly
CompilationCache
CompilationCache;
125
CompilationCache
? compilationCache = null)