parser/tests/0031/ast.txt
2022-11-30 00:43:37 +00:00

57 lines
1.5 KiB
Plaintext

[
Expression {
expr: InterpolatedString {
parts: [
Expr(
Variable {
name: "foo",
},
),
Const(
" abc ",
),
Expr(
PropertyFetch {
target: Variable {
name: "bar",
},
property: Identifier {
name: "a",
},
},
),
Const(
" def ",
),
Expr(
ArrayIndex {
array: Variable {
name: "bar",
},
index: Some(
LiteralInteger {
i: 0,
},
),
},
),
Const(
" ghi ",
),
Expr(
ArrayIndex {
array: Variable {
name: "bar",
},
index: Some(
LiteralString {
value: "baz",
},
),
},
),
],
},
},
]