mirror of
https://github.com/danog/parser.git
synced 2024-12-04 18:38:11 +01:00
107 lines
3.3 KiB
Plaintext
107 lines
3.3 KiB
Plaintext
[
|
|
Expression {
|
|
expr: InterpolatedString {
|
|
parts: [
|
|
Expr(
|
|
Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
8,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
1,
|
|
12,
|
|
),
|
|
},
|
|
),
|
|
),
|
|
Const(
|
|
" abc ",
|
|
),
|
|
Expr(
|
|
PropertyFetch {
|
|
target: Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
12,
|
|
),
|
|
name: "bar",
|
|
end: (
|
|
1,
|
|
21,
|
|
),
|
|
},
|
|
),
|
|
property: Identifier(
|
|
Identifier {
|
|
start: (
|
|
1,
|
|
23,
|
|
),
|
|
name: "a",
|
|
end: (
|
|
1,
|
|
24,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
),
|
|
Const(
|
|
" def ",
|
|
),
|
|
Expr(
|
|
ArrayIndex {
|
|
array: Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
24,
|
|
),
|
|
name: "bar",
|
|
end: (
|
|
1,
|
|
33,
|
|
),
|
|
},
|
|
),
|
|
index: Some(
|
|
LiteralInteger {
|
|
i: "0",
|
|
},
|
|
),
|
|
},
|
|
),
|
|
Const(
|
|
" ghi ",
|
|
),
|
|
Expr(
|
|
ArrayIndex {
|
|
array: Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
36,
|
|
),
|
|
name: "bar",
|
|
end: (
|
|
1,
|
|
45,
|
|
),
|
|
},
|
|
),
|
|
index: Some(
|
|
LiteralString {
|
|
value: "baz",
|
|
},
|
|
),
|
|
},
|
|
),
|
|
],
|
|
},
|
|
},
|
|
]
|