mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 05:24:15 +00:00
Do not drop import parse errors
This commit is contained in:
parent
9a66abf95f
commit
2a8ecbba28
10 changed files with 108 additions and 86 deletions
|
|
@ -1 +1 @@
|
|||
NotEndOfFile(@12)
|
||||
Expr(Import(LowercaseAlias(@15-19), @0), @0)
|
||||
|
|
@ -13,14 +13,14 @@ Defs {
|
|||
],
|
||||
space_before: [
|
||||
Slice(start = 0, length = 0),
|
||||
Slice(start = 1, length = 0),
|
||||
Slice(start = 2, length = 0),
|
||||
Slice(start = 3, length = 0),
|
||||
],
|
||||
space_after: [
|
||||
Slice(start = 0, length = 1),
|
||||
Slice(start = 1, length = 1),
|
||||
Slice(start = 2, length = 1),
|
||||
],
|
||||
space_after: [
|
||||
Slice(start = 0, length = 0),
|
||||
Slice(start = 1, length = 0),
|
||||
Slice(start = 2, length = 0),
|
||||
Slice(start = 3, length = 0),
|
||||
],
|
||||
spaces: [
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ Defs {
|
|||
],
|
||||
space_before: [
|
||||
Slice(start = 0, length = 0),
|
||||
Slice(start = 0, length = 1),
|
||||
Slice(start = 1, length = 0),
|
||||
],
|
||||
space_after: [
|
||||
Slice(start = 0, length = 0),
|
||||
Slice(start = 0, length = 1),
|
||||
Slice(start = 1, length = 0),
|
||||
],
|
||||
spaces: [
|
||||
|
|
|
|||
|
|
@ -31,6 +31,20 @@ Defs {
|
|||
],
|
||||
space_before: [
|
||||
Slice(start = 0, length = 0),
|
||||
Slice(start = 2, length = 0),
|
||||
Slice(start = 4, length = 0),
|
||||
Slice(start = 6, length = 0),
|
||||
Slice(start = 8, length = 0),
|
||||
Slice(start = 10, length = 0),
|
||||
Slice(start = 12, length = 0),
|
||||
Slice(start = 14, length = 0),
|
||||
Slice(start = 16, length = 0),
|
||||
Slice(start = 18, length = 0),
|
||||
Slice(start = 20, length = 0),
|
||||
Slice(start = 23, length = 0),
|
||||
Slice(start = 25, length = 0),
|
||||
],
|
||||
space_after: [
|
||||
Slice(start = 0, length = 2),
|
||||
Slice(start = 2, length = 2),
|
||||
Slice(start = 4, length = 2),
|
||||
|
|
@ -43,20 +57,6 @@ Defs {
|
|||
Slice(start = 18, length = 2),
|
||||
Slice(start = 20, length = 3),
|
||||
Slice(start = 23, length = 2),
|
||||
],
|
||||
space_after: [
|
||||
Slice(start = 0, length = 0),
|
||||
Slice(start = 2, length = 0),
|
||||
Slice(start = 4, length = 0),
|
||||
Slice(start = 6, length = 0),
|
||||
Slice(start = 8, length = 0),
|
||||
Slice(start = 10, length = 0),
|
||||
Slice(start = 12, length = 0),
|
||||
Slice(start = 14, length = 0),
|
||||
Slice(start = 16, length = 0),
|
||||
Slice(start = 18, length = 0),
|
||||
Slice(start = 20, length = 0),
|
||||
Slice(start = 23, length = 0),
|
||||
Slice(start = 25, length = 0),
|
||||
],
|
||||
spaces: [
|
||||
|
|
|
|||
|
|
@ -11,12 +11,12 @@ Defs {
|
|||
],
|
||||
space_before: [
|
||||
Slice(start = 0, length = 0),
|
||||
Slice(start = 0, length = 1),
|
||||
Slice(start = 1, length = 1),
|
||||
Slice(start = 1, length = 0),
|
||||
Slice(start = 2, length = 0),
|
||||
],
|
||||
space_after: [
|
||||
Slice(start = 0, length = 0),
|
||||
Slice(start = 1, length = 0),
|
||||
Slice(start = 0, length = 1),
|
||||
Slice(start = 1, length = 1),
|
||||
Slice(start = 2, length = 0),
|
||||
],
|
||||
spaces: [
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ Defs {
|
|||
],
|
||||
space_before: [
|
||||
Slice(start = 0, length = 0),
|
||||
Slice(start = 0, length = 1),
|
||||
Slice(start = 1, length = 0),
|
||||
],
|
||||
space_after: [
|
||||
Slice(start = 0, length = 0),
|
||||
Slice(start = 0, length = 1),
|
||||
Slice(start = 1, length = 0),
|
||||
],
|
||||
spaces: [
|
||||
|
|
|
|||
|
|
@ -14,10 +14,12 @@ Defs(
|
|||
],
|
||||
space_after: [
|
||||
Slice(start = 0, length = 1),
|
||||
Slice(start = 1, length = 0),
|
||||
Slice(start = 1, length = 2),
|
||||
],
|
||||
spaces: [
|
||||
Newline,
|
||||
Newline,
|
||||
Newline,
|
||||
],
|
||||
type_defs: [],
|
||||
value_defs: [
|
||||
|
|
@ -73,33 +75,27 @@ Defs(
|
|||
),
|
||||
],
|
||||
},
|
||||
@53-71 SpaceBefore(
|
||||
Apply(
|
||||
@53-62 Var {
|
||||
module_name: "JE",
|
||||
ident: "encode",
|
||||
},
|
||||
[
|
||||
@64-70 ParensAround(
|
||||
Apply(
|
||||
@64-67 Var {
|
||||
module_name: "",
|
||||
ident: "int",
|
||||
},
|
||||
[
|
||||
@68-70 Num(
|
||||
"42",
|
||||
),
|
||||
],
|
||||
Space,
|
||||
),
|
||||
),
|
||||
],
|
||||
Space,
|
||||
),
|
||||
@53-71 Apply(
|
||||
@53-62 Var {
|
||||
module_name: "JE",
|
||||
ident: "encode",
|
||||
},
|
||||
[
|
||||
Newline,
|
||||
Newline,
|
||||
@64-70 ParensAround(
|
||||
Apply(
|
||||
@64-67 Var {
|
||||
module_name: "",
|
||||
ident: "int",
|
||||
},
|
||||
[
|
||||
@68-70 Num(
|
||||
"42",
|
||||
),
|
||||
],
|
||||
Space,
|
||||
),
|
||||
),
|
||||
],
|
||||
Space,
|
||||
),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -46,10 +46,10 @@ Full {
|
|||
],
|
||||
space_before: [
|
||||
Slice(start = 0, length = 2),
|
||||
Slice(start = 2, length = 2),
|
||||
Slice(start = 4, length = 0),
|
||||
],
|
||||
space_after: [
|
||||
Slice(start = 2, length = 0),
|
||||
Slice(start = 2, length = 2),
|
||||
Slice(start = 4, length = 0),
|
||||
],
|
||||
spaces: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue