parser/tests/fixtures/0215/ast.txt

69 lines
1.9 KiB
Plaintext
Raw Normal View History

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