parser/tests/0153/ast.txt
Saif Eddin Gmati b6c145f98e
fix: attributes support (#155)
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-04 16:12:23 +01:00

56 lines
1.7 KiB
Plaintext

[
Namespace {
name: "Foo\Bar",
body: [
Noop,
Class {
name: Identifier {
name: "Baz",
},
attributes: [],
extends: None,
implements: [],
body: [
Method {
name: Identifier {
name: "__construct",
},
attributes: [],
params: [
Param {
name: Variable {
name: "name",
},
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,
],
},
],
},
]