-
Notifications
You must be signed in to change notification settings - Fork 446
Feature: Add method handling to mixin processing in KDL #2100
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
base: main
Are you sure you want to change the base?
Changes from 7 commits
a62a343
e3f0a20
d7e96fb
a88fbed
2fcb5b9
e6da694
37825cf
c095db7
9682083
6aa05dd
8f7ca28
0741374
7338aab
333fb26
ea16eb1
fcd4188
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,12 @@ | ||||||||||||||||||
// Manually moved from Document | ||||||||||||||||||
// See https://github.com/w3c/csswg-drafts/issues/5886 and https://github.com/w3c/csswg-drafts/issues/556 | ||||||||||||||||||
interface-mixin DocumentOrShadowRoot { | ||||||||||||||||||
method elementFromPoint returns=Element nullable=#true { | ||||||||||||||||||
param x type=long | ||||||||||||||||||
param y type=long | ||||||||||||||||||
} | ||||||||||||||||||
method elementsFromPoint returns="Element" array { | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would be nice to follow the syntax of TypeScript-DOM-lib-generator/src/build/types.d.ts Lines 1 to 8 in 23819c7
But that doesn't seem possible as a property. Perhaps we should allow (but not force) type as a member for complex cases like this. method elementsFromPoint {
type sequence {
type Element
}
param x type=long
param y type=long
} There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure |
||||||||||||||||||
param x type=long | ||||||||||||||||||
param y type=long | ||||||||||||||||||
} | ||||||||||||||||||
} |
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.
.kdl, not .kd 😛
Also maybe 2-space indent to be consistent with the rest of the code 👀
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 have fixed the name
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.
but not the indent 👀
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 forgot, I have updated them