9 references to WhenInitializedTask
Microsoft.CodeAnalysis (9)
DiagnosticAnalyzer\AnalyzerDriver.cs (7)
388/// It kicks off the <see cref="WhenInitializedTask"/> task for initialization. 634/// <remarks>Driver must be initialized before invoking this method, i.e. <see cref="Initialize(AnalyzerExecutor, DiagnosticQueue, CompilationData, AnalysisScope, ConcurrentSet{string}, CancellationToken)"/> method must have been invoked and <see cref="WhenInitializedTask"/> must be non-null.</remarks> 663/// <remarks>Driver must be initialized before invoking this method, i.e. <see cref="Initialize(AnalyzerExecutor, DiagnosticQueue, CompilationData, AnalysisScope, ConcurrentSet{string}, CancellationToken)"/> method must have been invoked and <see cref="WhenInitializedTask"/> must be non-null.</remarks> 698await WhenInitializedTask.ConfigureAwait(false); 700if (WhenInitializedTask.IsFaulted) 702OnDriverException(WhenInitializedTask, this.AnalyzerExecutor, analysisScope.Analyzers, cancellationToken); 704else if (!WhenInitializedTask.IsCanceled)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (2)
383await driver.WhenInitializedTask.ConfigureAwait(false); 733Debug.Assert(!driver.WhenInitializedTask.IsCanceled);