mirror of
https://github.com/danog/parser.git
synced 2025-01-06 04:38:22 +01:00
6a6d4d0e5f
Signed-off-by: azjezz <azjezz@protonmail.com>
147 lines
6.1 KiB
Plaintext
147 lines
6.1 KiB
Plaintext
[
|
|
Namespace {
|
|
name: SimpleIdentifier {
|
|
span: (
|
|
3,
|
|
11,
|
|
),
|
|
name: "Foo\Bar",
|
|
},
|
|
body: [
|
|
Noop(
|
|
(
|
|
3,
|
|
18,
|
|
),
|
|
),
|
|
Class(
|
|
Class {
|
|
start: (
|
|
5,
|
|
7,
|
|
),
|
|
end: (
|
|
9,
|
|
1,
|
|
),
|
|
name: SimpleIdentifier {
|
|
span: (
|
|
5,
|
|
13,
|
|
),
|
|
name: "Baz",
|
|
},
|
|
extends: None,
|
|
implements: None,
|
|
attributes: [],
|
|
members: [
|
|
Method(
|
|
Method {
|
|
start: (
|
|
6,
|
|
13,
|
|
),
|
|
end: (
|
|
8,
|
|
9,
|
|
),
|
|
name: SimpleIdentifier {
|
|
span: (
|
|
6,
|
|
22,
|
|
),
|
|
name: "__construct",
|
|
},
|
|
attributes: [],
|
|
parameters: MethodParameterList {
|
|
start: (
|
|
6,
|
|
33,
|
|
),
|
|
end: (
|
|
8,
|
|
8,
|
|
),
|
|
members: [
|
|
MethodParameter {
|
|
start: (
|
|
7,
|
|
11,
|
|
),
|
|
end: (
|
|
7,
|
|
47,
|
|
),
|
|
name: SimpleVariable {
|
|
span: (
|
|
7,
|
|
34,
|
|
),
|
|
name: "name",
|
|
},
|
|
attributes: [],
|
|
type: Some(
|
|
String,
|
|
),
|
|
variadic: false,
|
|
default: Some(
|
|
LiteralString {
|
|
value: "foo",
|
|
},
|
|
),
|
|
modifiers: PromotedPropertyModifierGroup {
|
|
modifiers: [
|
|
Public {
|
|
start: (
|
|
7,
|
|
11,
|
|
),
|
|
end: (
|
|
7,
|
|
18,
|
|
),
|
|
},
|
|
Readonly {
|
|
start: (
|
|
7,
|
|
18,
|
|
),
|
|
end: (
|
|
7,
|
|
27,
|
|
),
|
|
},
|
|
],
|
|
},
|
|
by_ref: false,
|
|
},
|
|
],
|
|
},
|
|
body: Some(
|
|
[],
|
|
),
|
|
modifiers: MethodModifierGroup {
|
|
modifiers: [
|
|
Public {
|
|
start: (
|
|
6,
|
|
6,
|
|
),
|
|
end: (
|
|
6,
|
|
13,
|
|
),
|
|
},
|
|
],
|
|
},
|
|
return_type: None,
|
|
by_ref: false,
|
|
},
|
|
),
|
|
],
|
|
},
|
|
),
|
|
],
|
|
},
|
|
]
|