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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
source: kcl-lib/src/parsing/parser.rs
expression: actual
---
{
"body": [
{
"commentStart": 0,
"declaration": {
"commentStart": 0,
"end": 68,
"id": {
"commentStart": 0,
"end": 1,
"moduleId": 0,
"name": "x",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 4,
"cond": {
"commentStart": 7,
"end": 11,
"moduleId": 0,
"raw": "true",
"start": 7,
"type": "Literal",
"type": "Literal",
"value": true
},
"digest": null,
"else_ifs": [],
"end": 68,
"final_else": {
"body": [
{
"commentStart": 57,
"end": 58,
"expression": {
"commentStart": 57,
"end": 58,
"moduleId": 0,
"raw": "4",
"start": 57,
"type": "Literal",
"type": "Literal",
"value": {
"value": 4.0,
"suffix": "None"
}
},
"moduleId": 0,
"start": 57,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
}
],
"commentStart": 57,
"end": 67,
"moduleId": 0,
"start": 57
},
"moduleId": 0,
"start": 4,
"then_val": {
"body": [
{
"commentStart": 26,
"end": 27,
"expression": {
"commentStart": 26,
"end": 27,
"moduleId": 0,
"raw": "3",
"start": 26,
"type": "Literal",
"type": "Literal",
"value": {
"value": 3.0,
"suffix": "None"
}
},
"moduleId": 0,
"start": 26,
"type": "ExpressionStatement",
"type": "ExpressionStatement"
}
],
"commentStart": 26,
"end": 36,
"moduleId": 0,
"start": 26
},
"type": "IfExpression",
"type": "IfExpression"
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 68,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
"commentStart": 0,
"end": 68,
"moduleId": 0,
"start": 0
}