Struct erg_compiler::hir::KwArg
source · pub struct KwArg {
pub keyword: Token,
pub expr: Expr,
}
Fields§
§keyword: Token
§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.