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

Issue 10949028: Fix for issue 5223 : Import 'dart:core' implicitly only if it has not been (Closed)

Created:
8 years, 3 months ago by siva
Modified:
8 years, 3 months ago
Reviewers:
hausner
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix for issue 5223 : Import 'dart:core' implicitly only if it has not been already explicitly imported in the script. Committed: https://code.google.com/p/dart/source/detail?r=12673

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -8 lines) Patch
M runtime/vm/code_generator_test.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 6 chunks +31 lines, -5 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
A tests/language/import_core_prefix_test.dart View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
A tests/language/import_core_test.dart View 1 1 chunk +14 lines, -0 lines 0 comments Download
M tests/language/language.status View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
siva
8 years, 3 months ago (2012-09-19 23:20:32 UTC) #1
hausner
LGTM but I think a more elegant solution would have been to add a method ...
8 years, 3 months ago (2012-09-20 16:18:16 UTC) #2
siva
Added an ImportsCoreLibrary function in library as suggested and also ensure that import with a ...
8 years, 3 months ago (2012-09-20 21:12:36 UTC) #3
siva
8 years, 3 months ago (2012-09-20 21:35:09 UTC) #4
hausner
Something is still importing dart:core without a prefix automatically. The test that imports dart:core with ...
8 years, 3 months ago (2012-09-20 22:25:32 UTC) #5
siva
8 years, 3 months ago (2012-09-21 00:42:35 UTC) #6
https://chromiumcodereview.appspot.com/10949028/diff/4003/tests/language/impo...
File tests/language/import_core_prefix-test.dart (right):

https://chromiumcodereview.appspot.com/10949028/diff/4003/tests/language/impo...
tests/language/import_core_prefix-test.dart:10: var test = new
Map<int,String>();
Good point. I had named the file import_core_prefix-test.dart and hence it was
not getting picked up by the test harness. Fixed the file name verified that
these were flagged as errors and fixed them by adding the prefix.

On 2012/09/20 22:25:32, hausner wrote:
> I don't think new Map() should work in this case. You import core with a
prefix,
> so you should have to write new mycore.Map().

Powered by Google App Engine
This is Rietveld 408576698