roc/compiler/parse/tests/snapshots/pass/nested_def_annotation.module.result-ast

99 lines
4.1 KiB
Text

[
|L 0-5, C 0-20| SpaceAfter(
SpaceBefore(
Body(
|L 0-0, C 0-4| Identifier(
"main",
),
|L 1-5, C 4-20| SpaceBefore(
Defs(
[
|L 2-3, C 4-20| AnnotatedBody {
ann_pattern: |L 1-1, C 4-16| Identifier(
"wrappedNotEq",
),
ann_type: |L 1-1, C 27-31| Function(
[
|L 1-1, C 19-20| BoundVariable(
"a",
),
|L 1-1, C 22-23| BoundVariable(
"a",
),
],
|L 1-1, C 27-31| Apply(
"",
"Bool",
[],
),
),
comment: None,
body_pattern: |L 2-2, C 4-16| Identifier(
"wrappedNotEq",
),
body_expr: |L 2-3, C 19-20| Closure(
[
|L 2-2, C 20-24| Identifier(
"num1",
),
|L 2-2, C 26-30| Identifier(
"num2",
),
],
|L 3-3, C 8-20| SpaceBefore(
BinOps(
[
(
|L 3-3, C 8-12| Var {
module_name: "",
ident: "num1",
},
|L 3-3, C 13-15| NotEquals,
),
],
|L 3-3, C 16-20| Var {
module_name: "",
ident: "num2",
},
),
[
Newline,
],
),
),
},
],
|L 5-5, C 4-20| SpaceBefore(
Apply(
|L 5-5, C 4-16| Var {
module_name: "",
ident: "wrappedNotEq",
},
[
|L 5-5, C 17-18| Num(
"2",
),
|L 5-5, C 19-20| Num(
"3",
),
],
Space,
),
[
Newline,
Newline,
],
),
),
[
Newline,
],
),
),
[],
),
[
Newline,
],
),
]