parser/tests/fixtures/0211/ast.txt

95 lines
2.7 KiB
Plaintext

[
Expression {
expr: Match {
condition: Variable(
Variable {
start: (
4,
8,
),
name: "s",
end: (
4,
10,
),
},
),
default: Some(
DefaultMatchArm {
body: LiteralInteger {
i: "124",
},
},
),
arms: [
MatchArm {
conditions: [
LiteralInteger {
i: "1",
},
],
body: LiteralInteger {
i: "2",
},
},
MatchArm {
conditions: [
LiteralInteger {
i: "3",
},
],
body: LiteralInteger {
i: "4",
},
},
MatchArm {
conditions: [
LiteralInteger {
i: "5",
},
LiteralInteger {
i: "6",
},
],
body: LiteralInteger {
i: "4",
},
},
MatchArm {
conditions: [
LiteralInteger {
i: "9",
},
LiteralInteger {
i: "123",
},
],
body: LiteralInteger {
i: "4",
},
},
MatchArm {
conditions: [
Identifier(
Identifier {
start: (
9,
5,
),
name: "_",
end: (
9,
7,
),
},
),
],
body: LiteralInteger {
i: "43",
},
},
],
},
},
]