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
---
source: crates/vicuna-compiler/src/parser.rs
expression: "statement().parse(\"let a = if b { 10 } else { 20 }\")"
---
Ok:
- Let:
- - a
- start: 3
end: 6
- - If:
condition:
- Variable: b
- start: 11
end: 13
then_block:
- stmts: []
end_expr:
- Value:
I32: 10
- start: 15
end: 17
- start: 13
end: 20
else_block:
- stmts: []
end_expr:
- Value:
I32: 20
- start: 27
end: 29
- start: 24
end: 31
- start: 7
end: 31
- start: 0
end: 31