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

100 lines
3.4 KiB
Plaintext

[
Namespace {
name: Identifier {
start: (
3,
11,
),
name: "Foo\Bar",
end: (
3,
18,
),
},
body: [
Noop(
(
3,
18,
),
),
Class(
Class {
start: (
5,
7,
),
end: (
7,
1,
),
name: Identifier {
start: (
5,
13,
),
name: "Baz",
end: (
5,
17,
),
},
extends: None,
implements: None,
attributes: [],
members: [
Property(
Property {
attributes: [],
type: Some(
String,
),
modifiers: PropertyModifierGroup {
modifiers: [
Public {
start: (
6,
6,
),
end: (
6,
13,
),
},
Readonly {
start: (
6,
13,
),
end: (
6,
22,
),
},
],
},
entries: [
PropertyEntry {
variable: Variable {
start: (
6,
29,
),
name: "foo",
end: (
6,
33,
),
},
value: None,
},
],
},
),
],
},
),
],
},
]