parser/tests/fixtures/0217/ast.txt

96 lines
2.3 KiB
Plaintext
Raw Normal View History

2022-12-03 20:31:10 +01:00
[
Class {
name: Identifier {
start: (
3,
7,
),
2022-12-03 20:31:10 +01:00
name: "s",
end: (
3,
9,
),
2022-12-03 20:31:10 +01:00
},
attributes: [],
2022-12-03 20:31:10 +01:00
extends: None,
implements: [],
body: [],
flags: [],
},
Class {
name: Identifier {
start: (
5,
7,
),
2022-12-03 20:31:10 +01:00
name: "foo",
end: (
5,
11,
),
2022-12-03 20:31:10 +01:00
},
attributes: [],
2022-12-03 20:31:10 +01:00
extends: Some(
Identifier {
start: (
5,
19,
),
2022-12-03 20:31:10 +01:00
name: "s",
end: (
5,
21,
),
2022-12-03 20:31:10 +01:00
},
),
implements: [],
body: [
Method {
name: Identifier {
start: (
6,
21,
),
2022-12-03 20:31:10 +01:00
name: "bar",
end: (
6,
24,
),
2022-12-03 20:31:10 +01:00
},
attributes: [],
2022-12-03 20:31:10 +01:00
params: [],
body: [
Return {
value: Some(
New {
target: Identifier(
Identifier {
start: (
7,
20,
),
name: "s",
end: (
7,
21,
),
},
),
2022-12-03 20:31:10 +01:00
args: [],
},
),
},
],
flags: [
Public,
],
return_type: Some(
ParentReference,
),
by_ref: false,
},
],
flags: [],
},
]