mirror of
https://github.com/danog/parser.git
synced 2024-12-12 09:09:37 +01:00
6a6d4d0e5f
Signed-off-by: azjezz <azjezz@protonmail.com>
115 lines
3.9 KiB
Plaintext
115 lines
3.9 KiB
Plaintext
[
|
|
Expression {
|
|
expr: InterpolatedString {
|
|
parts: [
|
|
Expr(
|
|
Variable(
|
|
SimpleVariable(
|
|
SimpleVariable {
|
|
span: (
|
|
1,
|
|
9,
|
|
),
|
|
name: "foo",
|
|
},
|
|
),
|
|
),
|
|
),
|
|
Expr(
|
|
ArrayIndex {
|
|
array: Variable(
|
|
SimpleVariable(
|
|
SimpleVariable {
|
|
span: (
|
|
1,
|
|
15,
|
|
),
|
|
name: "foo",
|
|
},
|
|
),
|
|
),
|
|
index: Some(
|
|
LiteralInteger {
|
|
i: "0",
|
|
},
|
|
),
|
|
},
|
|
),
|
|
Expr(
|
|
ArrayIndex {
|
|
array: Variable(
|
|
SimpleVariable(
|
|
SimpleVariable {
|
|
span: (
|
|
1,
|
|
24,
|
|
),
|
|
name: "foo",
|
|
},
|
|
),
|
|
),
|
|
index: Some(
|
|
LiteralString {
|
|
value: "bar",
|
|
},
|
|
),
|
|
},
|
|
),
|
|
Expr(
|
|
PropertyFetch {
|
|
target: Variable(
|
|
SimpleVariable(
|
|
SimpleVariable {
|
|
span: (
|
|
1,
|
|
37,
|
|
),
|
|
name: "foo",
|
|
},
|
|
),
|
|
),
|
|
property: Identifier(
|
|
SimpleIdentifier(
|
|
SimpleIdentifier {
|
|
span: (
|
|
1,
|
|
43,
|
|
),
|
|
name: "bar",
|
|
},
|
|
),
|
|
),
|
|
},
|
|
),
|
|
Expr(
|
|
MethodCall {
|
|
target: Variable(
|
|
SimpleVariable(
|
|
SimpleVariable {
|
|
span: (
|
|
1,
|
|
48,
|
|
),
|
|
name: "foo",
|
|
},
|
|
),
|
|
),
|
|
method: Identifier(
|
|
SimpleIdentifier(
|
|
SimpleIdentifier {
|
|
span: (
|
|
1,
|
|
54,
|
|
),
|
|
name: "bar",
|
|
},
|
|
),
|
|
),
|
|
args: [],
|
|
},
|
|
),
|
|
],
|
|
},
|
|
},
|
|
]
|