9 references to WhenInitializedTask
Microsoft.CodeAnalysis (9)
DiagnosticAnalyzer\AnalyzerDriver.cs (7)
387/// It kicks off the <see cref="WhenInitializedTask"/> task for initialization. 633/// <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> 662/// <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> 697await WhenInitializedTask.ConfigureAwait(false); 699if (WhenInitializedTask.IsFaulted) 701OnDriverException(WhenInitializedTask, this.AnalyzerExecutor, analysisScope.Analyzers, cancellationToken); 703else if (!WhenInitializedTask.IsCanceled)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (2)
383await driver.WhenInitializedTask.ConfigureAwait(false); 733Debug.Assert(!driver.WhenInitializedTask.IsCanceled);