mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #13201 - KiChjang:codegen-typedefs, r=nox
Properly generate typedef identities in unions Fixes #10605. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13201) <!-- Reviewable:end -->
This commit is contained in:
commit
1b3c7ed0ee
4 changed files with 23 additions and 6 deletions
|
@ -6,6 +6,7 @@
|
|||
// web pages.
|
||||
|
||||
enum TestEnum { "", "foo", "bar" };
|
||||
typedef (DOMString or URL or Blob) TestTypedef;
|
||||
|
||||
dictionary TestDictionary {
|
||||
required boolean requiredValue;
|
||||
|
@ -241,6 +242,8 @@ interface TestBinding {
|
|||
void passUnion6((unsigned long or boolean) bool);
|
||||
void passUnion7((sequence<DOMString> or unsigned long) arg);
|
||||
void passUnion8((sequence<ByteString> or long) arg);
|
||||
void passUnionWithTypedef((Document or TestTypedef) arg);
|
||||
void passUnionWithTypedef2((sequence<long> or TestTypedef) arg);
|
||||
void passAny(any arg);
|
||||
void passObject(object arg);
|
||||
void passCallbackFunction(Function fun);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue