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

Issue 608363003: Issue 19670. 'Create field' quick fix. (Closed)

Created:
6 years, 2 months ago by scheglov
Modified:
6 years, 2 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -17 lines) Patch
M pkg/analysis_server/lib/src/services/correction/fix.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/analysis_server/lib/src/services/correction/fix_internal.dart View 10 chunks +131 lines, -17 lines 1 comment Download
M pkg/analysis_server/test/services/correction/fix_test.dart View 1 chunk +104 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
scheglov
6 years, 2 months ago (2014-09-29 19:23:34 UTC) #1
Brian Wilkerson
LGTM
6 years, 2 months ago (2014-09-29 19:44:27 UTC) #2
scheglov
Committed patchset #1 (id:1) manually as 40782 (presubmit successful).
6 years, 2 months ago (2014-09-29 19:45:39 UTC) #3
Paul Berry
6 years, 2 months ago (2014-09-29 20:08:00 UTC) #4
Message was sent while issue was closed.
lgtm once the following issue is resolved.

https://codereview.chromium.org/608363003/diff/1/pkg/analysis_server/lib/src/...
File pkg/analysis_server/lib/src/services/correction/fix_internal.dart (right):

https://codereview.chromium.org/608363003/diff/1/pkg/analysis_server/lib/src/...
pkg/analysis_server/lib/src/services/correction/fix_internal.dart:1354: return;
I don't understand why we want to return in this case.  It seems to me that if
the code is:

class A {
  foo() {
    print(x);
  }
}

we should still offer "create field x" as a fix, even though there is no
assignment ancestor.

Powered by Google App Engine
This is Rietveld 408576698