pub fn new(module_name: Rc<str>) -> Self {
      let mut ast = Self {
         module_name,
         nodes: Vec::new(),
         locations: Vec::new(),
         data: Vec::new(),
      };
      let _empty = ast.create_node(NodeKind::Empty, ());
      ast
   }
/// Creates a new, empty syntax tree. The module name is used for error messages.
Creates a new, empty syntax tree. The module name is used for error messages.
Creates a new empty syntax tree . The module name is used for error messages .
pub fn new(module_name: Rc<str>) -> Self {
      let mut ast = Self {
         module_name,
         nodes: Vec::new(),
         locations: Vec::new(),
         data: Vec::new(),
      };
      let _empty = ast.create_node(NodeKind::Empty, ());
      ast
   }
pub fn new ( module_name : Rc < str > ) -> Self { let mut ast = Self { module_name , nodes : Vec :: new ( ) , locations : Vec :: new ( ) , data : Vec :: new ( ) , } ; let _empty = ast . create_node ( NodeKind :: Empty , ( ) ) ; ast }
Creates a new, empty syntax tree.
Creates a new empty syntax tree .
module_name
Rc<str>