This commit is contained in:
Folkert 2021-05-07 11:00:15 +02:00
parent 9a5c20b7c3
commit fecb83b9c2
15 changed files with 45 additions and 41 deletions

View file

@ -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))

View file

@ -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,