Chromium Code Reviews| 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 import 'common/names.dart' show Identifiers; | 5 import 'common/names.dart' show Identifiers; |
| 6 import 'common/resolution.dart' show ParsingContext, Resolution; | 6 import 'common/resolution.dart' show ParsingContext, Resolution; |
| 7 import 'common/tasks.dart' show CompilerTask, Measurer; | 7 import 'common/tasks.dart' show CompilerTask, Measurer; |
| 8 import 'common.dart'; | 8 import 'common.dart'; |
| 9 import 'compiler.dart' show Compiler; | 9 import 'compiler.dart' show Compiler; |
| 10 import 'constants/expressions.dart'; | 10 import 'constants/expressions.dart'; |
| 11 import 'elements/elements.dart'; | 11 import 'elements/elements.dart'; |
| 12 import 'elements/entities.dart'; | 12 import 'elements/entities.dart'; |
| 13 import 'elements/entity_utils.dart' as utils; | 13 import 'elements/entity_utils.dart' as utils; |
| 14 import 'elements/modelx.dart' | 14 import 'elements/modelx.dart' |
| 15 show BaseFunctionElementX, ClassElementX, ElementX; | 15 show BaseFunctionElementX, ClassElementX, ElementX; |
| 16 import 'elements/resolution_types.dart'; | 16 import 'elements/resolution_types.dart'; |
| 17 import 'elements/types.dart'; | 17 import 'elements/types.dart'; |
| 18 import 'elements/visitor.dart' show ElementVisitor; | 18 import 'elements/visitor.dart' show ElementVisitor; |
| 19 import 'js_backend/js_backend.dart' show JavaScriptBackend; | 19 import 'js_backend/js_backend.dart' show JavaScriptBackend; |
| 20 import 'resolution/tree_elements.dart' show TreeElements; | 20 import 'resolution/tree_elements.dart' show TreeElements; |
| 21 import 'package:front_end/src/fasta/scanner.dart' show Token; | 21 import 'package:front_end/src/fasta/scanner.dart' show Token; |
| 22 import 'tree/tree.dart'; | 22 import 'tree/tree.dart'; |
| 23 import 'util/util.dart'; | 23 import 'util/util.dart'; |
| 24 import 'world.dart' show ClosedWorldRefiner; | 24 import 'world.dart' show ClosedWorldRefiner; |
| 25 | 25 |
| 26 // TODO(johnniwinther,efortuna): Split [ClosureConversionTask] from | |
|
Emily Fortuna
2017/06/19 17:44:41
don't worry. already working on that one. :-)
Johnni Winther
2017/06/20 10:33:12
Acknowledged.
| |
| 27 // [ClosureDataLookup]. | |
| 26 abstract class ClosureConversionTask<T> extends CompilerTask | 28 abstract class ClosureConversionTask<T> extends CompilerTask |
| 27 implements ClosureDataLookup<T> { | 29 implements ClosureDataLookup<T> { |
| 28 ClosureConversionTask(Measurer measurer) : super(measurer); | 30 ClosureConversionTask(Measurer measurer) : super(measurer); |
| 29 | 31 |
| 30 //void analyzeClosures(); | 32 //void analyzeClosures(); |
| 31 void convertClosures(Iterable<MemberEntity> processedEntities, | 33 void convertClosures(Iterable<MemberEntity> processedEntities, |
| 32 ClosedWorldRefiner closedWorldRefiner); | 34 ClosedWorldRefiner closedWorldRefiner); |
| 33 } | 35 } |
| 34 | 36 |
| 35 /// Class that provides information for how closures are rewritten/represented | 37 /// Class that provides information for how closures are rewritten/represented |
| (...skipping 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1462 /// | 1464 /// |
| 1463 /// Move the below classes to a JS model eventually. | 1465 /// Move the below classes to a JS model eventually. |
| 1464 /// | 1466 /// |
| 1465 abstract class JSEntity implements MemberEntity { | 1467 abstract class JSEntity implements MemberEntity { |
| 1466 Local get declaredEntity; | 1468 Local get declaredEntity; |
| 1467 } | 1469 } |
| 1468 | 1470 |
| 1469 abstract class PrivatelyNamedJSEntity implements JSEntity { | 1471 abstract class PrivatelyNamedJSEntity implements JSEntity { |
| 1470 Entity get rootOfScope; | 1472 Entity get rootOfScope; |
| 1471 } | 1473 } |
| OLD | NEW |