pub fn new(module_name: Rc<str>, env: &'e mut Environment) -> Self {
      Self {
         env,
         chunk: Chunk::new(module_name),

         locals: Default::default(),
         breakable_blocks: Vec::new(),
         struct_data: None,

         allow_new_fields: false,
         is_constructor: false,
         assigned_fields: HashSet::new(),
      }
   }
/// Constructs a new code generator with an empty chunk.
Constructs a new code generator with an empty chunk.
Constructs a new code generator with an empty chunk .
pub fn new(module_name: Rc<str>, env: &'e mut Environment) -> Self {
      Self {
         env,
         chunk: Chunk::new(module_name),
         locals: Default::default(),
         breakable_blocks: Vec::new(),
         struct_data: None,
         allow_new_fields: false,
         is_constructor: false,
         assigned_fields: HashSet::new(),
      }
   }
pub fn new ( module_name : Rc < str > , env : & ' e mut Environment ) -> Self { Self { env , chunk : Chunk :: new ( module_name ) , locals : Default :: default ( ) , breakable_blocks : Vec :: new ( ) , struct_data : None , allow_new_fields : false , is_constructor : false , assigned_fields : HashSet :: new ( ) , } }
Constructs a new code generator with an empty chunk.
Constructs a new code generator with an empty chunk .
module_name
Rc<str>
env
&'e mut Environment