Skip to content

Commit

Permalink
AnalysisDriver. Produce results for all files of a library.
Browse files Browse the repository at this point in the history
Change-Id: I0118ccdbd4a9059eb3809cb3b6a694731621d809
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345363
Commit-Queue: Konstantin Shcheglov <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>
  • Loading branch information
scheglov authored and Commit Queue committed Jan 11, 2024
1 parent 19546dd commit 89bd370
Show file tree
Hide file tree
Showing 6 changed files with 1,491 additions and 747 deletions.
7 changes: 7 additions & 0 deletions pkg/analysis_server/test/integration/analysis/error_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,15 @@ void f() {
await sendServerSetSubscriptions([ServerService.STATUS]);
await sendAnalysisUpdateContent({filePath: AddContentOverlay(content)});
await sendAnalysisSetAnalysisRoots([packagePath], []);

await analysisFinished;

// TODO(scheglov): https://github.com/dart-lang/sdk/issues/54577
// `await analysisFinished` should be enough, but was not promised.
while (currentAnalysisErrors[filePath] == null) {
await pumpEventQueue();
}

expect(currentAnalysisErrors[filePath], isList);
var errors = existingErrorsForFile(filePath);
expect(errors, hasLength(1));
Expand Down
Loading

0 comments on commit 89bd370

Please sign in to comment.