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

Issue 8999015: Generate AST node for factory methods. (Closed)

Created:
9 years ago by ahe
Modified:
9 years ago
Reviewers:
ngeoffray, kasperl
CC:
reviews_dartlang.org, Lasse Reichstein Nielsen, floitsch, karlklose
Visibility:
Public.

Description

Generate AST node for factory methods. Committed: https://code.google.com/p/dart/source/detail?r=2717

Patch Set 1 #

Patch Set 2 : Fix type errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -15 lines) Patch
M dart/frog/leg/scanner/listener.dart View 1 1 chunk +8 lines, -6 lines 0 comments Download
M dart/frog/leg/tree/nodes.dart View 3 chunks +4 lines, -0 lines 0 comments Download
M dart/frog/presubmit.py View 1 chunk +5 lines, -3 lines 0 comments Download
M dart/tests/language/language-leg.status View 6 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ahe
M-x sort-lines
9 years ago (2011-12-21 18:34:05 UTC) #1
ngeoffray
LGTM!
9 years ago (2011-12-21 19:08:19 UTC) #2
ahe
Submitting with a minor tweak. Please look at patch set 2.
9 years ago (2011-12-21 19:18:17 UTC) #3
ngeoffray
Still LGTM, even though it'd be nice to get named constructors in. It looks like ...
9 years ago (2011-12-21 19:32:14 UTC) #4
ahe
9 years ago (2011-12-21 19:49:26 UTC) #5
On 2011/12/21 19:32:14, ngeoffray wrote:
> Still LGTM, even though it'd be nice to get named constructors in. It looks
like
> endMethod (for a constructor) and endFactoryMethod now behaves differently for
> name/return type.

Well they can't behave the same. You can have this:

factory foo.bar.baz() => null;

That can't occur for constructors. Do  you have an alternative suggestion?

Powered by Google App Engine
This is Rietveld 408576698