Skip to content

Commit 91db9e8

Browse files
committed
Revised prototype
1 parent 7cca275 commit 91db9e8

File tree

27 files changed

+962
-264
lines changed

27 files changed

+962
-264
lines changed

crates/backend/src/ast.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ pub struct Export {
5151
/// Whether or not this function should be flagged as the wasm start
5252
/// function.
5353
pub start: bool,
54+
/// Constructor arguments excluding synthetic callbacks
55+
pub constructor_args: Option<Vec<Ident>>,
5456
}
5557

5658
/// The 3 types variations of `self`.
@@ -223,6 +225,7 @@ pub struct Struct {
223225
pub js_name: String,
224226
pub fields: Vec<StructField>,
225227
pub comments: Vec<String>,
228+
pub prototype: Option<syn::Path>,
226229
}
227230

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

0 commit comments

Comments
 (0)