parser/tests/0007/ast.txt
2022-12-05 13:55:35 +00:00

77 lines
2.4 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(
LiteralString {
value: "single",
},
),
value: Infix {
lhs: Variable {
name: "foo",
},
op: Instanceof,
rhs: Identifier {
name: "Foo",
},
},
unpack: false,
by_ref: false,
},
ArrayItem {
key: Some(
LiteralString {
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,
by_ref: false,
},
],
},
},
},
]