pub trait PositionInfo {
// Required method
fn position_info(
&self,
) -> (Option<usize>, Option<usize>, Option<usize>, Option<usize>);
// Provided method
fn has_position(&self) -> bool { ... }
}
Expand description
Trait for consistent handling of position information in AST nodes.
Required Methods§
Provided Methods§
Sourcefn has_position(&self) -> bool
fn has_position(&self) -> bool
Check if this node has position information.