| Index: frog/world.dart
|
| diff --git a/frog/world.dart b/frog/world.dart
|
| index 540e65d1c6192d84afc702488586f6ab42537933..8a7e58b173a70cfea592a66d27c52fb076910958 100644
|
| --- a/frog/world.dart
|
| +++ b/frog/world.dart
|
| @@ -325,7 +325,8 @@ class World {
|
| if (library == null) {
|
| library = new Library(readFile(filename));
|
| info('read library ${filename}');
|
| - if (!library.isCore) {
|
| + if (!library.isCore &&
|
| + !library.imports.some((li) => li.library.isCore)) {
|
| library.imports.add(new LibraryImport(corelib));
|
| }
|
| libraries[filename] = library;
|
| @@ -339,8 +340,7 @@ class World {
|
| final todo = _todo;
|
| _todo = [];
|
| for (var lib in todo) {
|
| - // TODO(jimhug): I don't like such active constructors.
|
| - new LibraryVisitor(lib);
|
| + lib.visitSources();
|
| }
|
| }
|
| }
|
|
|