parser/tests/fixtures/0033/ast.txt
Saif Eddin Gmati 6a6d4d0e5f
chore: refactor ident and dynamic var parsers (#192)
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-10 15:24:55 +01:00

115 lines
3.9 KiB
Plaintext

[
Expression {
expr: InterpolatedString {
parts: [
Expr(
Variable(
SimpleVariable(
SimpleVariable {
span: (
1,
9,
),
name: "foo",
},
),
),
),
Expr(
ArrayIndex {
array: Variable(
SimpleVariable(
SimpleVariable {
span: (
1,
15,
),
name: "foo",
},
),
),
index: Some(
LiteralInteger {
i: "0",
},
),
},
),
Expr(
ArrayIndex {
array: Variable(
SimpleVariable(
SimpleVariable {
span: (
1,
24,
),
name: "foo",
},
),
),
index: Some(
LiteralString {
value: "bar",
},
),
},
),
Expr(
PropertyFetch {
target: Variable(
SimpleVariable(
SimpleVariable {
span: (
1,
37,
),
name: "foo",
},
),
),
property: Identifier(
SimpleIdentifier(
SimpleIdentifier {
span: (
1,
43,
),
name: "bar",
},
),
),
},
),
Expr(
MethodCall {
target: Variable(
SimpleVariable(
SimpleVariable {
span: (
1,
48,
),
name: "foo",
},
),
),
method: Identifier(
SimpleIdentifier(
SimpleIdentifier {
span: (
1,
54,
),
name: "bar",
},
),
),
args: [],
},
),
],
},
},
]