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

Issue 618833003: Add 'Introduce new local with cast type' quick assist. (Closed)

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

Description

Add 'Introduce new local with cast type' quick assist. Unfortunately we still often need it in Dart, as we always need it in Java. Type promotion does not work for "if (name is Type)" if "name" is a field, an expression or "name" is modified _anywhere_ in the function. R=paulberry@google.com, brianwilkerson@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=40824

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -50 lines) Patch
M pkg/analysis_server/lib/src/services/correction/assist.dart View 4 chunks +37 lines, -41 lines 2 comments Download
M pkg/analysis_server/lib/src/services/correction/assist_internal.dart View 5 chunks +81 lines, -5 lines 2 comments Download
M pkg/analysis_server/test/services/correction/assist_test.dart View 2 chunks +82 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
scheglov
6 years, 2 months ago (2014-09-30 20:15:04 UTC) #1
Paul Berry
lgtm https://codereview.chromium.org/618833003/diff/1/pkg/analysis_server/lib/src/services/correction/assist.dart File pkg/analysis_server/lib/src/services/correction/assist.dart (right): https://codereview.chromium.org/618833003/diff/1/pkg/analysis_server/lib/src/services/correction/assist.dart#newcode76 pkg/analysis_server/lib/src/services/correction/assist.dart:76: "Introduce new local with cast type"); I think ...
6 years, 2 months ago (2014-09-30 20:34:46 UTC) #2
scheglov
https://codereview.chromium.org/618833003/diff/1/pkg/analysis_server/lib/src/services/correction/assist.dart File pkg/analysis_server/lib/src/services/correction/assist.dart (right): https://codereview.chromium.org/618833003/diff/1/pkg/analysis_server/lib/src/services/correction/assist.dart#newcode76 pkg/analysis_server/lib/src/services/correction/assist.dart:76: "Introduce new local with cast type"); On 2014/09/30 20:34:46, ...
6 years, 2 months ago (2014-09-30 20:44:07 UTC) #3
scheglov
Committed patchset #1 (id:1) manually as 40824 (presubmit successful).
6 years, 2 months ago (2014-09-30 20:45:14 UTC) #4
Brian Wilkerson
6 years, 2 months ago (2014-09-30 21:36:09 UTC) #5
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698