| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 deferred_load; | 5 library deferred_load; |
| 6 | 6 |
| 7 import 'constants/values.dart' show | 7 import 'constants/values.dart' show |
| 8 ConstantValue, | 8 ConstantValue, |
| 9 ConstructedConstantValue, | 9 ConstructedConstantValue, |
| 10 DeferredConstantValue, | 10 DeferredConstantValue, |
| 11 StringConstantValue; | 11 StringConstantValue; |
| 12 |
| 12 import 'dart2jslib.dart' show | 13 import 'dart2jslib.dart' show |
| 13 Backend, | 14 Backend, |
| 14 Compiler, | 15 Compiler, |
| 15 CompilerTask, | 16 CompilerTask, |
| 16 invariant; | 17 invariant, |
| 17 import 'dart_types.dart'; | 18 MessageKind; |
| 19 |
| 20 import 'js_backend/js_backend.dart' show |
| 21 JavaScriptBackend; |
| 22 |
| 18 import 'elements/elements.dart' show | 23 import 'elements/elements.dart' show |
| 19 AccessorElement, | 24 AccessorElement, |
| 20 AstElement, | 25 AstElement, |
| 21 ClassElement, | 26 ClassElement, |
| 22 Element, | 27 Element, |
| 23 ElementKind, | 28 ElementKind, |
| 24 Elements, | 29 Elements, |
| 25 FunctionElement, | 30 FunctionElement, |
| 26 LibraryElement, | 31 LibraryElement, |
| 27 MetadataAnnotation, | 32 MetadataAnnotation, |
| 28 PrefixElement, | 33 PrefixElement, |
| 29 ScopeContainerElement, | 34 ScopeContainerElement, |
| 30 TypedefElement, | 35 TypedefElement, |
| 31 VoidElement; | 36 VoidElement; |
| 32 import 'js_backend/js_backend.dart' show | 37 |
| 33 JavaScriptBackend; | 38 import 'dart_types.dart'; |
| 34 import 'messages.dart' show MessageKind; | 39 |
| 35 import 'resolution/resolution.dart' show | 40 import 'util/util.dart' show |
| 36 AnalyzableElementX, | 41 Link, makeUnique; |
| 37 TreeElements; | 42 import 'util/uri_extras.dart' as uri_extras; |
| 38 import 'tree/tree.dart' as ast; | 43 |
| 44 import 'util/setlet.dart' show |
| 45 Setlet; |
| 46 |
| 39 import 'tree/tree.dart' show | 47 import 'tree/tree.dart' show |
| 40 Import, | 48 Import, |
| 41 LibraryTag, | 49 LibraryTag, |
| 42 LibraryDependency, | 50 LibraryDependency, |
| 43 LiteralDartString, | 51 LiteralDartString, |
| 44 LiteralString, | 52 LiteralString, |
| 45 NewExpression, | 53 NewExpression, |
| 46 Node; | 54 Node; |
| 47 import 'util/setlet.dart' show | 55 |
| 48 Setlet; | 56 import 'tree/tree.dart' as ast; |
| 49 import 'util/uri_extras.dart' as uri_extras; | 57 |
| 50 import 'util/util.dart' show | 58 import 'resolution/resolution.dart' show |
| 51 Link, makeUnique; | 59 AnalyzableElementX, |
| 60 TreeElements; |
| 52 | 61 |
| 53 /// A "hunk" of the program that will be loaded whenever one of its [imports] | 62 /// A "hunk" of the program that will be loaded whenever one of its [imports] |
| 54 /// are loaded. | 63 /// are loaded. |
| 55 /// | 64 /// |
| 56 /// Elements that are only used in one deferred import, is in an OutputUnit with | 65 /// Elements that are only used in one deferred import, is in an OutputUnit with |
| 57 /// the deferred import as single element in the [imports] set. | 66 /// the deferred import as single element in the [imports] set. |
| 58 /// | 67 /// |
| 59 /// Whenever a deferred Element is shared between several deferred imports it is | 68 /// Whenever a deferred Element is shared between several deferred imports it is |
| 60 /// in an output unit with those imports in the [imports] Set. | 69 /// in an output unit with those imports in the [imports] Set. |
| 61 /// | 70 /// |
| (...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 _importingLibrary = importingLibrary; | 890 _importingLibrary = importingLibrary; |
| 882 | 891 |
| 883 String get importingLibraryName { | 892 String get importingLibraryName { |
| 884 String libraryName = _importingLibrary.getLibraryName(); | 893 String libraryName = _importingLibrary.getLibraryName(); |
| 885 return libraryName == "" | 894 return libraryName == "" |
| 886 ? "<unnamed>" | 895 ? "<unnamed>" |
| 887 : libraryName; | 896 : libraryName; |
| 888 } | 897 } |
| 889 | 898 |
| 890 } | 899 } |
| OLD | NEW |