Skip to content

Commit 8ed5503

Browse files
srawlinsCommit Queue
authored andcommitted
dartdev: Add comment about analysisFinished.
Change-Id: Iefd2daa478e0b8426e9d8786c169fd8cbdd5e5c5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/405560 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
1 parent 994b474 commit 8ed5503

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/dartdev/lib/src/commands/analyze.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ class AnalyzeCommand extends DartdevCommand {
214214
io.exit(_Result.crash.exitCode);
215215
});
216216

217+
// Note that we could be awaiting `null` here, if
218+
// `AnalysisServer._analysisFinished` has not been initialized yet.
217219
await server.analysisFinished;
218220
analysisFinished = true;
219221

0 commit comments

Comments
 (0)