mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #11155 - emilio:codegen-dict-keyword, r=Ms2ger
codegen: Fix dictionary handling and semantics Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #11152 (github issue number if applicable). Either: - [x] There are tests for these changes OR - [ ] These changes do not require tests because _____ Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. Fixes #11152 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11155) <!-- Reviewable:end -->
This commit is contained in:
commit
221db56b08
11 changed files with 183 additions and 21 deletions
|
@ -30,6 +30,13 @@ dictionary TestDictionary {
|
|||
object objectValue;
|
||||
TestDictionaryDefaults dict;
|
||||
sequence<TestDictionaryDefaults> seqDict;
|
||||
// Reserved rust keyword
|
||||
DOMString type;
|
||||
// These are used to test bidirectional conversion
|
||||
// and differentiation of non-required and nullable types
|
||||
// in dictionaries.
|
||||
DOMString? nonRequiredNullable;
|
||||
DOMString? nonRequiredNullable2;
|
||||
};
|
||||
|
||||
dictionary TestDictionaryDefaults {
|
||||
|
@ -196,6 +203,8 @@ interface TestBinding {
|
|||
(sequence<long> or boolean)? receiveNullableUnion4();
|
||||
(unsigned long or boolean)? receiveNullableUnion5();
|
||||
sequence<long>? receiveNullableSequence();
|
||||
TestDictionary receiveTestDictionaryWithSuccessOnKeyword();
|
||||
boolean dictMatchesPassedValues(TestDictionary arg);
|
||||
|
||||
void passBoolean(boolean arg);
|
||||
void passByte(byte arg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue