pub struct CompileError(pub String);Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl AstVisitor<CompileError> for Compiler
impl AstVisitor<CompileError> for Compiler
fn error( &mut self, e: CompileError, source: &Source, ) -> Result<(), CompileError>
fn local_stat(&mut self, stat: &LocalStat) -> Result<(), CompileError>
fn assign_stat(&mut self, stat: &AssignStat) -> Result<(), CompileError>
fn stat_sep(&mut self)
fn begin_if(&mut self, _cond: &Expr) -> Result<bool, E>
fn then(&mut self, _block: &Block) -> Result<bool, E>
fn begin_else_if(&mut self, _cond: &Expr) -> Result<bool, E>
fn begin_else(&mut self, _block: &Block) -> Result<bool, E>
fn end_if(&mut self)
fn begin_while(&mut self, _cond: &Expr) -> Result<bool, E>
fn begin_while_block(&mut self, _block: &Block) -> Result<bool, E>
fn end_while(&mut self)
fn begin_do_block(&mut self, _block: &Block) -> Result<bool, E>
fn end_do_block(&mut self)
fn begin_for_num(&mut self, _for_enum: &ForNum) -> Result<bool, E>
fn for_enum_equal(&mut self)
fn begin_for_list(&mut self, _forlist: &ForList) -> Result<bool, E>
fn for_list_in(&mut self)
fn begin_for_block(&mut self, _block: &Block) -> Result<bool, E>
fn end_for(&mut self)
fn begin_repeat(&mut self, _block: &Block) -> Result<bool, E>
fn until(&mut self)
fn end_repeat(&mut self)
fn func(&mut self, _funcstat: &FuncStat)
fn label_stat(&mut self, _stat: &LabelStat) -> Result<(), E>
fn ret_stat(&mut self, _stat: &RetStat) -> Result<(), E>
fn break_stat(&mut self, _stat: &BreakStat) -> Result<(), E>
fn goto_stat(&mut self, _stat: &GotoStat) -> Result<(), E>
fn call_stat(&mut self, _stat: &CallStat) -> Result<(), E>
fn exprlist(&mut self, _stat: &ExprList) -> Result<(), E>
fn expr(&mut self, _stat: &Expr) -> Result<bool, E>
fn expr_sep(&mut self)
fn nil(&mut self)
fn true_(&mut self)
fn false_(&mut self)
fn float(&mut self, _f: &FloatExpr)
fn int(&mut self, _i: &IntExpr)
fn string(&mut self, _s: &StringExpr)
fn vararg(&mut self)
fn anonymous_func(&mut self)
fn begin_func_body(&mut self, _body: &FuncBody) -> Result<bool, E>
fn end_func_body(&mut self)
fn begin_table(&mut self, _t: &Table) -> Result<bool, E>
fn end_table(&mut self, _t: &Table)
fn field_sep(&mut self)
fn begin_rec_field(&mut self, _field: &RecField) -> Result<bool, E>
fn field_kv_sep(&mut self)
fn begin_field_key(&mut self, _key: &FieldKey) -> Result<bool, E>
fn end_field_key(&mut self, _key: &FieldKey)
fn end_rec_field(&mut self)
fn begin_bin_expr(&mut self, _expr: &BinExpr) -> Result<bool, E>
fn binop(&mut self, _op: &BinOp)
fn end_bin_expr(&mut self)
fn begin_un_expr(&mut self, _expr: &UnExpr) -> Result<bool, E>
fn unop(&mut self, _op: &UnOp)
fn end_un_expr(&mut self)
fn begin_suffixed_expr(&mut self, _expr: &SuffixedExpr) -> Result<bool, E>
fn end_suffixed_expr(&mut self)
fn name(&mut self, _name: &StringExpr)
fn attr(&mut self, _attr: &StringExpr)
fn method(&mut self, _method: &StringExpr)
fn begin_index(&mut self, _expr: &Expr) -> Result<bool, E>
fn end_index(&mut self)
fn begin_func_args(&mut self, _args: &FuncArgs) -> Result<bool, E>
fn end_func_args(&mut self)
fn begin_paren_expr(&mut self, _expr: &Expr) -> Result<bool, E>
fn end_paren_expr(&mut self)
fn suffix(&mut self, _suf: &Suffix) -> Result<bool, E>
fn comments(&mut self, _comments: &impl Comments)
Auto Trait Implementations§
impl Freeze for CompileError
impl RefUnwindSafe for CompileError
impl Send for CompileError
impl Sync for CompileError
impl Unpin for CompileError
impl UnwindSafe for CompileError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more