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

Issue 2950213002: Infer the return types of local functions where appropriate. (Closed)

Created:
3 years, 6 months ago by Paul Berry
Modified:
3 years, 6 months ago
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Infer the return types of local functions where appropriate. Note that we do this in order to be consistent with type inference of function expressions. See https://codereview.chromium.org/2209293002. R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/dd0a00f581f1416b2628970d528b5d76e1957f00

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -175 lines) Patch
M pkg/analyzer/test/src/task/strong/front_end_inference_test.dart View 1 chunk +24 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 1 chunk +5 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart View 3 chunks +12 lines, -150 lines 0 comments Download
M pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart View 3 chunks +133 lines, -0 lines 6 comments Download
M pkg/front_end/test/fasta/kompile.status View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/front_end/test/fasta/strong.status View 1 chunk +0 lines, -1 line 0 comments Download
A pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart View 1 chunk +20 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart.direct.expect View 1 chunk +12 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart.outline.expect View 1 chunk +7 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/infer_local_function_referenced_before_declaration.dart.strong.expect View 1 chunk +12 lines, -0 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_local_function_return_type.dart View 2 chunks +9 lines, -11 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_local_function_return_type.dart.strong.expect View 1 chunk +18 lines, -10 lines 0 comments Download
M pkg/front_end/testcases/inference/parameter_defaults_upwards.dart View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Paul Berry
3 years, 6 months ago (2017-06-21 22:07:47 UTC) #2
Siggi Cherem (dart-lang)
lgtm (but I didn't review the large chunk of the code that I believe was ...
3 years, 6 months ago (2017-06-21 22:34:27 UTC) #3
Paul Berry
I'm going to go ahead and land this because even though the code that was ...
3 years, 6 months ago (2017-06-22 17:44:20 UTC) #4
Siggi Cherem (dart-lang)
still lgtm! Thanks Paul for highlighting the two changes.
3 years, 6 months ago (2017-06-22 18:04:54 UTC) #5
Paul Berry
3 years, 6 months ago (2017-06-22 19:17:15 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
dd0a00f581f1416b2628970d528b5d76e1957f00 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698