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

Issue 10829076: Support imports for dart: libs. (Closed)

Created:
8 years, 4 months ago by Anton Muhin
Modified:
8 years, 4 months ago
Reviewers:
Roman
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 12

Patch Set 2 : Better version #

Total comments: 1

Patch Set 3 : Next iteration #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -23 lines) Patch
M lib/compiler/implementation/dart_backend/backend.dart View 2 chunks +16 lines, -4 lines 0 comments Download
M lib/compiler/implementation/dart_backend/emitter.dart View 2 chunks +17 lines, -2 lines 0 comments Download
M lib/compiler/implementation/dart_backend/renamer.dart View 1 2 3 3 chunks +23 lines, -16 lines 0 comments Download
M tests/language/language.status View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Anton Muhin
8 years, 4 months ago (2012-07-30 14:10:52 UTC) #1
Roman
https://chromiumcodereview.appspot.com/10829076/diff/1/lib/compiler/implementation/dart_backend/backend.dart File lib/compiler/implementation/dart_backend/backend.dart (right): https://chromiumcodereview.appspot.com/10829076/diff/1/lib/compiler/implementation/dart_backend/backend.dart#newcode113 lib/compiler/implementation/dart_backend/backend.dart:113: if (uri.startsWith('dart:')) return true; you can check the uri ...
8 years, 4 months ago (2012-07-30 14:43:29 UTC) #2
Anton Muhin
https://chromiumcodereview.appspot.com/10829076/diff/1/lib/compiler/implementation/dart_backend/backend.dart File lib/compiler/implementation/dart_backend/backend.dart (right): https://chromiumcodereview.appspot.com/10829076/diff/1/lib/compiler/implementation/dart_backend/backend.dart#newcode113 lib/compiler/implementation/dart_backend/backend.dart:113: if (uri.startsWith('dart:')) return true; On 2012/07/30 14:43:30, Roman wrote: ...
8 years, 4 months ago (2012-07-30 14:54:31 UTC) #3
Roman
lgtm https://chromiumcodereview.appspot.com/10829076/diff/1/lib/compiler/implementation/dart_backend/backend.dart File lib/compiler/implementation/dart_backend/backend.dart (right): https://chromiumcodereview.appspot.com/10829076/diff/1/lib/compiler/implementation/dart_backend/backend.dart#newcode113 lib/compiler/implementation/dart_backend/backend.dart:113: if (uri.startsWith('dart:')) return true; On 2012/07/30 14:54:31, Anton ...
8 years, 4 months ago (2012-07-30 15:03:42 UTC) #4
Anton Muhin
8 years, 4 months ago (2012-07-30 15:37:16 UTC) #5
https://chromiumcodereview.appspot.com/10829076/diff/1/lib/compiler/implement...
File lib/compiler/implementation/dart_backend/renamer.dart (right):

https://chromiumcodereview.appspot.com/10829076/diff/1/lib/compiler/implement...
lib/compiler/implementation/dart_backend/renamer.dart:89: name = "x$name";
On 2012/07/30 15:03:42, Roman wrote:
> On 2012/07/30 14:54:31, Anton Mukhin wrote:
> > Agree, but apparently due to the bug in DartVM, '_p' works poorly as a
prefix:
> > _p.Foo is not resolved :(
> > 
> > I'm going to double check and file a bug.
> > 
> > On 2012/07/30 14:43:30, Roman wrote:
> > > Why 'x'? 'x' is an ordinary letter, it will be harder to distinguish
> prefixed
> > > and original names. I would prefer '_' or some other 'special' character.
> > 
> 
> That's sad. Maybe '$' ? or anything else?

Done.

Powered by Google App Engine
This is Rietveld 408576698