parser/tests/fixtures/0033/ast.txt

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