-
-
Notifications
You must be signed in to change notification settings - Fork 64
Add trivia for partial types #205
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
lib/webidl2.js
Outdated
@@ -851,7 +851,7 @@ | |||
return ret; | |||
} | |||
|
|||
function interface_rest(isPartial, typeName = "interface") { | |||
function interface_rest(partialModifier = null, typeName = "interface") { |
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.
I'd really prefer if this was:
interface_rest(typeName = "interface", { partialModifier = null } ) {
It kills the annoying partialModifier boolean/null trap.
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.
Signature of interface_rest could be better.
lib/webidl2.js
Outdated
@@ -889,7 +889,7 @@ | |||
} | |||
} | |||
|
|||
function mixin_rest(isPartial) { | |||
function mixin_rest(partialModifier = null) { |
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.
I guess same applies here.
lib/webidl2.js
Outdated
@@ -927,17 +927,17 @@ | |||
} | |||
} | |||
|
|||
function interface_(isPartial) { | |||
function interface_(partialModifier = null) { |
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.
same... and for the others too.
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.
Thanks for updating the signatures!
Renames a local variable
isPartial
aspartialModifier
.