parser/tests/fixtures/0275/ast.txt
Saif Eddin Gmati 4d0cd75fa9
fix: fix parsing by_ref parameters (#179)
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-08 18:07:03 +01:00

16223 lines
619 KiB
Plaintext

[
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
3,
1,
),
end: (
3,
45,
),
attributes: [],
parameters: FunctionParameterList {
start: (
3,
11,
),
end: (
3,
23,
),
members: [
FunctionParameter {
start: (
3,
12,
),
end: (
3,
22,
),
name: Variable {
start: (
3,
20,
),
name: "s",
end: (
3,
22,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
3,
12,
),
name: "Foo",
end: (
3,
16,
),
},
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
3,
25,
),
name: "Bar",
end: (
3,
29,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
3,
32,
),
name: "Bar",
end: (
3,
35,
),
},
),
method: Identifier(
Identifier {
start: (
3,
37,
),
name: "from",
end: (
3,
41,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
3,
42,
),
name: "s",
end: (
3,
44,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
4,
1,
),
end: (
4,
44,
),
attributes: [],
parameters: FunctionParameterList {
start: (
4,
11,
),
end: (
4,
22,
),
members: [
FunctionParameter {
start: (
4,
12,
),
end: (
4,
21,
),
name: Variable {
start: (
4,
19,
),
name: "s",
end: (
4,
21,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
4,
12,
),
name: "Foo",
end: (
4,
16,
),
},
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
4,
24,
),
name: "Bar",
end: (
4,
28,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
4,
31,
),
name: "Bar",
end: (
4,
34,
),
},
),
method: Identifier(
Identifier {
start: (
4,
36,
),
name: "from",
end: (
4,
40,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
4,
41,
),
name: "s",
end: (
4,
43,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
5,
1,
),
end: (
5,
42,
),
attributes: [],
parameters: FunctionParameterList {
start: (
5,
11,
),
end: (
5,
20,
),
members: [
FunctionParameter {
start: (
5,
12,
),
end: (
5,
19,
),
name: Variable {
start: (
5,
17,
),
name: "s",
end: (
5,
19,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
5,
12,
),
name: "Foo",
end: (
5,
16,
),
},
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
5,
22,
),
name: "Bar",
end: (
5,
26,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
5,
29,
),
name: "Bar",
end: (
5,
32,
),
},
),
method: Identifier(
Identifier {
start: (
5,
34,
),
name: "from",
end: (
5,
38,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
5,
39,
),
name: "s",
end: (
5,
41,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
6,
1,
),
end: (
6,
41,
),
attributes: [],
parameters: FunctionParameterList {
start: (
6,
11,
),
end: (
6,
19,
),
members: [
FunctionParameter {
start: (
6,
12,
),
end: (
6,
18,
),
name: Variable {
start: (
6,
16,
),
name: "s",
end: (
6,
18,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
6,
12,
),
name: "Foo",
end: (
6,
16,
),
},
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
6,
21,
),
name: "Bar",
end: (
6,
25,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
6,
28,
),
name: "Bar",
end: (
6,
31,
),
},
),
method: Identifier(
Identifier {
start: (
6,
33,
),
name: "from",
end: (
6,
37,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
6,
38,
),
name: "s",
end: (
6,
40,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
7,
1,
),
end: (
7,
59,
),
attributes: [],
parameters: FunctionParameterList {
start: (
7,
17,
),
end: (
7,
29,
),
members: [
FunctionParameter {
start: (
7,
18,
),
end: (
7,
28,
),
name: Variable {
start: (
7,
26,
),
name: "s",
end: (
7,
28,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
7,
18,
),
name: "Foo",
end: (
7,
22,
),
},
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
7,
31,
),
name: "Bar",
end: (
7,
35,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
7,
44,
),
name: "Bar",
end: (
7,
47,
),
},
),
method: Identifier(
Identifier {
start: (
7,
49,
),
name: "from",
end: (
7,
53,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
7,
54,
),
name: "s",
end: (
7,
56,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
8,
1,
),
end: (
8,
58,
),
attributes: [],
parameters: FunctionParameterList {
start: (
8,
17,
),
end: (
8,
28,
),
members: [
FunctionParameter {
start: (
8,
18,
),
end: (
8,
27,
),
name: Variable {
start: (
8,
25,
),
name: "s",
end: (
8,
27,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
8,
18,
),
name: "Foo",
end: (
8,
22,
),
},
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
8,
30,
),
name: "Bar",
end: (
8,
34,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
8,
43,
),
name: "Bar",
end: (
8,
46,
),
},
),
method: Identifier(
Identifier {
start: (
8,
48,
),
name: "from",
end: (
8,
52,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
8,
53,
),
name: "s",
end: (
8,
55,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
9,
1,
),
end: (
9,
56,
),
attributes: [],
parameters: FunctionParameterList {
start: (
9,
17,
),
end: (
9,
26,
),
members: [
FunctionParameter {
start: (
9,
18,
),
end: (
9,
25,
),
name: Variable {
start: (
9,
23,
),
name: "s",
end: (
9,
25,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
9,
18,
),
name: "Foo",
end: (
9,
22,
),
},
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
9,
28,
),
name: "Bar",
end: (
9,
32,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
9,
41,
),
name: "Bar",
end: (
9,
44,
),
},
),
method: Identifier(
Identifier {
start: (
9,
46,
),
name: "from",
end: (
9,
50,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
9,
51,
),
name: "s",
end: (
9,
53,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
10,
1,
),
end: (
10,
55,
),
attributes: [],
parameters: FunctionParameterList {
start: (
10,
17,
),
end: (
10,
25,
),
members: [
FunctionParameter {
start: (
10,
18,
),
end: (
10,
24,
),
name: Variable {
start: (
10,
22,
),
name: "s",
end: (
10,
24,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
10,
18,
),
name: "Foo",
end: (
10,
22,
),
},
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
10,
27,
),
name: "Bar",
end: (
10,
31,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
10,
40,
),
name: "Bar",
end: (
10,
43,
),
},
),
method: Identifier(
Identifier {
start: (
10,
45,
),
name: "from",
end: (
10,
49,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
10,
50,
),
name: "s",
end: (
10,
52,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
11,
1,
),
end: (
11,
53,
),
attributes: [],
parameters: FunctionParameterList {
start: (
11,
11,
),
end: (
11,
31,
),
members: [
FunctionParameter {
start: (
11,
12,
),
end: (
11,
30,
),
name: Variable {
start: (
11,
28,
),
name: "s",
end: (
11,
30,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
11,
12,
),
name: "Foo",
end: (
11,
15,
),
},
),
Identifier(
Identifier {
start: (
11,
16,
),
name: "Bar",
end: (
11,
19,
),
},
),
Identifier(
Identifier {
start: (
11,
20,
),
name: "Baz",
end: (
11,
24,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
11,
33,
),
name: "Bar",
end: (
11,
37,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
11,
40,
),
name: "Bar",
end: (
11,
43,
),
},
),
method: Identifier(
Identifier {
start: (
11,
45,
),
name: "from",
end: (
11,
49,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
11,
50,
),
name: "s",
end: (
11,
52,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
12,
1,
),
end: (
12,
52,
),
attributes: [],
parameters: FunctionParameterList {
start: (
12,
11,
),
end: (
12,
30,
),
members: [
FunctionParameter {
start: (
12,
12,
),
end: (
12,
29,
),
name: Variable {
start: (
12,
27,
),
name: "s",
end: (
12,
29,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
12,
12,
),
name: "Foo",
end: (
12,
15,
),
},
),
Identifier(
Identifier {
start: (
12,
16,
),
name: "Bar",
end: (
12,
19,
),
},
),
Identifier(
Identifier {
start: (
12,
20,
),
name: "Baz",
end: (
12,
24,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
12,
32,
),
name: "Bar",
end: (
12,
36,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
12,
39,
),
name: "Bar",
end: (
12,
42,
),
},
),
method: Identifier(
Identifier {
start: (
12,
44,
),
name: "from",
end: (
12,
48,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
12,
49,
),
name: "s",
end: (
12,
51,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
13,
1,
),
end: (
13,
50,
),
attributes: [],
parameters: FunctionParameterList {
start: (
13,
11,
),
end: (
13,
28,
),
members: [
FunctionParameter {
start: (
13,
12,
),
end: (
13,
27,
),
name: Variable {
start: (
13,
25,
),
name: "s",
end: (
13,
27,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
13,
12,
),
name: "Foo",
end: (
13,
15,
),
},
),
Identifier(
Identifier {
start: (
13,
16,
),
name: "Bar",
end: (
13,
19,
),
},
),
Identifier(
Identifier {
start: (
13,
20,
),
name: "Baz",
end: (
13,
24,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
13,
30,
),
name: "Bar",
end: (
13,
34,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
13,
37,
),
name: "Bar",
end: (
13,
40,
),
},
),
method: Identifier(
Identifier {
start: (
13,
42,
),
name: "from",
end: (
13,
46,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
13,
47,
),
name: "s",
end: (
13,
49,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
14,
1,
),
end: (
14,
49,
),
attributes: [],
parameters: FunctionParameterList {
start: (
14,
11,
),
end: (
14,
27,
),
members: [
FunctionParameter {
start: (
14,
12,
),
end: (
14,
26,
),
name: Variable {
start: (
14,
24,
),
name: "s",
end: (
14,
26,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
14,
12,
),
name: "Foo",
end: (
14,
15,
),
},
),
Identifier(
Identifier {
start: (
14,
16,
),
name: "Bar",
end: (
14,
19,
),
},
),
Identifier(
Identifier {
start: (
14,
20,
),
name: "Baz",
end: (
14,
24,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
14,
29,
),
name: "Bar",
end: (
14,
33,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
14,
36,
),
name: "Bar",
end: (
14,
39,
),
},
),
method: Identifier(
Identifier {
start: (
14,
41,
),
name: "from",
end: (
14,
45,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
14,
46,
),
name: "s",
end: (
14,
48,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
15,
1,
),
end: (
15,
67,
),
attributes: [],
parameters: FunctionParameterList {
start: (
15,
17,
),
end: (
15,
37,
),
members: [
FunctionParameter {
start: (
15,
18,
),
end: (
15,
36,
),
name: Variable {
start: (
15,
34,
),
name: "s",
end: (
15,
36,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
15,
18,
),
name: "Foo",
end: (
15,
21,
),
},
),
Identifier(
Identifier {
start: (
15,
22,
),
name: "Bar",
end: (
15,
25,
),
},
),
Identifier(
Identifier {
start: (
15,
26,
),
name: "Baz",
end: (
15,
30,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
15,
39,
),
name: "Bar",
end: (
15,
43,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
15,
52,
),
name: "Bar",
end: (
15,
55,
),
},
),
method: Identifier(
Identifier {
start: (
15,
57,
),
name: "from",
end: (
15,
61,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
15,
62,
),
name: "s",
end: (
15,
64,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
16,
1,
),
end: (
16,
66,
),
attributes: [],
parameters: FunctionParameterList {
start: (
16,
17,
),
end: (
16,
36,
),
members: [
FunctionParameter {
start: (
16,
18,
),
end: (
16,
35,
),
name: Variable {
start: (
16,
33,
),
name: "s",
end: (
16,
35,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
16,
18,
),
name: "Foo",
end: (
16,
21,
),
},
),
Identifier(
Identifier {
start: (
16,
22,
),
name: "Bar",
end: (
16,
25,
),
},
),
Identifier(
Identifier {
start: (
16,
26,
),
name: "Baz",
end: (
16,
30,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
16,
38,
),
name: "Bar",
end: (
16,
42,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
16,
51,
),
name: "Bar",
end: (
16,
54,
),
},
),
method: Identifier(
Identifier {
start: (
16,
56,
),
name: "from",
end: (
16,
60,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
16,
61,
),
name: "s",
end: (
16,
63,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
17,
1,
),
end: (
17,
64,
),
attributes: [],
parameters: FunctionParameterList {
start: (
17,
17,
),
end: (
17,
34,
),
members: [
FunctionParameter {
start: (
17,
18,
),
end: (
17,
33,
),
name: Variable {
start: (
17,
31,
),
name: "s",
end: (
17,
33,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
17,
18,
),
name: "Foo",
end: (
17,
21,
),
},
),
Identifier(
Identifier {
start: (
17,
22,
),
name: "Bar",
end: (
17,
25,
),
},
),
Identifier(
Identifier {
start: (
17,
26,
),
name: "Baz",
end: (
17,
30,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
17,
36,
),
name: "Bar",
end: (
17,
40,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
17,
49,
),
name: "Bar",
end: (
17,
52,
),
},
),
method: Identifier(
Identifier {
start: (
17,
54,
),
name: "from",
end: (
17,
58,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
17,
59,
),
name: "s",
end: (
17,
61,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
18,
1,
),
end: (
18,
63,
),
attributes: [],
parameters: FunctionParameterList {
start: (
18,
17,
),
end: (
18,
33,
),
members: [
FunctionParameter {
start: (
18,
18,
),
end: (
18,
32,
),
name: Variable {
start: (
18,
30,
),
name: "s",
end: (
18,
32,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
18,
18,
),
name: "Foo",
end: (
18,
21,
),
},
),
Identifier(
Identifier {
start: (
18,
22,
),
name: "Bar",
end: (
18,
25,
),
},
),
Identifier(
Identifier {
start: (
18,
26,
),
name: "Baz",
end: (
18,
30,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
18,
35,
),
name: "Bar",
end: (
18,
39,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
18,
48,
),
name: "Bar",
end: (
18,
51,
),
},
),
method: Identifier(
Identifier {
start: (
18,
53,
),
name: "from",
end: (
18,
57,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
18,
58,
),
name: "s",
end: (
18,
60,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
19,
1,
),
end: (
19,
53,
),
attributes: [],
parameters: FunctionParameterList {
start: (
19,
11,
),
end: (
19,
31,
),
members: [
FunctionParameter {
start: (
19,
12,
),
end: (
19,
30,
),
name: Variable {
start: (
19,
28,
),
name: "s",
end: (
19,
30,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
19,
12,
),
name: "Foo",
end: (
19,
15,
),
},
),
Identifier(
Identifier {
start: (
19,
16,
),
name: "Bar",
end: (
19,
19,
),
},
),
Identifier(
Identifier {
start: (
19,
20,
),
name: "Baz",
end: (
19,
24,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
19,
33,
),
name: "Bar",
end: (
19,
37,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
19,
40,
),
name: "Bar",
end: (
19,
43,
),
},
),
method: Identifier(
Identifier {
start: (
19,
45,
),
name: "from",
end: (
19,
49,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
19,
50,
),
name: "s",
end: (
19,
52,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
20,
1,
),
end: (
20,
52,
),
attributes: [],
parameters: FunctionParameterList {
start: (
20,
11,
),
end: (
20,
30,
),
members: [
FunctionParameter {
start: (
20,
12,
),
end: (
20,
29,
),
name: Variable {
start: (
20,
27,
),
name: "s",
end: (
20,
29,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
20,
12,
),
name: "Foo",
end: (
20,
15,
),
},
),
Identifier(
Identifier {
start: (
20,
16,
),
name: "Bar",
end: (
20,
19,
),
},
),
Identifier(
Identifier {
start: (
20,
20,
),
name: "Baz",
end: (
20,
24,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
20,
32,
),
name: "Bar",
end: (
20,
36,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
20,
39,
),
name: "Bar",
end: (
20,
42,
),
},
),
method: Identifier(
Identifier {
start: (
20,
44,
),
name: "from",
end: (
20,
48,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
20,
49,
),
name: "s",
end: (
20,
51,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
21,
1,
),
end: (
21,
50,
),
attributes: [],
parameters: FunctionParameterList {
start: (
21,
11,
),
end: (
21,
28,
),
members: [
FunctionParameter {
start: (
21,
12,
),
end: (
21,
27,
),
name: Variable {
start: (
21,
25,
),
name: "s",
end: (
21,
27,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
21,
12,
),
name: "Foo",
end: (
21,
15,
),
},
),
Identifier(
Identifier {
start: (
21,
16,
),
name: "Bar",
end: (
21,
19,
),
},
),
Identifier(
Identifier {
start: (
21,
20,
),
name: "Baz",
end: (
21,
24,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
21,
30,
),
name: "Bar",
end: (
21,
34,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
21,
37,
),
name: "Bar",
end: (
21,
40,
),
},
),
method: Identifier(
Identifier {
start: (
21,
42,
),
name: "from",
end: (
21,
46,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
21,
47,
),
name: "s",
end: (
21,
49,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
22,
1,
),
end: (
22,
49,
),
attributes: [],
parameters: FunctionParameterList {
start: (
22,
11,
),
end: (
22,
27,
),
members: [
FunctionParameter {
start: (
22,
12,
),
end: (
22,
26,
),
name: Variable {
start: (
22,
24,
),
name: "s",
end: (
22,
26,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
22,
12,
),
name: "Foo",
end: (
22,
15,
),
},
),
Identifier(
Identifier {
start: (
22,
16,
),
name: "Bar",
end: (
22,
19,
),
},
),
Identifier(
Identifier {
start: (
22,
20,
),
name: "Baz",
end: (
22,
24,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
22,
29,
),
name: "Bar",
end: (
22,
33,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
22,
36,
),
name: "Bar",
end: (
22,
39,
),
},
),
method: Identifier(
Identifier {
start: (
22,
41,
),
name: "from",
end: (
22,
45,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
22,
46,
),
name: "s",
end: (
22,
48,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
23,
1,
),
end: (
23,
67,
),
attributes: [],
parameters: FunctionParameterList {
start: (
23,
17,
),
end: (
23,
37,
),
members: [
FunctionParameter {
start: (
23,
18,
),
end: (
23,
36,
),
name: Variable {
start: (
23,
34,
),
name: "s",
end: (
23,
36,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
23,
18,
),
name: "Foo",
end: (
23,
21,
),
},
),
Identifier(
Identifier {
start: (
23,
22,
),
name: "Bar",
end: (
23,
25,
),
},
),
Identifier(
Identifier {
start: (
23,
26,
),
name: "Baz",
end: (
23,
30,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
23,
39,
),
name: "Bar",
end: (
23,
43,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
23,
52,
),
name: "Bar",
end: (
23,
55,
),
},
),
method: Identifier(
Identifier {
start: (
23,
57,
),
name: "from",
end: (
23,
61,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
23,
62,
),
name: "s",
end: (
23,
64,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
24,
1,
),
end: (
24,
66,
),
attributes: [],
parameters: FunctionParameterList {
start: (
24,
17,
),
end: (
24,
36,
),
members: [
FunctionParameter {
start: (
24,
18,
),
end: (
24,
35,
),
name: Variable {
start: (
24,
33,
),
name: "s",
end: (
24,
35,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
24,
18,
),
name: "Foo",
end: (
24,
21,
),
},
),
Identifier(
Identifier {
start: (
24,
22,
),
name: "Bar",
end: (
24,
25,
),
},
),
Identifier(
Identifier {
start: (
24,
26,
),
name: "Baz",
end: (
24,
30,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
24,
38,
),
name: "Bar",
end: (
24,
42,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
24,
51,
),
name: "Bar",
end: (
24,
54,
),
},
),
method: Identifier(
Identifier {
start: (
24,
56,
),
name: "from",
end: (
24,
60,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
24,
61,
),
name: "s",
end: (
24,
63,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
25,
1,
),
end: (
25,
64,
),
attributes: [],
parameters: FunctionParameterList {
start: (
25,
17,
),
end: (
25,
34,
),
members: [
FunctionParameter {
start: (
25,
18,
),
end: (
25,
33,
),
name: Variable {
start: (
25,
31,
),
name: "s",
end: (
25,
33,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
25,
18,
),
name: "Foo",
end: (
25,
21,
),
},
),
Identifier(
Identifier {
start: (
25,
22,
),
name: "Bar",
end: (
25,
25,
),
},
),
Identifier(
Identifier {
start: (
25,
26,
),
name: "Baz",
end: (
25,
30,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
25,
36,
),
name: "Bar",
end: (
25,
40,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
25,
49,
),
name: "Bar",
end: (
25,
52,
),
},
),
method: Identifier(
Identifier {
start: (
25,
54,
),
name: "from",
end: (
25,
58,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
25,
59,
),
name: "s",
end: (
25,
61,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
26,
1,
),
end: (
26,
63,
),
attributes: [],
parameters: FunctionParameterList {
start: (
26,
17,
),
end: (
26,
33,
),
members: [
FunctionParameter {
start: (
26,
18,
),
end: (
26,
32,
),
name: Variable {
start: (
26,
30,
),
name: "s",
end: (
26,
32,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
26,
18,
),
name: "Foo",
end: (
26,
21,
),
},
),
Identifier(
Identifier {
start: (
26,
22,
),
name: "Bar",
end: (
26,
25,
),
},
),
Identifier(
Identifier {
start: (
26,
26,
),
name: "Baz",
end: (
26,
30,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
26,
35,
),
name: "Bar",
end: (
26,
39,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
26,
48,
),
name: "Bar",
end: (
26,
51,
),
},
),
method: Identifier(
Identifier {
start: (
26,
53,
),
name: "from",
end: (
26,
57,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
26,
58,
),
name: "s",
end: (
26,
60,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
27,
1,
),
end: (
27,
55,
),
attributes: [],
parameters: FunctionParameterList {
start: (
27,
11,
),
end: (
27,
33,
),
members: [
FunctionParameter {
start: (
27,
12,
),
end: (
27,
32,
),
name: Variable {
start: (
27,
30,
),
name: "s",
end: (
27,
32,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
27,
12,
),
name: "Foo",
end: (
27,
15,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
27,
17,
),
name: "Bar",
end: (
27,
20,
),
},
),
Identifier(
Identifier {
start: (
27,
21,
),
name: "Baz",
end: (
27,
24,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
27,
35,
),
name: "Bar",
end: (
27,
39,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
27,
42,
),
name: "Bar",
end: (
27,
45,
),
},
),
method: Identifier(
Identifier {
start: (
27,
47,
),
name: "from",
end: (
27,
51,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
27,
52,
),
name: "s",
end: (
27,
54,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
28,
1,
),
end: (
28,
54,
),
attributes: [],
parameters: FunctionParameterList {
start: (
28,
11,
),
end: (
28,
32,
),
members: [
FunctionParameter {
start: (
28,
12,
),
end: (
28,
31,
),
name: Variable {
start: (
28,
29,
),
name: "s",
end: (
28,
31,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
28,
12,
),
name: "Foo",
end: (
28,
15,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
28,
17,
),
name: "Bar",
end: (
28,
20,
),
},
),
Identifier(
Identifier {
start: (
28,
21,
),
name: "Baz",
end: (
28,
24,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
28,
34,
),
name: "Bar",
end: (
28,
38,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
28,
41,
),
name: "Bar",
end: (
28,
44,
),
},
),
method: Identifier(
Identifier {
start: (
28,
46,
),
name: "from",
end: (
28,
50,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
28,
51,
),
name: "s",
end: (
28,
53,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
29,
1,
),
end: (
29,
52,
),
attributes: [],
parameters: FunctionParameterList {
start: (
29,
11,
),
end: (
29,
30,
),
members: [
FunctionParameter {
start: (
29,
12,
),
end: (
29,
29,
),
name: Variable {
start: (
29,
27,
),
name: "s",
end: (
29,
29,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
29,
12,
),
name: "Foo",
end: (
29,
15,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
29,
17,
),
name: "Bar",
end: (
29,
20,
),
},
),
Identifier(
Identifier {
start: (
29,
21,
),
name: "Baz",
end: (
29,
24,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
29,
32,
),
name: "Bar",
end: (
29,
36,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
29,
39,
),
name: "Bar",
end: (
29,
42,
),
},
),
method: Identifier(
Identifier {
start: (
29,
44,
),
name: "from",
end: (
29,
48,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
29,
49,
),
name: "s",
end: (
29,
51,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
30,
1,
),
end: (
30,
51,
),
attributes: [],
parameters: FunctionParameterList {
start: (
30,
11,
),
end: (
30,
29,
),
members: [
FunctionParameter {
start: (
30,
12,
),
end: (
30,
28,
),
name: Variable {
start: (
30,
26,
),
name: "s",
end: (
30,
28,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
30,
12,
),
name: "Foo",
end: (
30,
15,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
30,
17,
),
name: "Bar",
end: (
30,
20,
),
},
),
Identifier(
Identifier {
start: (
30,
21,
),
name: "Baz",
end: (
30,
24,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
30,
31,
),
name: "Bar",
end: (
30,
35,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
30,
38,
),
name: "Bar",
end: (
30,
41,
),
},
),
method: Identifier(
Identifier {
start: (
30,
43,
),
name: "from",
end: (
30,
47,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
30,
48,
),
name: "s",
end: (
30,
50,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
31,
1,
),
end: (
31,
69,
),
attributes: [],
parameters: FunctionParameterList {
start: (
31,
17,
),
end: (
31,
39,
),
members: [
FunctionParameter {
start: (
31,
18,
),
end: (
31,
38,
),
name: Variable {
start: (
31,
36,
),
name: "s",
end: (
31,
38,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
31,
18,
),
name: "Foo",
end: (
31,
21,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
31,
23,
),
name: "Bar",
end: (
31,
26,
),
},
),
Identifier(
Identifier {
start: (
31,
27,
),
name: "Baz",
end: (
31,
30,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
31,
41,
),
name: "Bar",
end: (
31,
45,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
31,
54,
),
name: "Bar",
end: (
31,
57,
),
},
),
method: Identifier(
Identifier {
start: (
31,
59,
),
name: "from",
end: (
31,
63,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
31,
64,
),
name: "s",
end: (
31,
66,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
32,
1,
),
end: (
32,
68,
),
attributes: [],
parameters: FunctionParameterList {
start: (
32,
17,
),
end: (
32,
38,
),
members: [
FunctionParameter {
start: (
32,
18,
),
end: (
32,
37,
),
name: Variable {
start: (
32,
35,
),
name: "s",
end: (
32,
37,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
32,
18,
),
name: "Foo",
end: (
32,
21,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
32,
23,
),
name: "Bar",
end: (
32,
26,
),
},
),
Identifier(
Identifier {
start: (
32,
27,
),
name: "Baz",
end: (
32,
30,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
32,
40,
),
name: "Bar",
end: (
32,
44,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
32,
53,
),
name: "Bar",
end: (
32,
56,
),
},
),
method: Identifier(
Identifier {
start: (
32,
58,
),
name: "from",
end: (
32,
62,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
32,
63,
),
name: "s",
end: (
32,
65,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
33,
1,
),
end: (
33,
66,
),
attributes: [],
parameters: FunctionParameterList {
start: (
33,
17,
),
end: (
33,
36,
),
members: [
FunctionParameter {
start: (
33,
18,
),
end: (
33,
35,
),
name: Variable {
start: (
33,
33,
),
name: "s",
end: (
33,
35,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
33,
18,
),
name: "Foo",
end: (
33,
21,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
33,
23,
),
name: "Bar",
end: (
33,
26,
),
},
),
Identifier(
Identifier {
start: (
33,
27,
),
name: "Baz",
end: (
33,
30,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
33,
38,
),
name: "Bar",
end: (
33,
42,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
33,
51,
),
name: "Bar",
end: (
33,
54,
),
},
),
method: Identifier(
Identifier {
start: (
33,
56,
),
name: "from",
end: (
33,
60,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
33,
61,
),
name: "s",
end: (
33,
63,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
34,
1,
),
end: (
34,
65,
),
attributes: [],
parameters: FunctionParameterList {
start: (
34,
17,
),
end: (
34,
35,
),
members: [
FunctionParameter {
start: (
34,
18,
),
end: (
34,
34,
),
name: Variable {
start: (
34,
32,
),
name: "s",
end: (
34,
34,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
34,
18,
),
name: "Foo",
end: (
34,
21,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
34,
23,
),
name: "Bar",
end: (
34,
26,
),
},
),
Identifier(
Identifier {
start: (
34,
27,
),
name: "Baz",
end: (
34,
30,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
34,
37,
),
name: "Bar",
end: (
34,
41,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
34,
50,
),
name: "Bar",
end: (
34,
53,
),
},
),
method: Identifier(
Identifier {
start: (
34,
55,
),
name: "from",
end: (
34,
59,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
34,
60,
),
name: "s",
end: (
34,
62,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
35,
1,
),
end: (
35,
55,
),
attributes: [],
parameters: FunctionParameterList {
start: (
35,
11,
),
end: (
35,
33,
),
members: [
FunctionParameter {
start: (
35,
12,
),
end: (
35,
32,
),
name: Variable {
start: (
35,
30,
),
name: "s",
end: (
35,
32,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
35,
12,
),
name: "Foo",
end: (
35,
15,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
35,
17,
),
name: "Bar",
end: (
35,
20,
),
},
),
Identifier(
Identifier {
start: (
35,
21,
),
name: "Baz",
end: (
35,
24,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
35,
35,
),
name: "Bar",
end: (
35,
39,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
35,
42,
),
name: "Bar",
end: (
35,
45,
),
},
),
method: Identifier(
Identifier {
start: (
35,
47,
),
name: "from",
end: (
35,
51,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
35,
52,
),
name: "s",
end: (
35,
54,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
36,
1,
),
end: (
36,
54,
),
attributes: [],
parameters: FunctionParameterList {
start: (
36,
11,
),
end: (
36,
32,
),
members: [
FunctionParameter {
start: (
36,
12,
),
end: (
36,
31,
),
name: Variable {
start: (
36,
29,
),
name: "s",
end: (
36,
31,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
36,
12,
),
name: "Foo",
end: (
36,
15,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
36,
17,
),
name: "Bar",
end: (
36,
20,
),
},
),
Identifier(
Identifier {
start: (
36,
21,
),
name: "Baz",
end: (
36,
24,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
36,
34,
),
name: "Bar",
end: (
36,
38,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
36,
41,
),
name: "Bar",
end: (
36,
44,
),
},
),
method: Identifier(
Identifier {
start: (
36,
46,
),
name: "from",
end: (
36,
50,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
36,
51,
),
name: "s",
end: (
36,
53,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
37,
1,
),
end: (
37,
52,
),
attributes: [],
parameters: FunctionParameterList {
start: (
37,
11,
),
end: (
37,
30,
),
members: [
FunctionParameter {
start: (
37,
12,
),
end: (
37,
29,
),
name: Variable {
start: (
37,
27,
),
name: "s",
end: (
37,
29,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
37,
12,
),
name: "Foo",
end: (
37,
15,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
37,
17,
),
name: "Bar",
end: (
37,
20,
),
},
),
Identifier(
Identifier {
start: (
37,
21,
),
name: "Baz",
end: (
37,
24,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
37,
32,
),
name: "Bar",
end: (
37,
36,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
37,
39,
),
name: "Bar",
end: (
37,
42,
),
},
),
method: Identifier(
Identifier {
start: (
37,
44,
),
name: "from",
end: (
37,
48,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
37,
49,
),
name: "s",
end: (
37,
51,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
38,
1,
),
end: (
38,
51,
),
attributes: [],
parameters: FunctionParameterList {
start: (
38,
11,
),
end: (
38,
29,
),
members: [
FunctionParameter {
start: (
38,
12,
),
end: (
38,
28,
),
name: Variable {
start: (
38,
26,
),
name: "s",
end: (
38,
28,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
38,
12,
),
name: "Foo",
end: (
38,
15,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
38,
17,
),
name: "Bar",
end: (
38,
20,
),
},
),
Identifier(
Identifier {
start: (
38,
21,
),
name: "Baz",
end: (
38,
24,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
38,
31,
),
name: "Bar",
end: (
38,
35,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
38,
38,
),
name: "Bar",
end: (
38,
41,
),
},
),
method: Identifier(
Identifier {
start: (
38,
43,
),
name: "from",
end: (
38,
47,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
38,
48,
),
name: "s",
end: (
38,
50,
),
},
),
unpack: false,
},
],
},
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
39,
1,
),
end: (
39,
69,
),
attributes: [],
parameters: FunctionParameterList {
start: (
39,
17,
),
end: (
39,
39,
),
members: [
FunctionParameter {
start: (
39,
18,
),
end: (
39,
38,
),
name: Variable {
start: (
39,
36,
),
name: "s",
end: (
39,
38,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
39,
18,
),
name: "Foo",
end: (
39,
21,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
39,
23,
),
name: "Bar",
end: (
39,
26,
),
},
),
Identifier(
Identifier {
start: (
39,
27,
),
name: "Baz",
end: (
39,
30,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
39,
41,
),
name: "Bar",
end: (
39,
45,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
39,
54,
),
name: "Bar",
end: (
39,
57,
),
},
),
method: Identifier(
Identifier {
start: (
39,
59,
),
name: "from",
end: (
39,
63,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
39,
64,
),
name: "s",
end: (
39,
66,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
40,
1,
),
end: (
40,
68,
),
attributes: [],
parameters: FunctionParameterList {
start: (
40,
17,
),
end: (
40,
38,
),
members: [
FunctionParameter {
start: (
40,
18,
),
end: (
40,
37,
),
name: Variable {
start: (
40,
35,
),
name: "s",
end: (
40,
37,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
40,
18,
),
name: "Foo",
end: (
40,
21,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
40,
23,
),
name: "Bar",
end: (
40,
26,
),
},
),
Identifier(
Identifier {
start: (
40,
27,
),
name: "Baz",
end: (
40,
30,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
40,
40,
),
name: "Bar",
end: (
40,
44,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
40,
53,
),
name: "Bar",
end: (
40,
56,
),
},
),
method: Identifier(
Identifier {
start: (
40,
58,
),
name: "from",
end: (
40,
62,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
40,
63,
),
name: "s",
end: (
40,
65,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
41,
1,
),
end: (
41,
66,
),
attributes: [],
parameters: FunctionParameterList {
start: (
41,
17,
),
end: (
41,
36,
),
members: [
FunctionParameter {
start: (
41,
18,
),
end: (
41,
35,
),
name: Variable {
start: (
41,
33,
),
name: "s",
end: (
41,
35,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
41,
18,
),
name: "Foo",
end: (
41,
21,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
41,
23,
),
name: "Bar",
end: (
41,
26,
),
},
),
Identifier(
Identifier {
start: (
41,
27,
),
name: "Baz",
end: (
41,
30,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
41,
38,
),
name: "Bar",
end: (
41,
42,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
41,
51,
),
name: "Bar",
end: (
41,
54,
),
},
),
method: Identifier(
Identifier {
start: (
41,
56,
),
name: "from",
end: (
41,
60,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
41,
61,
),
name: "s",
end: (
41,
63,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
42,
1,
),
end: (
42,
65,
),
attributes: [],
parameters: FunctionParameterList {
start: (
42,
17,
),
end: (
42,
35,
),
members: [
FunctionParameter {
start: (
42,
18,
),
end: (
42,
34,
),
name: Variable {
start: (
42,
32,
),
name: "s",
end: (
42,
34,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
42,
18,
),
name: "Foo",
end: (
42,
21,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
42,
23,
),
name: "Bar",
end: (
42,
26,
),
},
),
Identifier(
Identifier {
start: (
42,
27,
),
name: "Baz",
end: (
42,
30,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
42,
37,
),
name: "Bar",
end: (
42,
41,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
42,
50,
),
name: "Bar",
end: (
42,
53,
),
},
),
method: Identifier(
Identifier {
start: (
42,
55,
),
name: "from",
end: (
42,
59,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
42,
60,
),
name: "s",
end: (
42,
62,
),
},
),
unpack: false,
},
],
},
),
},
],
static: true,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
44,
1,
),
end: (
44,
38,
),
attributes: [],
parameters: FunctionParameterList {
start: (
44,
4,
),
end: (
44,
16,
),
members: [
FunctionParameter {
start: (
44,
5,
),
end: (
44,
15,
),
name: Variable {
start: (
44,
13,
),
name: "s",
end: (
44,
15,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
44,
5,
),
name: "Foo",
end: (
44,
9,
),
},
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
44,
18,
),
name: "Bar",
end: (
44,
22,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
44,
25,
),
name: "Bar",
end: (
44,
28,
),
},
),
method: Identifier(
Identifier {
start: (
44,
30,
),
name: "from",
end: (
44,
34,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
44,
35,
),
name: "s",
end: (
44,
37,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
45,
1,
),
end: (
45,
37,
),
attributes: [],
parameters: FunctionParameterList {
start: (
45,
4,
),
end: (
45,
15,
),
members: [
FunctionParameter {
start: (
45,
5,
),
end: (
45,
14,
),
name: Variable {
start: (
45,
12,
),
name: "s",
end: (
45,
14,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
45,
5,
),
name: "Foo",
end: (
45,
9,
),
},
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
45,
17,
),
name: "Bar",
end: (
45,
21,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
45,
24,
),
name: "Bar",
end: (
45,
27,
),
},
),
method: Identifier(
Identifier {
start: (
45,
29,
),
name: "from",
end: (
45,
33,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
45,
34,
),
name: "s",
end: (
45,
36,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
46,
1,
),
end: (
46,
35,
),
attributes: [],
parameters: FunctionParameterList {
start: (
46,
4,
),
end: (
46,
13,
),
members: [
FunctionParameter {
start: (
46,
5,
),
end: (
46,
12,
),
name: Variable {
start: (
46,
10,
),
name: "s",
end: (
46,
12,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
46,
5,
),
name: "Foo",
end: (
46,
9,
),
},
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
46,
15,
),
name: "Bar",
end: (
46,
19,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
46,
22,
),
name: "Bar",
end: (
46,
25,
),
},
),
method: Identifier(
Identifier {
start: (
46,
27,
),
name: "from",
end: (
46,
31,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
46,
32,
),
name: "s",
end: (
46,
34,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
47,
1,
),
end: (
47,
34,
),
attributes: [],
parameters: FunctionParameterList {
start: (
47,
4,
),
end: (
47,
12,
),
members: [
FunctionParameter {
start: (
47,
5,
),
end: (
47,
11,
),
name: Variable {
start: (
47,
9,
),
name: "s",
end: (
47,
11,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
47,
5,
),
name: "Foo",
end: (
47,
9,
),
},
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
47,
14,
),
name: "Bar",
end: (
47,
18,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
47,
21,
),
name: "Bar",
end: (
47,
24,
),
},
),
method: Identifier(
Identifier {
start: (
47,
26,
),
name: "from",
end: (
47,
30,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
47,
31,
),
name: "s",
end: (
47,
33,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
48,
1,
),
end: (
48,
52,
),
attributes: [],
parameters: FunctionParameterList {
start: (
48,
10,
),
end: (
48,
22,
),
members: [
FunctionParameter {
start: (
48,
11,
),
end: (
48,
21,
),
name: Variable {
start: (
48,
19,
),
name: "s",
end: (
48,
21,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
48,
11,
),
name: "Foo",
end: (
48,
15,
),
},
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
48,
24,
),
name: "Bar",
end: (
48,
28,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
48,
37,
),
name: "Bar",
end: (
48,
40,
),
},
),
method: Identifier(
Identifier {
start: (
48,
42,
),
name: "from",
end: (
48,
46,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
48,
47,
),
name: "s",
end: (
48,
49,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
49,
1,
),
end: (
49,
51,
),
attributes: [],
parameters: FunctionParameterList {
start: (
49,
10,
),
end: (
49,
21,
),
members: [
FunctionParameter {
start: (
49,
11,
),
end: (
49,
20,
),
name: Variable {
start: (
49,
18,
),
name: "s",
end: (
49,
20,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
49,
11,
),
name: "Foo",
end: (
49,
15,
),
},
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
49,
23,
),
name: "Bar",
end: (
49,
27,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
49,
36,
),
name: "Bar",
end: (
49,
39,
),
},
),
method: Identifier(
Identifier {
start: (
49,
41,
),
name: "from",
end: (
49,
45,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
49,
46,
),
name: "s",
end: (
49,
48,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
50,
1,
),
end: (
50,
49,
),
attributes: [],
parameters: FunctionParameterList {
start: (
50,
10,
),
end: (
50,
19,
),
members: [
FunctionParameter {
start: (
50,
11,
),
end: (
50,
18,
),
name: Variable {
start: (
50,
16,
),
name: "s",
end: (
50,
18,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
50,
11,
),
name: "Foo",
end: (
50,
15,
),
},
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
50,
21,
),
name: "Bar",
end: (
50,
25,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
50,
34,
),
name: "Bar",
end: (
50,
37,
),
},
),
method: Identifier(
Identifier {
start: (
50,
39,
),
name: "from",
end: (
50,
43,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
50,
44,
),
name: "s",
end: (
50,
46,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
51,
1,
),
end: (
51,
48,
),
attributes: [],
parameters: FunctionParameterList {
start: (
51,
10,
),
end: (
51,
18,
),
members: [
FunctionParameter {
start: (
51,
11,
),
end: (
51,
17,
),
name: Variable {
start: (
51,
15,
),
name: "s",
end: (
51,
17,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
51,
11,
),
name: "Foo",
end: (
51,
15,
),
},
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
51,
20,
),
name: "Bar",
end: (
51,
24,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
51,
33,
),
name: "Bar",
end: (
51,
36,
),
},
),
method: Identifier(
Identifier {
start: (
51,
38,
),
name: "from",
end: (
51,
42,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
51,
43,
),
name: "s",
end: (
51,
45,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
52,
1,
),
end: (
52,
46,
),
attributes: [],
parameters: FunctionParameterList {
start: (
52,
4,
),
end: (
52,
24,
),
members: [
FunctionParameter {
start: (
52,
5,
),
end: (
52,
23,
),
name: Variable {
start: (
52,
21,
),
name: "s",
end: (
52,
23,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
52,
5,
),
name: "Foo",
end: (
52,
8,
),
},
),
Identifier(
Identifier {
start: (
52,
9,
),
name: "Bar",
end: (
52,
12,
),
},
),
Identifier(
Identifier {
start: (
52,
13,
),
name: "Baz",
end: (
52,
17,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
52,
26,
),
name: "Bar",
end: (
52,
30,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
52,
33,
),
name: "Bar",
end: (
52,
36,
),
},
),
method: Identifier(
Identifier {
start: (
52,
38,
),
name: "from",
end: (
52,
42,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
52,
43,
),
name: "s",
end: (
52,
45,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
53,
1,
),
end: (
53,
45,
),
attributes: [],
parameters: FunctionParameterList {
start: (
53,
4,
),
end: (
53,
23,
),
members: [
FunctionParameter {
start: (
53,
5,
),
end: (
53,
22,
),
name: Variable {
start: (
53,
20,
),
name: "s",
end: (
53,
22,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
53,
5,
),
name: "Foo",
end: (
53,
8,
),
},
),
Identifier(
Identifier {
start: (
53,
9,
),
name: "Bar",
end: (
53,
12,
),
},
),
Identifier(
Identifier {
start: (
53,
13,
),
name: "Baz",
end: (
53,
17,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
53,
25,
),
name: "Bar",
end: (
53,
29,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
53,
32,
),
name: "Bar",
end: (
53,
35,
),
},
),
method: Identifier(
Identifier {
start: (
53,
37,
),
name: "from",
end: (
53,
41,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
53,
42,
),
name: "s",
end: (
53,
44,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
54,
1,
),
end: (
54,
43,
),
attributes: [],
parameters: FunctionParameterList {
start: (
54,
4,
),
end: (
54,
21,
),
members: [
FunctionParameter {
start: (
54,
5,
),
end: (
54,
20,
),
name: Variable {
start: (
54,
18,
),
name: "s",
end: (
54,
20,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
54,
5,
),
name: "Foo",
end: (
54,
8,
),
},
),
Identifier(
Identifier {
start: (
54,
9,
),
name: "Bar",
end: (
54,
12,
),
},
),
Identifier(
Identifier {
start: (
54,
13,
),
name: "Baz",
end: (
54,
17,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
54,
23,
),
name: "Bar",
end: (
54,
27,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
54,
30,
),
name: "Bar",
end: (
54,
33,
),
},
),
method: Identifier(
Identifier {
start: (
54,
35,
),
name: "from",
end: (
54,
39,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
54,
40,
),
name: "s",
end: (
54,
42,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
55,
1,
),
end: (
55,
42,
),
attributes: [],
parameters: FunctionParameterList {
start: (
55,
4,
),
end: (
55,
20,
),
members: [
FunctionParameter {
start: (
55,
5,
),
end: (
55,
19,
),
name: Variable {
start: (
55,
17,
),
name: "s",
end: (
55,
19,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
55,
5,
),
name: "Foo",
end: (
55,
8,
),
},
),
Identifier(
Identifier {
start: (
55,
9,
),
name: "Bar",
end: (
55,
12,
),
},
),
Identifier(
Identifier {
start: (
55,
13,
),
name: "Baz",
end: (
55,
17,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
55,
22,
),
name: "Bar",
end: (
55,
26,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
55,
29,
),
name: "Bar",
end: (
55,
32,
),
},
),
method: Identifier(
Identifier {
start: (
55,
34,
),
name: "from",
end: (
55,
38,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
55,
39,
),
name: "s",
end: (
55,
41,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
56,
1,
),
end: (
56,
60,
),
attributes: [],
parameters: FunctionParameterList {
start: (
56,
10,
),
end: (
56,
30,
),
members: [
FunctionParameter {
start: (
56,
11,
),
end: (
56,
29,
),
name: Variable {
start: (
56,
27,
),
name: "s",
end: (
56,
29,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
56,
11,
),
name: "Foo",
end: (
56,
14,
),
},
),
Identifier(
Identifier {
start: (
56,
15,
),
name: "Bar",
end: (
56,
18,
),
},
),
Identifier(
Identifier {
start: (
56,
19,
),
name: "Baz",
end: (
56,
23,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
56,
32,
),
name: "Bar",
end: (
56,
36,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
56,
45,
),
name: "Bar",
end: (
56,
48,
),
},
),
method: Identifier(
Identifier {
start: (
56,
50,
),
name: "from",
end: (
56,
54,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
56,
55,
),
name: "s",
end: (
56,
57,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
57,
1,
),
end: (
57,
59,
),
attributes: [],
parameters: FunctionParameterList {
start: (
57,
10,
),
end: (
57,
29,
),
members: [
FunctionParameter {
start: (
57,
11,
),
end: (
57,
28,
),
name: Variable {
start: (
57,
26,
),
name: "s",
end: (
57,
28,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
57,
11,
),
name: "Foo",
end: (
57,
14,
),
},
),
Identifier(
Identifier {
start: (
57,
15,
),
name: "Bar",
end: (
57,
18,
),
},
),
Identifier(
Identifier {
start: (
57,
19,
),
name: "Baz",
end: (
57,
23,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
57,
31,
),
name: "Bar",
end: (
57,
35,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
57,
44,
),
name: "Bar",
end: (
57,
47,
),
},
),
method: Identifier(
Identifier {
start: (
57,
49,
),
name: "from",
end: (
57,
53,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
57,
54,
),
name: "s",
end: (
57,
56,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
58,
1,
),
end: (
58,
57,
),
attributes: [],
parameters: FunctionParameterList {
start: (
58,
10,
),
end: (
58,
27,
),
members: [
FunctionParameter {
start: (
58,
11,
),
end: (
58,
26,
),
name: Variable {
start: (
58,
24,
),
name: "s",
end: (
58,
26,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
58,
11,
),
name: "Foo",
end: (
58,
14,
),
},
),
Identifier(
Identifier {
start: (
58,
15,
),
name: "Bar",
end: (
58,
18,
),
},
),
Identifier(
Identifier {
start: (
58,
19,
),
name: "Baz",
end: (
58,
23,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
58,
29,
),
name: "Bar",
end: (
58,
33,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
58,
42,
),
name: "Bar",
end: (
58,
45,
),
},
),
method: Identifier(
Identifier {
start: (
58,
47,
),
name: "from",
end: (
58,
51,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
58,
52,
),
name: "s",
end: (
58,
54,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
59,
1,
),
end: (
59,
56,
),
attributes: [],
parameters: FunctionParameterList {
start: (
59,
10,
),
end: (
59,
26,
),
members: [
FunctionParameter {
start: (
59,
11,
),
end: (
59,
25,
),
name: Variable {
start: (
59,
23,
),
name: "s",
end: (
59,
25,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
59,
11,
),
name: "Foo",
end: (
59,
14,
),
},
),
Identifier(
Identifier {
start: (
59,
15,
),
name: "Bar",
end: (
59,
18,
),
},
),
Identifier(
Identifier {
start: (
59,
19,
),
name: "Baz",
end: (
59,
23,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
59,
28,
),
name: "Bar",
end: (
59,
32,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
59,
41,
),
name: "Bar",
end: (
59,
44,
),
},
),
method: Identifier(
Identifier {
start: (
59,
46,
),
name: "from",
end: (
59,
50,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
59,
51,
),
name: "s",
end: (
59,
53,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
60,
1,
),
end: (
60,
46,
),
attributes: [],
parameters: FunctionParameterList {
start: (
60,
4,
),
end: (
60,
24,
),
members: [
FunctionParameter {
start: (
60,
5,
),
end: (
60,
23,
),
name: Variable {
start: (
60,
21,
),
name: "s",
end: (
60,
23,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
60,
5,
),
name: "Foo",
end: (
60,
8,
),
},
),
Identifier(
Identifier {
start: (
60,
9,
),
name: "Bar",
end: (
60,
12,
),
},
),
Identifier(
Identifier {
start: (
60,
13,
),
name: "Baz",
end: (
60,
17,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
60,
26,
),
name: "Bar",
end: (
60,
30,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
60,
33,
),
name: "Bar",
end: (
60,
36,
),
},
),
method: Identifier(
Identifier {
start: (
60,
38,
),
name: "from",
end: (
60,
42,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
60,
43,
),
name: "s",
end: (
60,
45,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
61,
1,
),
end: (
61,
45,
),
attributes: [],
parameters: FunctionParameterList {
start: (
61,
4,
),
end: (
61,
23,
),
members: [
FunctionParameter {
start: (
61,
5,
),
end: (
61,
22,
),
name: Variable {
start: (
61,
20,
),
name: "s",
end: (
61,
22,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
61,
5,
),
name: "Foo",
end: (
61,
8,
),
},
),
Identifier(
Identifier {
start: (
61,
9,
),
name: "Bar",
end: (
61,
12,
),
},
),
Identifier(
Identifier {
start: (
61,
13,
),
name: "Baz",
end: (
61,
17,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
61,
25,
),
name: "Bar",
end: (
61,
29,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
61,
32,
),
name: "Bar",
end: (
61,
35,
),
},
),
method: Identifier(
Identifier {
start: (
61,
37,
),
name: "from",
end: (
61,
41,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
61,
42,
),
name: "s",
end: (
61,
44,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
62,
1,
),
end: (
62,
43,
),
attributes: [],
parameters: FunctionParameterList {
start: (
62,
4,
),
end: (
62,
21,
),
members: [
FunctionParameter {
start: (
62,
5,
),
end: (
62,
20,
),
name: Variable {
start: (
62,
18,
),
name: "s",
end: (
62,
20,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
62,
5,
),
name: "Foo",
end: (
62,
8,
),
},
),
Identifier(
Identifier {
start: (
62,
9,
),
name: "Bar",
end: (
62,
12,
),
},
),
Identifier(
Identifier {
start: (
62,
13,
),
name: "Baz",
end: (
62,
17,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
62,
23,
),
name: "Bar",
end: (
62,
27,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
62,
30,
),
name: "Bar",
end: (
62,
33,
),
},
),
method: Identifier(
Identifier {
start: (
62,
35,
),
name: "from",
end: (
62,
39,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
62,
40,
),
name: "s",
end: (
62,
42,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
63,
1,
),
end: (
63,
42,
),
attributes: [],
parameters: FunctionParameterList {
start: (
63,
4,
),
end: (
63,
20,
),
members: [
FunctionParameter {
start: (
63,
5,
),
end: (
63,
19,
),
name: Variable {
start: (
63,
17,
),
name: "s",
end: (
63,
19,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
63,
5,
),
name: "Foo",
end: (
63,
8,
),
},
),
Identifier(
Identifier {
start: (
63,
9,
),
name: "Bar",
end: (
63,
12,
),
},
),
Identifier(
Identifier {
start: (
63,
13,
),
name: "Baz",
end: (
63,
17,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
63,
22,
),
name: "Bar",
end: (
63,
26,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
63,
29,
),
name: "Bar",
end: (
63,
32,
),
},
),
method: Identifier(
Identifier {
start: (
63,
34,
),
name: "from",
end: (
63,
38,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
63,
39,
),
name: "s",
end: (
63,
41,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
64,
1,
),
end: (
64,
60,
),
attributes: [],
parameters: FunctionParameterList {
start: (
64,
10,
),
end: (
64,
30,
),
members: [
FunctionParameter {
start: (
64,
11,
),
end: (
64,
29,
),
name: Variable {
start: (
64,
27,
),
name: "s",
end: (
64,
29,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
64,
11,
),
name: "Foo",
end: (
64,
14,
),
},
),
Identifier(
Identifier {
start: (
64,
15,
),
name: "Bar",
end: (
64,
18,
),
},
),
Identifier(
Identifier {
start: (
64,
19,
),
name: "Baz",
end: (
64,
23,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
64,
32,
),
name: "Bar",
end: (
64,
36,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
64,
45,
),
name: "Bar",
end: (
64,
48,
),
},
),
method: Identifier(
Identifier {
start: (
64,
50,
),
name: "from",
end: (
64,
54,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
64,
55,
),
name: "s",
end: (
64,
57,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
65,
1,
),
end: (
65,
59,
),
attributes: [],
parameters: FunctionParameterList {
start: (
65,
10,
),
end: (
65,
29,
),
members: [
FunctionParameter {
start: (
65,
11,
),
end: (
65,
28,
),
name: Variable {
start: (
65,
26,
),
name: "s",
end: (
65,
28,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
65,
11,
),
name: "Foo",
end: (
65,
14,
),
},
),
Identifier(
Identifier {
start: (
65,
15,
),
name: "Bar",
end: (
65,
18,
),
},
),
Identifier(
Identifier {
start: (
65,
19,
),
name: "Baz",
end: (
65,
23,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
65,
31,
),
name: "Bar",
end: (
65,
35,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
65,
44,
),
name: "Bar",
end: (
65,
47,
),
},
),
method: Identifier(
Identifier {
start: (
65,
49,
),
name: "from",
end: (
65,
53,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
65,
54,
),
name: "s",
end: (
65,
56,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
66,
1,
),
end: (
66,
57,
),
attributes: [],
parameters: FunctionParameterList {
start: (
66,
10,
),
end: (
66,
27,
),
members: [
FunctionParameter {
start: (
66,
11,
),
end: (
66,
26,
),
name: Variable {
start: (
66,
24,
),
name: "s",
end: (
66,
26,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
66,
11,
),
name: "Foo",
end: (
66,
14,
),
},
),
Identifier(
Identifier {
start: (
66,
15,
),
name: "Bar",
end: (
66,
18,
),
},
),
Identifier(
Identifier {
start: (
66,
19,
),
name: "Baz",
end: (
66,
23,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
66,
29,
),
name: "Bar",
end: (
66,
33,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
66,
42,
),
name: "Bar",
end: (
66,
45,
),
},
),
method: Identifier(
Identifier {
start: (
66,
47,
),
name: "from",
end: (
66,
51,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
66,
52,
),
name: "s",
end: (
66,
54,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
67,
1,
),
end: (
67,
56,
),
attributes: [],
parameters: FunctionParameterList {
start: (
67,
10,
),
end: (
67,
26,
),
members: [
FunctionParameter {
start: (
67,
11,
),
end: (
67,
25,
),
name: Variable {
start: (
67,
23,
),
name: "s",
end: (
67,
25,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
67,
11,
),
name: "Foo",
end: (
67,
14,
),
},
),
Identifier(
Identifier {
start: (
67,
15,
),
name: "Bar",
end: (
67,
18,
),
},
),
Identifier(
Identifier {
start: (
67,
19,
),
name: "Baz",
end: (
67,
23,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
67,
28,
),
name: "Bar",
end: (
67,
32,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
67,
41,
),
name: "Bar",
end: (
67,
44,
),
},
),
method: Identifier(
Identifier {
start: (
67,
46,
),
name: "from",
end: (
67,
50,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
67,
51,
),
name: "s",
end: (
67,
53,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
68,
1,
),
end: (
68,
48,
),
attributes: [],
parameters: FunctionParameterList {
start: (
68,
4,
),
end: (
68,
26,
),
members: [
FunctionParameter {
start: (
68,
5,
),
end: (
68,
25,
),
name: Variable {
start: (
68,
23,
),
name: "s",
end: (
68,
25,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
68,
5,
),
name: "Foo",
end: (
68,
8,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
68,
10,
),
name: "Bar",
end: (
68,
13,
),
},
),
Identifier(
Identifier {
start: (
68,
14,
),
name: "Baz",
end: (
68,
17,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
68,
28,
),
name: "Bar",
end: (
68,
32,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
68,
35,
),
name: "Bar",
end: (
68,
38,
),
},
),
method: Identifier(
Identifier {
start: (
68,
40,
),
name: "from",
end: (
68,
44,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
68,
45,
),
name: "s",
end: (
68,
47,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
69,
1,
),
end: (
69,
47,
),
attributes: [],
parameters: FunctionParameterList {
start: (
69,
4,
),
end: (
69,
25,
),
members: [
FunctionParameter {
start: (
69,
5,
),
end: (
69,
24,
),
name: Variable {
start: (
69,
22,
),
name: "s",
end: (
69,
24,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
69,
5,
),
name: "Foo",
end: (
69,
8,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
69,
10,
),
name: "Bar",
end: (
69,
13,
),
},
),
Identifier(
Identifier {
start: (
69,
14,
),
name: "Baz",
end: (
69,
17,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
69,
27,
),
name: "Bar",
end: (
69,
31,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
69,
34,
),
name: "Bar",
end: (
69,
37,
),
},
),
method: Identifier(
Identifier {
start: (
69,
39,
),
name: "from",
end: (
69,
43,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
69,
44,
),
name: "s",
end: (
69,
46,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
70,
1,
),
end: (
70,
45,
),
attributes: [],
parameters: FunctionParameterList {
start: (
70,
4,
),
end: (
70,
23,
),
members: [
FunctionParameter {
start: (
70,
5,
),
end: (
70,
22,
),
name: Variable {
start: (
70,
20,
),
name: "s",
end: (
70,
22,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
70,
5,
),
name: "Foo",
end: (
70,
8,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
70,
10,
),
name: "Bar",
end: (
70,
13,
),
},
),
Identifier(
Identifier {
start: (
70,
14,
),
name: "Baz",
end: (
70,
17,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
70,
25,
),
name: "Bar",
end: (
70,
29,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
70,
32,
),
name: "Bar",
end: (
70,
35,
),
},
),
method: Identifier(
Identifier {
start: (
70,
37,
),
name: "from",
end: (
70,
41,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
70,
42,
),
name: "s",
end: (
70,
44,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
71,
1,
),
end: (
71,
44,
),
attributes: [],
parameters: FunctionParameterList {
start: (
71,
4,
),
end: (
71,
22,
),
members: [
FunctionParameter {
start: (
71,
5,
),
end: (
71,
21,
),
name: Variable {
start: (
71,
19,
),
name: "s",
end: (
71,
21,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
71,
5,
),
name: "Foo",
end: (
71,
8,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
71,
10,
),
name: "Bar",
end: (
71,
13,
),
},
),
Identifier(
Identifier {
start: (
71,
14,
),
name: "Baz",
end: (
71,
17,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
71,
24,
),
name: "Bar",
end: (
71,
28,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
71,
31,
),
name: "Bar",
end: (
71,
34,
),
},
),
method: Identifier(
Identifier {
start: (
71,
36,
),
name: "from",
end: (
71,
40,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
71,
41,
),
name: "s",
end: (
71,
43,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
72,
1,
),
end: (
72,
62,
),
attributes: [],
parameters: FunctionParameterList {
start: (
72,
10,
),
end: (
72,
32,
),
members: [
FunctionParameter {
start: (
72,
11,
),
end: (
72,
31,
),
name: Variable {
start: (
72,
29,
),
name: "s",
end: (
72,
31,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
72,
11,
),
name: "Foo",
end: (
72,
14,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
72,
16,
),
name: "Bar",
end: (
72,
19,
),
},
),
Identifier(
Identifier {
start: (
72,
20,
),
name: "Baz",
end: (
72,
23,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
72,
34,
),
name: "Bar",
end: (
72,
38,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
72,
47,
),
name: "Bar",
end: (
72,
50,
),
},
),
method: Identifier(
Identifier {
start: (
72,
52,
),
name: "from",
end: (
72,
56,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
72,
57,
),
name: "s",
end: (
72,
59,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
73,
1,
),
end: (
73,
61,
),
attributes: [],
parameters: FunctionParameterList {
start: (
73,
10,
),
end: (
73,
31,
),
members: [
FunctionParameter {
start: (
73,
11,
),
end: (
73,
30,
),
name: Variable {
start: (
73,
28,
),
name: "s",
end: (
73,
30,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
73,
11,
),
name: "Foo",
end: (
73,
14,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
73,
16,
),
name: "Bar",
end: (
73,
19,
),
},
),
Identifier(
Identifier {
start: (
73,
20,
),
name: "Baz",
end: (
73,
23,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
73,
33,
),
name: "Bar",
end: (
73,
37,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
73,
46,
),
name: "Bar",
end: (
73,
49,
),
},
),
method: Identifier(
Identifier {
start: (
73,
51,
),
name: "from",
end: (
73,
55,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
73,
56,
),
name: "s",
end: (
73,
58,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
74,
1,
),
end: (
74,
59,
),
attributes: [],
parameters: FunctionParameterList {
start: (
74,
10,
),
end: (
74,
29,
),
members: [
FunctionParameter {
start: (
74,
11,
),
end: (
74,
28,
),
name: Variable {
start: (
74,
26,
),
name: "s",
end: (
74,
28,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
74,
11,
),
name: "Foo",
end: (
74,
14,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
74,
16,
),
name: "Bar",
end: (
74,
19,
),
},
),
Identifier(
Identifier {
start: (
74,
20,
),
name: "Baz",
end: (
74,
23,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
74,
31,
),
name: "Bar",
end: (
74,
35,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
74,
44,
),
name: "Bar",
end: (
74,
47,
),
},
),
method: Identifier(
Identifier {
start: (
74,
49,
),
name: "from",
end: (
74,
53,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
74,
54,
),
name: "s",
end: (
74,
56,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
75,
1,
),
end: (
75,
58,
),
attributes: [],
parameters: FunctionParameterList {
start: (
75,
10,
),
end: (
75,
28,
),
members: [
FunctionParameter {
start: (
75,
11,
),
end: (
75,
27,
),
name: Variable {
start: (
75,
25,
),
name: "s",
end: (
75,
27,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
75,
11,
),
name: "Foo",
end: (
75,
14,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
75,
16,
),
name: "Bar",
end: (
75,
19,
),
},
),
Identifier(
Identifier {
start: (
75,
20,
),
name: "Baz",
end: (
75,
23,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
75,
30,
),
name: "Bar",
end: (
75,
34,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
75,
43,
),
name: "Bar",
end: (
75,
46,
),
},
),
method: Identifier(
Identifier {
start: (
75,
48,
),
name: "from",
end: (
75,
52,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
75,
53,
),
name: "s",
end: (
75,
55,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
76,
1,
),
end: (
76,
48,
),
attributes: [],
parameters: FunctionParameterList {
start: (
76,
4,
),
end: (
76,
26,
),
members: [
FunctionParameter {
start: (
76,
5,
),
end: (
76,
25,
),
name: Variable {
start: (
76,
23,
),
name: "s",
end: (
76,
25,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
76,
5,
),
name: "Foo",
end: (
76,
8,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
76,
10,
),
name: "Bar",
end: (
76,
13,
),
},
),
Identifier(
Identifier {
start: (
76,
14,
),
name: "Baz",
end: (
76,
17,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
76,
28,
),
name: "Bar",
end: (
76,
32,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
76,
35,
),
name: "Bar",
end: (
76,
38,
),
},
),
method: Identifier(
Identifier {
start: (
76,
40,
),
name: "from",
end: (
76,
44,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
76,
45,
),
name: "s",
end: (
76,
47,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
77,
1,
),
end: (
77,
47,
),
attributes: [],
parameters: FunctionParameterList {
start: (
77,
4,
),
end: (
77,
25,
),
members: [
FunctionParameter {
start: (
77,
5,
),
end: (
77,
24,
),
name: Variable {
start: (
77,
22,
),
name: "s",
end: (
77,
24,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
77,
5,
),
name: "Foo",
end: (
77,
8,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
77,
10,
),
name: "Bar",
end: (
77,
13,
),
},
),
Identifier(
Identifier {
start: (
77,
14,
),
name: "Baz",
end: (
77,
17,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
77,
27,
),
name: "Bar",
end: (
77,
31,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
77,
34,
),
name: "Bar",
end: (
77,
37,
),
},
),
method: Identifier(
Identifier {
start: (
77,
39,
),
name: "from",
end: (
77,
43,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
77,
44,
),
name: "s",
end: (
77,
46,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
78,
1,
),
end: (
78,
45,
),
attributes: [],
parameters: FunctionParameterList {
start: (
78,
4,
),
end: (
78,
23,
),
members: [
FunctionParameter {
start: (
78,
5,
),
end: (
78,
22,
),
name: Variable {
start: (
78,
20,
),
name: "s",
end: (
78,
22,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
78,
5,
),
name: "Foo",
end: (
78,
8,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
78,
10,
),
name: "Bar",
end: (
78,
13,
),
},
),
Identifier(
Identifier {
start: (
78,
14,
),
name: "Baz",
end: (
78,
17,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
78,
25,
),
name: "Bar",
end: (
78,
29,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
78,
32,
),
name: "Bar",
end: (
78,
35,
),
},
),
method: Identifier(
Identifier {
start: (
78,
37,
),
name: "from",
end: (
78,
41,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
78,
42,
),
name: "s",
end: (
78,
44,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: ArrowFunction(
ArrowFunction {
start: (
79,
1,
),
end: (
79,
44,
),
attributes: [],
parameters: FunctionParameterList {
start: (
79,
4,
),
end: (
79,
22,
),
members: [
FunctionParameter {
start: (
79,
5,
),
end: (
79,
21,
),
name: Variable {
start: (
79,
19,
),
name: "s",
end: (
79,
21,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
79,
5,
),
name: "Foo",
end: (
79,
8,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
79,
10,
),
name: "Bar",
end: (
79,
13,
),
},
),
Identifier(
Identifier {
start: (
79,
14,
),
name: "Baz",
end: (
79,
17,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
79,
24,
),
name: "Bar",
end: (
79,
28,
),
},
),
),
by_ref: false,
body: StaticMethodCall {
target: Identifier(
Identifier {
start: (
79,
31,
),
name: "Bar",
end: (
79,
34,
),
},
),
method: Identifier(
Identifier {
start: (
79,
36,
),
name: "from",
end: (
79,
40,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
79,
41,
),
name: "s",
end: (
79,
43,
),
},
),
unpack: false,
},
],
},
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
80,
1,
),
end: (
80,
62,
),
attributes: [],
parameters: FunctionParameterList {
start: (
80,
10,
),
end: (
80,
32,
),
members: [
FunctionParameter {
start: (
80,
11,
),
end: (
80,
31,
),
name: Variable {
start: (
80,
29,
),
name: "s",
end: (
80,
31,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
80,
11,
),
name: "Foo",
end: (
80,
14,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
80,
16,
),
name: "Bar",
end: (
80,
19,
),
},
),
Identifier(
Identifier {
start: (
80,
20,
),
name: "Baz",
end: (
80,
23,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
80,
34,
),
name: "Bar",
end: (
80,
38,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
80,
47,
),
name: "Bar",
end: (
80,
50,
),
},
),
method: Identifier(
Identifier {
start: (
80,
52,
),
name: "from",
end: (
80,
56,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
80,
57,
),
name: "s",
end: (
80,
59,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
81,
1,
),
end: (
81,
61,
),
attributes: [],
parameters: FunctionParameterList {
start: (
81,
10,
),
end: (
81,
31,
),
members: [
FunctionParameter {
start: (
81,
11,
),
end: (
81,
30,
),
name: Variable {
start: (
81,
28,
),
name: "s",
end: (
81,
30,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
81,
11,
),
name: "Foo",
end: (
81,
14,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
81,
16,
),
name: "Bar",
end: (
81,
19,
),
},
),
Identifier(
Identifier {
start: (
81,
20,
),
name: "Baz",
end: (
81,
23,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
81,
33,
),
name: "Bar",
end: (
81,
37,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
81,
46,
),
name: "Bar",
end: (
81,
49,
),
},
),
method: Identifier(
Identifier {
start: (
81,
51,
),
name: "from",
end: (
81,
55,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
81,
56,
),
name: "s",
end: (
81,
58,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
82,
1,
),
end: (
82,
59,
),
attributes: [],
parameters: FunctionParameterList {
start: (
82,
10,
),
end: (
82,
29,
),
members: [
FunctionParameter {
start: (
82,
11,
),
end: (
82,
28,
),
name: Variable {
start: (
82,
26,
),
name: "s",
end: (
82,
28,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
82,
11,
),
name: "Foo",
end: (
82,
14,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
82,
16,
),
name: "Bar",
end: (
82,
19,
),
},
),
Identifier(
Identifier {
start: (
82,
20,
),
name: "Baz",
end: (
82,
23,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
82,
31,
),
name: "Bar",
end: (
82,
35,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
82,
44,
),
name: "Bar",
end: (
82,
47,
),
},
),
method: Identifier(
Identifier {
start: (
82,
49,
),
name: "from",
end: (
82,
53,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
82,
54,
),
name: "s",
end: (
82,
56,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Expression {
expr: Closure(
Closure {
start: (
83,
1,
),
end: (
83,
58,
),
attributes: [],
parameters: FunctionParameterList {
start: (
83,
10,
),
end: (
83,
28,
),
members: [
FunctionParameter {
start: (
83,
11,
),
end: (
83,
27,
),
name: Variable {
start: (
83,
25,
),
name: "s",
end: (
83,
27,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
83,
11,
),
name: "Foo",
end: (
83,
14,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
83,
16,
),
name: "Bar",
end: (
83,
19,
),
},
),
Identifier(
Identifier {
start: (
83,
20,
),
name: "Baz",
end: (
83,
23,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_ty: Some(
Identifier(
Identifier {
start: (
83,
30,
),
name: "Bar",
end: (
83,
34,
),
},
),
),
uses: [],
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
83,
43,
),
name: "Bar",
end: (
83,
46,
),
},
),
method: Identifier(
Identifier {
start: (
83,
48,
),
name: "from",
end: (
83,
52,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
83,
53,
),
name: "s",
end: (
83,
55,
),
},
),
unpack: false,
},
],
},
),
},
],
static: false,
},
),
},
Function(
Function {
start: (
85,
1,
),
end: (
85,
55,
),
name: Identifier {
start: (
85,
10,
),
name: "foo",
end: (
85,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
85,
13,
),
end: (
85,
25,
),
members: [
FunctionParameter {
start: (
85,
14,
),
end: (
85,
24,
),
name: Variable {
start: (
85,
22,
),
name: "s",
end: (
85,
24,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
85,
14,
),
name: "Foo",
end: (
85,
18,
),
},
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
85,
27,
),
name: "Bar",
end: (
85,
31,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
85,
40,
),
name: "Bar",
end: (
85,
43,
),
},
),
method: Identifier(
Identifier {
start: (
85,
45,
),
name: "from",
end: (
85,
49,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
85,
50,
),
name: "s",
end: (
85,
52,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
86,
1,
),
end: (
86,
54,
),
name: Identifier {
start: (
86,
10,
),
name: "foo",
end: (
86,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
86,
13,
),
end: (
86,
24,
),
members: [
FunctionParameter {
start: (
86,
14,
),
end: (
86,
23,
),
name: Variable {
start: (
86,
21,
),
name: "s",
end: (
86,
23,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
86,
14,
),
name: "Foo",
end: (
86,
18,
),
},
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
86,
26,
),
name: "Bar",
end: (
86,
30,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
86,
39,
),
name: "Bar",
end: (
86,
42,
),
},
),
method: Identifier(
Identifier {
start: (
86,
44,
),
name: "from",
end: (
86,
48,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
86,
49,
),
name: "s",
end: (
86,
51,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
87,
1,
),
end: (
87,
52,
),
name: Identifier {
start: (
87,
10,
),
name: "foo",
end: (
87,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
87,
13,
),
end: (
87,
22,
),
members: [
FunctionParameter {
start: (
87,
14,
),
end: (
87,
21,
),
name: Variable {
start: (
87,
19,
),
name: "s",
end: (
87,
21,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
87,
14,
),
name: "Foo",
end: (
87,
18,
),
},
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
87,
24,
),
name: "Bar",
end: (
87,
28,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
87,
37,
),
name: "Bar",
end: (
87,
40,
),
},
),
method: Identifier(
Identifier {
start: (
87,
42,
),
name: "from",
end: (
87,
46,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
87,
47,
),
name: "s",
end: (
87,
49,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
88,
1,
),
end: (
88,
51,
),
name: Identifier {
start: (
88,
10,
),
name: "foo",
end: (
88,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
88,
13,
),
end: (
88,
21,
),
members: [
FunctionParameter {
start: (
88,
14,
),
end: (
88,
20,
),
name: Variable {
start: (
88,
18,
),
name: "s",
end: (
88,
20,
),
},
attributes: [],
type: Some(
Identifier(
Identifier {
start: (
88,
14,
),
name: "Foo",
end: (
88,
18,
),
},
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
88,
23,
),
name: "Bar",
end: (
88,
27,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
88,
36,
),
name: "Bar",
end: (
88,
39,
),
},
),
method: Identifier(
Identifier {
start: (
88,
41,
),
name: "from",
end: (
88,
45,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
88,
46,
),
name: "s",
end: (
88,
48,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
89,
1,
),
end: (
89,
63,
),
name: Identifier {
start: (
89,
10,
),
name: "foo",
end: (
89,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
89,
13,
),
end: (
89,
33,
),
members: [
FunctionParameter {
start: (
89,
14,
),
end: (
89,
32,
),
name: Variable {
start: (
89,
30,
),
name: "s",
end: (
89,
32,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
89,
14,
),
name: "Foo",
end: (
89,
17,
),
},
),
Identifier(
Identifier {
start: (
89,
18,
),
name: "Bar",
end: (
89,
21,
),
},
),
Identifier(
Identifier {
start: (
89,
22,
),
name: "Baz",
end: (
89,
26,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
89,
35,
),
name: "Bar",
end: (
89,
39,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
89,
48,
),
name: "Bar",
end: (
89,
51,
),
},
),
method: Identifier(
Identifier {
start: (
89,
53,
),
name: "from",
end: (
89,
57,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
89,
58,
),
name: "s",
end: (
89,
60,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
90,
1,
),
end: (
90,
62,
),
name: Identifier {
start: (
90,
10,
),
name: "foo",
end: (
90,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
90,
13,
),
end: (
90,
32,
),
members: [
FunctionParameter {
start: (
90,
14,
),
end: (
90,
31,
),
name: Variable {
start: (
90,
29,
),
name: "s",
end: (
90,
31,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
90,
14,
),
name: "Foo",
end: (
90,
17,
),
},
),
Identifier(
Identifier {
start: (
90,
18,
),
name: "Bar",
end: (
90,
21,
),
},
),
Identifier(
Identifier {
start: (
90,
22,
),
name: "Baz",
end: (
90,
26,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
90,
34,
),
name: "Bar",
end: (
90,
38,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
90,
47,
),
name: "Bar",
end: (
90,
50,
),
},
),
method: Identifier(
Identifier {
start: (
90,
52,
),
name: "from",
end: (
90,
56,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
90,
57,
),
name: "s",
end: (
90,
59,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
91,
1,
),
end: (
91,
60,
),
name: Identifier {
start: (
91,
10,
),
name: "foo",
end: (
91,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
91,
13,
),
end: (
91,
30,
),
members: [
FunctionParameter {
start: (
91,
14,
),
end: (
91,
29,
),
name: Variable {
start: (
91,
27,
),
name: "s",
end: (
91,
29,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
91,
14,
),
name: "Foo",
end: (
91,
17,
),
},
),
Identifier(
Identifier {
start: (
91,
18,
),
name: "Bar",
end: (
91,
21,
),
},
),
Identifier(
Identifier {
start: (
91,
22,
),
name: "Baz",
end: (
91,
26,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
91,
32,
),
name: "Bar",
end: (
91,
36,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
91,
45,
),
name: "Bar",
end: (
91,
48,
),
},
),
method: Identifier(
Identifier {
start: (
91,
50,
),
name: "from",
end: (
91,
54,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
91,
55,
),
name: "s",
end: (
91,
57,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
92,
1,
),
end: (
92,
59,
),
name: Identifier {
start: (
92,
10,
),
name: "foo",
end: (
92,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
92,
13,
),
end: (
92,
29,
),
members: [
FunctionParameter {
start: (
92,
14,
),
end: (
92,
28,
),
name: Variable {
start: (
92,
26,
),
name: "s",
end: (
92,
28,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
92,
14,
),
name: "Foo",
end: (
92,
17,
),
},
),
Identifier(
Identifier {
start: (
92,
18,
),
name: "Bar",
end: (
92,
21,
),
},
),
Identifier(
Identifier {
start: (
92,
22,
),
name: "Baz",
end: (
92,
26,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
92,
31,
),
name: "Bar",
end: (
92,
35,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
92,
44,
),
name: "Bar",
end: (
92,
47,
),
},
),
method: Identifier(
Identifier {
start: (
92,
49,
),
name: "from",
end: (
92,
53,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
92,
54,
),
name: "s",
end: (
92,
56,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
93,
1,
),
end: (
93,
63,
),
name: Identifier {
start: (
93,
10,
),
name: "foo",
end: (
93,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
93,
13,
),
end: (
93,
33,
),
members: [
FunctionParameter {
start: (
93,
14,
),
end: (
93,
32,
),
name: Variable {
start: (
93,
30,
),
name: "s",
end: (
93,
32,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
93,
14,
),
name: "Foo",
end: (
93,
17,
),
},
),
Identifier(
Identifier {
start: (
93,
18,
),
name: "Bar",
end: (
93,
21,
),
},
),
Identifier(
Identifier {
start: (
93,
22,
),
name: "Baz",
end: (
93,
26,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
93,
35,
),
name: "Bar",
end: (
93,
39,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
93,
48,
),
name: "Bar",
end: (
93,
51,
),
},
),
method: Identifier(
Identifier {
start: (
93,
53,
),
name: "from",
end: (
93,
57,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
93,
58,
),
name: "s",
end: (
93,
60,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
94,
1,
),
end: (
94,
62,
),
name: Identifier {
start: (
94,
10,
),
name: "foo",
end: (
94,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
94,
13,
),
end: (
94,
32,
),
members: [
FunctionParameter {
start: (
94,
14,
),
end: (
94,
31,
),
name: Variable {
start: (
94,
29,
),
name: "s",
end: (
94,
31,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
94,
14,
),
name: "Foo",
end: (
94,
17,
),
},
),
Identifier(
Identifier {
start: (
94,
18,
),
name: "Bar",
end: (
94,
21,
),
},
),
Identifier(
Identifier {
start: (
94,
22,
),
name: "Baz",
end: (
94,
26,
),
},
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
94,
34,
),
name: "Bar",
end: (
94,
38,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
94,
47,
),
name: "Bar",
end: (
94,
50,
),
},
),
method: Identifier(
Identifier {
start: (
94,
52,
),
name: "from",
end: (
94,
56,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
94,
57,
),
name: "s",
end: (
94,
59,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
95,
1,
),
end: (
95,
60,
),
name: Identifier {
start: (
95,
10,
),
name: "foo",
end: (
95,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
95,
13,
),
end: (
95,
30,
),
members: [
FunctionParameter {
start: (
95,
14,
),
end: (
95,
29,
),
name: Variable {
start: (
95,
27,
),
name: "s",
end: (
95,
29,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
95,
14,
),
name: "Foo",
end: (
95,
17,
),
},
),
Identifier(
Identifier {
start: (
95,
18,
),
name: "Bar",
end: (
95,
21,
),
},
),
Identifier(
Identifier {
start: (
95,
22,
),
name: "Baz",
end: (
95,
26,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
95,
32,
),
name: "Bar",
end: (
95,
36,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
95,
45,
),
name: "Bar",
end: (
95,
48,
),
},
),
method: Identifier(
Identifier {
start: (
95,
50,
),
name: "from",
end: (
95,
54,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
95,
55,
),
name: "s",
end: (
95,
57,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
96,
1,
),
end: (
96,
59,
),
name: Identifier {
start: (
96,
10,
),
name: "foo",
end: (
96,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
96,
13,
),
end: (
96,
29,
),
members: [
FunctionParameter {
start: (
96,
14,
),
end: (
96,
28,
),
name: Variable {
start: (
96,
26,
),
name: "s",
end: (
96,
28,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
96,
14,
),
name: "Foo",
end: (
96,
17,
),
},
),
Identifier(
Identifier {
start: (
96,
18,
),
name: "Bar",
end: (
96,
21,
),
},
),
Identifier(
Identifier {
start: (
96,
22,
),
name: "Baz",
end: (
96,
26,
),
},
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
96,
31,
),
name: "Bar",
end: (
96,
35,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
96,
44,
),
name: "Bar",
end: (
96,
47,
),
},
),
method: Identifier(
Identifier {
start: (
96,
49,
),
name: "from",
end: (
96,
53,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
96,
54,
),
name: "s",
end: (
96,
56,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
97,
1,
),
end: (
97,
65,
),
name: Identifier {
start: (
97,
10,
),
name: "foo",
end: (
97,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
97,
13,
),
end: (
97,
35,
),
members: [
FunctionParameter {
start: (
97,
14,
),
end: (
97,
34,
),
name: Variable {
start: (
97,
32,
),
name: "s",
end: (
97,
34,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
97,
14,
),
name: "Foo",
end: (
97,
17,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
97,
19,
),
name: "Bar",
end: (
97,
22,
),
},
),
Identifier(
Identifier {
start: (
97,
23,
),
name: "Baz",
end: (
97,
26,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
97,
37,
),
name: "Bar",
end: (
97,
41,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
97,
50,
),
name: "Bar",
end: (
97,
53,
),
},
),
method: Identifier(
Identifier {
start: (
97,
55,
),
name: "from",
end: (
97,
59,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
97,
60,
),
name: "s",
end: (
97,
62,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
98,
1,
),
end: (
98,
64,
),
name: Identifier {
start: (
98,
10,
),
name: "foo",
end: (
98,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
98,
13,
),
end: (
98,
34,
),
members: [
FunctionParameter {
start: (
98,
14,
),
end: (
98,
33,
),
name: Variable {
start: (
98,
31,
),
name: "s",
end: (
98,
33,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
98,
14,
),
name: "Foo",
end: (
98,
17,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
98,
19,
),
name: "Bar",
end: (
98,
22,
),
},
),
Identifier(
Identifier {
start: (
98,
23,
),
name: "Baz",
end: (
98,
26,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
98,
36,
),
name: "Bar",
end: (
98,
40,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
98,
49,
),
name: "Bar",
end: (
98,
52,
),
},
),
method: Identifier(
Identifier {
start: (
98,
54,
),
name: "from",
end: (
98,
58,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
98,
59,
),
name: "s",
end: (
98,
61,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
99,
1,
),
end: (
99,
62,
),
name: Identifier {
start: (
99,
10,
),
name: "foo",
end: (
99,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
99,
13,
),
end: (
99,
32,
),
members: [
FunctionParameter {
start: (
99,
14,
),
end: (
99,
31,
),
name: Variable {
start: (
99,
29,
),
name: "s",
end: (
99,
31,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
99,
14,
),
name: "Foo",
end: (
99,
17,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
99,
19,
),
name: "Bar",
end: (
99,
22,
),
},
),
Identifier(
Identifier {
start: (
99,
23,
),
name: "Baz",
end: (
99,
26,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
99,
34,
),
name: "Bar",
end: (
99,
38,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
99,
47,
),
name: "Bar",
end: (
99,
50,
),
},
),
method: Identifier(
Identifier {
start: (
99,
52,
),
name: "from",
end: (
99,
56,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
99,
57,
),
name: "s",
end: (
99,
59,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
100,
1,
),
end: (
100,
61,
),
name: Identifier {
start: (
100,
10,
),
name: "foo",
end: (
100,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
100,
13,
),
end: (
100,
31,
),
members: [
FunctionParameter {
start: (
100,
14,
),
end: (
100,
30,
),
name: Variable {
start: (
100,
28,
),
name: "s",
end: (
100,
30,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
100,
14,
),
name: "Foo",
end: (
100,
17,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
100,
19,
),
name: "Bar",
end: (
100,
22,
),
},
),
Identifier(
Identifier {
start: (
100,
23,
),
name: "Baz",
end: (
100,
26,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
100,
33,
),
name: "Bar",
end: (
100,
37,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
100,
46,
),
name: "Bar",
end: (
100,
49,
),
},
),
method: Identifier(
Identifier {
start: (
100,
51,
),
name: "from",
end: (
100,
55,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
100,
56,
),
name: "s",
end: (
100,
58,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
101,
1,
),
end: (
101,
65,
),
name: Identifier {
start: (
101,
10,
),
name: "foo",
end: (
101,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
101,
13,
),
end: (
101,
35,
),
members: [
FunctionParameter {
start: (
101,
14,
),
end: (
101,
34,
),
name: Variable {
start: (
101,
32,
),
name: "s",
end: (
101,
34,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
101,
14,
),
name: "Foo",
end: (
101,
17,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
101,
19,
),
name: "Bar",
end: (
101,
22,
),
},
),
Identifier(
Identifier {
start: (
101,
23,
),
name: "Baz",
end: (
101,
26,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
101,
37,
),
name: "Bar",
end: (
101,
41,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
101,
50,
),
name: "Bar",
end: (
101,
53,
),
},
),
method: Identifier(
Identifier {
start: (
101,
55,
),
name: "from",
end: (
101,
59,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
101,
60,
),
name: "s",
end: (
101,
62,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
102,
1,
),
end: (
102,
64,
),
name: Identifier {
start: (
102,
10,
),
name: "foo",
end: (
102,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
102,
13,
),
end: (
102,
34,
),
members: [
FunctionParameter {
start: (
102,
14,
),
end: (
102,
33,
),
name: Variable {
start: (
102,
31,
),
name: "s",
end: (
102,
33,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
102,
14,
),
name: "Foo",
end: (
102,
17,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
102,
19,
),
name: "Bar",
end: (
102,
22,
),
},
),
Identifier(
Identifier {
start: (
102,
23,
),
name: "Baz",
end: (
102,
26,
),
},
),
],
),
],
),
),
variadic: true,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
102,
36,
),
name: "Bar",
end: (
102,
40,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
102,
49,
),
name: "Bar",
end: (
102,
52,
),
},
),
method: Identifier(
Identifier {
start: (
102,
54,
),
name: "from",
end: (
102,
58,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
102,
59,
),
name: "s",
end: (
102,
61,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
103,
1,
),
end: (
103,
62,
),
name: Identifier {
start: (
103,
10,
),
name: "foo",
end: (
103,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
103,
13,
),
end: (
103,
32,
),
members: [
FunctionParameter {
start: (
103,
14,
),
end: (
103,
31,
),
name: Variable {
start: (
103,
29,
),
name: "s",
end: (
103,
31,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
103,
14,
),
name: "Foo",
end: (
103,
17,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
103,
19,
),
name: "Bar",
end: (
103,
22,
),
},
),
Identifier(
Identifier {
start: (
103,
23,
),
name: "Baz",
end: (
103,
26,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: true,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
103,
34,
),
name: "Bar",
end: (
103,
38,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
103,
47,
),
name: "Bar",
end: (
103,
50,
),
},
),
method: Identifier(
Identifier {
start: (
103,
52,
),
name: "from",
end: (
103,
56,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
103,
57,
),
name: "s",
end: (
103,
59,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
Function(
Function {
start: (
104,
1,
),
end: (
104,
61,
),
name: Identifier {
start: (
104,
10,
),
name: "foo",
end: (
104,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
104,
13,
),
end: (
104,
31,
),
members: [
FunctionParameter {
start: (
104,
14,
),
end: (
104,
30,
),
name: Variable {
start: (
104,
28,
),
name: "s",
end: (
104,
30,
),
},
attributes: [],
type: Some(
Intersection(
[
Identifier(
Identifier {
start: (
104,
14,
),
name: "Foo",
end: (
104,
17,
),
},
),
Union(
[
Identifier(
Identifier {
start: (
104,
19,
),
name: "Bar",
end: (
104,
22,
),
},
),
Identifier(
Identifier {
start: (
104,
23,
),
name: "Baz",
end: (
104,
26,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: Some(
Identifier(
Identifier {
start: (
104,
33,
),
name: "Bar",
end: (
104,
37,
),
},
),
),
by_ref: false,
body: [
Return {
value: Some(
StaticMethodCall {
target: Identifier(
Identifier {
start: (
104,
46,
),
name: "Bar",
end: (
104,
49,
),
},
),
method: Identifier(
Identifier {
start: (
104,
51,
),
name: "from",
end: (
104,
55,
),
},
),
args: [
Arg {
name: None,
value: Variable(
Variable {
start: (
104,
56,
),
name: "s",
end: (
104,
58,
),
},
),
unpack: false,
},
],
},
),
},
],
},
),
]