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)
49
public Compilation Compilation =>
_compilation
;
108
_compilationAnalysisScope = AnalysisScope.Create(
_compilation
, _analyzers, this);
193
if (!
_compilation
.ContainsSyntaxTree(model.SyntaxTree))
206
if (!
_compilation
.ContainsSyntaxTree(tree))
305
var 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>());
1299
using var driver = await CreateAndInitializeDriverAsync(
_compilation
, _analysisOptions, analysisScope, _suppressors, categorizeDiagnostics: true, cancellationToken).ConfigureAwait(false);
1301
return await driver.GetAnalyzerActionCountsAsync(analyzer,
_compilation
.Options, analysisScope, cancellationToken).ConfigureAwait(false);