roc/crates/compiler/parse/tests/snapshots/pass/annotated_tuple_destructure.expr.result-ast
Joshua Warner ca5d084497
Implement tuple pattern parsing
Step 2 of N in implementing #4465
2022-11-13 16:11:57 -05:00

87 lines
2.1 KiB
Text

Defs(
Defs {
tags: [
Index(2147483649),
],
regions: [
@0-41,
],
space_before: [
Slice(start = 0, length = 0),
],
space_after: [
Slice(start = 0, length = 0),
],
spaces: [],
type_defs: [],
value_defs: [
Annotation(
@0-8 Tuple(
[
@2-3 Identifier(
"x",
),
@5-6 Identifier(
"y",
),
],
),
@11-14 Apply(
"",
"Foo",
[],
),
),
AnnotatedBody {
ann_pattern: @0-8 Tuple(
[
@2-3 Identifier(
"x",
),
@5-6 Identifier(
"y",
),
],
),
ann_type: @11-14 Apply(
"",
"Foo",
[],
),
comment: None,
body_pattern: @15-23 Tuple(
[
@17-18 Identifier(
"x",
),
@20-21 Identifier(
"y",
),
],
),
body_expr: @26-41 Tuple(
[
@28-33 Str(
PlainLine(
"foo",
),
),
@35-39 Float(
"3.14",
),
],
),
},
],
},
@43-44 SpaceBefore(
Var {
module_name: "",
ident: "x",
},
[
Newline,
Newline,
],
),
)