2022-12-02 16:52:16 +01:00
|
|
|
[
|
2022-12-03 20:31:10 +01:00
|
|
|
Trait {
|
|
|
|
name: Identifier {
|
2022-12-05 17:53:41 +01:00
|
|
|
start: (
|
|
|
|
3,
|
|
|
|
7,
|
|
|
|
),
|
2022-12-03 20:31:10 +01:00
|
|
|
name: "foo",
|
2022-12-05 17:53:41 +01:00
|
|
|
end: (
|
|
|
|
3,
|
|
|
|
11,
|
|
|
|
),
|
2022-12-03 20:31:10 +01:00
|
|
|
},
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-12-02 16:52:16 +01:00
|
|
|
body: [
|
2022-12-03 20:31:10 +01:00
|
|
|
Method {
|
2022-12-02 16:52:16 +01:00
|
|
|
name: Identifier {
|
2022-12-05 17:53:41 +01:00
|
|
|
start: (
|
|
|
|
7,
|
|
|
|
21,
|
|
|
|
),
|
2022-12-03 20:31:10 +01:00
|
|
|
name: "bar",
|
2022-12-05 17:53:41 +01:00
|
|
|
end: (
|
|
|
|
7,
|
|
|
|
24,
|
|
|
|
),
|
2022-12-02 16:52:16 +01:00
|
|
|
},
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-12-03 20:31:10 +01:00
|
|
|
params: [],
|
2022-12-02 16:52:16 +01:00
|
|
|
body: [
|
|
|
|
Expression {
|
|
|
|
expr: Call {
|
2022-12-05 17:53:41 +01:00
|
|
|
target: Identifier(
|
|
|
|
Identifier {
|
|
|
|
start: (
|
|
|
|
8,
|
|
|
|
9,
|
|
|
|
),
|
|
|
|
name: "exit",
|
|
|
|
end: (
|
|
|
|
8,
|
|
|
|
13,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
2022-12-02 16:52:16 +01:00
|
|
|
args: [
|
|
|
|
Arg {
|
|
|
|
name: None,
|
|
|
|
value: LiteralInteger {
|
2022-12-03 20:31:10 +01:00
|
|
|
i: 1,
|
2022-12-02 16:52:16 +01:00
|
|
|
},
|
|
|
|
unpack: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2022-12-03 20:31:10 +01:00
|
|
|
flags: [
|
|
|
|
Public,
|
|
|
|
],
|
2022-12-02 16:52:16 +01:00
|
|
|
return_type: Some(
|
|
|
|
ParentReference,
|
|
|
|
),
|
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|