mirror of
https://github.com/danog/parser.git
synced 2024-12-11 16:49:47 +01:00
129 lines
4.2 KiB
Plaintext
129 lines
4.2 KiB
Plaintext
[
|
|
Expression {
|
|
expr: InterpolatedString {
|
|
parts: [
|
|
Expr(
|
|
Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
9,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
1,
|
|
13,
|
|
),
|
|
},
|
|
),
|
|
),
|
|
Expr(
|
|
ArrayIndex {
|
|
array: Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
15,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
1,
|
|
19,
|
|
),
|
|
},
|
|
),
|
|
index: Some(
|
|
LiteralInteger {
|
|
i: "0",
|
|
},
|
|
),
|
|
},
|
|
),
|
|
Expr(
|
|
ArrayIndex {
|
|
array: Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
24,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
1,
|
|
28,
|
|
),
|
|
},
|
|
),
|
|
index: Some(
|
|
LiteralString {
|
|
value: "bar",
|
|
},
|
|
),
|
|
},
|
|
),
|
|
Expr(
|
|
PropertyFetch {
|
|
target: Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
37,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
1,
|
|
41,
|
|
),
|
|
},
|
|
),
|
|
property: Identifier(
|
|
Identifier {
|
|
start: (
|
|
1,
|
|
43,
|
|
),
|
|
name: "bar",
|
|
end: (
|
|
1,
|
|
46,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
),
|
|
Expr(
|
|
MethodCall {
|
|
target: Variable(
|
|
Variable {
|
|
start: (
|
|
1,
|
|
48,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
1,
|
|
52,
|
|
),
|
|
},
|
|
),
|
|
method: Identifier(
|
|
Identifier {
|
|
start: (
|
|
1,
|
|
54,
|
|
),
|
|
name: "bar",
|
|
end: (
|
|
1,
|
|
57,
|
|
),
|
|
},
|
|
),
|
|
args: [],
|
|
},
|
|
),
|
|
],
|
|
},
|
|
},
|
|
]
|