pub fn to_ast(&self, ctx: &mut ast::Context, file_id: u32) -> Option<ast::NodePtr> {
        let mut cvt = Converter::new(&self.parser, ctx, file_id);

        self.parser.root().map(|root| convert_ast(&mut cvt, root))
    }
/// Create and return an external representation of the AST, or None if there were parse errors.
Create and return an external representation of the AST, or None if there were parse errors.
Create and return an external representation of the AST or None if there were parse errors .
pub fn to_ast(&self, ctx: &mut ast::Context, file_id: u32) -> Option<ast::NodePtr> {
        let mut cvt = Converter::new(&self.parser, ctx, file_id);
        self.parser.root().map(|root| convert_ast(&mut cvt, root))
    }
pub fn to_ast ( & self , ctx : & mut ast :: Context , file_id : u32 ) -> Option < ast :: NodePtr > { let mut cvt = Converter :: new ( & self . parser , ctx , file_id ) ; self . parser . root ( ) . map ( | root | convert_ast ( & mut cvt , root ) ) }
Create and return an external representation of the AST, or None if there were parse errors.
Create and return an external representation of the AST or None if there were parse errors .
&self
ctx
&mut ast::Context
file_id
u32
&self
ctx
&mut ast::Context
file_id
u32