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 library mirrors_dart2js; | 5 library mirrors_dart2js; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:collection' show LinkedHashMap; | 8 import 'dart:collection' show LinkedHashMap; |
9 import 'dart:uri'; | |
10 | 9 |
11 import '../../compiler.dart' as api; | 10 import '../../compiler.dart' as api; |
12 import '../elements/elements.dart'; | 11 import '../elements/elements.dart'; |
13 import '../apiimpl.dart' as apiimpl; | 12 import '../apiimpl.dart' as apiimpl; |
14 import '../scanner/scannerlib.dart' hide SourceString; | 13 import '../scanner/scannerlib.dart' hide SourceString; |
15 import '../dart2jslib.dart'; | 14 import '../dart2jslib.dart'; |
16 import '../dart_types.dart'; | 15 import '../dart_types.dart'; |
17 import '../source_file.dart'; | 16 import '../source_file.dart'; |
18 import '../tree/tree.dart'; | 17 import '../tree/tree.dart'; |
19 import '../util/util.dart' show Spannable, Link; | 18 import '../util/util.dart' show Spannable, Link; |
(...skipping 1669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1689 * | 1688 * |
1690 * All API in this class is experimental. | 1689 * All API in this class is experimental. |
1691 */ | 1690 */ |
1692 class BackDoor { | 1691 class BackDoor { |
1693 /// Return the compilation units comprising [library]. | 1692 /// Return the compilation units comprising [library]. |
1694 static List<Mirror> compilationUnitsOf(Dart2JsLibraryMirror library) { | 1693 static List<Mirror> compilationUnitsOf(Dart2JsLibraryMirror library) { |
1695 return library._library.compilationUnits.toList().map( | 1694 return library._library.compilationUnits.toList().map( |
1696 (cu) => new Dart2JsCompilationUnitMirror(cu, library)).toList(); | 1695 (cu) => new Dart2JsCompilationUnitMirror(cu, library)).toList(); |
1697 } | 1696 } |
1698 } | 1697 } |
OLD | NEW |