mirror of
https://github.com/danog/parser.git
synced 2024-12-02 09:27:50 +01:00
57 lines
1.5 KiB
Plaintext
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",
|
|
},
|
|
),
|
|
},
|
|
),
|
|
],
|
|
},
|
|
},
|
|
]
|