mirror of
https://github.com/danog/parser.git
synced 2024-12-04 10:27:58 +01:00
479f51913c
Signed-off-by: azjezz <azjezz@protonmail.com>
69 lines
1.9 KiB
Plaintext
69 lines
1.9 KiB
Plaintext
[
|
|
Trait {
|
|
name: Identifier {
|
|
start: (
|
|
3,
|
|
7,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
3,
|
|
11,
|
|
),
|
|
},
|
|
attributes: [],
|
|
body: [
|
|
Method {
|
|
name: Identifier {
|
|
start: (
|
|
7,
|
|
21,
|
|
),
|
|
name: "bar",
|
|
end: (
|
|
7,
|
|
24,
|
|
),
|
|
},
|
|
attributes: [],
|
|
params: [],
|
|
body: [
|
|
Expression {
|
|
expr: Call {
|
|
target: Identifier(
|
|
Identifier {
|
|
start: (
|
|
8,
|
|
9,
|
|
),
|
|
name: "exit",
|
|
end: (
|
|
8,
|
|
13,
|
|
),
|
|
},
|
|
),
|
|
args: [
|
|
Arg {
|
|
name: None,
|
|
value: LiteralInteger {
|
|
i: 1,
|
|
},
|
|
unpack: false,
|
|
},
|
|
],
|
|
},
|
|
},
|
|
],
|
|
flags: [
|
|
Public,
|
|
],
|
|
return_type: Some(
|
|
ParentReference,
|
|
),
|
|
by_ref: false,
|
|
},
|
|
],
|
|
},
|
|
]
|