| 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 /// 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 Loading... |
| 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 ]; |
| OLD | NEW |