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

Side by Side Diff: pkg/analyzer2dart/test/sexpr_data.dart

Issue 979813002: Support simple try in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 5 years, 9 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 /// Test data for sexpr_test. 5 /// Test data for sexpr_test.
6 library test.sexpr.data; 6 library test.sexpr.data;
7 7
8 import 'test_helper.dart'; 8 import 'test_helper.dart';
9 9
10 class TestSpec extends TestSpecBase { 10 class TestSpec extends TestSpecBase {
(...skipping 1487 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 (InvokeContinuation return (v1)))) 1498 (InvokeContinuation return (v1))))
1499 (InvokeMethod v0 foo () k1)))) 1499 (InvokeMethod v0 foo () k1))))
1500 (InvokeConstructor C () k0))) 1500 (InvokeConstructor C () k0)))
1501 ''', 1501 ''',
1502 'C.foo': ''' 1502 'C.foo': '''
1503 (FunctionDefinition foo () return 1503 (FunctionDefinition foo () return
1504 (LetPrim (v0 (Constant (Null))) 1504 (LetPrim (v0 (Constant (Null)))
1505 (InvokeContinuation return (v0)))) 1505 (InvokeContinuation return (v0))))
1506 '''}), 1506 '''}),
1507 ]), 1507 ]),
1508
1509
1510 const Group('Try-catch', const <TestSpec>[
1511 const TestSpec('''
1512 main() {
1513 try {} catch (e) {}
1514 }
1515 ''',
1516 '''
1517 (FunctionDefinition main () return
1518 (LetCont ((k0 ()
1519 (LetPrim (v0 (Constant (Null)))
1520 (InvokeContinuation return (v0)))))
1521 (LetHandler ((v1 v2)
1522 (InvokeContinuation k0 ()))
1523 (InvokeContinuation k0 ()))))
1524 '''),
1525
1526 const TestSpec('''
1527 main() {
1528 try {
1529 return;
1530 } catch (e) {}
1531 }
1532 ''',
1533 '''
1534 (FunctionDefinition main () return
1535 (LetCont ((k0 ()
1536 (LetPrim (v0 (Constant (Null)))
1537 (InvokeContinuation return (v0)))))
1538 (LetHandler ((v1 v2)
1539 (InvokeContinuation k0 ()))
1540 (LetPrim (v3 (Constant (Null)))
1541 (InvokeContinuation return (v3))))))
1542 '''),
1543 ]),
1508 ]; 1544 ];
OLDNEW
« no previous file with comments | « pkg/analyzer2dart/test/end2end_data.dart ('k') | pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698