mirror of
https://github.com/danog/parser.git
synced 2024-12-13 09:37:18 +01:00
53 lines
1.6 KiB
Plaintext
53 lines
1.6 KiB
Plaintext
|
[
|
||
|
Namespace {
|
||
|
name: "Foo\Bar",
|
||
|
body: [
|
||
|
Noop,
|
||
|
Class {
|
||
|
name: Identifier {
|
||
|
name: "Baz",
|
||
|
},
|
||
|
extends: None,
|
||
|
implements: [],
|
||
|
body: [
|
||
|
Method {
|
||
|
name: Identifier {
|
||
|
name: "__construct",
|
||
|
},
|
||
|
params: [
|
||
|
Param {
|
||
|
name: Variable {
|
||
|
name: "name",
|
||
|
},
|
||
|
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,
|
||
|
],
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
]
|