parser/tests/fixtures/0251/ast.txt

155 lines
5.1 KiB
Plaintext
Raw Normal View History

[
Function {
name: Identifier {
start: (
3,
10,
),
name: "bar",
end: (
3,
13,
),
},
attributes: [],
params: [
Param {
name: Variable {
start: (
4,
13,
),
name: "i",
end: (
5,
1,
),
},
attributes: [],
type: Some(
Union(
[
Identifier(
Identifier {
start: (
4,
5,
),
name: "A",
end: (
4,
6,
),
},
),
Intersection(
[
Identifier(
Identifier {
start: (
4,
8,
),
name: "B",
end: (
4,
9,
),
},
),
Identifier(
Identifier {
start: (
4,
10,
),
name: "C",
end: (
4,
11,
),
},
),
],
),
],
),
),
variadic: false,
default: None,
flags: [],
by_ref: false,
},
],
body: [
Return {
value: Some(
Variable(
Variable {
start: (
6,
12,
),
name: "i",
end: (
6,
14,
),
},
),
),
},
],
return_type: Some(
Union(
[
Intersection(
[
Identifier(
Identifier {
start: (
5,
5,
),
name: "B",
end: (
5,
6,
),
},
),
Identifier(
Identifier {
start: (
5,
7,
),
name: "C",
end: (
5,
8,
),
},
),
],
),
Identifier(
Identifier {
start: (
5,
10,
),
name: "A",
end: (
5,
12,
),
},
),
],
),
),
by_ref: false,
},
]