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

Issue 2965533002: Use AnalysisDriver.getCachedResult() for 'implemented' notification. (Closed)

Created:
3 years, 5 months ago by scheglov
Modified:
3 years, 5 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Use AnalysisDriver.getCachedResult() for 'implemented' notification. In general case we cannot use getResult() in this notification. We generate these notifications after analysis is complete in scheduler. But if there is no cached result, getResult() will schedule analysis. So, we might get into a loop. In practice this worked, because IDEA always makes files priority, so their results cached, and then subscribes for notifications. But in general case we need this protection. This also means that the 'implemented' notification works (and will work) only for priority files. R=brianwilkerson@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/b3fe98537120092c455e5f44a4846ce9a82f124d

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -50 lines) Patch
M pkg/analysis_server/lib/src/analysis_server.dart View 1 chunk +13 lines, -0 lines 0 comments Download
M pkg/analysis_server/lib/src/operation/operation_analysis.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/test/analysis/notification_implemented_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analysis_server/test/analysis_abstract.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/dart/analysis/driver.dart View 2 chunks +18 lines, -4 lines 0 comments Download
M pkg/analyzer/test/src/dart/analysis/driver_test.dart View 3 chunks +57 lines, -45 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
scheglov
3 years, 5 months ago (2017-06-29 15:54:37 UTC) #1
Brian Wilkerson
lgtm
3 years, 5 months ago (2017-06-29 16:07:17 UTC) #2
scheglov
3 years, 5 months ago (2017-06-29 16:57:26 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
b3fe98537120092c455e5f44a4846ce9a82f124d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698