parser/tests/fixtures/0009/ast.txt

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",
},
},
),
},
]