roc/compiler/parse/tests/snapshots/pass/nested_def_annotation.module.result-ast
Joshua Warner eb35e9914f Fix tests
2022-01-01 18:20:05 -08:00

99 lines
3.9 KiB
Text

[
@0-115 SpaceAfter(
SpaceBefore(
Body(
@0-4 Identifier(
"main",
),
@11-115 SpaceBefore(
Defs(
[
@43-93 AnnotatedBody {
ann_pattern: @11-23 Identifier(
"wrappedNotEq",
),
ann_type: @34-38 Function(
[
@26-27 BoundVariable(
"a",
),
@29-30 BoundVariable(
"a",
),
],
@34-38 Apply(
"",
"Bool",
[],
),
),
comment: None,
body_pattern: @43-55 Identifier(
"wrappedNotEq",
),
body_expr: @58-93 Closure(
[
@59-63 Identifier(
"num1",
),
@65-69 Identifier(
"num2",
),
],
@81-93 SpaceBefore(
BinOps(
[
(
@81-85 Var {
module_name: "",
ident: "num1",
},
@86-88 NotEquals,
),
],
@89-93 Var {
module_name: "",
ident: "num2",
},
),
[
Newline,
],
),
),
},
],
@99-115 SpaceBefore(
Apply(
@99-111 Var {
module_name: "",
ident: "wrappedNotEq",
},
[
@112-113 Num(
"2",
),
@114-115 Num(
"3",
),
],
Space,
),
[
Newline,
Newline,
],
),
),
[
Newline,
],
),
),
[],
),
[
Newline,
],
),
]