mirror of
https://github.com/danog/parser.git
synced 2024-12-04 18:38:11 +01:00
87 lines
2.2 KiB
Plaintext
87 lines
2.2 KiB
Plaintext
[
|
|
Expression {
|
|
expr: ArrayIndex {
|
|
array: Variable(
|
|
Variable {
|
|
start: (
|
|
3,
|
|
1,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
3,
|
|
5,
|
|
),
|
|
},
|
|
),
|
|
index: Some(
|
|
LiteralString {
|
|
value: "bar",
|
|
},
|
|
),
|
|
},
|
|
},
|
|
Expression {
|
|
expr: ArrayIndex {
|
|
array: ArrayIndex {
|
|
array: Variable(
|
|
Variable {
|
|
start: (
|
|
5,
|
|
1,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
5,
|
|
5,
|
|
),
|
|
},
|
|
),
|
|
index: Some(
|
|
LiteralString {
|
|
value: "bar",
|
|
},
|
|
),
|
|
},
|
|
index: Some(
|
|
LiteralString {
|
|
value: "baz",
|
|
},
|
|
),
|
|
},
|
|
},
|
|
Expression {
|
|
expr: AssignmentOperation(
|
|
Assign {
|
|
left: ArrayIndex {
|
|
array: Variable(
|
|
Variable {
|
|
start: (
|
|
7,
|
|
1,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
7,
|
|
5,
|
|
),
|
|
},
|
|
),
|
|
index: Some(
|
|
LiteralString {
|
|
value: "bar",
|
|
},
|
|
),
|
|
},
|
|
span: (
|
|
7,
|
|
13,
|
|
),
|
|
right: LiteralString {
|
|
value: "baz",
|
|
},
|
|
},
|
|
),
|
|
},
|
|
]
|