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

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

Issue 693153002: Support is/as expressions in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « pkg/analyzer2dart/lib/src/tree_shaker.dart ('k') | pkg/analyzer2dart/test/sexpr_data.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 the end2end test. 5 /// Test data for the end2end test.
6 library test.end2end.data; 6 library test.end2end.data;
7 7
8 import 'test_helper.dart' show Group; 8 import 'test_helper.dart' show Group;
9 import 'test_helper.dart' as base show TestSpec; 9 import 'test_helper.dart' as base show TestSpec;
10 10
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 } 638 }
639 }''', ''' 639 }''', '''
640 main() { 640 main() {
641 var i = 0; 641 var i = 0;
642 while (i < 10) { 642 while (i < 10) {
643 print(i); 643 print(i);
644 ++i; 644 ++i;
645 } 645 }
646 }'''), 646 }'''),
647 ]), 647 ]),
648
649 const Group('Type operators', const <TestSpec>[
650 const TestSpec('''
651 main(a) {
652 return a is String;
653 }
654 '''),
655
656 const TestSpec('''
657 main(a) {
658 return a is List<String>;
659 }
660 '''),
661
662 const TestSpec('''
663 main(a) {
664 return a is Comparator<String>;
665 }
666 '''),
667
668 const TestSpec('''
669 main(a) {
670 return a is! String;
671 }
672 ''', '''
673 main(a) {
674 return !(a is String);
675 }
676 '''),
677
678 const TestSpec('''
679 main(a) {
680 return a as String;
681 }
682 '''),
683 ]),
648 ]; 684 ];
OLDNEW
« no previous file with comments | « pkg/analyzer2dart/lib/src/tree_shaker.dart ('k') | pkg/analyzer2dart/test/sexpr_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698