Struct erg_compiler::hir::DefBody
source · pub struct DefBody {
pub op: Token,
pub block: Block,
pub id: DefId,
}
Fields§
§op: Token
§block: Block
§id: DefId
Implementations§
Trait Implementations§
source§impl Locational for DefBody
impl Locational for DefBody
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.