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