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

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

Issue 2117513002: More extensive error handling for 'unresolved' cases. (Closed) Base URL: git@github.com:dart-lang/rasta.git@master
Patch Set: Merge and update test expectations Created 4 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
« no previous file with comments | « test/kernel/regression/parser_error.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 {}
(...skipping 15 matching lines...) Expand all
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 dynamic #t1 = self::Foo::staticConstant.+(1) in 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); 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); 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); 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; 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); 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 invalid-expression; 36 throw core::_unresolvedStaticSetterError(null, #staticGetter, <dynamic>[self:: Foo::staticGetter.+(1)], <dynamic, dynamic>{}, null);
37 self::use(invalid-expression); 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 invalid-expression; 38 throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynamic>[], <dy namic, dynamic>{}, null);
39 self::use(invalid-expression); 39 self::use(throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynam ic>[], <dynamic, dynamic>{}, null));
40 let final dynamic #t11 = self::Foo::staticConstant.+(1) in invalid-expression; 40 let final dynamic #t13 = self::Foo::staticConstant.+(1) in invalid-expression;
41 self::use(let final dynamic #t12 = self::Foo::staticConstant.+(1) in invalid-e xpression); 41 self::use(let final dynamic #t14 = self::Foo::staticConstant.+(1) in invalid-e xpression);
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 dynamic #t13 = self::Foo::staticFunction.+(1) in invalid-expression; 44 let final dynamic #t15 = self::Foo::staticFunction.+(1) in invalid-expression;
45 self::use(let final dynamic #t14 = self::Foo::staticFunction.+(1) in invalid-e xpression); 45 self::use(let final dynamic #t16 = self::Foo::staticFunction.+(1) in invalid-e xpression);
46 invalid-expression; 46 throw core::_unresolvedStaticSetterError(null, #staticGetter, <dynamic>[self:: Foo::staticGetter.+(1)], <dynamic, dynamic>{}, null);
47 self::use(invalid-expression); 47 self::use(throw core::_unresolvedStaticSetterError(null, #staticGetter, <dynam ic>[self::Foo::staticGetter.+(1)], <dynamic, dynamic>{}, null));
48 invalid-expression; 48 throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynamic>[], <dy namic, dynamic>{}, null);
49 self::use(invalid-expression); 49 self::use(throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynam ic>[], <dynamic, dynamic>{}, null));
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 dynamic #t15 = 87 in invalid-expression; 60 let final dynamic #t17 = 87 in invalid-expression;
61 self::use(let final dynamic #t16 = 87 in invalid-expression); 61 self::use(let final dynamic #t18 = 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 dynamic #t17 = 87 in invalid-expression;
65 self::use(let final dynamic #t18 = 87 in invalid-expression);
66 let final dynamic #t19 = 87 in invalid-expression; 64 let final dynamic #t19 = 87 in invalid-expression;
67 self::use(let final dynamic #t20 = 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; 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 dynamic #t21 = 87 in inv alid-expression; 70 self::Foo::staticConstant.==(null) ? null : let final dynamic #t23 = 87 in inv alid-expression;
71 self::use(self::Foo::staticConstant.==(null) ? null : let final dynamic #t22 = 87 in invalid-expression); 71 self::use(self::Foo::staticConstant.==(null) ? null : let final dynamic #t24 = 87 in invalid-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 dynamic #t23 = 87 in inv alid-expression; 74 self::Foo::staticFunction.==(null) ? null : let final dynamic #t25 = 87 in inv alid-expression;
75 self::use(self::Foo::staticFunction.==(null) ? null : let final dynamic #t24 = 87 in invalid-expression); 75 self::use(self::Foo::staticFunction.==(null) ? null : let final dynamic #t26 = 87 in invalid-expression);
76 invalid-expression; 76 self::Foo::staticGetter.==(null) ? null : throw core::_unresolvedStaticSetterE rror(null, #staticGetter, <dynamic>[87], <dynamic, dynamic>{}, null);
77 self::use(invalid-expression); 77 self::use(self::Foo::staticGetter.==(null) ? null : throw core::_unresolvedSta ticSetterError(null, #staticGetter, <dynamic>[87], <dynamic, dynamic>{}, null));
78 invalid-expression; 78 throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynamic>[], <dy namic, dynamic>{}, null);
79 self::use(invalid-expression); 79 self::use(throw core::_unresolvedStaticGetterError(null, #staticSetter, <dynam ic>[], <dynamic, dynamic>{}, null));
80 } 80 }
OLDNEW
« no previous file with comments | « test/kernel/regression/parser_error.dart.txt ('k') | test/kernel/regression/super.dart.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698