10 references to CompilationEventQueue
Microsoft.CodeAnalysis (10)
DiagnosticAnalyzer\AnalyzerDriver.cs (10)
325/// Primary driver task which processes all <see cref="CompilationEventQueue"/> events, runs analyzer actions and signals completion of <see cref="DiagnosticQueue"/> at the end. 671this.CompilationEventQueue.TryComplete(); 859/// If <see cref="CompilationEventQueue"/> has been completed with all compilation events, then it waits for 865if (CompilationEventQueue.IsCompleted) 1517var workerCount = prePopulatedEventQueue ? Math.Min(CompilationEventQueue.Count, _workerCount) : _workerCount; 1585if ((prePopulatedEventQueue || CompilationEventQueue.IsCompleted) && 1586CompilationEventQueue.Count == 0) 1591if (!CompilationEventQueue.TryDequeue(out var compilationEvent)) 1595var optionalEvent = await CompilationEventQueue.TryDequeueAsync(cancellationToken).ConfigureAwait(false); 1601Debug.Assert(CompilationEventQueue.IsCompleted, "TryDequeueAsync should provide a value unless the AsyncQueue<T> is completed.");