parser/tests/fixtures/0215/ast.txt

102 lines
3.3 KiB
Plaintext

[
Trait {
name: Identifier {
start: (
3,
7,
),
name: "foo",
end: (
3,
11,
),
},
attributes: [],
body: [
Method(
Method {
start: (
7,
5,
),
end: (
9,
5,
),
name: Identifier {
start: (
7,
21,
),
name: "bar",
end: (
7,
24,
),
},
attributes: [],
parameters: MethodParameterList {
start: (
7,
24,
),
end: (
7,
26,
),
members: [],
},
body: Some(
[
Expression {
expr: Call {
target: Identifier(
Identifier {
start: (
8,
9,
),
name: "exit",
end: (
8,
13,
),
},
),
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,
},
),
],
},
]