parser/tests/fixtures/0153/ast.txt

90 lines
2.7 KiB
Plaintext
Raw Normal View History

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