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

Side by Side Diff: pkg/front_end/testcases/rasta/static.dart.dartk.expect

Issue 2980883003: Remove code associated with the old "kompile" functionality. (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
(Empty)
1 library;
2 import self as self;
3 import "dart:core" as core;
4
5 class Foo extends core::Object {
6 static const field dynamic staticConstant = 42;
7 static field dynamic staticField = 42;
8 constructor •() → self::Foo
9 : super core::Object::•();
10 static method staticFunction() → dynamic {}
11 static get staticGetter() → dynamic
12 return null;
13 static set staticSetter(dynamic _) → dynamic {}
14 }
15 static method use(dynamic x) → dynamic {
16 if(x.==(new core::DateTime::now().millisecondsSinceEpoch))
17 throw "Shouldn't happen";
18 }
19 static method main() → dynamic {
20 self::Foo::staticConstant;
21 self::use(self::Foo::staticConstant);
22 self::Foo::staticField;
23 self::use(self::Foo::staticField);
24 self::Foo::staticFunction;
25 self::use(self::Foo::staticFunction);
26 self::Foo::staticGetter;
27 self::use(self::Foo::staticGetter);
28 invalid-expression;
29 self::use(invalid-expression);
30 let final dynamic #t1 = self::Foo::staticConstant.+(1) in invalid-expression;
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 self::Foo::staticField = self::Foo::staticField.+(1);
33 self::use(let final dynamic #t5 = self::Foo::staticField in let final dynamic #t6 = self::Foo::staticField = #t5.+(1) in #t5);
34 let final dynamic #t7 = self::Foo::staticFunction.+(1) in invalid-expression;
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 core::_unresolvedStaticSetterError(null, #staticGetter, <dynamic>[self:: Foo::staticGetter.+(1)], <dynamic, dynamic>{}, null);
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 core::_unresolvedStaticGetterError(null, #staticSetter, <dynamic>[], <dy namic, dynamic>{}, null);
39 self::use(throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynam ic>[], <dynamic, dynamic>{}, null));
40 let final dynamic #t13 = self::Foo::staticConstant.+(1) in invalid-expression;
41 self::use(let final dynamic #t14 = self::Foo::staticConstant.+(1) in invalid-e xpression);
42 self::Foo::staticField = self::Foo::staticField.+(1);
43 self::use(self::Foo::staticField = self::Foo::staticField.+(1));
44 let final dynamic #t15 = self::Foo::staticFunction.+(1) in invalid-expression;
45 self::use(let final dynamic #t16 = self::Foo::staticFunction.+(1) in invalid-e xpression);
46 throw core::_unresolvedStaticSetterError(null, #staticGetter, <dynamic>[self:: Foo::staticGetter.+(1)], <dynamic, dynamic>{}, null);
47 self::use(throw core::_unresolvedStaticSetterError(null, #staticGetter, <dynam ic>[self::Foo::staticGetter.+(1)], <dynamic, dynamic>{}, null));
48 throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynamic>[], <dy namic, dynamic>{}, null);
49 self::use(throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynam ic>[], <dynamic, dynamic>{}, null));
50 self::Foo::staticConstant.call();
51 self::use(self::Foo::staticConstant.call());
52 self::Foo::staticField.call();
53 self::use(self::Foo::staticField.call());
54 self::Foo::staticFunction();
55 self::use(self::Foo::staticFunction());
56 self::Foo::staticGetter.call();
57 self::use(self::Foo::staticGetter.call());
58 invalid-expression.call();
59 self::use(invalid-expression.call());
60 let final dynamic #t17 = 87 in invalid-expression;
61 self::use(let final dynamic #t18 = 87 in invalid-expression);
62 self::Foo::staticField = 87;
63 self::use(self::Foo::staticField = 87);
64 let final dynamic #t19 = 87 in invalid-expression;
65 self::use(let final dynamic #t20 = 87 in invalid-expression);
66 let final dynamic #t21 = 87 in invalid-expression;
67 self::use(let final dynamic #t22 = 87 in invalid-expression);
68 self::Foo::staticSetter = 87;
69 self::use(self::Foo::staticSetter = 87);
70 self::Foo::staticConstant.==(null) ? let final dynamic #t23 = 87 in invalid-ex pression : null;
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::staticField.==(null) ? self::Foo::staticField = 87 : null;
73 self::use(let final dynamic #t26 = self::Foo::staticField in #t26.==(null) ? s elf::Foo::staticField = 87 : #t26);
74 self::Foo::staticFunction.==(null) ? let final dynamic #t27 = 87 in invalid-ex pression : null;
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::staticGetter.==(null) ? throw core::_unresolvedStaticSetterError(nu ll, #staticGetter, <dynamic>[87], <dynamic, dynamic>{}, null) : null;
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 throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynamic>[], <dy namic, dynamic>{}, null);
79 self::use(throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynam ic>[], <dynamic, dynamic>{}, null));
80 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698