| 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 dart2js.enqueue; | 5 library dart2js.enqueue; |
| 6 | 6 |
| 7 import 'dart:collection' show Queue; | 7 import 'dart:collection' show Queue; |
| 8 | 8 |
| 9 import 'cache_strategy.dart'; | 9 import 'cache_strategy.dart'; |
| 10 import 'common/backend_api.dart' show Backend; | 10 import 'common/backend_api.dart' show Backend; |
| 11 import 'common/resolution.dart' show Resolution; | 11 import 'common/resolution.dart' show Resolution; |
| 12 import 'common/tasks.dart' show CompilerTask; | 12 import 'common/tasks.dart' show CompilerTask; |
| 13 import 'common/work.dart' show WorkItem; | 13 import 'common/work.dart' show WorkItem; |
| 14 import 'common.dart'; | 14 import 'common.dart'; |
| 15 import 'compiler.dart' show Compiler, GlobalDependencyRegistry; | 15 import 'compiler.dart' show Compiler, GlobalDependencyRegistry; |
| 16 import 'options.dart'; | 16 import 'options.dart'; |
| 17 import 'dart_types.dart' show DartType, InterfaceType; | 17 import 'elements/resolution_types.dart' show DartType, InterfaceType; |
| 18 import 'elements/elements.dart' | 18 import 'elements/elements.dart' |
| 19 show | 19 show |
| 20 AnalyzableElement, | 20 AnalyzableElement, |
| 21 ClassElement, | 21 ClassElement, |
| 22 ConstructorElement, | 22 ConstructorElement, |
| 23 Element, | 23 Element, |
| 24 Entity, | 24 Entity, |
| 25 MemberElement; | 25 MemberElement; |
| 26 import 'elements/entities.dart'; | 26 import 'elements/entities.dart'; |
| 27 import 'native/native.dart' as native; | 27 import 'native/native.dart' as native; |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 @override | 541 @override |
| 542 WorkItem createWorkItem(MemberElement element) { | 542 WorkItem createWorkItem(MemberElement element) { |
| 543 assert(invariant(element, element.isDeclaration)); | 543 assert(invariant(element, element.isDeclaration)); |
| 544 if (element.isMalformed) return null; | 544 if (element.isMalformed) return null; |
| 545 | 545 |
| 546 assert(invariant(element, element is AnalyzableElement, | 546 assert(invariant(element, element is AnalyzableElement, |
| 547 message: 'Element $element is not analyzable.')); | 547 message: 'Element $element is not analyzable.')); |
| 548 return _resolution.createWorkItem(element); | 548 return _resolution.createWorkItem(element); |
| 549 } | 549 } |
| 550 } | 550 } |
| OLD | NEW |