mirror of
https://github.com/danog/parser.git
synced 2024-12-02 17:38:16 +01:00
017b2e19c3
Signed-off-by: azjezz <azjezz@protonmail.com> Signed-off-by: azjezz <azjezz@protonmail.com>
75 lines
2.3 KiB
Plaintext
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,
|
|
},
|
|
],
|
|
},
|
|
},
|
|
},
|
|
]
|