1 write to _compilation
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
102_compilation = compilation;
11 references to _compilation
Microsoft.CodeAnalysis (11)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (11)
49public Compilation Compilation => _compilation; 108_compilationAnalysisScope = AnalysisScope.Create(_compilation, _analyzers, this); 193if (!_compilation.ContainsSyntaxTree(model.SyntaxTree)) 206if (!_compilation.ContainsSyntaxTree(tree)) 305var compilation = _compilation.WithEventQueue(new AsyncQueue<CompilationEvent>()); 672/// PERF: We re-use the underlying <see cref="_compilation"/> for the below cases: 675/// For rest of the cases, we always fork the underlying <see cref="_compilation"/> with a 725? _compilation 726: _compilation.WithSemanticModelProvider(new CachingSemanticModelProvider()).WithEventQueue(new AsyncQueue<CompilationEvent>()); 1299using var driver = await CreateAndInitializeDriverAsync(_compilation, _analysisOptions, analysisScope, _suppressors, categorizeDiagnostics: true, cancellationToken).ConfigureAwait(false); 1301return await driver.GetAnalyzerActionCountsAsync(analyzer, _compilation.Options, analysisScope, cancellationToken).ConfigureAwait(false);