-
Notifications
You must be signed in to change notification settings - Fork 1.7k
The Dart VM should provide reflective access to metadata #10906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Removed Priority-Medium label. |
Set owner to @mhausner. |
One should now be able to obtain metadata for top level functions, variables and classes as wella s for class members. Libraries and type variables still don't work, but this is progress. |
This comment was originally written by @mhausner Reducing priority since the most useful functionality is implemented. Removed Priority-High label. |
Hi Matthias, What is expected to work at this point? I see this simple case works: import 'dart:mirrors'; const awesome = const Awesome('way cool'); class Awesome { @awesome('it works!') void main() { Thanks! Removed Type-Defect label. |
Both dart2js and the VM pass this test: |
This comment was originally written by @mhausner Supported at this time is metadata on:
|
Support for metadata on libraries added in r25721. |
Marked this as blocking #6614. |
Ryan, can you please list what is still needs to be implemented before we can close this bug? Set owner to @rmacnak-google. |
I believe metadata for parameters is the only one still missing. https://chromiumcodereview.appspot.com/23224016/ Added Started label. |
Actually we're also missing metadata on mixin and function typedefs. |
Metadata for mixin and function typedefs added in r26680. |
Metadata for parameters added in r27082. |
Gah, type parameters can have metadata too. |
This comment was originally written by [email protected] Metadata for type parameters added in r27523. That should be it. Added Fixed label. |
The Dart VM should support this getter on DeclarationMirror:
/**
* A list of the metadata associated with this declaration.
*/
List<InstanceMirror> get metadata;
See issue #6614.
The text was updated successfully, but these errors were encountered: