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
115
116
117
118
119
120
---
source: kcl-lib/src/parsing/parser.rs
expression: actual
---
{
"body": [
{
"commentStart": 0,
"declaration": {
"commentStart": 0,
"end": 27,
"id": {
"commentStart": 0,
"end": 5,
"moduleId": 0,
"name": "myVar",
"start": 0,
"type": "Identifier"
},
"init": {
"body": [
{
"commentStart": 8,
"end": 13,
"left": {
"commentStart": 8,
"end": 9,
"moduleId": 0,
"raw": "5",
"start": 8,
"type": "Literal",
"type": "Literal",
"value": {
"value": 5.0,
"suffix": "None"
}
},
"moduleId": 0,
"operator": "+",
"right": {
"commentStart": 12,
"end": 13,
"moduleId": 0,
"raw": "6",
"start": 12,
"type": "Literal",
"type": "Literal",
"value": {
"value": 6.0,
"suffix": "None"
}
},
"start": 8,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"arguments": [],
"callee": {
"abs_path": false,
"commentStart": 17,
"end": 23,
"moduleId": 0,
"name": {
"commentStart": 17,
"end": 23,
"moduleId": 0,
"name": "myFunc",
"start": 17,
"type": "Identifier"
},
"path": [],
"start": 17,
"type": "Name"
},
"commentStart": 17,
"end": 27,
"moduleId": 0,
"start": 17,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"commentStart": 24,
"end": 26,
"moduleId": 0,
"raw": "45",
"start": 24,
"type": "Literal",
"type": "Literal",
"value": {
"value": 45.0,
"suffix": "None"
}
}
}
],
"commentStart": 8,
"end": 27,
"moduleId": 0,
"start": 8,
"type": "PipeExpression",
"type": "PipeExpression"
},
"moduleId": 0,
"start": 0,
"type": "VariableDeclarator"
},
"end": 27,
"kind": "const",
"moduleId": 0,
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
"commentStart": 0,
"end": 27,
"moduleId": 0,
"start": 0
}