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

Side by Side Diff: pkg/front_end/testcases/void-methods.dart.strong.expect

Issue 2981783002: Set 'isSyntheticDefault' for default constructors. (Closed)
Patch Set: Created 3 years, 5 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 library; 1 library;
2 import self as self; 2 import self as self;
3 import "dart:core" as core; 3 import "dart:core" as core;
4 4
5 class Foo extends core::Object { 5 class Foo extends core::Object {
6 field core::List<dynamic> list = <dynamic>[1, 2, 3]; 6 field core::List<dynamic> list = <dynamic>[1, 2, 3];
7 constructor •() → void 7 default constructor •() → void
8 : super core::Object::•() 8 : super core::Object::•()
9 ; 9 ;
10 set first(dynamic x) → dynamic 10 set first(dynamic x) → void
11 return let final dynamic #t1 = this.{self::Foo::list} in let final dynamic # t2 = 0 in let final dynamic #t3 = x in let final dynamic #t4 = #t1.{core::List:: []=}(#t2, #t3) in #t3; 11 return let final dynamic #t1 = this.{self::Foo::list} in let final dynamic # t2 = 0 in let final dynamic #t3 = x in let final dynamic #t4 = #t1.{core::List:: []=}(#t2, #t3) in #t3;
12 operator []=(dynamic x, dynamic y) → dynamic 12 operator []=(dynamic x, dynamic y) → dynamic
13 return let final dynamic #t5 = this.{self::Foo::list} in let final dynamic # t6 = x in let final dynamic #t7 = y in let final dynamic #t8 = #t5.{core::List:: []=}(#t6, #t7) in #t7; 13 return let final dynamic #t5 = this.{self::Foo::list} in let final dynamic # t6 = x in let final dynamic #t7 = y in let final dynamic #t8 = #t5.{core::List:: []=}(#t6, #t7) in #t7;
14 method clear() → void 14 method clear() → void
15 return this.{self::Foo::list}.{core::List::clear}(); 15 return this.{self::Foo::list}.{core::List::clear}();
16 } 16 }
17 static method main() → dynamic { 17 static method main() → dynamic {
18 new self::Foo::•().{self::Foo::first} = 4; 18 new self::Foo::•().{self::Foo::first} = 4;
19 new self::Foo::•().{self::Foo::[]=}(3, 4); 19 new self::Foo::•().{self::Foo::[]=}(3, 4);
20 new self::Foo::•().{self::Foo::clear}(); 20 new self::Foo::•().{self::Foo::clear}();
21 } 21 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698