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

Issue 892493003: Fix incremental resolution of files referenced by multiple contexts. (Closed)

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

Description

Fix incremental resolution of files referenced by multiple contexts. There were two problems: 1. When a file was set as a priority, we weren't propagating that information to all contexts; as a result, the resolved AST wasn't cached in all contexts, so incremental resolution wasn't able to take place in all contexts. 2. In setPriorityFiles we weren't scheduling analysis operations, so even after the file was made a priority, its resolved AST wouldn't be available until some other event triggered analysis in that context. BUG=dartbug.com/22209 R=scheglov@google.com Committed: https://code.google.com/p/dart/source/detail?r=43323

Patch Set 1 #

Patch Set 2 : Fix test breakage #

Patch Set 3 : Remove temporary testing code #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -9 lines) Patch
M pkg/analysis_server/lib/src/analysis_server.dart View 1 2 chunks +18 lines, -9 lines 5 comments Download

Messages

Total messages: 6 (1 generated)
Paul Berry
5 years, 10 months ago (2015-01-29 23:03:39 UTC) #2
scheglov
LGTM Would be nice to have a test. https://codereview.chromium.org/892493003/diff/40001/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/892493003/diff/40001/pkg/analysis_server/lib/src/analysis_server.dart#newcode852 pkg/analysis_server/lib/src/analysis_server.dart:852: context.getKindOf(source) ...
5 years, 10 months ago (2015-01-29 23:22:16 UTC) #3
Paul Berry
(Brian, I've added you to see if you can advise on whether resolveCompilationUnit2() is safe ...
5 years, 10 months ago (2015-01-30 00:19:45 UTC) #4
scheglov
Even more LGTM :-) https://codereview.chromium.org/892493003/diff/40001/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/892493003/diff/40001/pkg/analysis_server/lib/src/analysis_server.dart#newcode875 pkg/analysis_server/lib/src/analysis_server.dart:875: schedulePerformAnalysisOperation(context); You are right, _getNextAnalysisTaskForSource ...
5 years, 10 months ago (2015-01-30 00:25:49 UTC) #5
Paul Berry
5 years, 10 months ago (2015-01-30 00:28:03 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 43323 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698