Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: test/kernel/regression/enum.dart.txt

Issue 2087503002: Getting enums for free. (Closed) Base URL: git@github.com:dart-lang/rasta.git@prune_unsupported
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/kernel/regression/enum.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 library;
2 import self as self;
3 import "dart:core" as core;
4
5 class Foo extends core::Object {
6 final field dynamic index;
7 static const field dynamic ec1 = const self::Foo::•(0);
8 static const field dynamic ec2 = const self::Foo::•(1);
9 static const field dynamic values = const <dynamic>[self::Foo::ec1, self::Foo: :ec2];
10 const constructor •(core::int index) → void
11 : self::Foo::index = index, super core::Object::•()
12 ;
13 method toString() → core::String
14 return const <dynamic, dynamic>{0: "Foo.ec1", 1: "Foo.ec2"}.[](this.index);
ahe 2016/06/20 17:27:26 This looks a bit odd, but I assume this is to simp
15 }
OLDNEW
« no previous file with comments | « test/kernel/regression/enum.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698