roc/compiler/parse/tests/snapshots/pass/parse_as_ann.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

46 lines
1.1 KiB
Text

Defs(
[
@0-33 Value(
Annotation(
@0-3 Identifier(
"foo",
),
@6-33 As(
@6-21 Apply(
"Foo.Bar",
"Baz",
[
@18-19 BoundVariable(
"x",
),
@20-21 BoundVariable(
"y",
),
],
),
[],
TypeHeader {
name: @25-29 "Blah",
vars: [
@30-31 Identifier(
"a",
),
@32-33 Identifier(
"b",
),
],
},
),
),
),
],
@35-37 SpaceBefore(
Num(
"42",
),
[
Newline,
Newline,
],
),
)