roc/compiler/parse/tests/snapshots/pass/when_with_alternative_patterns.expr.result-ast
Joshua Warner eb35e9914f Fix tests
2022-01-01 18:20:05 -08:00

59 lines
1.4 KiB
Text

When(
@5-6 Var {
module_name: "",
ident: "x",
},
[
WhenBranch {
patterns: [
@11-17 SpaceBefore(
StrLiteral(
PlainLine(
"blah",
),
),
[
Newline,
],
),
@20-26 StrLiteral(
PlainLine(
"blop",
),
),
],
value: @30-31 Num(
"1",
),
guard: None,
},
WhenBranch {
patterns: [
@33-38 SpaceBefore(
StrLiteral(
PlainLine(
"foo",
),
),
[
Newline,
],
),
@43-48 SpaceBefore(
StrLiteral(
PlainLine(
"bar",
),
),
[
Newline,
],
),
],
value: @52-53 Num(
"2",
),
guard: None,
},
],
)