| 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 analyzer2dart.cps_generator; | 5 library analyzer2dart.cps_generator; |
| 6 | 6 |
| 7 import 'package:analyzer/analyzer.dart'; | 7 import 'package:analyzer/analyzer.dart'; |
| 8 | 8 |
| 9 import 'package:compiler/src/dart_types.dart' as dart2js; | 9 import 'package:compiler/src/dart_types.dart' as dart2js; |
| 10 import 'package:compiler/src/elements/elements.dart' as dart2js; | 10 import 'package:compiler/src/elements/elements.dart' as dart2js; |
| 11 import 'package:analyzer/src/generated/source.dart'; | 11 import 'package:analyzer/src/generated/source.dart'; |
| 12 import 'package:analyzer/src/generated/element.dart' as analyzer; | 12 import 'package:analyzer/src/generated/element.dart' as analyzer; |
| 13 | 13 |
| 14 import 'package:compiler/src/dart2jslib.dart' | 14 import 'package:compiler/src/dart2jslib.dart' |
| 15 show DART_CONSTANT_SYSTEM; | 15 show DART_CONSTANT_SYSTEM; |
| 16 import 'package:compiler/src/cps_ir/cps_ir_nodes.dart' as ir; | 16 import 'package:compiler/src/cps_ir/cps_ir_nodes.dart' as ir; |
| 17 import 'package:compiler/src/cps_ir/cps_ir_builder.dart'; | 17 import 'package:compiler/src/cps_ir/cps_ir_builder.dart'; |
| 18 import 'package:compiler/src/cps_ir/cps_ir_builder_task.dart'; |
| 18 import 'package:compiler/src/universe/universe.dart'; | 19 import 'package:compiler/src/universe/universe.dart'; |
| 19 | 20 |
| 20 import 'semantic_visitor.dart'; | 21 import 'semantic_visitor.dart'; |
| 21 import 'element_converter.dart'; | 22 import 'element_converter.dart'; |
| 22 import 'util.dart'; | 23 import 'util.dart'; |
| 23 import 'identifier_semantics.dart'; | 24 import 'identifier_semantics.dart'; |
| 24 | 25 |
| 25 /// Visitor that converts the AST node of an analyzer element into a CPS ir | 26 /// Visitor that converts the AST node of an analyzer element into a CPS ir |
| 26 /// node. | 27 /// node. |
| 27 class CpsElementVisitor extends analyzer.SimpleElementVisitor<ir.Node> { | 28 class CpsElementVisitor extends analyzer.SimpleElementVisitor<ir.Node> { |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 irBuilder.buildTry( | 587 irBuilder.buildTry( |
| 587 tryStatementInfo: new TryStatementInfo(), | 588 tryStatementInfo: new TryStatementInfo(), |
| 588 buildTryBlock: subbuild(node.body), | 589 buildTryBlock: subbuild(node.body), |
| 589 catchClauseInfos: catchClauseInfos); | 590 catchClauseInfos: catchClauseInfos); |
| 590 } | 591 } |
| 591 } | 592 } |
| 592 | 593 |
| 593 class NullCapturedVariables extends DartCapturedVariables { | 594 class NullCapturedVariables extends DartCapturedVariables { |
| 594 NullCapturedVariables() : super(null); | 595 NullCapturedVariables() : super(null); |
| 595 } | 596 } |
| OLD | NEW |