1 instantiation of PerCompilationProvider
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\CachingSemanticModelProvider.cs (1)
27
= new ConditionalWeakTable<Compilation, PerCompilationProvider>.CreateValueCallback(compilation => new
PerCompilationProvider
(compilation));
5 references to PerCompilationProvider
Microsoft.CodeAnalysis (5)
DiagnosticAnalyzer\CachingSemanticModelProvider.cs (5)
26
private static readonly ConditionalWeakTable<Compilation,
PerCompilationProvider
>.CreateValueCallback s_createProviderCallback
27
= new ConditionalWeakTable<Compilation,
PerCompilationProvider
>.CreateValueCallback(compilation => new PerCompilationProvider(compilation));
29
private readonly ConditionalWeakTable<Compilation,
PerCompilationProvider
> _providerCache;
33
_providerCache = new ConditionalWeakTable<Compilation,
PerCompilationProvider
>();
41
if (_providerCache.TryGetValue(compilation, out
var
provider))