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

Side by Side Diff: pkg/front_end/test/fasta/rasta/static.dart.direct.expect

Issue 2765943002: Improve handling of complicated getters and setters. (Closed)
Patch Set: Update status files. Created 3 years, 9 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
« no previous file with comments | « pkg/front_end/test/fasta/rasta/static.dart ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 static const field dynamic staticConstant = 42; 6 static const field dynamic staticConstant = 42;
7 static field dynamic staticField = 42; 7 static field dynamic staticField = 42;
8 constructor •() → self::Foo 8 constructor •() → void
9 : super core::Object::•(); 9 : super core::Object::•()
10 ;
10 static method staticFunction() → dynamic {} 11 static method staticFunction() → dynamic {}
11 static get staticGetter() → dynamic 12 static get staticGetter() → dynamic
12 return null; 13 return null;
13 static set staticSetter(dynamic _) → dynamic {} 14 static set staticSetter(dynamic _) → dynamic {}
14 } 15 }
15 static method use(dynamic x) → dynamic { 16 static method use(dynamic x) → dynamic {
16 if(x.==(new core::DateTime::now().millisecondsSinceEpoch)) 17 if(x.==(new core::DateTime::now().millisecondsSinceEpoch))
17 throw "Shouldn't happen"; 18 throw "Shouldn't happen";
18 } 19 }
19 static method main() → dynamic { 20 static method main() → dynamic {
20 self::Foo::staticConstant; 21 try {
21 self::use(self::Foo::staticConstant); 22 self::Foo::staticConstant;
22 self::Foo::staticField; 23 self::use(self::Foo::staticConstant);
23 self::use(self::Foo::staticField); 24 self::Foo::staticField;
24 self::Foo::staticFunction; 25 self::use(self::Foo::staticField);
25 self::use(self::Foo::staticFunction); 26 self::Foo::staticFunction;
26 self::Foo::staticGetter; 27 self::use(self::Foo::staticFunction);
27 self::use(self::Foo::staticGetter); 28 self::Foo::staticGetter;
28 invalid-expression; 29 self::use(self::Foo::staticGetter);
29 self::use(invalid-expression); 30 throw new core::NoSuchMethodError::•(null, #staticSetter, <dynamic>[], <dyna mic, dynamic>{}, null);
30 let final dynamic #t1 = self::Foo::staticConstant.+(1) in invalid-expression; 31 self::use(throw new core::NoSuchMethodError::•(null, #staticSetter, <dynamic >[], <dynamic, dynamic>{}, null));
31 self::use(let final dynamic #t2 = self::Foo::staticConstant in let final dynam ic #t3 = let final dynamic #t4 = #t2.+(1) in invalid-expression in #t2); 32 throw new core::NoSuchMethodError::•(null, #staticConstant, <dynamic>[self:: Foo::staticConstant.+(1)], <dynamic, dynamic>{}, null);
32 self::Foo::staticField = self::Foo::staticField.+(1); 33 self::use(let final dynamic #t1 = self::Foo::staticConstant in let final dyn amic #t2 = throw new core::NoSuchMethodError::•(null, #staticConstant, <dynamic> [#t1.+(1)], <dynamic, dynamic>{}, null) in #t1);
33 self::use(let final dynamic #t5 = self::Foo::staticField in let final dynamic #t6 = self::Foo::staticField = #t5.+(1) in #t5); 34 self::Foo::staticField = self::Foo::staticField.+(1);
34 let final dynamic #t7 = self::Foo::staticFunction.+(1) in invalid-expression; 35 self::use(let final dynamic #t3 = self::Foo::staticField in let final dynami c #t4 = self::Foo::staticField = #t3.+(1) in #t3);
35 self::use(let final dynamic #t8 = self::Foo::staticFunction in let final dynam ic #t9 = let final dynamic #t10 = #t8.+(1) in invalid-expression in #t8); 36 throw new core::NoSuchMethodError::•(null, #staticFunction, <dynamic>[self:: Foo::staticFunction.+(1)], <dynamic, dynamic>{}, null);
36 throw core::_unresolvedStaticSetterError(null, #staticGetter, <dynamic>[self:: Foo::staticGetter.+(1)], <dynamic, dynamic>{}, null); 37 self::use(let final dynamic #t5 = self::Foo::staticFunction in let final dyn amic #t6 = throw new core::NoSuchMethodError::•(null, #staticFunction, <dynamic> [#t5.+(1)], <dynamic, dynamic>{}, null) in #t5);
37 self::use(let final dynamic #t11 = self::Foo::staticGetter in let final dynami c #t12 = throw core::_unresolvedStaticSetterError(null, #staticGetter, <dynamic> [#t11.+(1)], <dynamic, dynamic>{}, null) in #t11); 38 throw new core::NoSuchMethodError::•(null, #staticGetter, <dynamic>[self::Fo o::staticGetter.+(1)], <dynamic, dynamic>{}, null);
38 throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynamic>[], <dy namic, dynamic>{}, null); 39 self::use(let final dynamic #t7 = self::Foo::staticGetter in let final dynam ic #t8 = throw new core::NoSuchMethodError::•(null, #staticGetter, <dynamic>[#t7 .+(1)], <dynamic, dynamic>{}, null) in #t7);
39 self::use(throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynam ic>[], <dynamic, dynamic>{}, null)); 40 self::Foo::staticSetter = (throw new core::NoSuchMethodError::•(null, #stati cSetter, <dynamic>[], <dynamic, dynamic>{}, null)).+(1);
40 let final dynamic #t13 = self::Foo::staticConstant.+(1) in invalid-expression; 41 self::use(let final dynamic #t9 = throw new core::NoSuchMethodError::•(null, #staticSetter, <dynamic>[], <dynamic, dynamic>{}, null) in let final dynamic #t 10 = self::Foo::staticSetter = #t9.+(1) in #t9);
41 self::use(let final dynamic #t14 = self::Foo::staticConstant.+(1) in invalid-e xpression); 42 throw new core::NoSuchMethodError::•(null, #staticConstant, <dynamic>[self:: Foo::staticConstant.+(1)], <dynamic, dynamic>{}, null);
42 self::Foo::staticField = self::Foo::staticField.+(1); 43 self::use(throw new core::NoSuchMethodError::•(null, #staticConstant, <dynam ic>[self::Foo::staticConstant.+(1)], <dynamic, dynamic>{}, null));
43 self::use(self::Foo::staticField = self::Foo::staticField.+(1)); 44 self::Foo::staticField = self::Foo::staticField.+(1);
44 let final dynamic #t15 = self::Foo::staticFunction.+(1) in invalid-expression; 45 self::use(self::Foo::staticField = self::Foo::staticField.+(1));
45 self::use(let final dynamic #t16 = self::Foo::staticFunction.+(1) in invalid-e xpression); 46 throw new core::NoSuchMethodError::•(null, #staticFunction, <dynamic>[self:: Foo::staticFunction.+(1)], <dynamic, dynamic>{}, null);
46 throw core::_unresolvedStaticSetterError(null, #staticGetter, <dynamic>[self:: Foo::staticGetter.+(1)], <dynamic, dynamic>{}, null); 47 self::use(throw new core::NoSuchMethodError::•(null, #staticFunction, <dynam ic>[self::Foo::staticFunction.+(1)], <dynamic, dynamic>{}, null));
47 self::use(throw core::_unresolvedStaticSetterError(null, #staticGetter, <dynam ic>[self::Foo::staticGetter.+(1)], <dynamic, dynamic>{}, null)); 48 throw new core::NoSuchMethodError::•(null, #staticGetter, <dynamic>[self::Fo o::staticGetter.+(1)], <dynamic, dynamic>{}, null);
48 throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynamic>[], <dy namic, dynamic>{}, null); 49 self::use(throw new core::NoSuchMethodError::•(null, #staticGetter, <dynamic >[self::Foo::staticGetter.+(1)], <dynamic, dynamic>{}, null));
49 self::use(throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynam ic>[], <dynamic, dynamic>{}, null)); 50 self::Foo::staticSetter = (throw new core::NoSuchMethodError::•(null, #stati cSetter, <dynamic>[], <dynamic, dynamic>{}, null)).+(1);
50 self::Foo::staticConstant.call(); 51 self::use(self::Foo::staticSetter = (throw new core::NoSuchMethodError::•(nu ll, #staticSetter, <dynamic>[], <dynamic, dynamic>{}, null)).+(1));
51 self::use(self::Foo::staticConstant.call()); 52 self::Foo::staticConstant.call();
52 self::Foo::staticField.call(); 53 self::use(self::Foo::staticConstant.call());
53 self::use(self::Foo::staticField.call()); 54 self::Foo::staticField.call();
54 self::Foo::staticFunction(); 55 self::use(self::Foo::staticField.call());
55 self::use(self::Foo::staticFunction()); 56 self::Foo::staticFunction();
56 self::Foo::staticGetter.call(); 57 self::use(self::Foo::staticFunction());
57 self::use(self::Foo::staticGetter.call()); 58 self::Foo::staticGetter();
58 invalid-expression.call(); 59 self::use(self::Foo::staticGetter());
59 self::use(invalid-expression.call()); 60 throw new core::NoSuchMethodError::•(null, #staticSetter, <dynamic>[], <dyna mic, dynamic>{}, null);
60 let final dynamic #t17 = 87 in invalid-expression; 61 self::use(throw new core::NoSuchMethodError::•(null, #staticSetter, <dynamic >[], <dynamic, dynamic>{}, null));
61 self::use(let final dynamic #t18 = 87 in invalid-expression); 62 throw new core::NoSuchMethodError::•(null, #staticConstant, <dynamic>[87], < dynamic, dynamic>{}, null);
62 self::Foo::staticField = 87; 63 self::use(throw new core::NoSuchMethodError::•(null, #staticConstant, <dynam ic>[87], <dynamic, dynamic>{}, null));
63 self::use(self::Foo::staticField = 87); 64 self::Foo::staticField = 87;
64 let final dynamic #t19 = 87 in invalid-expression; 65 self::use(self::Foo::staticField = 87);
65 self::use(let final dynamic #t20 = 87 in invalid-expression); 66 throw new core::NoSuchMethodError::•(null, #staticFunction, <dynamic>[87], < dynamic, dynamic>{}, null);
66 let final dynamic #t21 = 87 in invalid-expression; 67 self::use(throw new core::NoSuchMethodError::•(null, #staticFunction, <dynam ic>[87], <dynamic, dynamic>{}, null));
67 self::use(let final dynamic #t22 = 87 in invalid-expression); 68 throw new core::NoSuchMethodError::•(null, #staticGetter, <dynamic>[87], <dy namic, dynamic>{}, null);
68 self::Foo::staticSetter = 87; 69 self::use(throw new core::NoSuchMethodError::•(null, #staticGetter, <dynamic >[87], <dynamic, dynamic>{}, null));
69 self::use(self::Foo::staticSetter = 87); 70 self::Foo::staticSetter = 87;
70 self::Foo::staticConstant.==(null) ? let final dynamic #t23 = 87 in invalid-ex pression : null; 71 self::use(self::Foo::staticSetter = 87);
71 self::use(let final dynamic #t24 = self::Foo::staticConstant in #t24.==(null) ? let final dynamic #t25 = 87 in invalid-expression : #t24); 72 self::Foo::staticConstant.==(null) ? throw new core::NoSuchMethodError::•(nu ll, #staticConstant, <dynamic>[87], <dynamic, dynamic>{}, null) : null;
72 self::Foo::staticField.==(null) ? self::Foo::staticField = 87 : null; 73 self::use(let final dynamic #t11 = self::Foo::staticConstant in #t11.==(null ) ? throw new core::NoSuchMethodError::•(null, #staticConstant, <dynamic>[87], < dynamic, dynamic>{}, null) : #t11);
73 self::use(let final dynamic #t26 = self::Foo::staticField in #t26.==(null) ? s elf::Foo::staticField = 87 : #t26); 74 self::Foo::staticField.==(null) ? self::Foo::staticField = 87 : null;
74 self::Foo::staticFunction.==(null) ? let final dynamic #t27 = 87 in invalid-ex pression : null; 75 self::use(let final dynamic #t12 = self::Foo::staticField in #t12.==(null) ? self::Foo::staticField = 87 : #t12);
75 self::use(let final dynamic #t28 = self::Foo::staticFunction in #t28.==(null) ? let final dynamic #t29 = 87 in invalid-expression : #t28); 76 self::Foo::staticFunction.==(null) ? throw new core::NoSuchMethodError::•(nu ll, #staticFunction, <dynamic>[87], <dynamic, dynamic>{}, null) : null;
76 self::Foo::staticGetter.==(null) ? throw core::_unresolvedStaticSetterError(nu ll, #staticGetter, <dynamic>[87], <dynamic, dynamic>{}, null) : null; 77 self::use(let final dynamic #t13 = self::Foo::staticFunction in #t13.==(null ) ? throw new core::NoSuchMethodError::•(null, #staticFunction, <dynamic>[87], < dynamic, dynamic>{}, null) : #t13);
77 self::use(let final dynamic #t30 = self::Foo::staticGetter in #t30.==(null) ? throw core::_unresolvedStaticSetterError(null, #staticGetter, <dynamic>[87], <dy namic, dynamic>{}, null) : #t30); 78 self::Foo::staticGetter.==(null) ? throw new core::NoSuchMethodError::•(null , #staticGetter, <dynamic>[87], <dynamic, dynamic>{}, null) : null;
78 throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynamic>[], <dy namic, dynamic>{}, null); 79 self::use(let final dynamic #t14 = self::Foo::staticGetter in #t14.==(null) ? throw new core::NoSuchMethodError::•(null, #staticGetter, <dynamic>[87], <dyna mic, dynamic>{}, null) : #t14);
79 self::use(throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynam ic>[], <dynamic, dynamic>{}, null)); 80 (throw new core::NoSuchMethodError::•(null, #staticSetter, <dynamic>[], <dyn amic, dynamic>{}, null)).==(null) ? self::Foo::staticSetter = 87 : null;
81 self::use(let final dynamic #t15 = throw new core::NoSuchMethodError::•(null , #staticSetter, <dynamic>[], <dynamic, dynamic>{}, null) in #t15.==(null) ? sel f::Foo::staticSetter = 87 : #t15);
82 }
83 on core::NoSuchMethodError catch(no-exception-var) {
84 }
80 } 85 }
OLDNEW
« no previous file with comments | « pkg/front_end/test/fasta/rasta/static.dart ('k') | tests/co19/co19-kernel.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698