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

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

Issue 979693003: Streamline the CPS IR Visitor interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Signal an error in visit methods that should not be called. 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after
1392 } 1392 }
1393 ''', 1393 ''',
1394 const { 1394 const {
1395 'main': ''' 1395 'main': '''
1396 (FunctionDefinition main () return 1396 (FunctionDefinition main () return
1397 (LetCont ((k0 (v0) 1397 (LetCont ((k0 (v0)
1398 (InvokeContinuation return (v0)))) 1398 (InvokeContinuation return (v0))))
1399 (InvokeConstructor C () k0))) 1399 (InvokeConstructor C () k0)))
1400 ''', 1400 ''',
1401 'C.': ''' 1401 'C.': '''
1402 (FunctionDefinition () return 1402 (ConstructorDefinition () return (
1403 )
1403 (LetPrim (v0 (Constant (Null))) 1404 (LetPrim (v0 (Constant (Null)))
1404 (InvokeContinuation return (v0)))) 1405 (InvokeContinuation return (v0))))
1405 '''}), 1406 '''}),
1406 1407
1407 const TestSpec(''' 1408 const TestSpec('''
1408 class C { 1409 class C {
1409 C() {} 1410 C() {}
1410 } 1411 }
1411 main() { 1412 main() {
1412 return new C(); 1413 return new C();
1413 } 1414 }
1414 ''', 1415 ''',
1415 const { 1416 const {
1416 'main': ''' 1417 'main': '''
1417 (FunctionDefinition main () return 1418 (FunctionDefinition main () return
1418 (LetCont ((k0 (v0) 1419 (LetCont ((k0 (v0)
1419 (InvokeContinuation return (v0)))) 1420 (InvokeContinuation return (v0))))
1420 (InvokeConstructor C () k0))) 1421 (InvokeConstructor C () k0)))
1421 ''', 1422 ''',
1422 'C.': ''' 1423 'C.': '''
1423 (FunctionDefinition () return 1424 (ConstructorDefinition () return (
1425 )
1424 (LetPrim (v0 (Constant (Null))) 1426 (LetPrim (v0 (Constant (Null)))
1425 (InvokeContinuation return (v0)))) 1427 (InvokeContinuation return (v0))))
1426 '''}), 1428 '''}),
1427 1429
1428 const TestSpec(''' 1430 const TestSpec('''
1429 class B {} 1431 class B {}
1430 class C extends B { 1432 class C extends B {
1431 C() {} 1433 C() {}
1432 } 1434 }
1433 main() { 1435 main() {
1434 return new C(); 1436 return new C();
1435 } 1437 }
1436 ''', 1438 ''',
1437 const { 1439 const {
1438 'main': ''' 1440 'main': '''
1439 (FunctionDefinition main () return 1441 (FunctionDefinition main () return
1440 (LetCont ((k0 (v0) 1442 (LetCont ((k0 (v0)
1441 (InvokeContinuation return (v0)))) 1443 (InvokeContinuation return (v0))))
1442 (InvokeConstructor C () k0))) 1444 (InvokeConstructor C () k0)))
1443 ''', 1445 ''',
1444 'B.': ''' 1446 'B.': '''
1445 (FunctionDefinition () return 1447 (ConstructorDefinition () return (
1448 )
1446 (LetPrim (v0 (Constant (Null))) 1449 (LetPrim (v0 (Constant (Null)))
1447 (InvokeContinuation return (v0)))) 1450 (InvokeContinuation return (v0))))
1448 ''', 1451 ''',
1449 'C.': ''' 1452 'C.': '''
1450 (FunctionDefinition () return 1453 (ConstructorDefinition () return (
1454 )
1451 (LetPrim (v0 (Constant (Null))) 1455 (LetPrim (v0 (Constant (Null)))
1452 (InvokeContinuation return (v0)))) 1456 (InvokeContinuation return (v0))))
1453 '''}), 1457 '''}),
1454 1458
1455 const TestSpec(''' 1459 const TestSpec('''
1456 class B { 1460 class B {
1457 B() {} 1461 B() {}
1458 } 1462 }
1459 class C extends B {} 1463 class C extends B {}
1460 main() { 1464 main() {
1461 return new C(); 1465 return new C();
1462 } 1466 }
1463 ''', 1467 ''',
1464 const { 1468 const {
1465 'main': ''' 1469 'main': '''
1466 (FunctionDefinition main () return 1470 (FunctionDefinition main () return
1467 (LetCont ((k0 (v0) 1471 (LetCont ((k0 (v0)
1468 (InvokeContinuation return (v0)))) 1472 (InvokeContinuation return (v0))))
1469 (InvokeConstructor C () k0))) 1473 (InvokeConstructor C () k0)))
1470 ''', 1474 ''',
1471 'B.': ''' 1475 'B.': '''
1472 (FunctionDefinition () return 1476 (ConstructorDefinition () return (
1477 )
1473 (LetPrim (v0 (Constant (Null))) 1478 (LetPrim (v0 (Constant (Null)))
1474 (InvokeContinuation return (v0)))) 1479 (InvokeContinuation return (v0))))
1475 ''', 1480 ''',
1476 'C.': ''' 1481 'C.': '''
1477 (FunctionDefinition () return 1482 (ConstructorDefinition () return (
1483 )
1478 (LetPrim (v0 (Constant (Null))) 1484 (LetPrim (v0 (Constant (Null)))
1479 (InvokeContinuation return (v0)))) 1485 (InvokeContinuation return (v0))))
1480 '''}), 1486 '''}),
1481 ]), 1487 ]),
1482 1488
1483 const Group('Instance method', const <TestSpec>[ 1489 const Group('Instance method', const <TestSpec>[
1484 const TestSpec(''' 1490 const TestSpec('''
1485 class C { 1491 class C {
1486 C() {} 1492 C() {}
1487 foo() {} 1493 foo() {}
(...skipping 11 matching lines...) Expand all
1499 (InvokeMethod v0 foo () k1)))) 1505 (InvokeMethod v0 foo () k1))))
1500 (InvokeConstructor C () k0))) 1506 (InvokeConstructor C () k0)))
1501 ''', 1507 ''',
1502 'C.foo': ''' 1508 'C.foo': '''
1503 (FunctionDefinition foo () return 1509 (FunctionDefinition foo () return
1504 (LetPrim (v0 (Constant (Null))) 1510 (LetPrim (v0 (Constant (Null)))
1505 (InvokeContinuation return (v0)))) 1511 (InvokeContinuation return (v0))))
1506 '''}), 1512 '''}),
1507 ]), 1513 ]),
1508 ]; 1514 ];
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698