Skip to content

Commit

Permalink
Revised prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
eggyal committed Sep 11, 2019
1 parent 7cca275 commit 91db9e8
Show file tree
Hide file tree
Showing 27 changed files with 962 additions and 264 deletions.
3 changes: 3 additions & 0 deletions crates/backend/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ pub struct Export {
/// Whether or not this function should be flagged as the wasm start
/// function.
pub start: bool,
/// Constructor arguments excluding synthetic callbacks
pub constructor_args: Option<Vec<Ident>>,
}

/// The 3 types variations of `self`.
Expand Down Expand Up @@ -223,6 +225,7 @@ pub struct Struct {
pub js_name: String,
pub fields: Vec<StructField>,
pub comments: Vec<String>,
pub prototype: Option<syn::Path>,
}

#[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq, Eq))]
Expand Down
Loading

0 comments on commit 91db9e8

Please sign in to comment.