1 2 3 4 5 6 7 8 9 10 11 12
use crate::records::lexer::Lexer; use crate::records::position::Position; impl Lexer { #[inline(always)] pub(crate) fn position(&self) -> Position { Position { line: self.line, column: self.offset.wrapping_sub(self.line_offset), } } }