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