Update syntax tests

This commit is contained in:
Sam Mohr 2025-01-05 16:41:40 -08:00
parent f95d0f8df6
commit 0f90f53b35
No known key found for this signature in database
GPG key ID: EA41D161A3C1BC99
7 changed files with 55 additions and 55 deletions

View file

@ -90,7 +90,7 @@ SpacesBefore {
after: [],
},
item: [
@141-152 ExposedName(
@141-154 ExposedName(
"main_for_host",
),
],

View file

@ -80,7 +80,7 @@ SpacesBefore {
after: [],
},
item: [
@132-143 ExposedName(
@132-145 ExposedName(
"main_for_host",
),
],

View file

@ -3,7 +3,7 @@ Defs {
EitherIndex(2147483648),
],
regions: [
@0-166,
@0-167,
],
space_before: [
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
@ -20,7 +20,7 @@ Defs {
@0-4 Identifier {
ident: "main",
},
@11-166 SpaceBefore(
@11-167 SpaceBefore(
BinOps(
[
(
@ -103,27 +103,27 @@ Defs {
@98-100 Pizza,
),
(
@101-147 SpaceAfter(
@101-148 SpaceAfter(
Closure(
[
@102-107 Identifier {
ident: "total",
},
],
@111-147 Str(
@111-148 Str(
Line(
[
Plaintext(
"Sum of numbers: ",
),
Interpolated(
@130-145 Apply(
@130-139 Var {
@130-146 Apply(
@130-140 Var {
module_name: "Num",
ident: "to_str",
},
[
@140-145 Var {
@141-146 Var {
module_name: "",
ident: "total",
},
@ -139,10 +139,10 @@ Defs {
Newline,
],
),
@152-154 Pizza,
@153-155 Pizza,
),
],
@155-166 Var {
@156-167 Var {
module_name: "Str",
ident: "toUpper",
},

View file

@ -86,7 +86,7 @@ SpacesBefore {
after: [],
},
item: [
@141-152 ExposedName(
@141-154 ExposedName(
"main_for_host",
),
],

View file

@ -1,11 +1,11 @@
@0-148 SpaceAfter(
@0-149 SpaceAfter(
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@0-127,
@0-128,
],
space_before: [
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
@ -20,13 +20,13 @@
@0-16 Identifier {
ident: "maybeEarlyReturn",
},
@19-127 Closure(
@19-128 Closure(
[
@20-21 Identifier {
ident: "x",
},
],
@29-127 SpaceBefore(
@29-128 SpaceBefore(
Defs(
Defs {
tags: [
@ -114,14 +114,14 @@
),
],
},
@116-127 SpaceBefore(
@116-128 SpaceBefore(
Apply(
@116-125 Var {
@116-126 Var {
module_name: "Num",
ident: "to_str",
},
[
@126-127 Var {
@127-128 Var {
module_name: "",
ident: "y",
},
@ -142,14 +142,14 @@
),
],
},
@129-148 SpaceBefore(
@130-149 SpaceBefore(
Apply(
@129-145 Var {
@130-146 Var {
module_name: "",
ident: "maybeEarlyReturn",
},
[
@146-148 Num(
@147-149 Num(
"10",
),
],

View file

@ -1,11 +1,11 @@
@0-173 SpaceAfter(
@0-174 SpaceAfter(
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@0-154,
@0-155,
],
space_before: [
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
@ -20,13 +20,13 @@
@0-16 Identifier {
ident: "maybeEarlyReturn",
},
@19-154 Closure(
@19-155 Closure(
[
@20-21 Identifier {
ident: "x",
},
],
@29-154 SpaceBefore(
@29-155 SpaceBefore(
Defs(
Defs {
tags: [
@ -123,14 +123,14 @@
),
],
},
@143-154 SpaceBefore(
@143-155 SpaceBefore(
Apply(
@143-152 Var {
@143-153 Var {
module_name: "Num",
ident: "to_str",
},
[
@153-154 Var {
@154-155 Var {
module_name: "",
ident: "y",
},
@ -152,14 +152,14 @@
),
],
},
@156-173 SpaceBefore(
@157-174 SpaceBefore(
Apply(
@156-171 Var {
@157-172 Var {
module_name: "",
ident: "maybeEarlyRetun",
},
[
@172-173 Num(
@173-174 Num(
"3",
),
],

View file

@ -1,11 +1,11 @@
@0-104 SpaceAfter(
@0-108 SpaceAfter(
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@0-101,
@0-105,
],
space_before: [
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
@ -17,30 +17,30 @@
type_defs: [],
value_defs: [
AnnotatedBody {
ann_pattern: @0-11 Identifier {
ann_pattern: @0-13 Identifier {
ident: "main_for_host",
},
ann_type: @14-0 As(
@14-76 TagUnion {
ann_type: @16-0 As(
@16-78 TagUnion {
ext: None,
tags: [
@15-41 Apply {
name: @15-26 "StdoutWrite",
@17-43 Apply {
name: @17-28 "StdoutWrite",
args: [
@27-30 Apply(
@29-32 Apply(
"",
"Str",
[],
),
@32-40 Function(
@34-42 Function(
[
@32-34 Record {
@34-36 Record {
fields: [],
ext: None,
},
],
Pure,
@38-40 Apply(
@40-42 Apply(
"",
"Op",
[],
@ -48,23 +48,23 @@
),
],
},
@43-69 Apply {
name: @43-54 "StderrWrite",
@45-71 Apply {
name: @45-56 "StderrWrite",
args: [
@55-58 Apply(
@57-60 Apply(
"",
"Str",
[],
),
@60-68 Function(
@62-70 Function(
[
@60-62 Record {
@62-64 Record {
fields: [],
ext: None,
},
],
Pure,
@66-68 Apply(
@68-70 Apply(
"",
"Op",
[],
@ -72,32 +72,32 @@
),
],
},
@71-75 Apply {
name: @71-75 "Done",
@73-77 Apply {
name: @73-77 "Done",
args: [],
},
],
},
[],
TypeHeader {
name: @80-82 "Op",
name: @82-84 "Op",
vars: [],
},
),
lines_between: [
Newline,
],
body_pattern: @83-94 Identifier {
body_pattern: @85-98 Identifier {
ident: "main_for_host",
},
body_expr: @97-101 Var {
body_expr: @101-105 Var {
module_name: "",
ident: "main",
},
},
],
},
@102-104 SpaceBefore(
@106-108 SpaceBefore(
Num(
"42",
),