Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(667)

Issue 2665263002: Streamline AnalysisDriver status tracking. (Closed)

Created:
3 years, 10 months ago by Paul Berry
Modified:
3 years, 10 months ago
Reviewers:
scheglov
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Streamline AnalysisDriver status tracking. - Removed AnalysisDriver.status stream. Outside of tests, we weren't using it. Inside of tests, it was easy to switch to AnalysisDriverScheduler.status. - Moved waitForIdle from AnalysisDriver to AnalysisDriverScheduler. - Added a mechanism to ensure that AnalysisDriverScheduler.waitForIdle really waits for idle, even if AnalysisDriverScheduler.status hasn't been notified that we are analyzing yet. This mechanism does the right thing even if we later discover that there is no analysis to be done (and so no event is ever sent to AnalysisDriverScheduler.status). - Removed an unnecessary check from the loop in AnalysisDriverScheduler._run(). R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/6f0f50dc1ed5820bdbb5b6bf5f8c93baef97d4cb

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -94 lines) Patch
M pkg/analysis_server/lib/src/analysis_server.dart View 1 chunk +0 lines, -3 lines 0 comments Download
M pkg/analyzer/lib/src/dart/analysis/driver.dart View 16 chunks +10 lines, -30 lines 0 comments Download
M pkg/analyzer/lib/src/dart/analysis/status.dart View 3 chunks +15 lines, -8 lines 2 comments Download
M pkg/analyzer/test/src/dart/analysis/base.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/test/src/dart/analysis/driver_test.dart View 43 chunks +48 lines, -52 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Paul Berry
3 years, 10 months ago (2017-01-31 23:46:47 UTC) #2
scheglov
LGTM https://codereview.chromium.org/2665263002/diff/1/pkg/analyzer/lib/src/dart/analysis/status.dart File pkg/analyzer/lib/src/dart/analysis/status.dart (right): https://codereview.chromium.org/2665263002/diff/1/pkg/analyzer/lib/src/dart/analysis/status.dart#newcode103 pkg/analyzer/lib/src/dart/analysis/status.dart:103: * Send a notifications to the [stream] that ...
3 years, 10 months ago (2017-02-01 00:35:58 UTC) #3
Paul Berry
https://codereview.chromium.org/2665263002/diff/1/pkg/analyzer/lib/src/dart/analysis/status.dart File pkg/analyzer/lib/src/dart/analysis/status.dart (right): https://codereview.chromium.org/2665263002/diff/1/pkg/analyzer/lib/src/dart/analysis/status.dart#newcode103 pkg/analyzer/lib/src/dart/analysis/status.dart:103: * Send a notifications to the [stream] that the ...
3 years, 10 months ago (2017-02-01 17:17:34 UTC) #4
Paul Berry
3 years, 10 months ago (2017-02-01 17:22:59 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
6f0f50dc1ed5820bdbb5b6bf5f8c93baef97d4cb (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698