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

Issue 3002643002: Fix insertion of imports when there are no existing directives (issue 30430) (Closed)

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

Description

Fix insertion of imports when there are no existing directives (issue 30430) R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/eaf779ba1ebd6916d50df00f55f99a0db564148c

Patch Set 1 #

Total comments: 6

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -31 lines) Patch
M pkg/analysis_server/lib/src/computer/import_elements_computer.dart View 1 5 chunks +54 lines, -31 lines 0 comments Download
M pkg/analysis_server/test/src/computer/import_elements_computer_test.dart View 1 chunk +18 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/src/computer/imported_elements_computer_test.dart View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Brian Wilkerson
3 years, 4 months ago (2017-08-14 18:30:21 UTC) #2
scheglov
LGTM https://codereview.chromium.org/3002643002/diff/1/pkg/analysis_server/lib/src/computer/import_elements_computer.dart File pkg/analysis_server/lib/src/computer/import_elements_computer.dart (right): https://codereview.chromium.org/3002643002/diff/1/pkg/analysis_server/lib/src/computer/import_elements_computer.dart#newcode353 pkg/analysis_server/lib/src/computer/import_elements_computer.dart:353: _InsertionDescription _offsetForInsertion(String importUri) { Maybe rename the method, ...
3 years, 4 months ago (2017-08-14 18:37:51 UTC) #3
Brian Wilkerson
https://codereview.chromium.org/3002643002/diff/1/pkg/analysis_server/lib/src/computer/import_elements_computer.dart File pkg/analysis_server/lib/src/computer/import_elements_computer.dart (right): https://codereview.chromium.org/3002643002/diff/1/pkg/analysis_server/lib/src/computer/import_elements_computer.dart#newcode353 pkg/analysis_server/lib/src/computer/import_elements_computer.dart:353: _InsertionDescription _offsetForInsertion(String importUri) { Done https://codereview.chromium.org/3002643002/diff/1/pkg/analysis_server/lib/src/computer/import_elements_computer.dart#newcode429 pkg/analysis_server/lib/src/computer/import_elements_computer.dart:429: _InsertionDescription(this.offset, this.newLinesBefore, ...
3 years, 4 months ago (2017-08-14 19:59:20 UTC) #4
Brian Wilkerson
ptal
3 years, 4 months ago (2017-08-14 20:05:44 UTC) #5
scheglov
LGTM
3 years, 4 months ago (2017-08-14 20:06:52 UTC) #6
Brian Wilkerson
3 years, 4 months ago (2017-08-14 20:33:03 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
eaf779ba1ebd6916d50df00f55f99a0db564148c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698