mirror of
https://github.com/danog/parser.git
synced 2025-01-22 13:01:32 +01:00
59 lines
1.7 KiB
Plaintext
59 lines
1.7 KiB
Plaintext
|
[
|
||
|
Expression {
|
||
|
expr: InterpolatedString {
|
||
|
parts: [
|
||
|
Expr(
|
||
|
Variable {
|
||
|
name: "foo",
|
||
|
},
|
||
|
),
|
||
|
Expr(
|
||
|
ArrayIndex {
|
||
|
array: Variable {
|
||
|
name: "foo",
|
||
|
},
|
||
|
index: Some(
|
||
|
LiteralInteger {
|
||
|
i: 0,
|
||
|
},
|
||
|
),
|
||
|
},
|
||
|
),
|
||
|
Expr(
|
||
|
ArrayIndex {
|
||
|
array: Variable {
|
||
|
name: "foo",
|
||
|
},
|
||
|
index: Some(
|
||
|
LiteralString {
|
||
|
value: "bar",
|
||
|
},
|
||
|
),
|
||
|
},
|
||
|
),
|
||
|
Expr(
|
||
|
PropertyFetch {
|
||
|
target: Variable {
|
||
|
name: "foo",
|
||
|
},
|
||
|
property: Identifier {
|
||
|
name: "bar",
|
||
|
},
|
||
|
},
|
||
|
),
|
||
|
Expr(
|
||
|
MethodCall {
|
||
|
target: Variable {
|
||
|
name: "foo",
|
||
|
},
|
||
|
method: Identifier {
|
||
|
name: "bar",
|
||
|
},
|
||
|
args: [],
|
||
|
},
|
||
|
),
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
]
|