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