parser/tests/0007/ast.txt
Saif Eddin Gmati 0e04f157f7
chore: consistent naming (#135)
Signed-off-by: azjezz <azjezz@protonmail.com>

Signed-off-by: azjezz <azjezz@protonmail.com>
2022-11-29 21:25:17 +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(
LiteralString {
value: "single",
},
),
value: Infix {
lhs: Variable {
name: "foo",
},
op: Instanceof,
rhs: Identifier {
name: "Foo",
},
},
unpack: 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,
},
],
},
},
},
]