parser/tests/fixtures/0153/ast.txt

162 lines
6.2 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(
Method {
start: (
6,
13,
),
end: (
9,
1,
),
name: Identifier {
start: (
6,
22,
),
name: "__construct",
end: (
6,
33,
),
},
attributes: [],
parameters: MethodParameterList {
start: (
6,
33,
),
end: (
8,
8,
),
members: [
MethodParameter {
start: (
7,
11,
),
end: (
7,
47,
),
name: Variable {
start: (
7,
34,
),
name: "name",
end: (
7,
40,
),
},
attributes: [],
type: Some(
String,
),
variadic: false,
default: Some(
LiteralString {
value: "foo",
},
),
flags: PromotedPropertyModifierGroup {
flags: [
Public {
start: (
7,
11,
),
end: (
7,
18,
),
},
Readonly {
start: (
7,
18,
),
end: (
7,
27,
),
},
],
},
by_ref: false,
},
],
},
body: Some(
[],
),
flags: MethodModifierGroup {
flags: [
Public {
start: (
6,
6,
),
end: (
6,
13,
),
},
],
},
return_type: None,
by_ref: false,
},
),
],
modifiers: ClassModifierGroup {
flags: [
Final {
start: (
5,
1,
),
end: (
5,
7,
),
},
],
},
},
],
},
]