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

Issue 8952006: Fix factories in Frog to correspond to the new syntax. (Closed)

Created:
9 years ago by Jennifer Messerly
Modified:
9 years ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix factories in Frog to correspond to the new syntax. (Note: this is designed to work against corelib changes in http://codereview.chromium.org/8931011/, but it also works against current checked in corelib) I kept old factories limping along in Frog. We can remove them soon Committed: https://code.google.com/p/dart/source/detail?r=2474

Patch Set 1 #

Total comments: 7

Patch Set 2 : merged, and update test status #

Unified diffs Side-by-side diffs Delta from patch set Stats (+353 lines, -183 lines) Patch
M client/tests/client/client.status View 1 1 chunk +3 lines, -0 lines 0 comments Download
M frog/await/transformation.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M frog/leg/scanner/token.dart View 1 chunk +1 line, -1 line 0 comments Download
M frog/leg/util/link.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M frog/leg/util/link_implementation.dart View 1 chunk +3 lines, -4 lines 0 comments Download
M frog/member.dart View 1 5 chunks +5 lines, -25 lines 0 comments Download
M frog/minfrog View 1 34 chunks +192 lines, -86 lines 0 comments Download
M frog/parser.dart View 14 chunks +37 lines, -33 lines 0 comments Download
M frog/presubmit.py View 1 1 chunk +3 lines, -1 line 0 comments Download
M frog/scripts/tree_gen.py View 4 chunks +8 lines, -4 lines 0 comments Download
M frog/tree.g.dart View 7 chunks +23 lines, -6 lines 0 comments Download
M frog/type.dart View 8 chunks +73 lines, -17 lines 0 comments Download
M tests/language/language.status View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Jennifer Messerly
regis, zundel let me know how you'd like to coordinate checking this in
9 years ago (2011-12-15 02:14:33 UTC) #1
sra1
DBC http://codereview.chromium.org/8952006/diff/1/frog/parser.dart File frog/parser.dart (right): http://codereview.chromium.org/8952006/diff/1/frog/parser.dart#newcode283 frog/parser.dart:283: world.warning('factory no longer supported, use "default" instead', I ...
9 years ago (2011-12-15 02:38:16 UTC) #2
ahe
Hi John, Thank you for taking care of this. The changes to leg LGTM. Cheers, ...
9 years ago (2011-12-15 07:19:58 UTC) #3
zundel
On 2011/12/15 02:14:33, John Messerly wrote: > regis, zundel let me know how you'd like ...
9 years ago (2011-12-15 14:28:34 UTC) #4
regis
LGTM You guys can go ahead and submit. The VM supports both old and new ...
9 years ago (2011-12-15 17:01:19 UTC) #5
jimhug
LGTM! This is a great step forward for the language (thanks, Gilad!) and I like ...
9 years ago (2011-12-15 17:05:02 UTC) #6
Siggi Cherem (dart-lang)
lgtm
9 years ago (2011-12-15 18:09:23 UTC) #7
Jennifer Messerly
9 years ago (2011-12-15 19:28:15 UTC) #8
thanks! I'll upload a new version without corelib changes & land it

http://codereview.chromium.org/8952006/diff/1/frog/parser.dart
File frog/parser.dart (right):

http://codereview.chromium.org/8952006/diff/1/frog/parser.dart#newcode283
frog/parser.dart:283: world.warning('factory no longer supported, use "default"
instead',
On 2011/12/15 17:05:04, jimhug wrote:
> SGTM.  I just checked and both Python and JS use single quotes so I think
> Stephen's choice is the rightest <smile> one.  This is obviously low-pri, but
a
> good thing to keep in mind - and someone (me?) should get a wiki setup for
> capturing these kinds of conventions.
> On 2011/12/15 02:38:17, sra1 wrote:
> > I think Frog warnings need to be consistent with quoting.
> > I would suggest always using single quotes in the message, e.g.
> > 
> > world.warning("'factory' no longer supported, use 'default' instead",
> 

+1 on consistency. I'm trying to be consistent with most of the other messages
in Frog which use double quotes AFAIK. Let's do the mass search/replace at some
point in the future--it seems much lower priority than just about anything else
we could work on.

http://codereview.chromium.org/8952006/diff/1/frog/parser.dart#newcode433
frog/parser.dart:433: // I left it here for now to support old-style factories
On 2011/12/15 17:05:04, jimhug wrote:
> I think we need this "forever" as we still have factory constructors - they
just
> don't share a name with default implementations anymore (yay!).  However, the
> typeParameters part below can go away pretty soon - yay!

Ah, I might be misremembering the history of the code. At one point weren't
factories handled through finishDefinition? Other than the "factory" modifier,
they look just like normal constructors now, AFAIK.

Powered by Google App Engine
This is Rietveld 408576698