mirror of
https://github.com/danog/parser.git
synced 2024-12-12 17:17:23 +01:00
6a6d4d0e5f
Signed-off-by: azjezz <azjezz@protonmail.com>
97 lines
3.1 KiB
Plaintext
97 lines
3.1 KiB
Plaintext
[
|
|
Expression {
|
|
expr: InterpolatedString {
|
|
parts: [
|
|
Expr(
|
|
Variable(
|
|
SimpleVariable(
|
|
SimpleVariable {
|
|
span: (
|
|
1,
|
|
8,
|
|
),
|
|
name: "foo",
|
|
},
|
|
),
|
|
),
|
|
),
|
|
Const(
|
|
" abc ",
|
|
),
|
|
Expr(
|
|
PropertyFetch {
|
|
target: Variable(
|
|
SimpleVariable(
|
|
SimpleVariable {
|
|
span: (
|
|
1,
|
|
12,
|
|
),
|
|
name: "bar",
|
|
},
|
|
),
|
|
),
|
|
property: Identifier(
|
|
SimpleIdentifier(
|
|
SimpleIdentifier {
|
|
span: (
|
|
1,
|
|
23,
|
|
),
|
|
name: "a",
|
|
},
|
|
),
|
|
),
|
|
},
|
|
),
|
|
Const(
|
|
" def ",
|
|
),
|
|
Expr(
|
|
ArrayIndex {
|
|
array: Variable(
|
|
SimpleVariable(
|
|
SimpleVariable {
|
|
span: (
|
|
1,
|
|
24,
|
|
),
|
|
name: "bar",
|
|
},
|
|
),
|
|
),
|
|
index: Some(
|
|
LiteralInteger {
|
|
i: "0",
|
|
},
|
|
),
|
|
},
|
|
),
|
|
Const(
|
|
" ghi ",
|
|
),
|
|
Expr(
|
|
ArrayIndex {
|
|
array: Variable(
|
|
SimpleVariable(
|
|
SimpleVariable {
|
|
span: (
|
|
1,
|
|
36,
|
|
),
|
|
name: "bar",
|
|
},
|
|
),
|
|
),
|
|
index: Some(
|
|
LiteralString {
|
|
value: "baz",
|
|
},
|
|
),
|
|
},
|
|
),
|
|
],
|
|
},
|
|
},
|
|
]
|