| OLD | NEW |
| 1 library test; | 1 library test; |
| 2 import self as self; | 2 import self as self; |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:math" as math; | 4 import "dart:math" as math; |
| 5 | 5 |
| 6 class Trace extends core::Object { | 6 class Trace extends core::Object { |
| 7 field core::List<self::Frame> frames = <self::Frame>[]; | 7 field core::List<self::Frame> frames = <self::Frame>[]; |
| 8 constructor •() → void | 8 default constructor •() → void |
| 9 : super core::Object::•() | 9 : super core::Object::•() |
| 10 ; | 10 ; |
| 11 } | 11 } |
| 12 class Frame extends core::Object { | 12 class Frame extends core::Object { |
| 13 field core::String location = ""; | 13 field core::String location = ""; |
| 14 constructor •() → void | 14 default constructor •() → void |
| 15 : super core::Object::•() | 15 : super core::Object::•() |
| 16 ; | 16 ; |
| 17 } | 17 } |
| 18 static method main() → dynamic { | 18 static method main() → dynamic { |
| 19 core::List<self::Trace> traces = <self::Trace>[]; | 19 core::List<self::Trace> traces = <self::Trace>[]; |
| 20 core::int longest = traces.{core::Iterable::map}<core::int>((self::Trace trace
) → core::int { | 20 core::int longest = traces.{core::Iterable::map}<core::int>((self::Trace trace
) → core::int { |
| 21 return trace.{self::Trace::frames}.{core::Iterable::map}<core::int>((self::F
rame frame) → core::int => frame.{self::Frame::location}.{core::String::length})
.{core::Iterable::fold}<core::int>(0, math::max); | 21 return trace.{self::Trace::frames}.{core::Iterable::map}<core::int>((self::F
rame frame) → core::int => frame.{self::Frame::location}.{core::String::length})
.{core::Iterable::fold}<core::int>(0, math::max); |
| 22 }).{core::Iterable::fold}<core::int>(0, math::max); | 22 }).{core::Iterable::fold}<core::int>(0, math::max); |
| 23 } | 23 } |
| OLD | NEW |