parser/tests/fixtures/0216/ast.txt

107 lines
3.4 KiB
Plaintext

[
Class {
name: Identifier {
start: (
3,
7,
),
name: "foo",
end: (
3,
11,
),
},
attributes: [],
extends: None,
implements: [],
body: [
Method(
Method {
start: (
4,
5,
),
end: (
6,
5,
),
name: Identifier {
start: (
4,
21,
),
name: "bar",
end: (
4,
24,
),
},
attributes: [],
parameters: MethodParameterList {
start: (
4,
24,
),
end: (
4,
26,
),
members: [],
},
body: Some(
[
Expression {
expr: Call {
target: Identifier(
Identifier {
start: (
5,
9,
),
name: "exit",
end: (
5,
13,
),
},
),
args: [
Arg {
name: None,
value: LiteralInteger {
i: 1,
},
unpack: false,
},
],
},
},
],
),
modifiers: MethodModifierGroup {
modifiers: [
Public {
start: (
4,
5,
),
end: (
4,
12,
),
},
],
},
return_type: Some(
ParentReference,
),
by_ref: false,
},
),
],
modifiers: ClassModifierGroup {
modifiers: [],
},
},
]