Struct erg_parser::ast::PatchDef
source · pub struct PatchDef {
pub def: Def,
pub methods_list: Vec<Methods>,
}
Fields§
§def: Def
§methods_list: Vec<Methods>
Implementations§
Trait Implementations§
source§impl Locational for PatchDef
impl Locational for PatchDef
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.