parser/tests/fixtures/0031/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

97 lines
3.1 KiB
Plaintext

[
Expression {
expr: InterpolatedString {
parts: [
Expr(
Variable(
SimpleVariable(
SimpleVariable {
span: (
1,
8,
),
name: "foo",
},
),
),
),
Const(
" abc ",
),
Expr(
PropertyFetch {
target: Variable(
SimpleVariable(
SimpleVariable {
span: (
1,
12,
),
name: "bar",
},
),
),
property: Identifier(
SimpleIdentifier(
SimpleIdentifier {
span: (
1,
23,
),
name: "a",
},
),
),
},
),
Const(
" def ",
),
Expr(
ArrayIndex {
array: Variable(
SimpleVariable(
SimpleVariable {
span: (
1,
24,
),
name: "bar",
},
),
),
index: Some(
LiteralInteger {
i: "0",
},
),
},
),
Const(
" ghi ",
),
Expr(
ArrayIndex {
array: Variable(
SimpleVariable(
SimpleVariable {
span: (
1,
36,
),
name: "bar",
},
),
),
index: Some(
LiteralString {
value: "baz",
},
),
},
),
],
},
},
]