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

Issue 725393002: Issue 21612. Support for multiple returns in the 'Extract Method' refactoring. (Closed)

Created:
6 years, 1 month ago by scheglov
Modified:
6 years, 1 month ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Issue 21612. Support for multiple returns in the 'Extract Method' refactoring. R=brianwilkerson@google.com BUG= https://code.google.com/p/dart/issues/detail?id=21612 Committed: https://code.google.com/p/dart/source/detail?r=41758

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -9 lines) Patch
M pkg/analysis_server/lib/src/services/refactoring/extract_method.dart View 2 chunks +27 lines, -8 lines 2 comments Download
M pkg/analysis_server/test/services/refactoring/extract_method_test.dart View 1 chunk +89 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/services/refactoring/inline_method_test.dart View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
scheglov
6 years, 1 month ago (2014-11-15 01:21:24 UTC) #1
Brian Wilkerson
LGTM https://codereview.chromium.org/725393002/diff/1/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart File pkg/analysis_server/lib/src/services/refactoring/extract_method.dart (right): https://codereview.chromium.org/725393002/diff/1/pkg/analysis_server/lib/src/services/refactoring/extract_method.dart#newcode1116 pkg/analysis_server/lib/src/services/refactoring/extract_method.dart:1116: returnType = returnType.getLeastUpperBound(type); I'm going to guess that ...
6 years, 1 month ago (2014-11-15 01:32:39 UTC) #2
scheglov
Committed patchset #1 (id:1) manually as 41758 (presubmit successful).
6 years, 1 month ago (2014-11-15 01:41:01 UTC) #3
scheglov
6 years, 1 month ago (2014-11-15 02:26:16 UTC) #4
Message was sent while issue was closed.
https://codereview.chromium.org/725393002/diff/1/pkg/analysis_server/lib/src/...
File pkg/analysis_server/lib/src/services/refactoring/extract_method.dart
(right):

https://codereview.chromium.org/725393002/diff/1/pkg/analysis_server/lib/src/...
pkg/analysis_server/lib/src/services/refactoring/extract_method.dart:1116:
returnType = returnType.getLeastUpperBound(type);
On 2014/11/15 01:32:38, Brian Wilkerson wrote:
> I'm going to guess that this doesn't work very well in the same cases where
the
> conditional operator confuses people. Consider adding back the method
> InterfaceTypeImpl.leastUpperBound or some variation of it (it was deleted from
> the Dart code but still exists in the Java code).

OK
https://codereview.chromium.org/730803003

Powered by Google App Engine
This is Rietveld 408576698