mirror of
https://github.com/danog/parser.git
synced 2024-11-30 04:29:13 +01:00
b6c145f98e
Signed-off-by: azjezz <azjezz@protonmail.com>
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
[
|
|
Trait {
|
|
name: Identifier {
|
|
name: "foo",
|
|
},
|
|
attributes: [],
|
|
body: [
|
|
Method {
|
|
name: Identifier {
|
|
name: "bar",
|
|
},
|
|
attributes: [],
|
|
params: [],
|
|
body: [
|
|
Expression {
|
|
expr: Call {
|
|
target: Identifier {
|
|
name: "exit",
|
|
},
|
|
args: [
|
|
Arg {
|
|
name: None,
|
|
value: LiteralInteger {
|
|
i: 1,
|
|
},
|
|
unpack: false,
|
|
},
|
|
],
|
|
},
|
|
},
|
|
],
|
|
flags: [
|
|
Public,
|
|
],
|
|
return_type: Some(
|
|
ParentReference,
|
|
),
|
|
by_ref: false,
|
|
},
|
|
],
|
|
},
|
|
]
|