parser/tests/fixtures/0130/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

85 lines
2.4 KiB
Plaintext

[
Class(
Class {
start: (
3,
1,
),
end: (
7,
1,
),
name: Identifier {
start: (
3,
7,
),
name: "foo",
end: (
3,
11,
),
},
extends: None,
implements: None,
attributes: [],
members: [
Method(
Method {
start: (
4,
12,
),
end: (
6,
5,
),
name: Identifier {
start: (
4,
21,
),
name: "foreach",
end: (
4,
28,
),
},
attributes: [],
parameters: MethodParameterList {
start: (
4,
28,
),
end: (
4,
31,
),
members: [],
},
body: Some(
[],
),
modifiers: MethodModifierGroup {
modifiers: [
Public {
start: (
4,
5,
),
end: (
4,
12,
),
},
],
},
return_type: None,
by_ref: false,
},
),
],
},
),
]