parser/tests/fixtures/0217/ast.txt
Saif Eddin Gmati 9a2a903fb9
chore: refactor ast (#162)
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-06 09:33:29 +01:00

133 lines
3.7 KiB
Plaintext

[
Class {
name: Identifier {
start: (
3,
7,
),
name: "s",
end: (
3,
9,
),
},
attributes: [],
extends: None,
implements: [],
body: [],
modifiers: ClassModifierGroup {
flags: [],
},
},
Class {
name: Identifier {
start: (
5,
7,
),
name: "foo",
end: (
5,
11,
),
},
attributes: [],
extends: Some(
Identifier {
start: (
5,
19,
),
name: "s",
end: (
5,
21,
),
},
),
implements: [],
body: [
Method(
Method {
start: (
6,
12,
),
end: (
9,
1,
),
name: Identifier {
start: (
6,
21,
),
name: "bar",
end: (
6,
24,
),
},
attributes: [],
parameters: MethodParameterList {
start: (
6,
24,
),
end: (
6,
26,
),
members: [],
},
body: Some(
[
Return {
value: Some(
New {
target: Identifier(
Identifier {
start: (
7,
20,
),
name: "s",
end: (
7,
21,
),
},
),
args: [],
},
),
},
],
),
flags: MethodModifierGroup {
flags: [
Public {
start: (
6,
5,
),
end: (
6,
12,
),
},
],
},
return_type: Some(
ParentReference,
),
by_ref: false,
},
),
],
modifiers: ClassModifierGroup {
flags: [],
},
},
]