mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Add parens around implements identifier to be conservative
This commit is contained in:
parent
24dd11262e
commit
24ba9dbeba
10 changed files with 140 additions and 36 deletions
|
@ -1,2 +1,2 @@
|
|||
{} = O {} implements
|
||||
O {} (implements)
|
||||
a
|
|
@ -0,0 +1,4 @@
|
|||
A =
|
||||
B (implements)
|
||||
+ s
|
||||
1
|
|
@ -0,0 +1,66 @@
|
|||
@0-20 SpaceAfter(
|
||||
Defs(
|
||||
Defs {
|
||||
tags: [
|
||||
EitherIndex(2147483648),
|
||||
],
|
||||
regions: [
|
||||
@0-18,
|
||||
],
|
||||
space_before: [
|
||||
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
|
||||
],
|
||||
space_after: [
|
||||
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
|
||||
],
|
||||
spaces: [],
|
||||
type_defs: [],
|
||||
value_defs: [
|
||||
Body(
|
||||
@0-1 Tag(
|
||||
"A",
|
||||
),
|
||||
@2-18 BinOps(
|
||||
[
|
||||
(
|
||||
@2-14 SpaceAfter(
|
||||
Apply(
|
||||
@2-3 Tag(
|
||||
"B",
|
||||
),
|
||||
[
|
||||
@4-14 Var {
|
||||
module_name: "",
|
||||
ident: "implements",
|
||||
},
|
||||
],
|
||||
Space,
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
@16-17 Plus,
|
||||
),
|
||||
],
|
||||
@17-18 Var {
|
||||
module_name: "",
|
||||
ident: "s",
|
||||
},
|
||||
),
|
||||
),
|
||||
],
|
||||
},
|
||||
@19-20 SpaceBefore(
|
||||
Num(
|
||||
"1",
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
|
@ -0,0 +1,3 @@
|
|||
A=B implements
|
||||
+s
|
||||
1
|
|
@ -0,0 +1,2 @@
|
|||
N (implements) h 0 : B
|
||||
T
|
|
@ -0,0 +1,54 @@
|
|||
@0-21 SpaceAfter(
|
||||
Defs(
|
||||
Defs {
|
||||
tags: [
|
||||
EitherIndex(0),
|
||||
],
|
||||
regions: [
|
||||
@0-19,
|
||||
],
|
||||
space_before: [
|
||||
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
|
||||
],
|
||||
space_after: [
|
||||
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
|
||||
],
|
||||
spaces: [],
|
||||
type_defs: [
|
||||
Alias {
|
||||
header: TypeHeader {
|
||||
name: @0-1 "N",
|
||||
vars: [
|
||||
@2-12 Identifier {
|
||||
ident: "implements",
|
||||
},
|
||||
@13-14 Identifier {
|
||||
ident: "h",
|
||||
},
|
||||
@15-16 NumLiteral(
|
||||
"0",
|
||||
),
|
||||
],
|
||||
},
|
||||
ann: @18-19 Apply(
|
||||
"",
|
||||
"B",
|
||||
[],
|
||||
),
|
||||
},
|
||||
],
|
||||
value_defs: [],
|
||||
},
|
||||
@20-21 SpaceBefore(
|
||||
Tag(
|
||||
"T",
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
|
@ -0,0 +1,2 @@
|
|||
N(implements)h(0):B
|
||||
T
|
Loading…
Add table
Add a link
Reference in a new issue