mirror of
https://github.com/danog/parser.git
synced 2024-12-13 17:37:20 +01:00
479f51913c
Signed-off-by: azjezz <azjezz@protonmail.com>
94 lines
2.6 KiB
Plaintext
94 lines
2.6 KiB
Plaintext
[
|
|
If {
|
|
condition: Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
10,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
1,
|
|
14,
|
|
),
|
|
},
|
|
),
|
|
then: [
|
|
Return {
|
|
value: Some(
|
|
Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
25,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
1,
|
|
29,
|
|
),
|
|
},
|
|
),
|
|
),
|
|
},
|
|
],
|
|
else_ifs: [
|
|
ElseIf {
|
|
condition: Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
40,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
1,
|
|
44,
|
|
),
|
|
},
|
|
),
|
|
body: [
|
|
Return {
|
|
value: Some(
|
|
Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
55,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
1,
|
|
59,
|
|
),
|
|
},
|
|
),
|
|
),
|
|
},
|
|
],
|
|
},
|
|
],
|
|
else: Some(
|
|
[
|
|
Return {
|
|
value: Some(
|
|
Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
77,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
1,
|
|
81,
|
|
),
|
|
},
|
|
),
|
|
),
|
|
},
|
|
],
|
|
),
|
|
},
|
|
]
|