-
-
Notifications
You must be signed in to change notification settings - Fork 64
New method to merge partials and mixins #581
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Add WebIDLpedia to that list - so big +1 :) |
|
Trying to handle
I'm not sure how to copy an instance of Ideas? |
Hmm, so there should be a way to copy a member. For now this kinda works: // given that we have `attr` of type Attribute
const clone = new attr.constructor({ source: attr.source, tokens: attr.tokens });
Object.assign(clone, attr); |
There's code using webidl2.js to parse IDL snippets and then applying partials/mixins in at least 3 different places:
None of them are entirely correct in the handling of
[Exposed]
and updating them individually is a nuisance.How about a
compile(ast)
,merge(ast)
, orsimplify(ast)
method that folds in partials and mixins as part of webidl2.js?The text was updated successfully, but these errors were encountered: