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

Issue 2899073004: Use declared return type for inference of return and yield statements. (Closed)

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

Description

Use declared return type for inference of return and yield statements. R=ahe@google.com Committed: https://github.com/dart-lang/sdk/commit/6b100c007b68ea7442870bc584903b6d61dfe0aa

Patch Set 1 #

Total comments: 4

Patch Set 2 : Simpler implementation #

Messages

Total messages: 10 (2 generated)
Paul Berry
Peter, I had to do some work to plumb the FunctionNode through to the BodyBuilder ...
3 years, 7 months ago (2017-05-24 15:31:36 UTC) #2
ahe
lgtm https://codereview.chromium.org/2899073004/diff/1/pkg/front_end/lib/src/fasta/builder/procedure_builder.dart File pkg/front_end/lib/src/fasta/builder/procedure_builder.dart (right): https://codereview.chromium.org/2899073004/diff/1/pkg/front_end/lib/src/fasta/builder/procedure_builder.dart#newcode10 pkg/front_end/lib/src/fasta/builder/procedure_builder.dart:10: import 'package:kernel/ast.dart' show AsyncMarker, FunctionNode, ProcedureKind; Could you ...
3 years, 7 months ago (2017-05-24 15:36:40 UTC) #3
ahe
Actually, I'm having some second thoughts about this. Details will follow shortly.
3 years, 7 months ago (2017-05-24 15:52:04 UTC) #4
ahe
https://codereview.chromium.org/2899073004/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (right): https://codereview.chromium.org/2899073004/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode484 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:484: AsyncMarker asyncModifier, Statement body) { You can access FunctionNode ...
3 years, 7 months ago (2017-05-24 16:00:22 UTC) #5
ahe
To be clear: I'm not withdrawing my LGTM :-)
3 years, 7 months ago (2017-05-24 16:01:12 UTC) #6
Paul Berry
Thanks for your help, Peter. I will land shortly, after I've re-run tests https://codereview.chromium.org/2899073004/diff/1/pkg/front_end/lib/src/fasta/builder/procedure_builder.dart File ...
3 years, 7 months ago (2017-05-24 16:20:16 UTC) #7
Paul Berry
Committed patchset #2 (id:20001) manually as 6b100c007b68ea7442870bc584903b6d61dfe0aa (presubmit successful).
3 years, 7 months ago (2017-05-24 16:28:32 UTC) #9
scheglov
3 years, 7 months ago (2017-05-24 16:38:14 UTC) #10
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698