webidl: initial enum support

Add enum support to the WebIDL interface generator.
This commit is contained in:
Stephan Wolski
2018-07-08 22:09:00 -04:00
parent 94d939f4da
commit a981dfd507
10 changed files with 239 additions and 12 deletions

View File

@ -33,6 +33,7 @@ pub enum ImportKind {
Function(ImportFunction),
Static(ImportStatic),
Type(ImportType),
Enum(ImportEnum),
}
#[derive(Deserialize, Serialize)]
@ -78,6 +79,9 @@ pub struct ImportStatic {
#[derive(Deserialize, Serialize)]
pub struct ImportType {}
#[derive(Deserialize, Serialize)]
pub struct ImportEnum {}
#[derive(Deserialize, Serialize)]
pub struct Export {
pub class: Option<String>,