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

Side by Side Diff: test/kernel/regression/static.dart.txt

Issue 2070143002: Track void context. (Closed) Base URL: git@github.com:dart-lang/rasta.git@visit_for_value
Patch Set: Merged with ad52721ca12cbb5c47e968ae2070408e1fef7017 Created 4 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
« no previous file with comments | « test/kernel/regression/for_loop.dart.txt ('k') | test/kernel/regression/super.dart.txt » ('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 •() → self::Foo
9 : super core::Object::•(); 9 : super core::Object::•();
10 static method staticFunction() → dynamic {} 10 static method staticFunction() → dynamic {}
11 static get staticGetter() → dynamic 11 static get staticGetter() → dynamic
12 return null; 12 return null;
13 static set staticSetter(dynamic _) → dynamic {} 13 static set staticSetter(dynamic _) → dynamic {}
14 } 14 }
15 static method use(dynamic x) → dynamic { 15 static method use(dynamic x) → dynamic {
16 if(x.==(new core::DateTime::now().millisecondsSinceEpoch)) 16 if(x.==(new core::DateTime::now().millisecondsSinceEpoch))
17 throw "Shouldn't happen"; 17 throw "Shouldn't happen";
18 } 18 }
19 static method main() → dynamic { 19 static method main() → dynamic {
20 self::Foo::staticConstant; 20 self::Foo::staticConstant;
21 self::use(self::Foo::staticConstant); 21 self::use(self::Foo::staticConstant);
22 self::Foo::staticField; 22 self::Foo::staticField;
23 self::use(self::Foo::staticField); 23 self::use(self::Foo::staticField);
24 self::Foo::staticFunction; 24 self::Foo::staticFunction;
25 self::use(self::Foo::staticFunction); 25 self::use(self::Foo::staticFunction);
26 self::Foo::staticGetter; 26 self::Foo::staticGetter;
27 self::use(self::Foo::staticGetter); 27 self::use(self::Foo::staticGetter);
28 invalid-expression; 28 invalid-expression;
29 self::use(invalid-expression); 29 self::use(invalid-expression);
30 let final #t1 = self::Foo::staticConstant in let final #t2 = let final #t3 = # t1.+(1) in invalid-expression in #t1; 30 let final #t1 = self::Foo::staticConstant.+(1) in invalid-expression;
31 self::use(let final #t4 = self::Foo::staticConstant in let final #t5 = let fin al #t6 = #t4.+(1) in invalid-expression in #t4); 31 self::use(let final #t2 = self::Foo::staticConstant in let final #t3 = let fin al #t4 = #t2.+(1) in invalid-expression in #t2);
32 let final #t7 = self::Foo::staticField in let final #t8 = self::Foo::staticFie ld = #t7.+(1) in #t7; 32 self::Foo::staticField = self::Foo::staticField.+(1);
33 self::use(let final #t9 = self::Foo::staticField in let final #t10 = self::Foo ::staticField = #t9.+(1) in #t9); 33 self::use(let final #t5 = self::Foo::staticField in let final #t6 = self::Foo: :staticField = #t5.+(1) in #t5);
34 let final #t11 = self::Foo::staticFunction in let final #t12 = let final #t13 = #t11.+(1) in invalid-expression in #t11; 34 let final #t7 = self::Foo::staticFunction.+(1) in invalid-expression;
35 self::use(let final #t14 = self::Foo::staticFunction in let final #t15 = let f inal #t16 = #t14.+(1) in invalid-expression in #t14); 35 self::use(let final #t8 = self::Foo::staticFunction in let final #t9 = let fin al #t10 = #t8.+(1) in invalid-expression in #t8);
36 invalid-expression; 36 invalid-expression;
37 self::use(invalid-expression); 37 self::use(invalid-expression);
38 invalid-expression; 38 invalid-expression;
39 self::use(invalid-expression); 39 self::use(invalid-expression);
40 let final #t17 = self::Foo::staticConstant.+(1) in invalid-expression; 40 let final #t11 = self::Foo::staticConstant.+(1) in invalid-expression;
41 self::use(let final #t18 = self::Foo::staticConstant.+(1) in invalid-expressio n); 41 self::use(let final #t12 = self::Foo::staticConstant.+(1) in invalid-expressio n);
42 self::Foo::staticField = self::Foo::staticField.+(1); 42 self::Foo::staticField = self::Foo::staticField.+(1);
43 self::use(self::Foo::staticField = self::Foo::staticField.+(1)); 43 self::use(self::Foo::staticField = self::Foo::staticField.+(1));
44 let final #t19 = self::Foo::staticFunction.+(1) in invalid-expression; 44 let final #t13 = self::Foo::staticFunction.+(1) in invalid-expression;
45 self::use(let final #t20 = self::Foo::staticFunction.+(1) in invalid-expressio n); 45 self::use(let final #t14 = self::Foo::staticFunction.+(1) in invalid-expressio n);
46 invalid-expression; 46 invalid-expression;
47 self::use(invalid-expression); 47 self::use(invalid-expression);
48 invalid-expression; 48 invalid-expression;
49 self::use(invalid-expression); 49 self::use(invalid-expression);
50 self::Foo::staticConstant.call(); 50 self::Foo::staticConstant.call();
51 self::use(self::Foo::staticConstant.call()); 51 self::use(self::Foo::staticConstant.call());
52 self::Foo::staticField.call(); 52 self::Foo::staticField.call();
53 self::use(self::Foo::staticField.call()); 53 self::use(self::Foo::staticField.call());
54 self::Foo::staticFunction(); 54 self::Foo::staticFunction();
55 self::use(self::Foo::staticFunction()); 55 self::use(self::Foo::staticFunction());
56 self::Foo::staticGetter.call(); 56 self::Foo::staticGetter.call();
57 self::use(self::Foo::staticGetter.call()); 57 self::use(self::Foo::staticGetter.call());
58 invalid-expression.call(); 58 invalid-expression.call();
59 self::use(invalid-expression.call()); 59 self::use(invalid-expression.call());
60 let final #t21 = 87 in invalid-expression; 60 let final #t15 = 87 in invalid-expression;
61 self::use(let final #t22 = 87 in invalid-expression); 61 self::use(let final #t16 = 87 in invalid-expression);
62 self::Foo::staticField = 87; 62 self::Foo::staticField = 87;
63 self::use(self::Foo::staticField = 87); 63 self::use(self::Foo::staticField = 87);
64 let final #t23 = 87 in invalid-expression; 64 let final #t17 = 87 in invalid-expression;
65 self::use(let final #t24 = 87 in invalid-expression); 65 self::use(let final #t18 = 87 in invalid-expression);
66 let final #t25 = 87 in invalid-expression; 66 let final #t19 = 87 in invalid-expression;
67 self::use(let final #t26 = 87 in invalid-expression); 67 self::use(let final #t20 = 87 in invalid-expression);
68 self::Foo::staticSetter = 87; 68 self::Foo::staticSetter = 87;
69 self::use(self::Foo::staticSetter = 87); 69 self::use(self::Foo::staticSetter = 87);
70 self::Foo::staticConstant.==(null) ? null : let final #t27 = 87 in invalid-exp ression; 70 self::Foo::staticConstant.==(null) ? null : let final #t21 = 87 in invalid-exp ression;
71 self::use(self::Foo::staticConstant.==(null) ? null : let final #t28 = 87 in i nvalid-expression); 71 self::use(self::Foo::staticConstant.==(null) ? null : let final #t22 = 87 in i nvalid-expression);
72 self::Foo::staticField.==(null) ? null : self::Foo::staticField = 87; 72 self::Foo::staticField.==(null) ? null : self::Foo::staticField = 87;
73 self::use(self::Foo::staticField.==(null) ? null : self::Foo::staticField = 87 ); 73 self::use(self::Foo::staticField.==(null) ? null : self::Foo::staticField = 87 );
74 self::Foo::staticFunction.==(null) ? null : let final #t29 = 87 in invalid-exp ression; 74 self::Foo::staticFunction.==(null) ? null : let final #t23 = 87 in invalid-exp ression;
75 self::use(self::Foo::staticFunction.==(null) ? null : let final #t30 = 87 in i nvalid-expression); 75 self::use(self::Foo::staticFunction.==(null) ? null : let final #t24 = 87 in i nvalid-expression);
76 invalid-expression; 76 invalid-expression;
77 self::use(invalid-expression); 77 self::use(invalid-expression);
78 invalid-expression; 78 invalid-expression;
79 self::use(invalid-expression); 79 self::use(invalid-expression);
80 } 80 }
OLDNEW
« no previous file with comments | « test/kernel/regression/for_loop.dart.txt ('k') | test/kernel/regression/super.dart.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698