| 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 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1379 (LetPrim (v5 (Constant (Null))) | 1379 (LetPrim (v5 (Constant (Null))) |
| 1380 (InvokeContinuation return (v5))))) | 1380 (InvokeContinuation return (v5))))) |
| 1381 (InvokeStatic print (v3) k2)))) | 1381 (InvokeStatic print (v3) k2)))) |
| 1382 (InvokeMethod v1 call () k1))))) | 1382 (InvokeMethod v1 call () k1))))) |
| 1383 (InvokeStatic print (x) k0))) | 1383 (InvokeStatic print (x) k0))) |
| 1384 ''', skipInAnalyzerFrontend: true) | 1384 ''', skipInAnalyzerFrontend: true) |
| 1385 ]), | 1385 ]), |
| 1386 | 1386 |
| 1387 const Group('Constructors', const <TestSpec>[ | 1387 const Group('Constructors', const <TestSpec>[ |
| 1388 const TestSpec(''' | 1388 const TestSpec(''' |
| 1389 class C {} |
| 1390 main() { |
| 1391 return new C(); |
| 1392 } |
| 1393 ''', |
| 1394 const { |
| 1395 'main': ''' |
| 1396 (FunctionDefinition main () return |
| 1397 (LetCont ((k0 (v0) |
| 1398 (InvokeContinuation return (v0)))) |
| 1399 (InvokeConstructor C () k0))) |
| 1400 ''', |
| 1401 'C.': ''' |
| 1402 (FunctionDefinition () return |
| 1403 (LetPrim (v0 (Constant (Null))) |
| 1404 (InvokeContinuation return (v0)))) |
| 1405 '''}), |
| 1406 |
| 1407 const TestSpec(''' |
| 1389 class C { | 1408 class C { |
| 1390 C() {} | 1409 C() {} |
| 1391 } | 1410 } |
| 1392 main() { | 1411 main() { |
| 1393 return new C(); | 1412 return new C(); |
| 1394 } | 1413 } |
| 1395 ''', | 1414 ''', |
| 1396 const { | 1415 const { |
| 1397 'main': ''' | 1416 'main': ''' |
| 1398 (FunctionDefinition main () return | 1417 (FunctionDefinition main () return |
| 1399 (LetCont ((k0 (v0) | 1418 (LetCont ((k0 (v0) |
| 1400 (InvokeContinuation return (v0)))) | 1419 (InvokeContinuation return (v0)))) |
| 1401 (InvokeConstructor C () k0))) | 1420 (InvokeConstructor C () k0))) |
| 1402 ''', | 1421 ''', |
| 1403 'C.': ''' | 1422 'C.': ''' |
| 1404 (FunctionDefinition () return | 1423 (FunctionDefinition () return |
| 1405 (LetPrim (v0 (Constant (Null))) | 1424 (LetPrim (v0 (Constant (Null))) |
| 1406 (InvokeContinuation return (v0)))) | 1425 (InvokeContinuation return (v0)))) |
| 1407 '''}), | 1426 '''}), |
| 1427 |
| 1428 const TestSpec(''' |
| 1429 class B {} |
| 1430 class C extends B { |
| 1431 C() {} |
| 1432 } |
| 1433 main() { |
| 1434 return new C(); |
| 1435 } |
| 1436 ''', |
| 1437 const { |
| 1438 'main': ''' |
| 1439 (FunctionDefinition main () return |
| 1440 (LetCont ((k0 (v0) |
| 1441 (InvokeContinuation return (v0)))) |
| 1442 (InvokeConstructor C () k0))) |
| 1443 ''', |
| 1444 'B.': ''' |
| 1445 (FunctionDefinition () return |
| 1446 (LetPrim (v0 (Constant (Null))) |
| 1447 (InvokeContinuation return (v0)))) |
| 1448 ''', |
| 1449 'C.': ''' |
| 1450 (FunctionDefinition () return |
| 1451 (LetPrim (v0 (Constant (Null))) |
| 1452 (InvokeContinuation return (v0)))) |
| 1453 '''}), |
| 1454 |
| 1455 const TestSpec(''' |
| 1456 class B { |
| 1457 B() {} |
| 1458 } |
| 1459 class C extends B {} |
| 1460 main() { |
| 1461 return new C(); |
| 1462 } |
| 1463 ''', |
| 1464 const { |
| 1465 'main': ''' |
| 1466 (FunctionDefinition main () return |
| 1467 (LetCont ((k0 (v0) |
| 1468 (InvokeContinuation return (v0)))) |
| 1469 (InvokeConstructor C () k0))) |
| 1470 ''', |
| 1471 'B.': ''' |
| 1472 (FunctionDefinition () return |
| 1473 (LetPrim (v0 (Constant (Null))) |
| 1474 (InvokeContinuation return (v0)))) |
| 1475 ''', |
| 1476 'C.': ''' |
| 1477 (FunctionDefinition () return |
| 1478 (LetPrim (v0 (Constant (Null))) |
| 1479 (InvokeContinuation return (v0)))) |
| 1480 '''}), |
| 1408 ]), | 1481 ]), |
| 1409 | 1482 |
| 1410 const Group('Instance method', const <TestSpec>[ | 1483 const Group('Instance method', const <TestSpec>[ |
| 1411 const TestSpec(''' | 1484 const TestSpec(''' |
| 1412 class C { | 1485 class C { |
| 1413 C() {} | 1486 C() {} |
| 1414 foo() {} | 1487 foo() {} |
| 1415 } | 1488 } |
| 1416 main() { | 1489 main() { |
| 1417 return new C().foo(); | 1490 return new C().foo(); |
| 1418 } | 1491 } |
| 1419 ''', | 1492 ''', |
| 1420 const { | 1493 const { |
| 1421 'main': ''' | 1494 'main': ''' |
| 1422 (FunctionDefinition main () return | 1495 (FunctionDefinition main () return |
| 1423 (LetCont ((k0 (v0) | 1496 (LetCont ((k0 (v0) |
| 1424 (LetCont ((k1 (v1) | 1497 (LetCont ((k1 (v1) |
| 1425 (InvokeContinuation return (v1)))) | 1498 (InvokeContinuation return (v1)))) |
| 1426 (InvokeMethod v0 foo () k1)))) | 1499 (InvokeMethod v0 foo () k1)))) |
| 1427 (InvokeConstructor C () k0))) | 1500 (InvokeConstructor C () k0))) |
| 1428 ''', | 1501 ''', |
| 1429 'C.foo': ''' | 1502 'C.foo': ''' |
| 1430 (FunctionDefinition foo () return | 1503 (FunctionDefinition foo () return |
| 1431 (LetPrim (v0 (Constant (Null))) | 1504 (LetPrim (v0 (Constant (Null))) |
| 1432 (InvokeContinuation return (v0)))) | 1505 (InvokeContinuation return (v0)))) |
| 1433 '''}), | 1506 '''}), |
| 1434 ]), | 1507 ]), |
| 1435 ]; | 1508 ]; |
| OLD | NEW |