mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2025-01-06 13:14:14 +03:00
48 lines
598 B
Plaintext
48 lines
598 B
Plaintext
|
// example from https://heycam.github.io/webidl/#idl-dictionaries
|
||
|
dictionary B : A {
|
||
|
long b;
|
||
|
long a;
|
||
|
};
|
||
|
|
||
|
dictionary A {
|
||
|
long c;
|
||
|
long g;
|
||
|
};
|
||
|
|
||
|
dictionary C : B {
|
||
|
long e;
|
||
|
long f;
|
||
|
};
|
||
|
|
||
|
partial dictionary A {
|
||
|
long h;
|
||
|
long d;
|
||
|
};
|
||
|
|
||
|
// case needs changing
|
||
|
dictionary camel_case_me {
|
||
|
long snakeCaseMe;
|
||
|
};
|
||
|
|
||
|
dictionary ManyTypes {
|
||
|
DOMString a;
|
||
|
octet n1;
|
||
|
byte n2;
|
||
|
unsigned short n3;
|
||
|
short n4;
|
||
|
unsigned long n5;
|
||
|
long n6;
|
||
|
// TODO: needs fixing
|
||
|
// OtherDict c;
|
||
|
};
|
||
|
|
||
|
dictionary OtherDict {
|
||
|
long a;
|
||
|
};
|
||
|
|
||
|
dictionary Required {
|
||
|
required DOMString b;
|
||
|
required long a;
|
||
|
long c;
|
||
|
};
|