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

145 lines
5.4 KiB
Text

Defs {
tags: [
Index(2147483648),
],
regions: [
@0-115,
],
space_before: [
Slice(start = 0, length = 0),
],
space_after: [
Slice(start = 0, length = 1),
],
spaces: [
Newline,
],
type_defs: [],
value_defs: [
Body(
@0-4 Identifier(
"main",
),
@11-115 SpaceBefore(
Defs(
Defs {
tags: [
Index(2147483649),
],
regions: [
@11-93,
],
space_before: [
Slice(start = 0, length = 0),
],
space_after: [
Slice(start = 0, length = 0),
],
spaces: [],
type_defs: [],
value_defs: [
Annotation(
@11-23 Identifier(
"wrappedNotEq",
),
@26-38 Function(
[
@26-27 BoundVariable(
"a",
),
@29-30 BoundVariable(
"a",
),
],
@34-38 Apply(
"",
"Bool",
[],
),
),
),
AnnotatedBody {
ann_pattern: @11-23 Identifier(
"wrappedNotEq",
),
ann_type: @26-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,
],
),
),
],
}