parser/tests/fixtures/0032/ast.txt

95 lines
3.0 KiB
Plaintext

[
Expression {
expr: InterpolatedString {
parts: [
Expr(
Variable(
Variable {
start: (
1,
10,
),
name: "foo",
end: (
1,
13,
),
},
),
),
Expr(
ArrayIndex {
array: Variable(
Variable {
start: (
1,
16,
),
name: "foo",
end: (
1,
19,
),
},
),
index: Some(
LiteralInteger {
i: "0",
},
),
},
),
Expr(
ArrayIndex {
array: Variable(
Variable {
start: (
1,
25,
),
name: "foo",
end: (
1,
28,
),
},
),
index: Some(
LiteralString {
value: "bar",
},
),
},
),
Expr(
DynamicVariable {
name: Parenthesized {
start: (
1,
38,
),
expr: Variable(
Variable {
start: (
1,
39,
),
name: "foo",
end: (
1,
43,
),
},
),
end: (
1,
43,
),
},
},
),
],
},
},
]