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

Issue 970063002: When a closure is extracted as a method, it does not have any return type. (Closed)

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

Description

When a closure is extracted as a method, it does not have any return type. But it should not be returned as 'void'. It should be an empty string, as any other method with unknown return type. I guess we could improve this in the future, e.g. promote type of a returned expression into the signature. R=brianwilkerson@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=44177

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -4 lines) Patch
M editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ExtractMethodFeedback.java View 2 chunks +4 lines, -2 lines 0 comments Download
M pkg/analysis_server/doc/api.html View 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/analysis_server/lib/src/generated_protocol.dart View 1 chunk +2 lines, -1 line 0 comments Download
M pkg/analysis_server/lib/src/services/refactoring/extract_method.dart View 1 chunk +3 lines, -1 line 0 comments Download
M pkg/analysis_server/test/services/refactoring/extract_method_test.dart View 1 chunk +13 lines, -0 lines 0 comments Download
M pkg/analysis_server/tool/spec/spec_input.html View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
scheglov
5 years, 9 months ago (2015-03-03 05:31:55 UTC) #1
Brian Wilkerson
LGTM
5 years, 9 months ago (2015-03-03 14:49:07 UTC) #2
scheglov
5 years, 9 months ago (2015-03-03 16:17:45 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as 44177 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698