3 instantiations of CompilationUnitCompletedEvent
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (2)
1015
var compilationUnitCompletedEvent = new
CompilationUnitCompletedEvent
(compilation, analysisScope.FilterFileOpt!.Value.SourceTree!, analysisScope.FilterSpanOpt);
1103
builder.Add(new
CompilationUnitCompletedEvent
(compilation, tree, analysisScope.FilterSpanOpt));
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
2726
EventQueue?.TryEnqueue(new
CompilationUnitCompletedEvent
(this, tree));
10 references to CompilationUnitCompletedEvent
Microsoft.CodeAnalysis (9)
DiagnosticAnalyzer\AnalyzerActionCounts.cs (1)
186
/// such as <see cref="SymbolDeclaredCompilationEvent"/>, <see cref="
CompilationUnitCompletedEvent
"/>, etc.
DiagnosticAnalyzer\AnalyzerDriver.cs (3)
1686
case
CompilationUnitCompletedEvent
compilationUnitCompletedEvent when !compilationUnitCompletedEvent.FilterSpan.HasValue:
1742
case
CompilationUnitCompletedEvent
completedEvent:
1918
private void ProcessCompilationUnitCompleted(
CompilationUnitCompletedEvent
completedEvent, AnalysisScope analysisScope, CancellationToken cancellationToken)
DiagnosticAnalyzer\CachingSemanticModelProvider.cs (1)
19
/// <see cref="AnalyzerDriver"/> executing analyzers clears per-tree entries in the cache whenever a <see cref="
CompilationUnitCompletedEvent
"/>
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (4)
959
compilationEvents = compilationEvents.WhereAsArray(e => e is not
CompilationUnitCompletedEvent
c || !c.FilterSpan.HasValue);
960
Debug.Assert(compilationEvents.Count(e => e is
CompilationUnitCompletedEvent
c && !c.FilterSpan.HasValue) == 1);
1015
var
compilationUnitCompletedEvent = new CompilationUnitCompletedEvent(compilation, analysisScope.FilterFileOpt!.Value.SourceTree!, analysisScope.FilterSpanOpt);
1079
case
CompilationUnitCompletedEvent
compilationUnitCompletedEvent:
Microsoft.CodeAnalysis.CSharp (1)
Compilation\CSharpCompilation.cs (1)
136
/// The set of trees for which a <see cref="
CompilationUnitCompletedEvent
"/> has been added to the queue.