mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Add some more detail to a todo
This commit is contained in:
parent
e3ec087657
commit
2eea57a51a
1 changed files with 2 additions and 7 deletions
|
@ -64,12 +64,7 @@ macro_rules! loc_parenthetical_expr {
|
|||
)
|
||||
))
|
||||
)),
|
||||
move |arena, state, loc_expr_with_extras: Located<(Located<Expr<'a>>, Option<Either<
|
||||
Vec<'a, Located<Expr<'a>>>
|
||||
, Either<Vec<'a, &'a str>, (&'a [CommentOrNewline<'a>], u16)>>>)>
|
||||
|
||||
|
||||
| {
|
||||
move |arena, state, loc_expr_with_extras: Located<(Located<Expr<'a>>, Option<Either<Vec<'a, Located<Expr<'a>>>, Either<Vec<'a, &'a str>, (&'a [CommentOrNewline<'a>], u16)>>>)> | {
|
||||
// We parse the parenthetical expression *and* the arguments after it
|
||||
// in one region, so that (for example) the region for Apply includes its args.
|
||||
let (loc_expr, opt_extras) = loc_expr_with_extras.value;
|
||||
|
@ -609,7 +604,7 @@ fn parse_def_expr<'a>(
|
|||
))
|
||||
// `<` because '=' should be same indent or greater
|
||||
} else if equals_sign_indent < original_indent {
|
||||
panic!("TODO the = in this declaration seems outdented");
|
||||
todo!("TODO the = in this declaration seems outdented. equals_sign_indent was {} and original_indent was {}", equals_sign_indent, original_indent);
|
||||
} else {
|
||||
// Indented more beyond the original indent.
|
||||
let indented_more = original_indent + 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue