roc/compiler/parse/tests/snapshots/pass/where_clause_on_newline.expr.result-ast
Ayaz Hafiz a3ac68a41f
Split up Defs into TypeDef and ValueDef
Just a refactoring PR. This is useful because during canonicalization
we always process type defs first, then value defs. With abilities this
distinction continues to grow; in that case, we have patterns associated
with types that we want to process before patterns from values.
2022-04-06 22:18:57 -04:00

50 lines
1.3 KiB
Text

Defs(
[
@0-29 Value(
Annotation(
@0-1 Identifier(
"f",
),
@9-29 Where(
@9-12 SpaceBefore(
Function(
[
@4-5 BoundVariable(
"a",
),
],
@9-12 Apply(
"",
"U64",
[],
),
),
[
Newline,
],
),
[
@19-29 HasClause {
var: @19-20 "a",
ability: @25-29 Apply(
"",
"Hash",
[],
),
},
],
),
),
),
],
@31-32 SpaceBefore(
Var {
module_name: "",
ident: "f",
},
[
Newline,
Newline,
],
),
)