mirror of
https://github.com/danog/parser.git
synced 2024-12-12 17:17:23 +01:00
479f51913c
Signed-off-by: azjezz <azjezz@protonmail.com>
90 lines
2.7 KiB
Plaintext
90 lines
2.7 KiB
Plaintext
[
|
|
Namespace {
|
|
name: Identifier {
|
|
start: (
|
|
3,
|
|
11,
|
|
),
|
|
name: "Foo\Bar",
|
|
end: (
|
|
3,
|
|
18,
|
|
),
|
|
},
|
|
body: [
|
|
Noop,
|
|
Class {
|
|
name: Identifier {
|
|
start: (
|
|
5,
|
|
13,
|
|
),
|
|
name: "Baz",
|
|
end: (
|
|
5,
|
|
17,
|
|
),
|
|
},
|
|
attributes: [],
|
|
extends: None,
|
|
implements: [],
|
|
body: [
|
|
Method {
|
|
name: Identifier {
|
|
start: (
|
|
6,
|
|
22,
|
|
),
|
|
name: "__construct",
|
|
end: (
|
|
6,
|
|
33,
|
|
),
|
|
},
|
|
attributes: [],
|
|
params: [
|
|
Param {
|
|
name: Variable {
|
|
start: (
|
|
7,
|
|
34,
|
|
),
|
|
name: "name",
|
|
end: (
|
|
7,
|
|
40,
|
|
),
|
|
},
|
|
attributes: [],
|
|
type: Some(
|
|
String,
|
|
),
|
|
variadic: false,
|
|
default: Some(
|
|
LiteralString {
|
|
value: "foo",
|
|
},
|
|
),
|
|
flags: [
|
|
Public,
|
|
Readonly,
|
|
],
|
|
by_ref: false,
|
|
},
|
|
],
|
|
body: [],
|
|
flags: [
|
|
Public,
|
|
],
|
|
return_type: None,
|
|
by_ref: false,
|
|
},
|
|
],
|
|
flags: [
|
|
Final,
|
|
],
|
|
},
|
|
],
|
|
},
|
|
]
|