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

Side by Side Diff: tests/compiler/dart2js/semantic_visitor_test_send_data.dart

Issue 1160313006: Revert "Refactoring resolution of local access and unqualified access of statics" (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 part of dart2js.semantics_visitor_test; 5 part of dart2js.semantics_visitor_test;
6 6
7 const Map<String, List<Test>> SEND_TESTS = const { 7 const Map<String, List<Test>> SEND_TESTS = const {
8 'Parameters': const [ 8 'Parameters': const [
9 // Parameters 9 // Parameters
10 const Test('m(o) => o;', 10 const Test('m(o) => o;',
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 ''', 343 ''',
344 const Visit(VisitKind.VISIT_UNRESOLVED_GET, 344 const Visit(VisitKind.VISIT_UNRESOLVED_GET,
345 name: 'o')), 345 name: 'o')),
346 const Test.clazz( 346 const Test.clazz(
347 ''' 347 '''
348 class C { 348 class C {
349 static set o(_) {} 349 static set o(_) {}
350 m() => o; 350 m() => o;
351 } 351 }
352 ''', 352 ''',
353 const Visit(VisitKind.VISIT_STATIC_SETTER_GET, 353 const Visit(VisitKind.VISIT_UNRESOLVED_GET,
354 element: 'setter(C#o)')), 354 name: 'o')),
355
356 const Test.clazz( 355 const Test.clazz(
357 ''' 356 '''
358 class C { 357 class C {
359 static set o(_) {} 358 static set o(_) {}
360 m() => C.o; 359 m() => C.o;
361 } 360 }
362 ''', 361 ''',
363 const Visit(VisitKind.VISIT_UNRESOLVED_GET, 362 const Visit(VisitKind.VISIT_UNRESOLVED_GET,
364 name: 'o')), 363 name: 'o')),
365 const Test.prefix( 364 const Test.prefix(
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 const Visit(VisitKind.VISIT_UNRESOLVED_INVOKE, 455 const Visit(VisitKind.VISIT_UNRESOLVED_INVOKE,
457 name: 'o', 456 name: 'o',
458 arguments: '(null,42)')), 457 arguments: '(null,42)')),
459 const Test.clazz( 458 const Test.clazz(
460 ''' 459 '''
461 class C { 460 class C {
462 static set o(_) {} 461 static set o(_) {}
463 m() { o(null, 42); } 462 m() { o(null, 42); }
464 } 463 }
465 ''', 464 ''',
466 const Visit(VisitKind.VISIT_STATIC_SETTER_INVOKE, 465 const Visit(VisitKind.VISIT_UNRESOLVED_INVOKE,
467 element: 'setter(C#o)', 466 name: 'o',
468 arguments: '(null,42)')), 467 arguments: '(null,42)')),
469 const Test.clazz( 468 const Test.clazz(
470 ''' 469 '''
471 class C { 470 class C {
472 static set o(_) {} 471 static set o(_) {}
473 m() { C.o(null, 42); } 472 m() { C.o(null, 42); }
474 } 473 }
475 ''', 474 ''',
476 const Visit(VisitKind.VISIT_UNRESOLVED_INVOKE, 475 const Visit(VisitKind.VISIT_UNRESOLVED_INVOKE,
477 name: 'o', 476 name: 'o',
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 m() => p.o; 713 m() => p.o;
715 ''', 714 ''',
716 const Visit(VisitKind.VISIT_TOP_LEVEL_GETTER_GET, 715 const Visit(VisitKind.VISIT_TOP_LEVEL_GETTER_GET,
717 element: 'getter(o)')), 716 element: 'getter(o)')),
718 // TODO(johnniwinther): Expect [VISIT_TOP_LEVEL_SETTER_GET] instead. 717 // TODO(johnniwinther): Expect [VISIT_TOP_LEVEL_SETTER_GET] instead.
719 const Test( 718 const Test(
720 ''' 719 '''
721 set o(_) {} 720 set o(_) {}
722 m() => o; 721 m() => o;
723 ''', 722 ''',
724 const Visit(VisitKind.VISIT_TOP_LEVEL_SETTER_GET, 723 const Visit(VisitKind.VISIT_UNRESOLVED_GET,
725 element: 'setter(o)')), 724 name: 'o')),
726 const Test.prefix( 725 const Test.prefix(
727 ''' 726 '''
728 set o(_) {} 727 set o(_) {}
729 ''', 728 ''',
730 ''' 729 '''
731 m() => p.o; 730 m() => p.o;
732 ''', 731 ''',
733 const Visit(VisitKind.VISIT_UNRESOLVED_GET, 732 const Visit(VisitKind.VISIT_UNRESOLVED_GET,
734 name: 'o')), 733 name: 'o')),
735 // TODO(johnniwinther): Expect [VISIT_TOP_LEVEL_GETTER_SET] instead. 734 // TODO(johnniwinther): Expect [VISIT_TOP_LEVEL_GETTER_SET] instead.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 'm() { p.o(null, 42); }', 779 'm() { p.o(null, 42); }',
781 const Visit(VisitKind.VISIT_TOP_LEVEL_GETTER_INVOKE, 780 const Visit(VisitKind.VISIT_TOP_LEVEL_GETTER_INVOKE,
782 element: 'getter(o)', 781 element: 'getter(o)',
783 arguments: '(null,42)')), 782 arguments: '(null,42)')),
784 // TODO(johnniwinther): Expected [VISIT_TOP_LEVEL_SETTER_INVOKE] instead. 783 // TODO(johnniwinther): Expected [VISIT_TOP_LEVEL_SETTER_INVOKE] instead.
785 const Test( 784 const Test(
786 ''' 785 '''
787 set o(_) {} 786 set o(_) {}
788 m() => o(null, 42); 787 m() => o(null, 42);
789 ''', 788 ''',
790 const Visit(VisitKind.VISIT_TOP_LEVEL_SETTER_INVOKE, 789 const Visit(VisitKind.VISIT_UNRESOLVED_INVOKE,
791 element: 'setter(o)', 790 name: 'o',
792 arguments: '(null,42)')), 791 arguments: '(null,42)')),
793 const Test.prefix( 792 const Test.prefix(
794 ''' 793 '''
795 set o(_) {} 794 set o(_) {}
796 ''', 795 ''',
797 'm() { p.o(null, 42); }', 796 'm() { p.o(null, 42); }',
798 const Visit(VisitKind.VISIT_UNRESOLVED_INVOKE, 797 const Visit(VisitKind.VISIT_UNRESOLVED_INVOKE,
799 name: 'o', 798 name: 'o',
800 arguments: '(null,42)')), 799 arguments: '(null,42)')),
801 ], 800 ],
(...skipping 2702 matching lines...) Expand 10 before | Expand all | Expand 10 after
3504 ''' 3503 '''
3505 m(a) => a ??= 42; 3504 m(a) => a ??= 42;
3506 ''', 3505 ''',
3507 const Visit( 3506 const Visit(
3508 VisitKind.VISIT_PARAMETER_COMPOUND, 3507 VisitKind.VISIT_PARAMETER_COMPOUND,
3509 element: 'parameter(m#a)', 3508 element: 'parameter(m#a)',
3510 operator: '??=', 3509 operator: '??=',
3511 rhs: '42')), 3510 rhs: '42')),
3512 ], 3511 ],
3513 }; 3512 };
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/semantic_visitor_test.dart ('k') | tests/compiler/dart2js/simple_inferrer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698