parser/tests/fixtures/0176/ast.txt
Saif Eddin Gmati 6a6d4d0e5f
chore: refactor ident and dynamic var parsers (#192)
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-10 15:24:55 +01:00

110 lines
3.1 KiB
Plaintext

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