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

Issue 2532393008: Add libraries in corrections using SourceInfo instance of LibraryElement. (Closed)

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

Description

Add libraries in corrections using SourceInfo instance of LibraryElement. We are not going to have LibraryElement(s) for the new analysis driver. The current approach: get known library sources, compute their elements, import these elements does not work well when there is no analysis cache. R=brianwilkerson@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/2368a59d6046596e154e7f27fc391a5fdc0f77fd

Patch Set 1 #

Total comments: 2

Patch Set 2 : Replace SourceInfo with Source. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -79 lines) Patch
M pkg/analysis_server/lib/src/services/correction/assist_internal.dart View 1 4 chunks +4 lines, -4 lines 0 comments Download
M pkg/analysis_server/lib/src/services/correction/fix_internal.dart View 1 4 chunks +7 lines, -7 lines 0 comments Download
M pkg/analysis_server/lib/src/services/correction/util.dart View 1 8 chunks +9 lines, -9 lines 0 comments Download
M pkg/analysis_server/lib/src/services/refactoring/extract_method.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/analysis_server/lib/src/utilities/change_builder_dart.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/analysis_server/test/services/correction/util_test.dart View 1 16 chunks +44 lines, -56 lines 2 comments Download

Messages

Total messages: 7 (1 generated)
scheglov
4 years ago (2016-12-01 17:33:31 UTC) #1
Brian Wilkerson
https://codereview.chromium.org/2532393008/diff/1/pkg/analysis_server/lib/src/services/correction/util.dart File pkg/analysis_server/lib/src/services/correction/util.dart (right): https://codereview.chromium.org/2532393008/diff/1/pkg/analysis_server/lib/src/services/correction/util.dart#newcode1551 pkg/analysis_server/lib/src/services/correction/util.dart:1551: class SourceInfo { I don't understand the need for ...
4 years ago (2016-12-01 17:52:54 UTC) #2
scheglov
PTAL https://codereview.chromium.org/2532393008/diff/1/pkg/analysis_server/lib/src/services/correction/util.dart File pkg/analysis_server/lib/src/services/correction/util.dart (right): https://codereview.chromium.org/2532393008/diff/1/pkg/analysis_server/lib/src/services/correction/util.dart#newcode1551 pkg/analysis_server/lib/src/services/correction/util.dart:1551: class SourceInfo { On 2016/12/01 17:52:54, Brian Wilkerson ...
4 years ago (2016-12-01 18:05:21 UTC) #3
Brian Wilkerson
lgtm https://codereview.chromium.org/2532393008/diff/20001/pkg/analysis_server/test/services/correction/util_test.dart File pkg/analysis_server/test/services/correction/util_test.dart (right): https://codereview.chromium.org/2532393008/diff/20001/pkg/analysis_server/test/services/correction/util_test.dart#newcode261 pkg/analysis_server/test/services/correction/util_test.dart:261: Source _getDartSourceInfo(String uri) { Maybe drop the "Info" ...
4 years ago (2016-12-01 18:20:42 UTC) #4
scheglov
https://codereview.chromium.org/2532393008/diff/20001/pkg/analysis_server/test/services/correction/util_test.dart File pkg/analysis_server/test/services/correction/util_test.dart (right): https://codereview.chromium.org/2532393008/diff/20001/pkg/analysis_server/test/services/correction/util_test.dart#newcode261 pkg/analysis_server/test/services/correction/util_test.dart:261: Source _getDartSourceInfo(String uri) { On 2016/12/01 18:20:42, Brian Wilkerson ...
4 years ago (2016-12-01 18:21:29 UTC) #5
scheglov
4 years ago (2016-12-01 18:22:56 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
2368a59d6046596e154e7f27fc391a5fdc0f77fd (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698