Struct erg_parser::ast::ReDef
source · pub struct ReDef {
pub attr: Accessor,
pub expr: Box<Expr>,
}
Expand description
This is not necessary for Erg syntax, but necessary for mapping ASTs in Python
Fields§
§attr: Accessor
§expr: Box<Expr>
Implementations§
Trait Implementations§
source§impl Locational for ReDef
impl Locational for ReDef
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.