#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub struct SyntacticPosition {
pub(crate) byte_pos: u64,
pub(crate) component_byte_pos: u64,
pub(crate) node_path: Vec<(usize, String)>,
pub(crate) attribute_index: Option<usize>,
}
impl SyntacticPosition {
#[inline]
#[must_use]
pub fn byte_pos(&self) -> u64 {
self.byte_pos
}
#[inline]
#[must_use]
pub fn component_byte_pos(&self) -> u64 {
self.component_byte_pos
}
#[inline]
#[must_use]
pub fn node_path(&self) -> &[(usize, String)] {
&self.node_path
}
#[inline]
#[must_use]
pub fn attribute_index(&self) -> Option<usize> {
self.attribute_index
}
}