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

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

Issue 898303002: Support instance methods in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 (LetCont ((k0 (v0) 1399 (LetCont ((k0 (v0)
1400 (InvokeContinuation return (v0)))) 1400 (InvokeContinuation return (v0))))
1401 (InvokeConstructor C () k0))) 1401 (InvokeConstructor C () k0)))
1402 ''', 1402 ''',
1403 'C.': ''' 1403 'C.': '''
1404 (FunctionDefinition () return 1404 (FunctionDefinition () return
1405 (LetPrim (v0 (Constant (Null))) 1405 (LetPrim (v0 (Constant (Null)))
1406 (InvokeContinuation return (v0)))) 1406 (InvokeContinuation return (v0))))
1407 '''}), 1407 '''}),
1408 ]), 1408 ]),
1409
1410 const Group('Instance method', const <TestSpec>[
1411 const TestSpec('''
1412 class C {
1413 C() {}
1414 foo() {}
1415 }
1416 main() {
1417 return new C().foo();
sigurdm 2015/02/06 15:04:46 You could add arguments to make the test stronger
1418 }
1419 ''',
1420 const {
1421 'main': '''
1422 (FunctionDefinition main () return
1423 (LetCont ((k0 (v0)
1424 (LetCont ((k1 (v1)
1425 (InvokeContinuation return (v1))))
1426 (InvokeMethod v0 foo () k1))))
1427 (InvokeConstructor C () k0)))
1428 ''',
1429 'C.foo': '''
1430 (FunctionDefinition foo () return
1431 (LetPrim (v0 (Constant (Null)))
1432 (InvokeContinuation return (v0))))
1433 '''}),
1434 ]),
1409 ]; 1435 ];
OLDNEW
« pkg/analyzer2dart/test/end2end_data.dart ('K') | « pkg/analyzer2dart/test/end2end_data.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698