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

Issue 10545131: Issue 3531. Don't allow using built-in identifier as import prefix (Closed)

Created:
8 years, 6 months ago by scheglov
Modified:
8 years, 6 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Issue 3531. Don't allow using built-in identifier as import prefix http://code.google.com/p/dart/issues/detail?id=3531 And couple other built-in/reserved issues. R=brianwilkerson@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=8558

Patch Set 1 #

Total comments: 14

Patch Set 2 : Tweaks for review comments #

Messages

Total messages: 4 (0 generated)
scheglov
8 years, 6 months ago (2012-06-12 02:28:35 UTC) #1
Brian Wilkerson
After a few minor changes, LGTM. https://chromiumcodereview.appspot.com/10545131/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/10545131/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode180 compiler/java/com/google/dart/compiler/parser/DartParser.java:180: "false", Missing "final". ...
8 years, 6 months ago (2012-06-12 15:20:02 UTC) #2
scheglov
https://chromiumcodereview.appspot.com/10545131/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/10545131/diff/1/compiler/java/com/google/dart/compiler/parser/DartParser.java#newcode180 compiler/java/com/google/dart/compiler/parser/DartParser.java:180: "false", On 2012/06/12 15:20:02, Brian Wilkerson wrote: > Missing ...
8 years, 6 months ago (2012-06-12 18:04:22 UTC) #3
Brian Wilkerson
8 years, 6 months ago (2012-06-12 18:22:29 UTC) #4
https://chromiumcodereview.appspot.com/10545131/diff/1/compiler/javatests/com...
File compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
(right):

https://chromiumcodereview.appspot.com/10545131/diff/1/compiler/javatests/com...
compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java:842:
"interface assert {}",
> "as" can not be used because "as" is not identifier, it is operator token.
> But we check for it in prefix (as requested in this issue), because this is
> string literal.

OK. In the spec it is listed in the production "BUILT_IN_IDENTIFIER", so the
distinction wasn't obvious.

Powered by Google App Engine
This is Rietveld 408576698