| 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.dart'; | 7 import 'common.dart'; |
| 8 import 'common/backend_api.dart' show | 8 import 'common/backend_api.dart' show |
| 9 Backend; | 9 Backend; |
| 10 import 'common/tasks.dart' show | 10 import 'common/tasks.dart' show |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 elements.add(type.element); | 339 elements.add(type.element); |
| 340 } | 340 } |
| 341 break; | 341 break; |
| 342 case TypeUseKind.INSTANTIATION: | 342 case TypeUseKind.INSTANTIATION: |
| 343 case TypeUseKind.IS_CHECK: | 343 case TypeUseKind.IS_CHECK: |
| 344 case TypeUseKind.AS_CAST: | 344 case TypeUseKind.AS_CAST: |
| 345 case TypeUseKind.CATCH_TYPE: | 345 case TypeUseKind.CATCH_TYPE: |
| 346 collectTypeDependencies(type); | 346 collectTypeDependencies(type); |
| 347 break; | 347 break; |
| 348 case TypeUseKind.CHECKED_MODE_CHECK: | 348 case TypeUseKind.CHECKED_MODE_CHECK: |
| 349 if (compiler.enableTypeAssertions) { | 349 if (compiler.options.enableTypeAssertions) { |
| 350 collectTypeDependencies(type); | 350 collectTypeDependencies(type); |
| 351 } | 351 } |
| 352 break; | 352 break; |
| 353 } | 353 } |
| 354 }), | 354 }), |
| 355 IMPACT_USE); | 355 IMPACT_USE); |
| 356 | 356 |
| 357 TreeElements treeElements = analyzableElement.resolvedAst.elements; | 357 TreeElements treeElements = analyzableElement.resolvedAst.elements; |
| 358 assert(treeElements != null); | 358 assert(treeElements != null); |
| 359 | 359 |
| (...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1012 return result; | 1012 return result; |
| 1013 } | 1013 } |
| 1014 | 1014 |
| 1015 bool operator ==(other) { | 1015 bool operator ==(other) { |
| 1016 if (other is! _DeclaredDeferredImport) return false; | 1016 if (other is! _DeclaredDeferredImport) return false; |
| 1017 return declaration == other.declaration; | 1017 return declaration == other.declaration; |
| 1018 } | 1018 } |
| 1019 | 1019 |
| 1020 int get hashCode => declaration.hashCode * 17; | 1020 int get hashCode => declaration.hashCode * 17; |
| 1021 } | 1021 } |
| OLD | NEW |