OLD | NEW |
| (Empty) |
1 library; | |
2 import self as self; | |
3 import "dart:core" as core; | |
4 | |
5 class Superclass extends core::Object { | |
6 constructor •() → void | |
7 : super core::Object::•() | |
8 ; | |
9 method foo({dynamic alpha, dynamic beta}) → dynamic {} | |
10 method bar({dynamic beta, dynamic alpha}) → dynamic {} | |
11 method namedCallback(({alpha: core::String, beta: core::int}) → dynamic callba
ck) → dynamic { | |
12 callback.call(alpha: "one", beta: 2); | |
13 callback.call(beta: 1, alpha: "two"); | |
14 } | |
15 } | |
16 class Subclass extends self::Superclass { | |
17 constructor •() → void | |
18 : super self::Superclass::•() | |
19 ; | |
20 method foo({dynamic beta, dynamic alpha}) → dynamic {} | |
21 method bar({dynamic alpha, dynamic beta}) → dynamic {} | |
22 method namedCallback(({alpha: core::String, beta: core::int}) → dynamic callba
ck) → dynamic {} | |
23 } | |
24 static method topLevelNamed(dynamic beta, dynamic alpha, {dynamic gamma, dynamic
delta}) → dynamic {} | |
25 static method topLevelOptional(dynamic beta, dynamic alpha, [dynamic gamma, dyna
mic delta]) → dynamic {} | |
26 static method main() → dynamic { | |
27 new self::Subclass::•().foo(beta: 1, alpha: 2); | |
28 new self::Subclass::•().foo(alpha: 1, beta: 2); | |
29 self::topLevelNamed(1, 2, gamma: 3, delta: 4); | |
30 self::topLevelNamed(1, 2, delta: 3, gamma: 4); | |
31 } | |
OLD | NEW |