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

Issue 10032015: Add support for the package: directive in Frog and dart2js. (Closed)

Created:
8 years, 8 months ago by nweiz
Modified:
8 years, 8 months ago
Reviewers:
Bob Nystrom, kasperl
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add support for the package: directive in Frog and dart2js. Committed: https://code.google.com/p/dart/source/detail?r=6430

Patch Set 1 #

Total comments: 4

Patch Set 2 : Code review change #

Total comments: 2

Patch Set 3 : Code review change #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -7 lines) Patch
M frog/library.dart View 1 chunk +1 line, -0 lines 0 comments Download
M frog/reader.dart View 1 1 chunk +10 lines, -3 lines 0 comments Download
M lib/compiler/implementation/apiimpl.dart View 1 2 3 chunks +15 lines, -4 lines 2 comments Download

Messages

Total messages: 7 (0 generated)
nweiz
8 years, 8 months ago (2012-04-09 23:04:36 UTC) #1
Bob Nystrom
Minor nits. https://chromiumcodereview.appspot.com/10032015/diff/1/frog/reader.dart File frog/reader.dart (right): https://chromiumcodereview.appspot.com/10032015/diff/1/frog/reader.dart#newcode46 frog/reader.dart:46: SourceFile readFile(String fullname) { Should be "fullName". ...
8 years, 8 months ago (2012-04-09 23:54:08 UTC) #2
nweiz
https://chromiumcodereview.appspot.com/10032015/diff/1/frog/reader.dart File frog/reader.dart (right): https://chromiumcodereview.appspot.com/10032015/diff/1/frog/reader.dart#newcode46 frog/reader.dart:46: SourceFile readFile(String fullname) { On 2012/04/09 23:54:08, Bob Nystrom ...
8 years, 8 months ago (2012-04-10 00:16:31 UTC) #3
kasperl
LGTM. I guess you'll land tests independently of this? https://chromiumcodereview.appspot.com/10032015/diff/2002/lib/compiler/implementation/apiimpl.dart File lib/compiler/implementation/apiimpl.dart (right): https://chromiumcodereview.appspot.com/10032015/diff/2002/lib/compiler/implementation/apiimpl.dart#newcode75 lib/compiler/implementation/apiimpl.dart:75: ...
8 years, 8 months ago (2012-04-11 14:10:56 UTC) #4
nweiz
I started writing tests for this, but I realized that there doesn't seem to be ...
8 years, 8 months ago (2012-04-11 19:48:26 UTC) #5
Bob Nystrom
On 2012/04/11 19:48:26, nweiz wrote: > I started writing tests for this, but I realized ...
8 years, 8 months ago (2012-04-11 19:53:15 UTC) #6
ahe
8 years, 8 months ago (2012-04-13 09:30:18 UTC) #7
In the future, I'd like to know about changes to this area (and it would be
really great if you CC compiler-dev@dartlang.org for changes to dart2js).

I'll be working on compiler API this Q, so we should chat about how the
packaging should be exposed in the API.

https://chromiumcodereview.appspot.com/10032015/diff/8001/lib/compiler/implem...
File lib/compiler/implementation/apiimpl.dart (right):

https://chromiumcodereview.appspot.com/10032015/diff/8001/lib/compiler/implem...
lib/compiler/implementation/apiimpl.dart:22: Uri packageRoot;
I think this should be initialized by the constructor.

https://chromiumcodereview.appspot.com/10032015/diff/8001/lib/compiler/implem...
lib/compiler/implementation/apiimpl.dart:83: packageRoot = null;
This "scoping" of packageRoot is weird to me, and I don't see how this will work
when the API is made fully asynchronous.

Powered by Google App Engine
This is Rietveld 408576698