mirror of
https://github.com/danog/parser.git
synced 2024-12-12 09:09:37 +01:00
479f51913c
Signed-off-by: azjezz <azjezz@protonmail.com>
851 lines
28 KiB
Plaintext
851 lines
28 KiB
Plaintext
[
|
|
BracedNamespace {
|
|
name: None,
|
|
body: [
|
|
Function {
|
|
name: Identifier {
|
|
start: (
|
|
4,
|
|
14,
|
|
),
|
|
name: "globalFunc",
|
|
end: (
|
|
4,
|
|
24,
|
|
),
|
|
},
|
|
attributes: [],
|
|
params: [],
|
|
body: [],
|
|
return_type: None,
|
|
by_ref: false,
|
|
},
|
|
],
|
|
},
|
|
BracedNamespace {
|
|
name: Some(
|
|
Identifier {
|
|
start: (
|
|
7,
|
|
11,
|
|
),
|
|
name: "foo",
|
|
end: (
|
|
7,
|
|
15,
|
|
),
|
|
},
|
|
),
|
|
body: [
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
8,
|
|
5,
|
|
),
|
|
name: "a",
|
|
end: (
|
|
8,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: Closure {
|
|
params: [],
|
|
attributes: [],
|
|
uses: [],
|
|
return_type: None,
|
|
body: [],
|
|
static: false,
|
|
by_ref: false,
|
|
},
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
9,
|
|
5,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
9,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: Closure {
|
|
params: [
|
|
Param {
|
|
name: Variable {
|
|
start: (
|
|
9,
|
|
21,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
9,
|
|
23,
|
|
),
|
|
},
|
|
attributes: [],
|
|
type: None,
|
|
variadic: false,
|
|
default: None,
|
|
flags: [],
|
|
by_ref: true,
|
|
},
|
|
],
|
|
attributes: [],
|
|
uses: [],
|
|
return_type: None,
|
|
body: [],
|
|
static: false,
|
|
by_ref: false,
|
|
},
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
10,
|
|
5,
|
|
),
|
|
name: "c",
|
|
end: (
|
|
10,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: Closure {
|
|
params: [],
|
|
attributes: [],
|
|
uses: [],
|
|
return_type: None,
|
|
body: [],
|
|
static: false,
|
|
by_ref: true,
|
|
},
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
11,
|
|
5,
|
|
),
|
|
name: "d",
|
|
end: (
|
|
11,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: Closure {
|
|
params: [
|
|
Param {
|
|
name: Variable {
|
|
start: (
|
|
11,
|
|
22,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
11,
|
|
24,
|
|
),
|
|
},
|
|
attributes: [],
|
|
type: None,
|
|
variadic: false,
|
|
default: None,
|
|
flags: [],
|
|
by_ref: true,
|
|
},
|
|
],
|
|
attributes: [],
|
|
uses: [],
|
|
return_type: None,
|
|
body: [
|
|
Return {
|
|
value: Some(
|
|
Variable(
|
|
Variable {
|
|
start: (
|
|
11,
|
|
35,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
11,
|
|
37,
|
|
),
|
|
},
|
|
),
|
|
),
|
|
},
|
|
],
|
|
static: false,
|
|
by_ref: true,
|
|
},
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
12,
|
|
5,
|
|
),
|
|
name: "e",
|
|
end: (
|
|
12,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: ArrowFunction {
|
|
params: [],
|
|
attributes: [],
|
|
return_type: None,
|
|
expr: Null,
|
|
by_ref: false,
|
|
static: false,
|
|
},
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
13,
|
|
5,
|
|
),
|
|
name: "f",
|
|
end: (
|
|
13,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: ArrowFunction {
|
|
params: [
|
|
Param {
|
|
name: Variable {
|
|
start: (
|
|
13,
|
|
15,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
13,
|
|
17,
|
|
),
|
|
},
|
|
attributes: [],
|
|
type: None,
|
|
variadic: false,
|
|
default: None,
|
|
flags: [],
|
|
by_ref: true,
|
|
},
|
|
],
|
|
attributes: [],
|
|
return_type: None,
|
|
expr: Null,
|
|
by_ref: false,
|
|
static: false,
|
|
},
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
14,
|
|
5,
|
|
),
|
|
name: "g",
|
|
end: (
|
|
14,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: ArrowFunction {
|
|
params: [],
|
|
attributes: [],
|
|
return_type: None,
|
|
expr: Null,
|
|
by_ref: true,
|
|
static: false,
|
|
},
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
15,
|
|
5,
|
|
),
|
|
name: "h",
|
|
end: (
|
|
15,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: ArrowFunction {
|
|
params: [
|
|
Param {
|
|
name: Variable {
|
|
start: (
|
|
15,
|
|
16,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
15,
|
|
18,
|
|
),
|
|
},
|
|
attributes: [],
|
|
type: None,
|
|
variadic: false,
|
|
default: None,
|
|
flags: [],
|
|
by_ref: true,
|
|
},
|
|
],
|
|
attributes: [],
|
|
return_type: None,
|
|
expr: Variable(
|
|
Variable {
|
|
start: (
|
|
15,
|
|
23,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
15,
|
|
25,
|
|
),
|
|
},
|
|
),
|
|
by_ref: true,
|
|
static: false,
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
BracedNamespace {
|
|
name: Some(
|
|
Identifier {
|
|
start: (
|
|
18,
|
|
11,
|
|
),
|
|
name: "bar",
|
|
end: (
|
|
18,
|
|
15,
|
|
),
|
|
},
|
|
),
|
|
body: [
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
19,
|
|
5,
|
|
),
|
|
name: "a",
|
|
end: (
|
|
19,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: Closure {
|
|
params: [],
|
|
attributes: [],
|
|
uses: [],
|
|
return_type: None,
|
|
body: [],
|
|
static: true,
|
|
by_ref: false,
|
|
},
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
20,
|
|
5,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
20,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: Closure {
|
|
params: [
|
|
Param {
|
|
name: Variable {
|
|
start: (
|
|
20,
|
|
28,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
20,
|
|
30,
|
|
),
|
|
},
|
|
attributes: [],
|
|
type: None,
|
|
variadic: false,
|
|
default: None,
|
|
flags: [],
|
|
by_ref: true,
|
|
},
|
|
],
|
|
attributes: [],
|
|
uses: [],
|
|
return_type: None,
|
|
body: [],
|
|
static: true,
|
|
by_ref: false,
|
|
},
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
21,
|
|
5,
|
|
),
|
|
name: "c",
|
|
end: (
|
|
21,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: Closure {
|
|
params: [],
|
|
attributes: [],
|
|
uses: [],
|
|
return_type: None,
|
|
body: [],
|
|
static: true,
|
|
by_ref: true,
|
|
},
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
22,
|
|
5,
|
|
),
|
|
name: "d",
|
|
end: (
|
|
22,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: Closure {
|
|
params: [
|
|
Param {
|
|
name: Variable {
|
|
start: (
|
|
22,
|
|
29,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
22,
|
|
31,
|
|
),
|
|
},
|
|
attributes: [],
|
|
type: None,
|
|
variadic: false,
|
|
default: None,
|
|
flags: [],
|
|
by_ref: true,
|
|
},
|
|
],
|
|
attributes: [],
|
|
uses: [],
|
|
return_type: None,
|
|
body: [
|
|
Return {
|
|
value: Some(
|
|
Variable(
|
|
Variable {
|
|
start: (
|
|
22,
|
|
42,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
22,
|
|
44,
|
|
),
|
|
},
|
|
),
|
|
),
|
|
},
|
|
],
|
|
static: true,
|
|
by_ref: true,
|
|
},
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
23,
|
|
5,
|
|
),
|
|
name: "e",
|
|
end: (
|
|
23,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: ArrowFunction {
|
|
params: [],
|
|
attributes: [],
|
|
return_type: None,
|
|
expr: Null,
|
|
by_ref: false,
|
|
static: true,
|
|
},
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
24,
|
|
5,
|
|
),
|
|
name: "f",
|
|
end: (
|
|
24,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: ArrowFunction {
|
|
params: [
|
|
Param {
|
|
name: Variable {
|
|
start: (
|
|
24,
|
|
22,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
24,
|
|
24,
|
|
),
|
|
},
|
|
attributes: [],
|
|
type: None,
|
|
variadic: false,
|
|
default: None,
|
|
flags: [],
|
|
by_ref: true,
|
|
},
|
|
],
|
|
attributes: [],
|
|
return_type: None,
|
|
expr: Null,
|
|
by_ref: false,
|
|
static: true,
|
|
},
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
25,
|
|
5,
|
|
),
|
|
name: "g",
|
|
end: (
|
|
25,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: ArrowFunction {
|
|
params: [],
|
|
attributes: [],
|
|
return_type: None,
|
|
expr: Null,
|
|
by_ref: true,
|
|
static: true,
|
|
},
|
|
},
|
|
},
|
|
Expression {
|
|
expr: Infix {
|
|
lhs: Variable(
|
|
Variable {
|
|
start: (
|
|
26,
|
|
5,
|
|
),
|
|
name: "h",
|
|
end: (
|
|
26,
|
|
8,
|
|
),
|
|
},
|
|
),
|
|
op: Assign,
|
|
rhs: ArrowFunction {
|
|
params: [
|
|
Param {
|
|
name: Variable {
|
|
start: (
|
|
26,
|
|
23,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
26,
|
|
25,
|
|
),
|
|
},
|
|
attributes: [],
|
|
type: None,
|
|
variadic: false,
|
|
default: None,
|
|
flags: [],
|
|
by_ref: true,
|
|
},
|
|
],
|
|
attributes: [],
|
|
return_type: None,
|
|
expr: Variable(
|
|
Variable {
|
|
start: (
|
|
26,
|
|
30,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
26,
|
|
32,
|
|
),
|
|
},
|
|
),
|
|
by_ref: true,
|
|
static: true,
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
BracedNamespace {
|
|
name: Some(
|
|
Identifier {
|
|
start: (
|
|
29,
|
|
11,
|
|
),
|
|
name: "baz",
|
|
end: (
|
|
29,
|
|
15,
|
|
),
|
|
},
|
|
),
|
|
body: [
|
|
Function {
|
|
name: Identifier {
|
|
start: (
|
|
30,
|
|
14,
|
|
),
|
|
name: "a",
|
|
end: (
|
|
30,
|
|
15,
|
|
),
|
|
},
|
|
attributes: [],
|
|
params: [
|
|
Param {
|
|
name: Variable {
|
|
start: (
|
|
30,
|
|
17,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
30,
|
|
19,
|
|
),
|
|
},
|
|
attributes: [],
|
|
type: None,
|
|
variadic: false,
|
|
default: None,
|
|
flags: [],
|
|
by_ref: true,
|
|
},
|
|
],
|
|
body: [],
|
|
return_type: None,
|
|
by_ref: false,
|
|
},
|
|
Function {
|
|
name: Identifier {
|
|
start: (
|
|
31,
|
|
15,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
31,
|
|
16,
|
|
),
|
|
},
|
|
attributes: [],
|
|
params: [
|
|
Param {
|
|
name: Variable {
|
|
start: (
|
|
31,
|
|
17,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
31,
|
|
19,
|
|
),
|
|
},
|
|
attributes: [],
|
|
type: None,
|
|
variadic: false,
|
|
default: None,
|
|
flags: [],
|
|
by_ref: false,
|
|
},
|
|
],
|
|
body: [
|
|
Return {
|
|
value: Some(
|
|
Variable(
|
|
Variable {
|
|
start: (
|
|
31,
|
|
30,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
31,
|
|
32,
|
|
),
|
|
},
|
|
),
|
|
),
|
|
},
|
|
],
|
|
return_type: None,
|
|
by_ref: true,
|
|
},
|
|
Function {
|
|
name: Identifier {
|
|
start: (
|
|
32,
|
|
15,
|
|
),
|
|
name: "c",
|
|
end: (
|
|
32,
|
|
16,
|
|
),
|
|
},
|
|
attributes: [],
|
|
params: [],
|
|
body: [
|
|
Return {
|
|
value: Some(
|
|
Variable(
|
|
Variable {
|
|
start: (
|
|
32,
|
|
28,
|
|
),
|
|
name: "b",
|
|
end: (
|
|
32,
|
|
30,
|
|
),
|
|
},
|
|
),
|
|
),
|
|
},
|
|
],
|
|
return_type: None,
|
|
by_ref: true,
|
|
},
|
|
],
|
|
},
|
|
]
|