mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
Report ingested file name syntax error
This commit is contained in:
parent
755e16cb10
commit
27a9f6051e
2 changed files with 34 additions and 2 deletions
|
@ -1566,8 +1566,19 @@ fn to_import_report<'a>(
|
|||
severity: Severity::RuntimeError,
|
||||
}
|
||||
}
|
||||
IndentIngestedName(_) => todo!(),
|
||||
IngestedName(_) => todo!(),
|
||||
IndentIngestedName(pos) | IngestedName(pos) => to_unfinished_import_report(
|
||||
alloc,
|
||||
lines,
|
||||
filename,
|
||||
*pos,
|
||||
start,
|
||||
alloc.stack([
|
||||
alloc.reflow("I was expecting to see a name next, like:"),
|
||||
alloc
|
||||
.parser_suggestion("import \"users.json\" as users : Str")
|
||||
.indent(4),
|
||||
]),
|
||||
),
|
||||
IndentAnnotation(_) => todo!(),
|
||||
Annotation(problem, pos) => to_type_report(alloc, lines, filename, problem, *pos),
|
||||
IndentColon(_) => todo!(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue