Struct erg_parser::ast::BinOp
source · pub struct BinOp {
pub op: Token,
pub args: [Box<Expr>; 2],
}
Fields§
§op: Token
§args: [Box<Expr>; 2]
Implementations§
Trait Implementations§
source§impl Locational for BinOp
impl Locational for BinOp
source§fn loc(&self) -> Location
fn loc(&self) -> Location
NOTE:
loc
cannot be treated as a light method when self
is a large grammatical element.
If possible, delay the computation by passing &impl Locational
or other means.