4 types derived from CompilationEvent
Microsoft.CodeAnalysis (4)
DiagnosticAnalyzer\CompilationCompletedEvent.cs (1)
10
internal sealed class CompilationCompletedEvent :
CompilationEvent
DiagnosticAnalyzer\CompilationStartedEvent.cs (1)
12
internal sealed class CompilationStartedEvent :
CompilationEvent
DiagnosticAnalyzer\CompilationUnitCompletedEvent.cs (1)
11
internal sealed class CompilationUnitCompletedEvent :
CompilationEvent
DiagnosticAnalyzer\SymbolDeclaredCompilationEvent.cs (1)
16
internal sealed class SymbolDeclaredCompilationEvent :
CompilationEvent
39 references to CompilationEvent
Microsoft.CodeAnalysis (39)
Compilation\Compilation.cs (3)
82
AsyncQueue<
CompilationEvent
>? eventQueue)
299
internal abstract Compilation WithEventQueue(AsyncQueue<
CompilationEvent
>? eventQueue);
641
internal AsyncQueue<
CompilationEvent
>? EventQueue { get; }
DiagnosticAnalyzer\AnalyzerDriver.cs (12)
28
/// It uses a <see cref="AsyncQueue{TElement}"/> of <see cref="
CompilationEvent
"/>s to drive its analysis.
336
private AsyncQueue<
CompilationEvent
>? _lazyCompilationEventQueue;
341
public AsyncQueue<
CompilationEvent
> CompilationEventQueue
635
internal async Task AttachQueueAndProcessAllEventsAsync(AsyncQueue<
CompilationEvent
> eventQueue, AnalysisScope analysisScope, CancellationToken cancellationToken)
664
internal void AttachQueueAndStartProcessingEvents(AsyncQueue<
CompilationEvent
> eventQueue, AnalysisScope analysisScope, bool usingPrePopulatedEventQueue, CancellationToken cancellationToken)
848
.WithEventQueue(new AsyncQueue<
CompilationEvent
>());
1593
if (!CompilationEventQueue.TryDequeue(out
var
compilationEvent))
1634
private async Task ProcessEventAsync(
CompilationEvent
e, AnalysisScope analysisScope, CancellationToken cancellationToken)
1656
private async Task OnEventProcessedCoreAsync(
CompilationEvent
compilationEvent, ImmutableArray<DiagnosticAnalyzer> processedAnalyzers, AnalysisScope analysisScope, CancellationToken cancellationToken)
1718
private async ValueTask<EventProcessedState> TryProcessEventCoreAsync(
CompilationEvent
compilationEvent, AnalysisScope analysisScope, CancellationToken cancellationToken)
1940
CompilationEvent
compilationEvent,
2401
/// It uses a <see cref="AsyncQueue{TElement}"/> of <see cref="
CompilationEvent
"/>s to drive its analysis.
DiagnosticAnalyzer\AnalyzerDriver.EventProcessedState.cs (1)
12
/// Used to represent state of processing of a <see cref="
CompilationEvent
"/>.
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
318
CompilationEvent
compilationEvent,
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (22)
44
private static readonly AsyncQueue<
CompilationEvent
> s_EmptyEventQueue = new AsyncQueue<
CompilationEvent
>();
101
.WithEventQueue(new AsyncQueue<
CompilationEvent
>());
305
var compilation = _compilation.WithEventQueue(new AsyncQueue<
CompilationEvent
>());
726
: _compilation.WithSemanticModelProvider(new CachingSemanticModelProvider()).WithEventQueue(new AsyncQueue<
CompilationEvent
>());
769
var builder = ArrayBuilder<(AnalysisScope, ImmutableArray<
CompilationEvent
>)>.GetInstance();
815
ArrayBuilder<(AnalysisScope, ImmutableArray<
CompilationEvent
>)> builder,
878
ImmutableArray<
CompilationEvent
> compilationEventsForTree,
882
ArrayBuilder<(AnalysisScope, ImmutableArray<
CompilationEvent
>)> builder,
903
foreach (
var
compilationEvent in compilationEventsForTree)
935
bool tryProcessTree(SyntaxTree partialTree, [NotNullWhen(true)] out (AnalysisScope scope, ImmutableArray<
CompilationEvent
> events)? scopeAndEvents)
987
private static ImmutableArray<
CompilationEvent
> GetCompilationEventsForSingleFileAnalysis(
998
return ImmutableArray<
CompilationEvent
>.Empty;
1014
return ImmutableArray.Create<
CompilationEvent
>(compilationStartedEvent, compilationUnitCompletedEvent);
1039
static ImmutableArray<
CompilationEvent
> dequeueAndFilterCompilationEvents(
1051
return ImmutableArray<
CompilationEvent
>.Empty;
1061
var builder = ArrayBuilder<
CompilationEvent
>.GetInstance();
1062
while (eventQueue.TryDequeue(out
CompilationEvent
compilationEvent))
1134
private static AsyncQueue<
CompilationEvent
> CreateEventsQueue(ImmutableArray<
CompilationEvent
> compilationEvents)
1141
var eventQueue = new AsyncQueue<
CompilationEvent
>();
1142
foreach (
var
compilationEvent in compilationEvents)