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
dart2js: MetadataAnnotation does not extend Element #7007
Comments
I hear that you are saying that MetadataAnnotation should be more convenient to use, and we should do something about that. (You don't need to use the cast operator in Dart, it is completely redundant) I think the reason why I didn't make MetadataAnnotation an element is because it doesn't have a name. But that is the case for anonymous functions as well. I'll mull this over. Could you show me an example of what you're trying to do? I'd like to understand the use case better. Set owner to @peter-ahe-google. |
Maybe Spannable is all it needs to be for my purpose: PartialMetadataAnnotation partial = annotation; |
i.e. |
OK, I have started a CL for making MetadataAnnotation spannable. Added Started label. |
This is the direction I'm going: https://codereview.chromium.org/11428086 |
Added TriageForM5 label. |
Removed TriageForM5 label. |
Removed Type-Defect label. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
Fixed in r18129. |
The other elements all extend Element, which makes Element.parseNode available.
MetadataAnnotation does not extend element, which means you have to use
(foo as PartialMetadataAnnotation).parseNode(compiler)
I'm not sure why this is the case. It would be more convenient for programming against MetadataAnnotation if it was an Element.
The text was updated successfully, but these errors were encountered: