mirror of
https://github.com/danog/parser.git
synced 2024-12-04 10:27:58 +01:00
6a6d4d0e5f
Signed-off-by: azjezz <azjezz@protonmail.com>
166 lines
6.6 KiB
Plaintext
166 lines
6.6 KiB
Plaintext
[
|
|
Class(
|
|
Class {
|
|
start: (
|
|
3,
|
|
1,
|
|
),
|
|
end: (
|
|
3,
|
|
12,
|
|
),
|
|
name: SimpleIdentifier {
|
|
span: (
|
|
3,
|
|
7,
|
|
),
|
|
name: "bar",
|
|
},
|
|
extends: None,
|
|
implements: None,
|
|
attributes: [],
|
|
members: [],
|
|
},
|
|
),
|
|
Noop(
|
|
(
|
|
3,
|
|
13,
|
|
),
|
|
),
|
|
Expression {
|
|
expr: AssignmentOperation(
|
|
Assign {
|
|
left: Variable(
|
|
SimpleVariable(
|
|
SimpleVariable {
|
|
span: (
|
|
5,
|
|
1,
|
|
),
|
|
name: "e",
|
|
},
|
|
),
|
|
),
|
|
span: (
|
|
5,
|
|
4,
|
|
),
|
|
right: New {
|
|
target: AnonymousClass(
|
|
AnonymousClass {
|
|
start: (
|
|
5,
|
|
10,
|
|
),
|
|
end: (
|
|
9,
|
|
1,
|
|
),
|
|
extends: Some(
|
|
ClassExtends {
|
|
span: (
|
|
5,
|
|
16,
|
|
),
|
|
parent: SimpleIdentifier {
|
|
span: (
|
|
5,
|
|
24,
|
|
),
|
|
name: "bar",
|
|
},
|
|
},
|
|
),
|
|
implements: None,
|
|
attributes: [],
|
|
members: [
|
|
Method(
|
|
Method {
|
|
start: (
|
|
6,
|
|
12,
|
|
),
|
|
end: (
|
|
8,
|
|
5,
|
|
),
|
|
name: SimpleIdentifier {
|
|
span: (
|
|
6,
|
|
21,
|
|
),
|
|
name: "bar",
|
|
},
|
|
attributes: [],
|
|
parameters: MethodParameterList {
|
|
start: (
|
|
6,
|
|
24,
|
|
),
|
|
end: (
|
|
6,
|
|
26,
|
|
),
|
|
members: [],
|
|
},
|
|
body: Some(
|
|
[
|
|
Return {
|
|
value: Some(
|
|
New {
|
|
target: Identifier(
|
|
SimpleIdentifier(
|
|
SimpleIdentifier {
|
|
span: (
|
|
7,
|
|
20,
|
|
),
|
|
name: "bar",
|
|
},
|
|
),
|
|
),
|
|
span: (
|
|
7,
|
|
16,
|
|
),
|
|
args: [],
|
|
},
|
|
),
|
|
},
|
|
],
|
|
),
|
|
modifiers: MethodModifierGroup {
|
|
modifiers: [
|
|
Public {
|
|
start: (
|
|
6,
|
|
5,
|
|
),
|
|
end: (
|
|
6,
|
|
12,
|
|
),
|
|
},
|
|
],
|
|
},
|
|
return_type: Some(
|
|
ParentReference,
|
|
),
|
|
by_ref: false,
|
|
},
|
|
),
|
|
],
|
|
},
|
|
),
|
|
span: (
|
|
5,
|
|
6,
|
|
),
|
|
args: [],
|
|
},
|
|
},
|
|
),
|
|
},
|
|
]
|