3 instantiations of CompilationCache
Microsoft.CodeAnalysis (3)
SourceGeneration\CompilationCache.cs (3)
36public static readonly CompilationCache Empty = new(); 131return new CompilationCache(_compilationWithPostInit, _inputCompilation, ImmutableArray<SyntaxTree>.Empty, ImmutableArray<PreCompCacheKey>.Empty); 148return new CompilationCache(newCompilation, _inputCompilation, postInitTrees, preCompKeys);
10 references to CompilationCache
Microsoft.CodeAnalysis (10)
SourceGeneration\CompilationCache.cs (6)
36public static readonly CompilationCache Empty = new(); 81private readonly CompilationCache _previous; 88internal 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. 118public 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)
25CompilationCache compilationCache) 113internal readonly CompilationCache CompilationCache; 125CompilationCache? compilationCache = null)