mirror of
https://github.com/danog/parser.git
synced 2024-12-12 09:09:37 +01:00
479f51913c
Signed-off-by: azjezz <azjezz@protonmail.com>
167 lines
5.8 KiB
Plaintext
167 lines
5.8 KiB
Plaintext
[
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
3,
|
|
1,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
3,
|
|
6,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: Call {
|
|
target: Identifier(
|
|
Identifier {
|
|
start: (
|
|
3,
|
|
8,
|
|
),
|
|
name: "give_me_foo",
|
|
end: (
|
|
3,
|
|
19,
|
|
),
|
|
},
|
|
),
|
|
args: [],
|
|
},
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
5,
|
|
1,
|
|
),
|
|
name: "a",
|
|
end: (
|
|
5,
|
|
4,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: Array {
|
|
items: [
|
|
ArrayItem {
|
|
key: Some(
|
|
LiteralString {
|
|
value: "single",
|
|
},
|
|
),
|
|
value: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
6,
|
|
17,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
6,
|
|
22,
|
|
),
|
|
},
|
|
),
|
|
op: Instanceof,
|
|
rhs: Identifier(
|
|
Identifier {
|
|
start: (
|
|
6,
|
|
33,
|
|
),
|
|
name: "Foo",
|
|
end: (
|
|
6,
|
|
36,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
unpack: false,
|
|
by_ref: false,
|
|
},
|
|
ArrayItem {
|
|
key: Some(
|
|
LiteralString {
|
|
value: "multiple",
|
|
},
|
|
),
|
|
value: Infix {
|
|
lhs: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
7,
|
|
19,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
7,
|
|
24,
|
|
),
|
|
},
|
|
),
|
|
op: Instanceof,
|
|
rhs: Identifier(
|
|
Identifier {
|
|
start: (
|
|
7,
|
|
35,
|
|
),
|
|
name: "Bar",
|
|
end: (
|
|
7,
|
|
39,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
op: And,
|
|
rhs: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
7,
|
|
42,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
7,
|
|
47,
|
|
),
|
|
},
|
|
),
|
|
op: Instanceof,
|
|
rhs: Identifier(
|
|
Identifier {
|
|
start: (
|
|
7,
|
|
58,
|
|
),
|
|
name: "Baz",
|
|
end: (
|
|
8,
|
|
1,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
},
|
|
unpack: false,
|
|
by_ref: false,
|
|
},
|
|
],
|
|
},
|
|
},
|
|
},
|
|
]
|