parser/tests/0007/ast.txt
Saif Eddin Gmati 017b2e19c3
chore: use new integration test runner instead of assert_ast() (#127)
Signed-off-by: azjezz <azjezz@protonmail.com>

Signed-off-by: azjezz <azjezz@protonmail.com>
2022-11-29 01:33:01 +00:00

75 lines
2.3 KiB
Plaintext

[
Expression {
expr: Infix {
lhs: Variable {
name: "foo",
},
op: Assign,
rhs: Call {
target: Identifier {
name: "give_me_foo",
},
args: [],
},
},
},
Expression {
expr: Infix {
lhs: Variable {
name: "a",
},
op: Assign,
rhs: Array {
items: [
ArrayItem {
key: Some(
ConstantString {
value: "single",
},
),
value: Infix {
lhs: Variable {
name: "foo",
},
op: Instanceof,
rhs: Identifier {
name: "Foo",
},
},
unpack: false,
},
ArrayItem {
key: Some(
ConstantString {
value: "multiple",
},
),
value: Infix {
lhs: Infix {
lhs: Variable {
name: "foo",
},
op: Instanceof,
rhs: Identifier {
name: "Bar",
},
},
op: And,
rhs: Infix {
lhs: Variable {
name: "foo",
},
op: Instanceof,
rhs: Identifier {
name: "Baz",
},
},
},
unpack: false,
},
],
},
},
},
]