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

Unified Diff: tests/compiler/dart2js/mirrors_helper.dart

Issue 11571058: DeclarationMirror extended with metadata. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/mirrors_helper.dart
diff --git a/tests/compiler/dart2js/mirrors_helper.dart b/tests/compiler/dart2js/mirrors_helper.dart
index 1e9485c41f5fc3bc74ab2c5503be40d76ed5e14d..84e4aed07e32d01e4073c2ee14b846b06af82515 100644
--- a/tests/compiler/dart2js/mirrors_helper.dart
+++ b/tests/compiler/dart2js/mirrors_helper.dart
@@ -14,6 +14,16 @@ main() {
}
+@Metadata
ahe 2013/01/03 12:23:02 Add comment saying that you intentionally is getti
Johnni Winther 2013/01/04 09:14:39 Done.
+@Metadata(null)
+@Metadata(true)
+@Metadata(false)
+@Metadata(0)
+@Metadata(1.5)
+@Metadata("Foo")
+@Metadata(const ["Foo"])
+@Metadata(const {'foo':"Foo"})
+@metadata
class Foo {
}
@@ -53,4 +63,11 @@ class _PrivateClass {
void _privateMethod() {}
_PrivateClass._privateConstructor();
factory _PrivateClass._privateFactoryConstructor() => new _PrivateClass();
+}
+
+const metadata = const Metadata(null);
+
+class Metadata {
+ final data;
+ const Metadata(this.data);
}

Powered by Google App Engine
This is Rietveld 408576698