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

Issue 8500006: Library prefix should be an identifier (Closed)

Created:
9 years, 1 month ago by siva
Modified:
9 years, 1 month ago
Reviewers:
hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Library prefix should be an identifier (we don't yet check that it is not a reserved keyword, that can be done only after we are able to store the keyword table as a singleton in the vm isolate) Committed: https://code.google.com/p/dart/source/detail?r=1720

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -1 line) Patch
M vm/parser.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M vm/scanner.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M vm/scanner.cc View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
siva
9 years, 1 month ago (2011-11-21 19:42:26 UTC) #1
hausner
See comment below. LGTM after comments addressed. http://codereview.chromium.org/8500006/diff/4002/vm/scanner.cc File vm/scanner.cc (right): http://codereview.chromium.org/8500006/diff/4002/vm/scanner.cc#newcode121 vm/scanner.cc:121: if (!str.IsOneByteString()) ...
9 years, 1 month ago (2011-11-21 19:53:58 UTC) #2
siva
PTAL http://codereview.chromium.org/8500006/diff/4002/vm/scanner.cc File vm/scanner.cc (right): http://codereview.chromium.org/8500006/diff/4002/vm/scanner.cc#newcode121 vm/scanner.cc:121: if (!str.IsOneByteString()) { No they are not guaranteed ...
9 years, 1 month ago (2011-11-21 21:48:04 UTC) #3
hausner
LGTM w/c http://codereview.chromium.org/8500006/diff/15005/vm/parser.cc File vm/parser.cc (right): http://codereview.chromium.org/8500006/diff/15005/vm/parser.cc#newcode3166 vm/parser.cc:3166: prefix = String::NewSymbol(prefix); The scanner already makes ...
9 years, 1 month ago (2011-11-21 21:58:10 UTC) #4
hausner
LGTM w/c
9 years, 1 month ago (2011-11-21 21:58:11 UTC) #5
siva
9 years, 1 month ago (2011-11-21 22:14:28 UTC) #6
http://codereview.chromium.org/8500006/diff/15005/vm/parser.cc
File vm/parser.cc (right):

http://codereview.chromium.org/8500006/diff/15005/vm/parser.cc#newcode3166
vm/parser.cc:3166: prefix = String::NewSymbol(prefix);
On 2011/11/21 21:58:10, hausner wrote:
> The scanner already makes a symbol out of a string literal. In other words,
> 
> #import("/foo.dart", prefix: "foo");
> 
> "foo" is already a symbol, no need to call NewSymbol again.

Done.

Powered by Google App Engine
This is Rietveld 408576698