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

Issue 9585003: Update native keyword checking to accommodate frog (Closed)

Created:
8 years, 9 months ago by danrubel
Modified:
8 years, 9 months ago
Reviewers:
scheglov, zundel
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Update native keyword checking to accommodate frog Committed: https://code.google.com/p/dart/source/detail?r=4969

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -9 lines) Patch
M compiler/java/com/google/dart/compiler/parser/DartParser.java View 1 2 2 chunks +10 lines, -8 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
danrubel
This accommodates usage of the native keyword in dom_frog.dart in the dart-sdk
8 years, 9 months ago (2012-03-02 08:21:41 UTC) #1
zundel
https://chromiumcodereview.appspot.com/9585003/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (right): https://chromiumcodereview.appspot.com/9585003/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode621 compiler/java/com/google/dart/compiler/parser/DartParser.java:621: //reportError(position(), ParserErrorCode.NATIVE_MUST_NOT_EXTEND); I'm wondering, if we move the corelibParse ...
8 years, 9 months ago (2012-03-02 08:25:55 UTC) #2
zundel
https://chromiumcodereview.appspot.com/9585003/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (right): https://chromiumcodereview.appspot.com/9585003/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode621 compiler/java/com/google/dart/compiler/parser/DartParser.java:621: //reportError(position(), ParserErrorCode.NATIVE_MUST_NOT_EXTEND); On 2012/03/02 08:25:55, zundel wrote: > I'm ...
8 years, 9 months ago (2012-03-02 08:58:45 UTC) #3
danrubel
Comment addressed. PTAL. https://chromiumcodereview.appspot.com/9585003/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java File compiler/java/com/google/dart/compiler/parser/DartParser.java (right): https://chromiumcodereview.appspot.com/9585003/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode628 compiler/java/com/google/dart/compiler/parser/DartParser.java:628: //reportError(position(), ParserErrorCode.NATIVE_ONLY_CORE_LIB); On 2012/03/02 08:58:45, zundel ...
8 years, 9 months ago (2012-03-03 05:55:15 UTC) #4
zundel
8 years, 9 months ago (2012-03-05 18:29:58 UTC) #5
lgtm
On 2012/03/03 05:55:15, danrubel wrote:
> Comment addressed. PTAL.
> 
>
https://chromiumcodereview.appspot.com/9585003/diff/1/compiler/java/com/googl...
> File compiler/java/com/google/dart/compiler/parser/DartParser.java (right):
> 
>
https://chromiumcodereview.appspot.com/9585003/diff/1/compiler/java/com/googl...
> compiler/java/com/google/dart/compiler/parser/DartParser.java:628:
> //reportError(position(), ParserErrorCode.NATIVE_ONLY_CORE_LIB);
> On 2012/03/02 08:58:45, zundel wrote:
> > I'd rather leave this test in, but if  corelibParse is set when parsing
> > dom_frog.dart, couldn't this pass?  I'd rather have an ugly hack to let
> > dom_frog.dart in than allow anyone to use native which is something we want
to
> > be careful about.  
> 
> Good point. I reviewed again and this is only a problem when editing the
> dom_frog libraries as a user library. This is not a problem when importing
them
> as dart:dom.
> Reverted.

Powered by Google App Engine
This is Rietveld 408576698