| 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/implementation/elements/elements.dart' as dart2js; | 9 import 'package:compiler/src/elements/elements.dart' as dart2js; |
| 10 import 'package:analyzer/src/generated/source.dart'; | 10 import 'package:analyzer/src/generated/source.dart'; |
| 11 import 'package:analyzer/src/generated/element.dart' as analyzer; | 11 import 'package:analyzer/src/generated/element.dart' as analyzer; |
| 12 | 12 |
| 13 import 'package:compiler/implementation/dart2jslib.dart' | 13 import 'package:compiler/src/dart2jslib.dart' |
| 14 show DART_CONSTANT_SYSTEM; | 14 show DART_CONSTANT_SYSTEM; |
| 15 import 'package:compiler/implementation/cps_ir/cps_ir_nodes.dart' as ir; | 15 import 'package:compiler/src/cps_ir/cps_ir_nodes.dart' as ir; |
| 16 import 'package:compiler/implementation/cps_ir/cps_ir_builder.dart'; | 16 import 'package:compiler/src/cps_ir/cps_ir_builder.dart'; |
| 17 import 'package:compiler/implementation/universe/universe.dart'; | 17 import 'package:compiler/src/universe/universe.dart'; |
| 18 | 18 |
| 19 import 'semantic_visitor.dart'; | 19 import 'semantic_visitor.dart'; |
| 20 import 'element_converter.dart'; | 20 import 'element_converter.dart'; |
| 21 import 'util.dart'; | 21 import 'util.dart'; |
| 22 import 'identifier_semantics.dart'; | 22 import 'identifier_semantics.dart'; |
| 23 | 23 |
| 24 class CpsGeneratingVisitor extends SemanticVisitor<ir.Node> | 24 class CpsGeneratingVisitor extends SemanticVisitor<ir.Node> |
| 25 with IrBuilderMixin<AstNode> { | 25 with IrBuilderMixin<AstNode> { |
| 26 final analyzer.Element element; | 26 final analyzer.Element element; |
| 27 final ElementConverter converter; | 27 final ElementConverter converter; |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 build(node.condition), | 241 build(node.condition), |
| 242 subbuild(node.thenStatement), | 242 subbuild(node.thenStatement), |
| 243 subbuild(node.elseStatement)); | 243 subbuild(node.elseStatement)); |
| 244 } | 244 } |
| 245 | 245 |
| 246 @override | 246 @override |
| 247 visitBlock(Block node) { | 247 visitBlock(Block node) { |
| 248 irBuilder.buildBlock(node.statements, build); | 248 irBuilder.buildBlock(node.statements, build); |
| 249 } | 249 } |
| 250 } | 250 } |
| OLD | NEW |