11 references to WhenInitializedTask
Microsoft.CodeAnalysis (11)
DiagnosticAnalyzer\AnalyzerDriver.cs (7)
386
/// It kicks off the <see cref="
WhenInitializedTask
"/> task for initialization.
625
/// <remarks>Driver must be initialized before invoking this method, i.e. <see cref="Initialize(AnalyzerExecutor, DiagnosticQueue, CompilationData, ConcurrentSet{string}, CancellationToken)"/> method must have been invoked and <see cref="
WhenInitializedTask
"/> must be non-null.</remarks>
657
/// <remarks>Driver must be initialized before invoking this method, i.e. <see cref="Initialize(AnalyzerExecutor, DiagnosticQueue, CompilationData, ConcurrentSet{string}, CancellationToken)"/> method must have been invoked and <see cref="
WhenInitializedTask
"/> must be non-null.</remarks>
692
await
WhenInitializedTask
.ConfigureAwait(false);
694
if (
WhenInitializedTask
.IsFaulted)
696
OnDriverException(
WhenInitializedTask
, this.AnalyzerExecutor, analysisScope.Analyzers);
698
else if (!
WhenInitializedTask
.IsCanceled)
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (4)
635
Debug.Assert(!driver.
WhenInitializedTask
.IsCanceled);
752
await driver.
WhenInitializedTask
.ConfigureAwait(false);
1090
await driver.
WhenInitializedTask
.ConfigureAwait(false);
1114
if (!driver.IsInitialized || driver.
WhenInitializedTask
.IsCanceled)