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

Side by Side Diff: pkg/kernel/testcases/strong-mode/optional.baseline.txt

Issue 2645733004: Run tree shaking in strong-mode baseline tests. (Closed)
Patch Set: Created 3 years, 11 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 // Too few positional arguments (optional.dart:44:22) 1 // Too few positional arguments (optional.dart:44:22)
2 // Too many positional arguments (optional.dart:45:22) 2 // Too many positional arguments (optional.dart:45:22)
3 // Too few positional arguments (optional.dart:46:25) 3 // Too few positional arguments (optional.dart:46:25)
4 // Too many positional arguments (optional.dart:47:25) 4 // Too many positional arguments (optional.dart:47:25)
5 library; 5 library;
6 import self as self; 6 import self as self;
7 import "dart:core" as core; 7 import "dart:core" as core;
8 8
9 class Foo extends core::Object { 9 class Foo extends core::Object {
10 constructor •() → void 10 constructor •() → void
11 : super core::Object::•() 11 : super core::Object::•()
12 ; 12 ;
13 method method(dynamic x, [dynamic y, dynamic z]) → dynamic { 13 method method(dynamic x, [dynamic y, dynamic z]) → dynamic {
14 return "string"; 14 return "string";
15 } 15 }
16 } 16 }
17 abstract class External extends core::Object { 17 abstract class External extends core::Object {
18 constructor •() → void
19 : super core::Object::•()
20 ;
21 abstract method externalMethod(core::int x, [core::int y, core::int z]) → core ::String; 18 abstract method externalMethod(core::int x, [core::int y, core::int z]) → core ::String;
22 abstract method listen(self::Listener listener) → void; 19 abstract method listen(self::Listener listener) → void;
23 } 20 }
24 abstract class Listener extends core::Object { 21 abstract class Listener extends core::Object {
25 constructor •() → void 22 constructor •() → void
26 : super core::Object::•() 23 : super core::Object::•()
27 ; 24 ;
28 abstract method event(core::String input, [core::int x, core::int y]) → void; 25 abstract method event(core::String input, [core::int x, core::int y]) → void;
29 } 26 }
30 class TestListener extends self::Listener { 27 class TestListener extends self::Listener {
31 constructor •() → void 28 constructor •() → void
32 : super self::Listener::•() 29 : super self::Listener::•()
33 ; 30 ;
34 method event(core::String input, [core::int x, core::int y]) → void {} 31 method event(core::String input, [core::int x, core::int y]) → void {}
35 } 32 }
36 class ExtendedListener extends self::Listener { 33 class ExtendedListener extends self::Listener {
37 constructor •() → void 34 constructor •() → void
38 : super self::Listener::•() 35 : super self::Listener::•()
39 ; 36 ;
40 method event(core::String input, [core::int x, core::int y, dynamic z]) → void {} 37 method event(core::String input, [core::int x, core::int y, dynamic z]) → void {}
41 } 38 }
42 class InvalidListener extends core::Object { 39 class InvalidListener extends core::Object {
43 constructor •() → void 40 constructor •() → void
44 : super core::Object::•() 41 : super core::Object::•()
45 ; 42 ;
46 method event(dynamic input, [dynamic x]) → void {}
47 } 43 }
48 external static method createExternal() → self::External; 44 external static method createExternal() → self::External;
49 static method main() → dynamic { 45 static method main() → dynamic {
50 self::Foo foo = new self::Foo::•(); 46 self::Foo foo = new self::Foo::•();
51 dynamic string1 = foo.{self::Foo::method}(1); 47 dynamic string1 = foo.{self::Foo::method}(1);
52 dynamic string2 = foo.{self::Foo::method}(1, 2); 48 dynamic string2 = foo.{self::Foo::method}(1, 2);
53 dynamic string3 = foo.{self::Foo::method}(1, 2, 3); 49 dynamic string3 = foo.{self::Foo::method}(1, 2, 3);
54 self::External extern = self::createExternal(); 50 self::External extern = self::createExternal();
55 core::String string4 = extern.{self::External::externalMethod}(1); 51 core::String string4 = extern.{self::External::externalMethod}(1);
56 core::String string5 = extern.{self::External::externalMethod}(1, 2); 52 core::String string5 = extern.{self::External::externalMethod}(1, 2);
57 core::String string6 = extern.{self::External::externalMethod}(1, 2, 3); 53 core::String string6 = extern.{self::External::externalMethod}(1, 2, 3);
58 extern.{self::External::listen}(new self::TestListener::•()); 54 extern.{self::External::listen}(new self::TestListener::•());
59 extern.{self::External::listen}(new self::ExtendedListener::•()); 55 extern.{self::External::listen}(new self::ExtendedListener::•());
60 extern.{self::External::listen}(new self::InvalidListener::•() as self::Listen er); 56 extern.{self::External::listen}(new self::InvalidListener::•() as self::Listen er);
61 dynamic nothing1 = foo.{self::Foo::method}(); 57 dynamic nothing1 = foo.{self::Foo::method}();
62 dynamic nothing2 = foo.{self::Foo::method}(1, 2, 3, 4); 58 dynamic nothing2 = foo.{self::Foo::method}(1, 2, 3, 4);
63 core::String nothing3 = extern.{self::External::externalMethod}(); 59 core::String nothing3 = extern.{self::External::externalMethod}();
64 core::String nothing4 = extern.{self::External::externalMethod}(1, 2, 3, 4); 60 core::String nothing4 = extern.{self::External::externalMethod}(1, 2, 3, 4);
65 } 61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698