parser/tests/fixtures/0177/ast.txt
2022-12-06 09:51:13 +01:00

126 lines
3.6 KiB
Plaintext

[
Function(
Function {
start: (
3,
1,
),
end: (
7,
4,
),
name: Identifier {
start: (
3,
10,
),
name: "foo",
end: (
3,
13,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
3,
13,
),
end: (
7,
3,
),
members: [
FunctionParameter {
start: (
4,
5,
),
end: (
4,
14,
),
name: Variable {
start: (
4,
12,
),
name: "a",
end: (
4,
14,
),
},
attributes: [],
type: Some(
String,
),
variadic: false,
default: None,
by_ref: false,
},
FunctionParameter {
start: (
5,
5,
),
end: (
5,
13,
),
name: Variable {
start: (
5,
9,
),
name: "bar",
end: (
5,
13,
),
},
attributes: [],
type: Some(
Integer,
),
variadic: false,
default: None,
by_ref: false,
},
FunctionParameter {
start: (
6,
5,
),
end: (
7,
1,
),
name: Variable {
start: (
6,
11,
),
name: "baz",
end: (
7,
1,
),
},
attributes: [],
type: Some(
Float,
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: None,
by_ref: false,
body: [],
},
),
]