mirror of
https://github.com/danog/parser.git
synced 2024-12-03 09:57:45 +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",
|
||
|
},
|
||
|
),
|
||
|
},
|
||
|
),
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
]
|