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

76 lines
2.0 KiB
Plaintext

[
Function(
Function {
start: (
1,
7,
),
end: (
1,
42,
),
name: Identifier {
start: (
1,
16,
),
name: "foo",
end: (
1,
19,
),
},
attributes: [],
parameters: FunctionParameterList {
start: (
1,
19,
),
end: (
1,
41,
),
members: [
FunctionParameter {
start: (
1,
20,
),
end: (
1,
39,
),
name: Variable {
start: (
1,
37,
),
name: "b",
end: (
1,
39,
),
},
attributes: [],
type: Some(
Union(
[
String,
Integer,
Float,
],
),
),
variadic: false,
default: None,
by_ref: false,
},
],
},
return_type: None,
by_ref: false,
body: [],
},
),
]