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

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

Issue 867233004: Support constructor declarations 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 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after
1376 (InvokeContinuation return (v2)))))) 1376 (InvokeContinuation return (v2))))))
1377 (LetCont ((k1 (v3) 1377 (LetCont ((k1 (v3)
1378 (LetCont ((k2 (v4) 1378 (LetCont ((k2 (v4)
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
1387 const Group('Constructors', const <TestSpec>[
1388 const TestSpec('''
1389 class C {
1390 C() {}
1391 }
1392 main() {
1393 return new C();
1394 }
1395 ''',
1396 const {
1397 'main': '''
1398 (FunctionDefinition main () return ()
1399 (LetCont ((k0 (v0)
1400 (InvokeContinuation return (v0))))
1401 (InvokeConstructor C () k0)))
1402 ''',
1403 'C.': '''
1404 (FunctionDefinition () return ()
1405 (LetPrim (v0 (Constant (Null)))
1406 (InvokeContinuation return (v0))))
1407 '''}),
1408 ]),
1386 ]; 1409 ];
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698