mirror of
https://github.com/danog/parser.git
synced 2024-12-04 18:38:11 +01:00
c93634a62b
Signed-off-by: azjezz <azjezz@protonmail.com> Signed-off-by: azjezz <azjezz@protonmail.com>
812 lines
32 KiB
Plaintext
812 lines
32 KiB
Plaintext
[
|
|
Interface(
|
|
Interface {
|
|
start: (
|
|
5,
|
|
1,
|
|
),
|
|
end: (
|
|
26,
|
|
1,
|
|
),
|
|
attributes: [
|
|
AttributeGroup {
|
|
start: (
|
|
3,
|
|
1,
|
|
),
|
|
end: (
|
|
3,
|
|
7,
|
|
),
|
|
members: [
|
|
Attribute {
|
|
start: (
|
|
3,
|
|
3,
|
|
),
|
|
end: (
|
|
3,
|
|
4,
|
|
),
|
|
expression: Identifier(
|
|
Identifier {
|
|
start: (
|
|
3,
|
|
3,
|
|
),
|
|
name: "A",
|
|
end: (
|
|
3,
|
|
4,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
Attribute {
|
|
start: (
|
|
3,
|
|
6,
|
|
),
|
|
end: (
|
|
3,
|
|
7,
|
|
),
|
|
expression: Identifier(
|
|
Identifier {
|
|
start: (
|
|
3,
|
|
6,
|
|
),
|
|
name: "B",
|
|
end: (
|
|
3,
|
|
7,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
AttributeGroup {
|
|
start: (
|
|
4,
|
|
1,
|
|
),
|
|
end: (
|
|
4,
|
|
7,
|
|
),
|
|
members: [
|
|
Attribute {
|
|
start: (
|
|
4,
|
|
3,
|
|
),
|
|
end: (
|
|
4,
|
|
4,
|
|
),
|
|
expression: Identifier(
|
|
Identifier {
|
|
start: (
|
|
4,
|
|
3,
|
|
),
|
|
name: "C",
|
|
end: (
|
|
4,
|
|
4,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
Attribute {
|
|
start: (
|
|
4,
|
|
6,
|
|
),
|
|
end: (
|
|
4,
|
|
7,
|
|
),
|
|
expression: Identifier(
|
|
Identifier {
|
|
start: (
|
|
4,
|
|
6,
|
|
),
|
|
name: "D",
|
|
end: (
|
|
4,
|
|
7,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
],
|
|
name: Identifier {
|
|
start: (
|
|
5,
|
|
11,
|
|
),
|
|
name: "A",
|
|
end: (
|
|
5,
|
|
13,
|
|
),
|
|
},
|
|
extends: Some(
|
|
InterfaceExtends {
|
|
span: (
|
|
5,
|
|
13,
|
|
),
|
|
parents: [
|
|
Identifier {
|
|
start: (
|
|
5,
|
|
21,
|
|
),
|
|
name: "B",
|
|
end: (
|
|
5,
|
|
22,
|
|
),
|
|
},
|
|
Identifier {
|
|
start: (
|
|
5,
|
|
24,
|
|
),
|
|
name: "C",
|
|
end: (
|
|
5,
|
|
26,
|
|
),
|
|
},
|
|
],
|
|
},
|
|
),
|
|
members: [
|
|
Constant(
|
|
ClassishConstant {
|
|
start: (
|
|
7,
|
|
5,
|
|
),
|
|
end: (
|
|
7,
|
|
18,
|
|
),
|
|
attributes: [
|
|
AttributeGroup {
|
|
start: (
|
|
6,
|
|
5,
|
|
),
|
|
end: (
|
|
6,
|
|
8,
|
|
),
|
|
members: [
|
|
Attribute {
|
|
start: (
|
|
6,
|
|
7,
|
|
),
|
|
end: (
|
|
6,
|
|
8,
|
|
),
|
|
expression: Identifier(
|
|
Identifier {
|
|
start: (
|
|
6,
|
|
7,
|
|
),
|
|
name: "R",
|
|
end: (
|
|
6,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
],
|
|
modifiers: ConstantModifierGroup {
|
|
modifiers: [],
|
|
},
|
|
entries: [
|
|
ConstantEntry {
|
|
name: Identifier {
|
|
start: (
|
|
7,
|
|
11,
|
|
),
|
|
name: "F",
|
|
end: (
|
|
7,
|
|
13,
|
|
),
|
|
},
|
|
value: LiteralInteger {
|
|
i: "344",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
),
|
|
Constant(
|
|
ClassishConstant {
|
|
start: (
|
|
10,
|
|
12,
|
|
),
|
|
end: (
|
|
10,
|
|
25,
|
|
),
|
|
attributes: [
|
|
AttributeGroup {
|
|
start: (
|
|
9,
|
|
5,
|
|
),
|
|
end: (
|
|
9,
|
|
8,
|
|
),
|
|
members: [
|
|
Attribute {
|
|
start: (
|
|
9,
|
|
7,
|
|
),
|
|
end: (
|
|
9,
|
|
8,
|
|
),
|
|
expression: Identifier(
|
|
Identifier {
|
|
start: (
|
|
9,
|
|
7,
|
|
),
|
|
name: "R",
|
|
end: (
|
|
9,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
],
|
|
modifiers: ConstantModifierGroup {
|
|
modifiers: [
|
|
Public {
|
|
start: (
|
|
10,
|
|
5,
|
|
),
|
|
end: (
|
|
10,
|
|
12,
|
|
),
|
|
},
|
|
],
|
|
},
|
|
entries: [
|
|
ConstantEntry {
|
|
name: Identifier {
|
|
start: (
|
|
10,
|
|
18,
|
|
),
|
|
name: "O",
|
|
end: (
|
|
10,
|
|
20,
|
|
),
|
|
},
|
|
value: LiteralInteger {
|
|
i: "344",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
),
|
|
Constant(
|
|
ClassishConstant {
|
|
start: (
|
|
14,
|
|
18,
|
|
),
|
|
end: (
|
|
14,
|
|
40,
|
|
),
|
|
attributes: [
|
|
AttributeGroup {
|
|
start: (
|
|
12,
|
|
5,
|
|
),
|
|
end: (
|
|
12,
|
|
8,
|
|
),
|
|
members: [
|
|
Attribute {
|
|
start: (
|
|
12,
|
|
7,
|
|
),
|
|
end: (
|
|
12,
|
|
8,
|
|
),
|
|
expression: Identifier(
|
|
Identifier {
|
|
start: (
|
|
12,
|
|
7,
|
|
),
|
|
name: "R",
|
|
end: (
|
|
12,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
AttributeGroup {
|
|
start: (
|
|
13,
|
|
5,
|
|
),
|
|
end: (
|
|
13,
|
|
8,
|
|
),
|
|
members: [
|
|
Attribute {
|
|
start: (
|
|
13,
|
|
7,
|
|
),
|
|
end: (
|
|
13,
|
|
8,
|
|
),
|
|
expression: Identifier(
|
|
Identifier {
|
|
start: (
|
|
13,
|
|
7,
|
|
),
|
|
name: "P",
|
|
end: (
|
|
13,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
],
|
|
modifiers: ConstantModifierGroup {
|
|
modifiers: [
|
|
Final {
|
|
start: (
|
|
14,
|
|
5,
|
|
),
|
|
end: (
|
|
14,
|
|
11,
|
|
),
|
|
},
|
|
Public {
|
|
start: (
|
|
14,
|
|
11,
|
|
),
|
|
end: (
|
|
14,
|
|
18,
|
|
),
|
|
},
|
|
],
|
|
},
|
|
entries: [
|
|
ConstantEntry {
|
|
name: Identifier {
|
|
start: (
|
|
14,
|
|
24,
|
|
),
|
|
name: "R",
|
|
end: (
|
|
14,
|
|
26,
|
|
),
|
|
},
|
|
value: LiteralInteger {
|
|
i: "344",
|
|
},
|
|
},
|
|
ConstantEntry {
|
|
name: Identifier {
|
|
start: (
|
|
14,
|
|
33,
|
|
),
|
|
name: "P",
|
|
end: (
|
|
14,
|
|
35,
|
|
),
|
|
},
|
|
value: LiteralInteger {
|
|
i: "214",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
),
|
|
Constant(
|
|
ClassishConstant {
|
|
start: (
|
|
18,
|
|
11,
|
|
),
|
|
end: (
|
|
18,
|
|
23,
|
|
),
|
|
attributes: [
|
|
AttributeGroup {
|
|
start: (
|
|
16,
|
|
5,
|
|
),
|
|
end: (
|
|
16,
|
|
8,
|
|
),
|
|
members: [
|
|
Attribute {
|
|
start: (
|
|
16,
|
|
7,
|
|
),
|
|
end: (
|
|
16,
|
|
8,
|
|
),
|
|
expression: Identifier(
|
|
Identifier {
|
|
start: (
|
|
16,
|
|
7,
|
|
),
|
|
name: "R",
|
|
end: (
|
|
16,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
AttributeGroup {
|
|
start: (
|
|
17,
|
|
5,
|
|
),
|
|
end: (
|
|
17,
|
|
8,
|
|
),
|
|
members: [
|
|
Attribute {
|
|
start: (
|
|
17,
|
|
7,
|
|
),
|
|
end: (
|
|
17,
|
|
8,
|
|
),
|
|
expression: Identifier(
|
|
Identifier {
|
|
start: (
|
|
17,
|
|
7,
|
|
),
|
|
name: "P",
|
|
end: (
|
|
17,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
],
|
|
modifiers: ConstantModifierGroup {
|
|
modifiers: [
|
|
Final {
|
|
start: (
|
|
18,
|
|
5,
|
|
),
|
|
end: (
|
|
18,
|
|
11,
|
|
),
|
|
},
|
|
],
|
|
},
|
|
entries: [
|
|
ConstantEntry {
|
|
name: Identifier {
|
|
start: (
|
|
18,
|
|
17,
|
|
),
|
|
name: "M",
|
|
end: (
|
|
18,
|
|
19,
|
|
),
|
|
},
|
|
value: LiteralInteger {
|
|
i: "34",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
),
|
|
Method(
|
|
Method {
|
|
start: (
|
|
21,
|
|
12,
|
|
),
|
|
end: (
|
|
21,
|
|
32,
|
|
),
|
|
name: Identifier {
|
|
start: (
|
|
21,
|
|
21,
|
|
),
|
|
name: "bar",
|
|
end: (
|
|
21,
|
|
24,
|
|
),
|
|
},
|
|
attributes: [
|
|
AttributeGroup {
|
|
start: (
|
|
20,
|
|
5,
|
|
),
|
|
end: (
|
|
20,
|
|
8,
|
|
),
|
|
members: [
|
|
Attribute {
|
|
start: (
|
|
20,
|
|
7,
|
|
),
|
|
end: (
|
|
20,
|
|
8,
|
|
),
|
|
expression: Identifier(
|
|
Identifier {
|
|
start: (
|
|
20,
|
|
7,
|
|
),
|
|
name: "M",
|
|
end: (
|
|
20,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
],
|
|
parameters: MethodParameterList {
|
|
start: (
|
|
21,
|
|
24,
|
|
),
|
|
end: (
|
|
21,
|
|
26,
|
|
),
|
|
members: [],
|
|
},
|
|
body: None,
|
|
modifiers: MethodModifierGroup {
|
|
modifiers: [
|
|
Public {
|
|
start: (
|
|
21,
|
|
5,
|
|
),
|
|
end: (
|
|
21,
|
|
12,
|
|
),
|
|
},
|
|
],
|
|
},
|
|
return_type: Some(
|
|
Void,
|
|
),
|
|
by_ref: false,
|
|
},
|
|
),
|
|
Method(
|
|
Method {
|
|
start: (
|
|
25,
|
|
19,
|
|
),
|
|
end: (
|
|
25,
|
|
39,
|
|
),
|
|
name: Identifier {
|
|
start: (
|
|
25,
|
|
28,
|
|
),
|
|
name: "baz",
|
|
end: (
|
|
25,
|
|
31,
|
|
),
|
|
},
|
|
attributes: [
|
|
AttributeGroup {
|
|
start: (
|
|
23,
|
|
5,
|
|
),
|
|
end: (
|
|
23,
|
|
8,
|
|
),
|
|
members: [
|
|
Attribute {
|
|
start: (
|
|
23,
|
|
7,
|
|
),
|
|
end: (
|
|
23,
|
|
8,
|
|
),
|
|
expression: Identifier(
|
|
Identifier {
|
|
start: (
|
|
23,
|
|
7,
|
|
),
|
|
name: "Q",
|
|
end: (
|
|
23,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
AttributeGroup {
|
|
start: (
|
|
24,
|
|
5,
|
|
),
|
|
end: (
|
|
24,
|
|
8,
|
|
),
|
|
members: [
|
|
Attribute {
|
|
start: (
|
|
24,
|
|
7,
|
|
),
|
|
end: (
|
|
24,
|
|
8,
|
|
),
|
|
expression: Identifier(
|
|
Identifier {
|
|
start: (
|
|
24,
|
|
7,
|
|
),
|
|
name: "S",
|
|
end: (
|
|
24,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
},
|
|
],
|
|
},
|
|
],
|
|
parameters: MethodParameterList {
|
|
start: (
|
|
25,
|
|
31,
|
|
),
|
|
end: (
|
|
25,
|
|
33,
|
|
),
|
|
members: [],
|
|
},
|
|
body: None,
|
|
modifiers: MethodModifierGroup {
|
|
modifiers: [
|
|
Public {
|
|
start: (
|
|
25,
|
|
5,
|
|
),
|
|
end: (
|
|
25,
|
|
12,
|
|
),
|
|
},
|
|
Static {
|
|
start: (
|
|
25,
|
|
12,
|
|
),
|
|
end: (
|
|
25,
|
|
19,
|
|
),
|
|
},
|
|
],
|
|
},
|
|
return_type: Some(
|
|
Void,
|
|
),
|
|
by_ref: false,
|
|
},
|
|
),
|
|
],
|
|
},
|
|
),
|
|
]
|