OLD | NEW |
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 static method main(core::List<core::String> arguments) → dynamic { | 5 static method main(core::List<core::String> arguments) → dynamic { |
6 final dynamic foo = MakeClosure<(dynamic) → dynamic>(self::closure#main#foo, n
ull); | 6 final (dynamic) → dynamic foo = MakeClosure<(dynamic) → dynamic>(self::closure
#main#foo, null); |
7 foo.call(arguments.[](0)).call(); | 7 foo.call(arguments.[](0)).call(); |
8 } | 8 } |
9 static method closure#main#foo#bar(Vector #contextParameter) → dynamic { | 9 static method closure#main#foo#bar(Vector #contextParameter) → dynamic { |
10 core::print(#contextParameter[1]); | 10 core::print(#contextParameter[1]); |
11 } | 11 } |
12 static method closure#main#foo(Vector #contextParameter, dynamic x) → dynamic { | 12 static method closure#main#foo(Vector #contextParameter, dynamic x) → dynamic { |
13 final Vector #context = MakeVector(2); | 13 final Vector #context = MakeVector(2); |
14 #context[0] = #contextParameter; | 14 #context[0] = #contextParameter; |
15 #context[1] = x; | 15 #context[1] = x; |
16 final dynamic bar = MakeClosure<() → dynamic>(self::closure#main#foo#bar, #con
text); | 16 final () → dynamic bar = MakeClosure<() → dynamic>(self::closure#main#foo#bar,
#context); |
17 return bar; | 17 return bar; |
18 } | 18 } |
OLD | NEW |