2022-12-05 19:46:21 +01:00
|
|
|
[
|
2022-12-06 09:33:29 +01:00
|
|
|
Function(
|
|
|
|
Function {
|
2022-12-05 19:46:21 +01:00
|
|
|
start: (
|
|
|
|
3,
|
2022-12-06 09:33:29 +01:00
|
|
|
1,
|
2022-12-05 19:46:21 +01:00
|
|
|
),
|
|
|
|
end: (
|
2022-12-06 09:51:13 +01:00
|
|
|
7,
|
|
|
|
1,
|
2022-12-05 19:46:21 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
name: Identifier {
|
|
|
|
start: (
|
|
|
|
3,
|
|
|
|
10,
|
|
|
|
),
|
|
|
|
name: "bar",
|
|
|
|
end: (
|
|
|
|
3,
|
|
|
|
13,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
attributes: [],
|
|
|
|
parameters: FunctionParameterList {
|
|
|
|
start: (
|
|
|
|
3,
|
|
|
|
13,
|
|
|
|
),
|
|
|
|
end: (
|
|
|
|
5,
|
|
|
|
2,
|
|
|
|
),
|
|
|
|
members: [
|
|
|
|
FunctionParameter {
|
|
|
|
start: (
|
|
|
|
4,
|
|
|
|
5,
|
|
|
|
),
|
|
|
|
end: (
|
|
|
|
5,
|
|
|
|
1,
|
|
|
|
),
|
|
|
|
name: Variable {
|
|
|
|
start: (
|
|
|
|
4,
|
|
|
|
13,
|
|
|
|
),
|
|
|
|
name: "i",
|
|
|
|
end: (
|
|
|
|
5,
|
|
|
|
1,
|
2022-12-05 19:46:21 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
},
|
|
|
|
attributes: [],
|
|
|
|
type: Some(
|
|
|
|
Union(
|
2022-12-05 19:46:21 +01:00
|
|
|
[
|
|
|
|
Identifier(
|
|
|
|
Identifier {
|
|
|
|
start: (
|
|
|
|
4,
|
2022-12-06 09:33:29 +01:00
|
|
|
5,
|
2022-12-05 19:46:21 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
name: "A",
|
2022-12-05 19:46:21 +01:00
|
|
|
end: (
|
|
|
|
4,
|
2022-12-06 09:33:29 +01:00
|
|
|
6,
|
2022-12-05 19:46:21 +01:00
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
Intersection(
|
|
|
|
[
|
|
|
|
Identifier(
|
|
|
|
Identifier {
|
|
|
|
start: (
|
|
|
|
4,
|
|
|
|
8,
|
|
|
|
),
|
|
|
|
name: "B",
|
|
|
|
end: (
|
|
|
|
4,
|
|
|
|
9,
|
|
|
|
),
|
|
|
|
},
|
2022-12-05 19:46:21 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
Identifier(
|
|
|
|
Identifier {
|
|
|
|
start: (
|
|
|
|
4,
|
|
|
|
10,
|
|
|
|
),
|
|
|
|
name: "C",
|
|
|
|
end: (
|
|
|
|
4,
|
|
|
|
11,
|
|
|
|
),
|
|
|
|
},
|
2022-12-05 19:46:21 +01:00
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
],
|
2022-12-05 19:46:21 +01:00
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
),
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
],
|
2022-12-05 19:46:21 +01:00
|
|
|
},
|
2022-12-06 09:33:29 +01:00
|
|
|
return_type: Some(
|
|
|
|
Union(
|
|
|
|
[
|
|
|
|
Intersection(
|
|
|
|
[
|
|
|
|
Identifier(
|
|
|
|
Identifier {
|
|
|
|
start: (
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
),
|
|
|
|
name: "B",
|
|
|
|
end: (
|
|
|
|
5,
|
|
|
|
6,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
Identifier(
|
|
|
|
Identifier {
|
|
|
|
start: (
|
|
|
|
5,
|
|
|
|
7,
|
|
|
|
),
|
|
|
|
name: "C",
|
|
|
|
end: (
|
|
|
|
5,
|
|
|
|
8,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Identifier(
|
|
|
|
Identifier {
|
|
|
|
start: (
|
|
|
|
5,
|
|
|
|
10,
|
|
|
|
),
|
|
|
|
name: "A",
|
|
|
|
end: (
|
|
|
|
5,
|
|
|
|
12,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
],
|
2022-12-05 19:46:21 +01:00
|
|
|
),
|
|
|
|
),
|
2022-12-06 09:33:29 +01:00
|
|
|
by_ref: false,
|
|
|
|
body: [
|
|
|
|
Return {
|
|
|
|
value: Some(
|
|
|
|
Variable(
|
|
|
|
Variable {
|
|
|
|
start: (
|
|
|
|
6,
|
|
|
|
12,
|
|
|
|
),
|
|
|
|
name: "i",
|
|
|
|
end: (
|
|
|
|
6,
|
|
|
|
14,
|
|
|
|
),
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
),
|
2022-12-05 19:46:21 +01:00
|
|
|
]
|