mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Make Loc::new take Positions
This commit is contained in:
parent
1a07508c9a
commit
bd7b1e5013
8 changed files with 54 additions and 56 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue