Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: pkg/analyzer2dart/lib/src/cps_generator.dart

Issue 669693002: Support unreachable code in blocks in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer2dart/test/end2end_test.dart » ('j') | pkg/analyzer2dart/test/end2end_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698