parser/tests/fixtures/0045/ast.txt
2022-12-06 09:51:13 +01:00

75 lines
2.0 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,
14,
),
name: "bar",
end: (
4,
17,
),
},
attributes: [],
parameters: MethodParameterList {
start: (
4,
17,
),
end: (
4,
20,
),
members: [],
},
body: Some(
[
Echo {
values: [
LiteralInteger {
i: 1,
},
],
},
],
),
modifiers: MethodModifierGroup {
modifiers: [],
},
return_type: None,
by_ref: false,
},
),
],
modifiers: ClassModifierGroup {
modifiers: [],
},
},
]