-
-
Notifications
You must be signed in to change notification settings - Fork 64
Add support for annotated types #61
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
Conversation
Will review tomorrow. Thanks for putting this together!
… On 3 Apr 2017, at 10:39 pm, Dominique Hazael-Massieux ***@***.***> wrote:
You can view, comment on, or merge this pull request online at:
#61
Commit Summary
Add support for annotated types
Adapt test to support for annotated types
File Changes
M lib/webidl2.js (25)
M test/syntax/idl/uniontype.widl (1)
M test/syntax/json/identifier-qualified-names.json (3)
M test/syntax/json/typedef.json (17)
M test/syntax/json/uniontype.json (200)
Patch Links:
https://github.com./w3c/webidl2.js/pull/61.patch
https://github.com./w3c/webidl2.js/pull/61.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
test/syntax/json/uniontype.json
Outdated
"idlType" : { | ||
"idlType" : [ | ||
{ | ||
"array" : false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's outputting this that it's putting a space after the property name? Can we please not do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(eventually, we might want to generate this stuff using JSON.stringify() and we won't be able to match this format).
@@ -255,6 +255,13 @@ | |||
return single_type() || union_type(); | |||
}; | |||
|
|||
var type_with_extended_attributes = function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thankfully, this was not too painful 🏆
Merge when ready 👍 |
No description provided.