mirror of
https://github.com/danog/parser.git
synced 2024-11-30 04:29:13 +01:00
c93634a62b
Signed-off-by: azjezz <azjezz@protonmail.com> Signed-off-by: azjezz <azjezz@protonmail.com>
114 lines
3.9 KiB
Plaintext
114 lines
3.9 KiB
Plaintext
[
|
|
Class(
|
|
Class {
|
|
start: (
|
|
3,
|
|
1,
|
|
),
|
|
end: (
|
|
7,
|
|
1,
|
|
),
|
|
name: Identifier {
|
|
start: (
|
|
3,
|
|
7,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
3,
|
|
11,
|
|
),
|
|
},
|
|
extends: None,
|
|
implements: None,
|
|
attributes: [],
|
|
members: [
|
|
Method(
|
|
Method {
|
|
start: (
|
|
4,
|
|
12,
|
|
),
|
|
end: (
|
|
6,
|
|
5,
|
|
),
|
|
name: Identifier {
|
|
start: (
|
|
4,
|
|
21,
|
|
),
|
|
name: "bar",
|
|
end: (
|
|
4,
|
|
24,
|
|
),
|
|
},
|
|
attributes: [],
|
|
parameters: MethodParameterList {
|
|
start: (
|
|
4,
|
|
24,
|
|
),
|
|
end: (
|
|
4,
|
|
26,
|
|
),
|
|
members: [],
|
|
},
|
|
body: Some(
|
|
[
|
|
Expression {
|
|
expr: Call {
|
|
target: Identifier(
|
|
Identifier {
|
|
start: (
|
|
5,
|
|
9,
|
|
),
|
|
name: "exit",
|
|
end: (
|
|
5,
|
|
13,
|
|
),
|
|
},
|
|
),
|
|
args: [
|
|
Arg {
|
|
name: None,
|
|
value: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
unpack: false,
|
|
},
|
|
],
|
|
},
|
|
},
|
|
],
|
|
),
|
|
modifiers: MethodModifierGroup {
|
|
modifiers: [
|
|
Public {
|
|
start: (
|
|
4,
|
|
5,
|
|
),
|
|
end: (
|
|
4,
|
|
12,
|
|
),
|
|
},
|
|
],
|
|
},
|
|
return_type: Some(
|
|
ParentReference,
|
|
),
|
|
by_ref: false,
|
|
},
|
|
),
|
|
],
|
|
},
|
|
),
|
|
]
|