Enum erg_compiler::ty::Variable
source · pub enum Variable {
Param {
nth: usize,
name: Str,
loc: Location,
},
Var(Str, Location),
Attr {
receiver: Box<Variable>,
attr: Str,
loc: Location,
},
}
Variants§
Implementations§
Trait Implementations§
source§impl Locational for Variable
impl Locational for Variable
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.