2022-11-29 01:46:05 +01:00
|
|
|
[
|
2022-12-06 09:33:29 +01:00
|
|
|
Function(
|
|
|
|
Function {
|
2022-12-05 17:53:41 +01:00
|
|
|
start: (
|
|
|
|
3,
|
2022-12-06 09:33:29 +01:00
|
|
|
1,
|
2022-12-05 17:53:41 +01:00
|
|
|
),
|
|
|
|
end: (
|
2022-12-06 09:51:13 +01:00
|
|
|
5,
|
2022-12-06 09:33:29 +01:00
|
|
|
1,
|
2022-12-05 17:53:41 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
name: Identifier {
|
|
|
|
start: (
|
|
|
|
3,
|
|
|
|
10,
|
2022-11-29 01:46:05 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
name: "foo",
|
|
|
|
end: (
|
|
|
|
3,
|
|
|
|
13,
|
2022-11-29 01:46:05 +01:00
|
|
|
),
|
|
|
|
},
|
2022-12-06 09:33:29 +01:00
|
|
|
attributes: [],
|
|
|
|
parameters: FunctionParameterList {
|
|
|
|
start: (
|
|
|
|
3,
|
|
|
|
13,
|
2022-11-29 01:46:05 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
end: (
|
|
|
|
3,
|
|
|
|
44,
|
2022-11-29 01:46:05 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
members: [
|
|
|
|
FunctionParameter {
|
|
|
|
start: (
|
|
|
|
3,
|
|
|
|
14,
|
|
|
|
),
|
|
|
|
end: (
|
|
|
|
3,
|
|
|
|
28,
|
|
|
|
),
|
|
|
|
name: Variable {
|
2022-12-05 17:53:41 +01:00
|
|
|
start: (
|
2022-12-06 09:33:29 +01:00
|
|
|
3,
|
|
|
|
21,
|
2022-12-05 17:53:41 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
name: "a",
|
2022-12-05 17:53:41 +01:00
|
|
|
end: (
|
2022-12-06 09:33:29 +01:00
|
|
|
3,
|
|
|
|
24,
|
2022-12-05 17:53:41 +01:00
|
|
|
),
|
|
|
|
},
|
2022-12-06 09:33:29 +01:00
|
|
|
attributes: [],
|
|
|
|
type: Some(
|
|
|
|
String,
|
|
|
|
),
|
|
|
|
variadic: false,
|
|
|
|
default: Some(
|
|
|
|
LiteralString {
|
|
|
|
value: "",
|
2022-11-29 01:46:05 +01:00
|
|
|
},
|
2022-12-06 09:33:29 +01:00
|
|
|
),
|
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
FunctionParameter {
|
|
|
|
start: (
|
|
|
|
3,
|
|
|
|
30,
|
|
|
|
),
|
|
|
|
end: (
|
|
|
|
3,
|
|
|
|
43,
|
|
|
|
),
|
|
|
|
name: Variable {
|
|
|
|
start: (
|
|
|
|
3,
|
|
|
|
36,
|
|
|
|
),
|
|
|
|
name: "b",
|
|
|
|
end: (
|
|
|
|
3,
|
|
|
|
39,
|
|
|
|
),
|
2022-11-29 01:46:05 +01:00
|
|
|
},
|
2022-12-06 09:33:29 +01:00
|
|
|
attributes: [],
|
|
|
|
type: Some(
|
|
|
|
Array,
|
|
|
|
),
|
|
|
|
variadic: false,
|
|
|
|
default: Some(
|
|
|
|
Array {
|
|
|
|
items: [],
|
|
|
|
},
|
|
|
|
),
|
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
],
|
2022-11-29 01:46:05 +01:00
|
|
|
},
|
2022-12-06 09:33:29 +01:00
|
|
|
return_type: Some(
|
|
|
|
Never,
|
|
|
|
),
|
|
|
|
by_ref: false,
|
|
|
|
body: [
|
|
|
|
Expression {
|
|
|
|
expr: Call {
|
|
|
|
target: Identifier(
|
|
|
|
Identifier {
|
|
|
|
start: (
|
|
|
|
4,
|
|
|
|
5,
|
|
|
|
),
|
|
|
|
name: "exit",
|
|
|
|
end: (
|
|
|
|
4,
|
|
|
|
9,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
args: [
|
|
|
|
Arg {
|
|
|
|
name: None,
|
|
|
|
value: LiteralInteger {
|
|
|
|
i: 1,
|
|
|
|
},
|
|
|
|
unpack: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
),
|
|
|
|
Function(
|
|
|
|
Function {
|
2022-12-05 17:53:41 +01:00
|
|
|
start: (
|
|
|
|
7,
|
2022-12-06 09:33:29 +01:00
|
|
|
1,
|
2022-12-05 17:53:41 +01:00
|
|
|
),
|
|
|
|
end: (
|
2022-12-06 09:51:13 +01:00
|
|
|
9,
|
|
|
|
1,
|
2022-12-05 17:53:41 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
name: Identifier {
|
|
|
|
start: (
|
|
|
|
7,
|
|
|
|
10,
|
2022-11-29 01:46:05 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
name: "bar",
|
|
|
|
end: (
|
|
|
|
7,
|
|
|
|
13,
|
2022-11-29 01:46:05 +01:00
|
|
|
),
|
|
|
|
},
|
2022-12-06 09:33:29 +01:00
|
|
|
attributes: [],
|
|
|
|
parameters: FunctionParameterList {
|
|
|
|
start: (
|
|
|
|
7,
|
|
|
|
13,
|
2022-11-29 01:46:05 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
end: (
|
|
|
|
7,
|
|
|
|
70,
|
2022-11-29 01:46:05 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
members: [
|
|
|
|
FunctionParameter {
|
|
|
|
start: (
|
|
|
|
7,
|
|
|
|
14,
|
|
|
|
),
|
|
|
|
end: (
|
|
|
|
7,
|
|
|
|
20,
|
|
|
|
),
|
|
|
|
name: Variable {
|
|
|
|
start: (
|
|
|
|
7,
|
|
|
|
18,
|
|
|
|
),
|
|
|
|
name: "a",
|
|
|
|
end: (
|
|
|
|
7,
|
|
|
|
20,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
attributes: [],
|
|
|
|
type: Some(
|
|
|
|
Integer,
|
|
|
|
),
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
FunctionParameter {
|
|
|
|
start: (
|
|
|
|
7,
|
|
|
|
22,
|
|
|
|
),
|
|
|
|
end: (
|
|
|
|
7,
|
|
|
|
30,
|
|
|
|
),
|
|
|
|
name: Variable {
|
|
|
|
start: (
|
|
|
|
7,
|
|
|
|
28,
|
|
|
|
),
|
|
|
|
name: "b",
|
|
|
|
end: (
|
|
|
|
7,
|
|
|
|
30,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
attributes: [],
|
|
|
|
type: Some(
|
|
|
|
Float,
|
|
|
|
),
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
FunctionParameter {
|
|
|
|
start: (
|
|
|
|
7,
|
|
|
|
32,
|
|
|
|
),
|
|
|
|
end: (
|
|
|
|
7,
|
|
|
|
41,
|
|
|
|
),
|
|
|
|
name: Variable {
|
|
|
|
start: (
|
|
|
|
7,
|
|
|
|
39,
|
|
|
|
),
|
|
|
|
name: "c",
|
|
|
|
end: (
|
|
|
|
7,
|
|
|
|
41,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
attributes: [],
|
|
|
|
type: Some(
|
|
|
|
String,
|
|
|
|
),
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
FunctionParameter {
|
|
|
|
start: (
|
|
|
|
7,
|
|
|
|
43,
|
|
|
|
),
|
|
|
|
end: (
|
|
|
|
7,
|
|
|
|
50,
|
|
|
|
),
|
|
|
|
name: Variable {
|
|
|
|
start: (
|
|
|
|
7,
|
|
|
|
48,
|
|
|
|
),
|
|
|
|
name: "d",
|
|
|
|
end: (
|
|
|
|
7,
|
|
|
|
50,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
attributes: [],
|
|
|
|
type: Some(
|
|
|
|
True,
|
|
|
|
),
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
FunctionParameter {
|
|
|
|
start: (
|
|
|
|
7,
|
|
|
|
52,
|
|
|
|
),
|
|
|
|
end: (
|
|
|
|
7,
|
|
|
|
60,
|
|
|
|
),
|
|
|
|
name: Variable {
|
|
|
|
start: (
|
|
|
|
7,
|
|
|
|
58,
|
|
|
|
),
|
|
|
|
name: "e",
|
|
|
|
end: (
|
|
|
|
7,
|
|
|
|
60,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
attributes: [],
|
|
|
|
type: Some(
|
|
|
|
False,
|
|
|
|
),
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
FunctionParameter {
|
|
|
|
start: (
|
|
|
|
7,
|
|
|
|
62,
|
|
|
|
),
|
|
|
|
end: (
|
|
|
|
7,
|
|
|
|
69,
|
|
|
|
),
|
|
|
|
name: Variable {
|
|
|
|
start: (
|
|
|
|
7,
|
|
|
|
67,
|
|
|
|
),
|
|
|
|
name: "f",
|
|
|
|
end: (
|
|
|
|
7,
|
|
|
|
69,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
attributes: [],
|
|
|
|
type: Some(
|
|
|
|
Null,
|
|
|
|
),
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
],
|
2022-11-29 01:46:05 +01:00
|
|
|
},
|
2022-12-06 09:33:29 +01:00
|
|
|
return_type: Some(
|
|
|
|
Union(
|
|
|
|
[
|
|
|
|
Null,
|
|
|
|
String,
|
|
|
|
Integer,
|
|
|
|
Float,
|
|
|
|
],
|
2022-11-29 01:46:05 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
),
|
|
|
|
by_ref: false,
|
|
|
|
body: [
|
|
|
|
Return {
|
|
|
|
value: Some(
|
|
|
|
Null,
|
2022-12-05 17:53:41 +01:00
|
|
|
),
|
2022-11-29 01:46:05 +01:00
|
|
|
},
|
2022-12-06 09:33:29 +01:00
|
|
|
],
|
|
|
|
},
|
|
|
|
),
|
2022-11-29 01:46:05 +01:00
|
|
|
]
|