mirror of
https://github.com/danog/parser.git
synced 2024-12-03 09:57:45 +01:00
6a6d4d0e5f
Signed-off-by: azjezz <azjezz@protonmail.com>
102 lines
3.5 KiB
Plaintext
102 lines
3.5 KiB
Plaintext
[
|
|
Trait(
|
|
Trait {
|
|
start: (
|
|
3,
|
|
1,
|
|
),
|
|
end: (
|
|
10,
|
|
1,
|
|
),
|
|
name: SimpleIdentifier {
|
|
span: (
|
|
3,
|
|
7,
|
|
),
|
|
name: "foo",
|
|
},
|
|
attributes: [],
|
|
members: [
|
|
Method(
|
|
Method {
|
|
start: (
|
|
7,
|
|
12,
|
|
),
|
|
end: (
|
|
9,
|
|
5,
|
|
),
|
|
name: SimpleIdentifier {
|
|
span: (
|
|
7,
|
|
21,
|
|
),
|
|
name: "bar",
|
|
},
|
|
attributes: [],
|
|
parameters: MethodParameterList {
|
|
start: (
|
|
7,
|
|
24,
|
|
),
|
|
end: (
|
|
7,
|
|
26,
|
|
),
|
|
members: [],
|
|
},
|
|
body: Some(
|
|
[
|
|
Expression {
|
|
expr: Call {
|
|
target: Identifier(
|
|
SimpleIdentifier(
|
|
SimpleIdentifier {
|
|
span: (
|
|
8,
|
|
9,
|
|
),
|
|
name: "exit",
|
|
},
|
|
),
|
|
),
|
|
args: [
|
|
Arg {
|
|
name: None,
|
|
value: LiteralInteger {
|
|
i: "1",
|
|
},
|
|
unpack: false,
|
|
},
|
|
],
|
|
},
|
|
},
|
|
],
|
|
),
|
|
modifiers: MethodModifierGroup {
|
|
modifiers: [
|
|
Public {
|
|
start: (
|
|
7,
|
|
5,
|
|
),
|
|
end: (
|
|
7,
|
|
12,
|
|
),
|
|
},
|
|
],
|
|
},
|
|
return_type: Some(
|
|
ParentReference,
|
|
),
|
|
by_ref: false,
|
|
},
|
|
),
|
|
],
|
|
},
|
|
),
|
|
]
|