mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-16 05:59:21 +03:00
52 lines
653 B
Plaintext
Vendored
52 lines
653 B
Plaintext
Vendored
// 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;
|
|
};
|
|
|
|
dictionary PreserveNames {
|
|
long wierd_fieldName;
|
|
};
|