Skip to content

Instantly share code, notes, and snippets.

@seaneagan
Created January 13, 2014 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seaneagan/8408456 to your computer and use it in GitHub Desktop.
Save seaneagan/8408456 to your computer and use it in GitHub Desktop.
test DeclarationMirror.declarations ordering
import 'dart:mirrors';
main() {
print(reflectClass(Foo).declarations.keys.map(MirrorSystem.getName).join(' '));
}
class Foo {
static var sv1 = 1;
static var sv2 = 2;
var iv1 = 1;
var iv2 = 2;
static sm() {}
im() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment