| 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/implementation/elements/elements.dart' as dart2js; |
| 10 import 'package:analyzer/src/generated/source.dart'; | 10 import 'package:analyzer/src/generated/source.dart'; |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 subbuild(node.elseExpression)); | 223 subbuild(node.elseExpression)); |
| 224 } | 224 } |
| 225 | 225 |
| 226 @override | 226 @override |
| 227 visitIfStatement(IfStatement node) { | 227 visitIfStatement(IfStatement node) { |
| 228 irBuilder.buildIf( | 228 irBuilder.buildIf( |
| 229 build(node.condition), | 229 build(node.condition), |
| 230 subbuild(node.thenStatement), | 230 subbuild(node.thenStatement), |
| 231 subbuild(node.elseStatement)); | 231 subbuild(node.elseStatement)); |
| 232 } | 232 } |
| 233 |
| 234 @override |
| 235 visitBlock(Block node) { |
| 236 irBuilder.buildBlock(node.statements, build); |
| 237 } |
| 233 } | 238 } |
| OLD | NEW |