Add a structural bindgen attribute

This attribute indicates that methods are to be accessed in a structural method
rather than through their class. This should allow direct access to properties
embedded on objects rather than forcing all objects to have a class/prototype.
This commit is contained in:
Alex Crichton
2018-03-22 17:37:27 -07:00
parent 0e1fee5ddd
commit 8830f540a9
6 changed files with 120 additions and 11 deletions

View File

@ -38,6 +38,7 @@ pub struct ImportFunction {
pub catch: bool,
pub method: bool,
pub js_new: bool,
pub structural: bool,
pub getter: Option<String>,
pub setter: Option<String>,
pub class: Option<String>,