Skip to main content

build_class

Function build_class 

Source
pub fn build_class(name: &str, parent: Value, ctor: Value) -> Value
Expand description

Build a class constructor value from its parts. The compiler emits (via MKCLASS) the evaluated parent (or undefined) and the constructor closure (or undefined for a default constructor); methods/getters/setters/statics/fields are installed afterward by DEF_MEMBER/DEF_FIELD.