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

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

Issue 677663002: Support constructor invocation in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add comment. Created 6 years, 1 month 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 const List<Group> TEST_DATA = const [ 10 const List<Group> TEST_DATA = const [
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 (InvokeStatic print v0 k1)) 695 (InvokeStatic print v0 k1))
696 (LetCont (k2) 696 (LetCont (k2)
697 (LetPrim v3 (Constant IntConstant(2))) 697 (LetPrim v3 (Constant IntConstant(2)))
698 (LetCont (k3 v4) 698 (LetCont (k3 v4)
699 (LetPrim v5 (Constant IntConstant(2))) 699 (LetPrim v5 (Constant IntConstant(2)))
700 (InvokeContinuation return v5)) 700 (InvokeContinuation return v5))
701 (InvokeStatic print v3 k3)) 701 (InvokeStatic print v3 k3))
702 (Branch (IsTrue a) k0 k2)) 702 (Branch (IsTrue a) k0 k2))
703 '''), 703 '''),
704 ]), 704 ]),
705
706 const Group('Constructor invocation', const <TestSpec>[
707 const TestSpec('''
708 main(a) {
709 new Object();
710 }
711 ''', '''
712 (FunctionDefinition main (a return)
713 (LetCont (k0 v0)
714 (LetPrim v1 (Constant NullConstant))
715 (InvokeContinuation return v1))
716 (InvokeConstructor Object k0))
717 '''),
718
719 const TestSpec('''
720 main(a) {
721 new Deprecated("");
722 }
723 ''', '''
724 (FunctionDefinition main (a return)
725 (LetPrim v0 (Constant StringConstant("")))
726 (LetCont (k0 v1)
727 (LetPrim v2 (Constant NullConstant))
728 (InvokeContinuation return v2))
729 (InvokeConstructor Deprecated v0 k0))
730 '''),
731 ]),
705 ]; 732 ];
OLDNEW
« no previous file with comments | « pkg/analyzer2dart/test/end2end_data.dart ('k') | sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698