1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
source: xee-xpath-compiler/src/ast_ir.rs
expression: "convert_expr_single(\"function($x) { $x + 1 }\")"
---
Ok(
Spanned {
value: FunctionDefinition(
FunctionDefinition {
params: [
Param {
name: Name(
"v0",
),
type_: None,
},
],
return_type: None,
body: Spanned {
value: Binary(
Binary {
left: Spanned {
value: Variable(
Name(
"v0",
),
),
span: 15..17,
},
op: Add,
right: Spanned {
value: Const(
Integer(
1,
),
),
span: 20..21,
},
},
),
span: 15..21,
},
},
),
span: 0..23,
},
)