mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
fixes
This commit is contained in:
parent
9a5c20b7c3
commit
fecb83b9c2
15 changed files with 45 additions and 41 deletions
|
@ -1098,10 +1098,10 @@ macro_rules! loc {
|
|||
let end_col = state.column;
|
||||
let end_line = state.line;
|
||||
let region = Region {
|
||||
start_col,
|
||||
start_line,
|
||||
end_col,
|
||||
end_line,
|
||||
start_col,
|
||||
end_col,
|
||||
};
|
||||
|
||||
Ok((progress, Located { region, value }, state))
|
||||
|
|
|
@ -92,7 +92,7 @@ fn term<'a>(min_indent: u16) -> impl Parser<'a, Located<TypeAnnotation<'a>>, Typ
|
|||
let value =
|
||||
TypeAnnotation::As(arena.alloc(loc_ann), spaces, arena.alloc(loc_as));
|
||||
|
||||
Located { value, region }
|
||||
Located { region, value }
|
||||
}
|
||||
|
||||
None => loc_ann,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue