Rename State::pos -> xyzlcol, temporarily

This commit is contained in:
Joshua Warner 2021-12-23 17:39:39 -08:00
parent bd7b1e5013
commit d2dcb462c7
10 changed files with 82 additions and 82 deletions

View file

@ -21,7 +21,7 @@ fn end_of_file<'a>() -> impl Parser<'a, (), SyntaxError<'a>> {
if state.has_reached_end() {
Ok((NoProgress, (), state))
} else {
Err((NoProgress, SyntaxError::NotEndOfFile(state.pos), state))
Err((NoProgress, SyntaxError::NotEndOfFile(state.xyzlcol), state))
}
}
}
@ -167,7 +167,7 @@ fn module_name<'a>() -> impl Parser<'a, ModuleName<'a>, ()> {
|_, mut state: State<'a>| match chomp_module_name(state.bytes()) {
Ok(name) => {
let width = name.len();
state.pos.column += width as u16;
state.xyzlcol.column += width as u16;
state = state.advance(width);
Ok((MadeProgress, ModuleName::new(name), state))