fn create_node(&mut self, kind: NodeKind, pair: impl ToNodePair) -> NodeId {
      let id = self.nodes.len();
      self.nodes.push((kind, pair.to_node_pair()));
      self.locations.push(Location::UNINIT);
      self.data.push(None);
      NodeId(id as u32)
   }
/// Appends a node to the syntax tree.
Appends a node to the syntax tree.
Appends a node to the syntax tree .
fn create_node(&mut self, kind: NodeKind, pair: impl ToNodePair) -> NodeId {
      let id = self.nodes.len();
      self.nodes.push((kind, pair.to_node_pair()));
      self.locations.push(Location::UNINIT);
      self.data.push(None);
      NodeId(id as u32)
   }
fn create_node ( & mut self , kind : NodeKind , pair : impl ToNodePair ) -> NodeId { let id = self . nodes . len ( ) ; self . nodes . push ( ( kind , pair . to_node_pair ( ) ) ) ; self . locations . push ( Location :: UNINIT ) ; self . data . push ( None ) ; NodeId ( id as u32 ) }
Appends a node to the syntax tree.
Appends a node to the syntax tree .
&mut self
kind
NodeKind
pair
impl ToNodePair