Chromium Code Reviews| 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..d4c3f77a2bcb398226fca3363538c6145ac7016d 100644 |
| --- a/tests/compiler/dart2js/mirrors_helper.dart |
| +++ b/tests/compiler/dart2js/mirrors_helper.dart |
| @@ -14,6 +14,15 @@ main() { |
| } |
| +@Metadata |
| +@Metadata(null) |
| +@Metadata(true) |
| +@Metadata(false) |
| +@Metadata(0) |
| +@Metadata(1.5) |
| +@Metadata("Foo") |
| +@Metadata(const ["Foo"]) |
| +@Metadata(const {'foo':"Foo"}) |
| class Foo { |
|
Andrei Mouravski
2012/12/19 14:42:02
For the sake of completeness, would you mind addin
ahe
2012/12/19 15:44:03
Line breaks don't matter. Metadata cannot be sepa
Andrei Mouravski
2012/12/19 16:31:19
Good to know.
Could you show an example of using
ahe
2012/12/19 18:11:23
Actually, qualified matches Metadata.foo. So it w
|
| } |
| @@ -53,4 +62,9 @@ class _PrivateClass { |
| void _privateMethod() {} |
| _PrivateClass._privateConstructor(); |
| factory _PrivateClass._privateFactoryConstructor() => new _PrivateClass(); |
| +} |
| + |
| +class Metadata { |
| + final data; |
| + const Metadata(this.data); |
|
ahe
2012/12/19 15:44:03
This should be an optional argument, otherwise you
Johnni Winther
2012/12/20 11:30:35
No. @Metadata is the type literal constant. It wou
|
| } |