mirror of
https://github.com/danog/parser.git
synced 2024-12-02 17:38:16 +01:00
155 lines
5.1 KiB
Plaintext
155 lines
5.1 KiB
Plaintext
|
[
|
||
|
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,
|
||
|
},
|
||
|
]
|