Struct erg_parser::ast::Attribute
source · pub struct Attribute {
pub obj: Box<Expr>,
pub ident: Identifier,
}
Fields§
§obj: Box<Expr>
§ident: Identifier
Implementations§
Trait Implementations§
source§impl Locational for Attribute
impl Locational for Attribute
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.