OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of dart2js; | |
6 | |
7 /** | 5 /** |
8 * [CompilerTask] for loading libraries and setting up the import/export scopes. | 6 * [CompilerTask] for loading libraries and setting up the import/export scopes. |
9 */ | 7 */ |
10 abstract class LibraryLoader extends CompilerTask { | 8 abstract class LibraryLoader extends CompilerTask { |
11 LibraryLoader(Compiler compiler) : super(compiler); | 9 LibraryLoader(Compiler compiler) : super(compiler); |
12 | 10 |
13 /** | 11 /** |
14 * Loads the library located at [uri] and returns its [LibraryElement]. | 12 * Loads the library located at [uri] and returns its [LibraryElement]. |
15 * | 13 * |
16 * If the library is not already loaded, the method creates the | 14 * If the library is not already loaded, the method creates the |
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 } | 673 } |
676 | 674 |
677 /** | 675 /** |
678 * Registers all top-level entities of [library] as starting point for the | 676 * Registers all top-level entities of [library] as starting point for the |
679 * fixed-point computation of the import/export scopes. | 677 * fixed-point computation of the import/export scopes. |
680 */ | 678 */ |
681 void registerLibraryExports(LibraryElement library) { | 679 void registerLibraryExports(LibraryElement library) { |
682 nodeMap[library].registerInitialExports(); | 680 nodeMap[library].registerInitialExports(); |
683 } | 681 } |
684 } | 682 } |
OLD | NEW |