OLD | NEW |
| (Empty) |
1 library; | |
2 import self as self; | |
3 import "dart:core" as core; | |
4 | |
5 class Foo extends core::Object { | |
6 final field core::int index; | |
7 static const field core::List<self::Foo> values = const <self::Foo>[self::Foo:
:ec1, self::Foo::ec2]; | |
8 static const field self::Foo ec1 = const self::Foo::•(0); | |
9 static const field self::Foo ec2 = const self::Foo::•(1); | |
10 const constructor •(core::int index) → void | |
11 : self::Foo::index = index, super core::Object::•() | |
12 ; | |
13 method toString() → core::String | |
14 return const <core::int, core::String>{0: "Foo.ec1", 1: "Foo.ec2"}.[](this.{
=self::Foo::index}); | |
15 } | |
16 static method main() → dynamic {} | |
OLD | NEW |