Struct erg_parser::ast::Lambda
source · pub struct Lambda {
pub sig: LambdaSignature,
pub op: Token,
pub body: Block,
pub id: DefId,
}
Fields§
§sig: LambdaSignature
§op: Token
for detecting func/proc
body: Block
§id: DefId
Implementations§
Trait Implementations§
source§impl Locational for Lambda
impl Locational for Lambda
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.