parser/tests/0153/ast.txt

53 lines
1.6 KiB
Plaintext
Raw Normal View History

[
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,
],
},
],
},
]