parser/tests/fixtures/0214/ast.txt
Saif Eddin Gmati c93634a62b
chore: refactor class and trait ast (#189)
Signed-off-by: azjezz <azjezz@protonmail.com>

Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-09 22:05:03 +01:00

130 lines
3.5 KiB
Plaintext

[
Interface(
Interface {
start: (
3,
1,
),
end: (
3,
14,
),
attributes: [],
name: Identifier {
start: (
3,
11,
),
name: "s",
end: (
3,
13,
),
},
extends: None,
members: [],
},
),
Interface(
Interface {
start: (
5,
1,
),
end: (
7,
1,
),
attributes: [],
name: Identifier {
start: (
5,
11,
),
name: "foo",
end: (
5,
15,
),
},
extends: Some(
InterfaceExtends {
span: (
5,
15,
),
parents: [
Identifier {
start: (
5,
23,
),
name: "s",
end: (
5,
25,
),
},
],
},
),
members: [
Method(
Method {
start: (
6,
12,
),
end: (
6,
34,
),
name: Identifier {
start: (
6,
21,
),
name: "bar",
end: (
6,
24,
),
},
attributes: [],
parameters: MethodParameterList {
start: (
6,
24,
),
end: (
6,
26,
),
members: [],
},
body: None,
modifiers: MethodModifierGroup {
modifiers: [
Public {
start: (
6,
5,
),
end: (
6,
12,
),
},
],
},
return_type: Some(
ParentReference,
),
by_ref: false,
},
),
],
},
),
]