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 'common/backend_api.dart' show Backend; | 7 import 'common/backend_api.dart' show Backend; |
8 import 'common/tasks.dart' show CompilerTask; | 8 import 'common/tasks.dart' show CompilerTask; |
9 import 'common.dart'; | 9 import 'common.dart'; |
10 import 'compiler.dart' show Compiler; | 10 import 'compiler.dart' show Compiler; |
(...skipping 22 matching lines...) Expand all Loading... |
33 TypedefElement; | 33 TypedefElement; |
34 import 'js_backend/js_backend.dart' show JavaScriptBackend; | 34 import 'js_backend/js_backend.dart' show JavaScriptBackend; |
35 import 'resolution/resolution.dart' show AnalyzableElementX; | 35 import 'resolution/resolution.dart' show AnalyzableElementX; |
36 import 'resolution/tree_elements.dart' show TreeElements; | 36 import 'resolution/tree_elements.dart' show TreeElements; |
37 import 'tree/tree.dart' as ast; | 37 import 'tree/tree.dart' as ast; |
38 import 'universe/use.dart' show StaticUse, StaticUseKind, TypeUse, TypeUseKind; | 38 import 'universe/use.dart' show StaticUse, StaticUseKind, TypeUse, TypeUseKind; |
39 import 'universe/world_impact.dart' | 39 import 'universe/world_impact.dart' |
40 show ImpactUseCase, WorldImpact, WorldImpactVisitorImpl; | 40 show ImpactUseCase, WorldImpact, WorldImpactVisitorImpl; |
41 import 'util/setlet.dart' show Setlet; | 41 import 'util/setlet.dart' show Setlet; |
42 import 'util/uri_extras.dart' as uri_extras; | 42 import 'util/uri_extras.dart' as uri_extras; |
43 import 'util/util.dart' show Link, makeUnique; | 43 import 'util/util.dart' show makeUnique; |
44 | 44 |
45 /// A "hunk" of the program that will be loaded whenever one of its [imports] | 45 /// A "hunk" of the program that will be loaded whenever one of its [imports] |
46 /// are loaded. | 46 /// are loaded. |
47 /// | 47 /// |
48 /// Elements that are only used in one deferred import, is in an OutputUnit with | 48 /// Elements that are only used in one deferred import, is in an OutputUnit with |
49 /// the deferred import as single element in the [imports] set. | 49 /// the deferred import as single element in the [imports] set. |
50 /// | 50 /// |
51 /// Whenever a deferred Element is shared between several deferred imports it is | 51 /// Whenever a deferred Element is shared between several deferred imports it is |
52 /// in an output unit with those imports in the [imports] Set. | 52 /// in an output unit with those imports in the [imports] Set. |
53 /// | 53 /// |
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1052 | 1052 |
1053 bool operator ==(other) { | 1053 bool operator ==(other) { |
1054 if (other is! _DeclaredDeferredImport) return false; | 1054 if (other is! _DeclaredDeferredImport) return false; |
1055 return declaration == other.declaration; | 1055 return declaration == other.declaration; |
1056 } | 1056 } |
1057 | 1057 |
1058 int get hashCode => declaration.hashCode * 17; | 1058 int get hashCode => declaration.hashCode * 17; |
1059 | 1059 |
1060 String toString() => '$declaration'; | 1060 String toString() => '$declaration'; |
1061 } | 1061 } |
OLD | NEW |