Make Loc::new take Positions

This commit is contained in:
Joshua Warner 2021-12-23 17:37:15 -08:00
parent 1a07508c9a
commit bd7b1e5013
8 changed files with 54 additions and 56 deletions

View file

@ -39,8 +39,7 @@ impl<'a> State<'a> {
}
/// Returns the current position
// TODO: replace this with just accessing the field
pub const fn get_position(&self) -> Position {
pub const fn pos(&self) -> Position {
self.pos
}