Struct erg_parser::ast::KwArg
source · pub struct KwArg {
pub keyword: Token,
pub t_spec: Option<TypeSpecWithOp>,
pub expr: Expr,
}
Fields§
§keyword: Token
§t_spec: Option<TypeSpecWithOp>
§expr: Expr
Implementations§
Trait Implementations§
source§impl Locational for KwArg
impl Locational for KwArg
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.