/// Obtain the AST node corresponding to a node reference. The AST node must
/// have previously been added to the `ast_table`, otherwise this function
/// panics.
Obtain the AST node corresponding to a node reference. The AST node must
have previously been added to the `ast_table`, otherwise this function
panics.
Obtain the AST node corresponding to a node reference . The AST node must have previously been added to the ` ast_table ` otherwise this function panics .
pub fn ast<I>(&self, id: I) -> <AstTable<'ast> as NodeStorage<I>>::Node
    where
        I: 'ast + Copy + Debug,
        AstTable<'ast>: NodeStorage<I>,
        <AstTable<'ast> as NodeStorage<I>>::Node: Copy + Debug,
    {
        match self.sb.ast_table.borrow().get(&id) {
            Some(&node) => node,
            None => panic!("AST for {:?} should exist", id),
        }
    }
pub fn ast < I > ( & self , id : I ) -> < AstTable < ' ast > as NodeStorage < I > > :: Node where I : ' ast + Copy + Debug , AstTable < ' ast > : NodeStorage < I > , < AstTable < ' ast > as NodeStorage < I > > :: Node : Copy + Debug , { match self . sb . ast_table . borrow ( ) . get ( & id ) { Some ( & node ) => node , None => panic ! ( " " id ) , } }
Obtain the AST node corresponding to a node reference.
Obtain the AST node corresponding to a node reference .
&self
id
I