@lcap/nasl 3.8.2-beta.9 → 3.8.3-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/ai-engineer.config.js +617 -0
  2. package/out/common/BaseNode.d.ts +9 -4
  3. package/out/common/BaseNode.js +43 -10
  4. package/out/common/BaseNode.js.map +1 -1
  5. package/out/concepts/AuthLogicForCallInterface__.js +2 -50
  6. package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
  7. package/out/concepts/BackendVariable__.js +16 -1
  8. package/out/concepts/BackendVariable__.js.map +1 -1
  9. package/out/concepts/BindAttribute__.js +12 -4
  10. package/out/concepts/BindAttribute__.js.map +1 -1
  11. package/out/concepts/BindDirective__.js +1 -1
  12. package/out/concepts/BindDirective__.js.map +1 -1
  13. package/out/concepts/BindStyle__.js +1 -1
  14. package/out/concepts/BindStyle__.js.map +1 -1
  15. package/out/concepts/BusinessComponent__.js +2 -42
  16. package/out/concepts/BusinessComponent__.js.map +1 -1
  17. package/out/concepts/BusinessLogic__.js +2 -50
  18. package/out/concepts/BusinessLogic__.js.map +1 -1
  19. package/out/concepts/CallFunction__.d.ts +1 -1
  20. package/out/concepts/CallFunction__.js +1 -1
  21. package/out/concepts/CallLogic__.js +7 -1
  22. package/out/concepts/CallLogic__.js.map +1 -1
  23. package/out/concepts/CallQueryComponent__.d.ts +1 -0
  24. package/out/concepts/CallQueryComponent__.js +23 -12
  25. package/out/concepts/CallQueryComponent__.js.map +1 -1
  26. package/out/concepts/Destination__.js +11 -8
  27. package/out/concepts/Destination__.js.map +1 -1
  28. package/out/concepts/EntityProperty__.js +3 -2
  29. package/out/concepts/EntityProperty__.js.map +1 -1
  30. package/out/concepts/Entity__.js +1 -1
  31. package/out/concepts/Entity__.js.map +1 -1
  32. package/out/concepts/Identifier__.d.ts +2 -0
  33. package/out/concepts/Identifier__.js +51 -5
  34. package/out/concepts/Identifier__.js.map +1 -1
  35. package/out/concepts/Interface__.js +1 -1
  36. package/out/concepts/Interface__.js.map +1 -1
  37. package/out/concepts/Logic__.js +33 -111
  38. package/out/concepts/Logic__.js.map +1 -1
  39. package/out/concepts/MemberExpression__.d.ts +1 -1
  40. package/out/concepts/MemberExpression__.js +15 -3
  41. package/out/concepts/MemberExpression__.js.map +1 -1
  42. package/out/concepts/OqlQueryComponent__.js +37 -12
  43. package/out/concepts/OqlQueryComponent__.js.map +1 -1
  44. package/out/concepts/OverriddenLogic__.js +2 -50
  45. package/out/concepts/OverriddenLogic__.js.map +1 -1
  46. package/out/concepts/Param__.js +5 -4
  47. package/out/concepts/Param__.js.map +1 -1
  48. package/out/concepts/ProcessElementV2__.js +4 -0
  49. package/out/concepts/ProcessElementV2__.js.map +1 -1
  50. package/out/concepts/ProcessElement__.js +4 -0
  51. package/out/concepts/ProcessElement__.js.map +1 -1
  52. package/out/concepts/ProcessV2__.js +4 -0
  53. package/out/concepts/ProcessV2__.js.map +1 -1
  54. package/out/concepts/Process__.js +4 -0
  55. package/out/concepts/Process__.js.map +1 -1
  56. package/out/concepts/QueryOrderByExpression__.d.ts +0 -1
  57. package/out/concepts/QueryOrderByExpression__.js +0 -1
  58. package/out/concepts/QueryOrderByExpression__.js.map +1 -1
  59. package/out/concepts/Structure__.js +5 -7
  60. package/out/concepts/Structure__.js.map +1 -1
  61. package/out/concepts/SubLogic__.js +5 -50
  62. package/out/concepts/SubLogic__.js.map +1 -1
  63. package/out/concepts/Variable__.js +5 -0
  64. package/out/concepts/Variable__.js.map +1 -1
  65. package/out/concepts/ViewElement__.d.ts +1 -0
  66. package/out/concepts/ViewElement__.js +16 -6
  67. package/out/concepts/ViewElement__.js.map +1 -1
  68. package/out/concepts/View__.js +48 -49
  69. package/out/concepts/View__.js.map +1 -1
  70. package/out/natural/genNaturalTS.d.ts +45 -10
  71. package/out/natural/genNaturalTS.js +57 -33
  72. package/out/natural/genNaturalTS.js.map +1 -1
  73. package/out/natural/getContext/getUILib.js +6 -3
  74. package/out/natural/getContext/getUILib.js.map +1 -1
  75. package/out/natural/getContext/index.d.ts +20 -7
  76. package/out/natural/getContext/index.js +143 -23
  77. package/out/natural/getContext/index.js.map +1 -1
  78. package/out/natural/getContext/naslStdlibMap.js +8 -8
  79. package/out/natural/getContext/naslStdlibMap.js.map +1 -1
  80. package/out/natural/tools.d.ts +16 -0
  81. package/out/natural/tools.js +110 -2
  82. package/out/natural/tools.js.map +1 -1
  83. package/out/natural/transformTS2UI.js +343 -292
  84. package/out/natural/transformTS2UI.js.map +1 -1
  85. package/out/natural/transformTSCode.d.ts +3 -5
  86. package/out/natural/transformTSCode.js +30 -1089
  87. package/out/natural/transformTSCode.js.map +1 -1
  88. package/out/natural/transforms/registerTransform.d.ts +7 -0
  89. package/out/natural/transforms/registerTransform.js +24 -0
  90. package/out/natural/transforms/registerTransform.js.map +1 -0
  91. package/out/natural/transforms/transform2LogicItem.d.ts +24 -0
  92. package/out/natural/transforms/transform2LogicItem.js +1240 -0
  93. package/out/natural/transforms/transform2LogicItem.js.map +1 -0
  94. package/out/natural/transforms/transform2TypeAnnotation.d.ts +2 -0
  95. package/out/natural/transforms/transform2TypeAnnotation.js +86 -0
  96. package/out/natural/transforms/transform2TypeAnnotation.js.map +1 -0
  97. package/out/natural/transforms/utils.d.ts +8 -0
  98. package/out/natural/transforms/utils.js +59 -0
  99. package/out/natural/transforms/utils.js.map +1 -0
  100. package/out/server/getLogics.js +12 -12
  101. package/out/server/getLogics.js.map +1 -1
  102. package/out/server/naslServer.d.ts +2 -2
  103. package/out/server/naslServer.js +48 -18
  104. package/out/server/naslServer.js.map +1 -1
  105. package/out/server/semanticData.d.ts +32 -0
  106. package/out/server/semanticData.js +371 -0
  107. package/out/server/semanticData.js.map +1 -0
  108. package/out/server/translator.js +5 -0
  109. package/out/server/translator.js.map +1 -1
  110. package/out/templator/block2nasl/jsx2nasl/index.d.ts +5 -0
  111. package/out/templator/block2nasl/jsx2nasl/index.js +15 -0
  112. package/out/templator/block2nasl/jsx2nasl/index.js.map +1 -0
  113. package/out/templator/block2nasl/jsx2nasl/transform-expression2nasl.d.ts +3 -0
  114. package/out/templator/block2nasl/jsx2nasl/transform-expression2nasl.js +213 -0
  115. package/out/templator/block2nasl/jsx2nasl/transform-expression2nasl.js.map +1 -0
  116. package/out/templator/block2nasl/jsx2nasl/transform-func2nasl.d.ts +14 -0
  117. package/out/templator/block2nasl/jsx2nasl/transform-func2nasl.js +201 -0
  118. package/out/templator/block2nasl/jsx2nasl/transform-func2nasl.js.map +1 -0
  119. package/out/templator/block2nasl/jsx2nasl/transform-tstype2nasl.d.ts +4 -0
  120. package/out/templator/block2nasl/jsx2nasl/transform-tstype2nasl.js +186 -0
  121. package/out/templator/block2nasl/jsx2nasl/transform-tstype2nasl.js.map +1 -0
  122. package/out/templator/block2nasl/jsx2nasl/transform-tsx2nasl.d.ts +28 -0
  123. package/out/templator/block2nasl/jsx2nasl/transform-tsx2nasl.js +336 -0
  124. package/out/templator/block2nasl/jsx2nasl/transform-tsx2nasl.js.map +1 -0
  125. package/out/templator/block2nasl/jsx2nasl/utils.d.ts +2 -0
  126. package/out/templator/block2nasl/jsx2nasl/utils.js +26 -0
  127. package/out/templator/block2nasl/jsx2nasl/utils.js.map +1 -0
  128. package/out/templator/block2nasl/transformBlock2Nasl.d.ts +10 -0
  129. package/out/templator/block2nasl/transformBlock2Nasl.js +122 -0
  130. package/out/templator/block2nasl/transformBlock2Nasl.js.map +1 -0
  131. package/out/templator/block2nasl/viewMergeBlock.d.ts +9 -0
  132. package/out/templator/block2nasl/viewMergeBlock.js +111 -0
  133. package/out/templator/block2nasl/viewMergeBlock.js.map +1 -0
  134. package/out/translator/types.d.ts +2 -0
  135. package/out/translator/utils.js +1 -1
  136. package/out/translator/utils.js.map +1 -1
  137. package/out/utils/index.js +0 -4
  138. package/out/utils/index.js.map +1 -1
  139. package/out/utils/language-cache/constant.d.ts +2 -1
  140. package/out/utils/language-cache/constant.js +1 -0
  141. package/out/utils/language-cache/constant.js.map +1 -1
  142. package/out/utils/language-cache/nasl.d.ts +1 -0
  143. package/out/utils/language-cache/nasl.js +9 -1
  144. package/out/utils/language-cache/nasl.js.map +1 -1
  145. package/package.json +6 -2
  146. package/sandbox-natural/stdlib/nasl.core.d.ts +54 -0
  147. package/sandbox-natural/stdlib/nasl.oql.d.ts +22 -0
  148. package/sandbox-natural/stdlib/nasl.ui.d.ts +78 -0
  149. package/sandbox-natural/stdlib/nasl.ui.h5.d.ts +1684 -1643
  150. package/sandbox-natural/stdlib/nasl.ui.h5.json +15746 -15045
  151. package/sandbox-natural/stdlib/nasl.ui.pc.d.ts +5341 -5154
  152. package/sandbox-natural/stdlib/nasl.ui.pc.json +31176 -30681
  153. package/sandbox-natural/stdlib/{nasl.util.ts → nasl.util.d.ts} +49 -43
  154. package/src/common/BaseNode.ts +50 -8
  155. package/src/concepts/AuthLogicForCallInterface__.ts +3 -56
  156. package/src/concepts/BackendVariable__.ts +16 -1
  157. package/src/concepts/BindAttribute__.ts +18 -13
  158. package/src/concepts/BindDirective__.ts +1 -1
  159. package/src/concepts/BindStyle__.ts +1 -1
  160. package/src/concepts/BusinessComponent__.ts +6 -51
  161. package/src/concepts/BusinessLogic__.ts +4 -56
  162. package/src/concepts/CallFunction__.ts +1 -1
  163. package/src/concepts/CallLogic__.ts +21 -16
  164. package/src/concepts/CallQueryComponent__.ts +26 -12
  165. package/src/concepts/Destination__.ts +14 -12
  166. package/src/concepts/EntityProperty__.ts +5 -5
  167. package/src/concepts/Entity__.ts +1 -1
  168. package/src/concepts/Identifier__.ts +57 -6
  169. package/src/concepts/Interface__.ts +1 -1
  170. package/src/concepts/Logic__.ts +44 -134
  171. package/src/concepts/MemberExpression__.ts +21 -7
  172. package/src/concepts/OqlQueryComponent__.ts +29 -5
  173. package/src/concepts/OverriddenLogic__.ts +4 -56
  174. package/src/concepts/Param__.ts +5 -4
  175. package/src/concepts/ProcessElementV2__.ts +4 -0
  176. package/src/concepts/ProcessElement__.ts +4 -0
  177. package/src/concepts/ProcessV2__.ts +5 -0
  178. package/src/concepts/Process__.ts +4 -0
  179. package/src/concepts/QueryOrderByExpression__.ts +0 -1
  180. package/src/concepts/Structure__.ts +5 -7
  181. package/src/concepts/SubLogic__.ts +6 -56
  182. package/src/concepts/Variable__.ts +9 -5
  183. package/src/concepts/ViewElement__.ts +24 -7
  184. package/src/concepts/View__.ts +75 -76
  185. package/src/natural/genNaturalTS.ts +88 -39
  186. package/src/natural/getContext/getUILib.ts +6 -3
  187. package/src/natural/getContext/index.ts +125 -23
  188. package/src/natural/getContext/naslStdlibMap.ts +8 -8
  189. package/src/natural/tools.ts +107 -2
  190. package/src/natural/transformTS2UI.ts +190 -137
  191. package/src/natural/transformTSCode.ts +29 -1055
  192. package/src/natural/transforms/registerTransform.ts +34 -0
  193. package/src/natural/transforms/transform2LogicItem.ts +1335 -0
  194. package/src/natural/transforms/transform2TypeAnnotation.ts +77 -0
  195. package/src/natural/transforms/utils.ts +25 -0
  196. package/src/server/getLogics.ts +12 -12
  197. package/src/server/naslServer.ts +54 -19
  198. package/src/server/semanticData.ts +447 -0
  199. package/src/server/translator.ts +5 -0
  200. package/src/templator/block2nasl/jsx2nasl/index.ts +11 -0
  201. package/src/templator/block2nasl/jsx2nasl/transform-expression2nasl.ts +238 -0
  202. package/src/templator/block2nasl/jsx2nasl/transform-func2nasl.ts +241 -0
  203. package/src/templator/block2nasl/jsx2nasl/transform-tstype2nasl.ts +213 -0
  204. package/src/templator/block2nasl/jsx2nasl/transform-tsx2nasl.ts +422 -0
  205. package/src/templator/block2nasl/jsx2nasl/utils.ts +19 -0
  206. package/src/templator/block2nasl/transformBlock2Nasl.ts +99 -0
  207. package/src/templator/block2nasl/viewMergeBlock.ts +150 -0
  208. package/src/translator/types.ts +2 -0
  209. package/src/translator/utils.ts +2 -2
  210. package/src/utils/index.ts +0 -4
  211. package/src/utils/language-cache/constant.ts +1 -0
  212. package/src/utils/language-cache/nasl.ts +6 -0
  213. package/test/concepts/logic/__snapshots__/toEmbeddedTS.spec.ts.snap +182 -0
  214. package/test/concepts/logic/constant.ts +5 -0
  215. package/test/concepts/logic/fixtures/variable-host-call-logic-member-expression.json +267 -0
  216. package/test/concepts/logic/fixtures/variable-host-call-logic-nested-member-expression copy.json +457 -0
  217. package/test/concepts/logic/fixtures/variable-host-call-logic-with-handle-error-member-expression.json +267 -0
  218. package/test/concepts/logic/toEmbeddedTS.spec.ts +15 -0
  219. package/test/tdd/dataQuery/QueryFieldExpression/case1/ast.json +7 -0
  220. package/test/tdd/dataQuery/QueryFieldExpression/case1/natural.ts.txt +1 -0
  221. package/test/tdd/dataQuery/QueryFieldExpression/case2/ast.json +7 -0
  222. package/test/tdd/dataQuery/QueryFieldExpression/case2/natural.ts.txt +1 -0
  223. package/test/tdd/transform/case1/ast.json +243 -0
  224. package/test/tdd/transform/case1/natural.ts.md +20 -0
  225. package/test/tdd/transform/case2/ast.json +207 -0
  226. package/test/tdd/transform/case2/natural.ts.md +12 -0
  227. package/test/tdd.test.js +10 -0
  228. package/test/tdd.transform.test.js +38 -0
  229. package/test/utils.js +40 -0
  230. package/sandbox-natural/stdlib/nasl.core.ts +0 -36
  231. package/sandbox-natural/stdlib/nasl.oql.ts +0 -14
  232. package/sandbox-natural/stdlib/nasl.ui.pre.d.ts +0 -90
  233. package/sandbox-natural/stdlib/nasl.ui.ts +0 -63
@@ -0,0 +1,457 @@
1
+ {
2
+ "concept": "App",
3
+ "id": "ab35095a-d99f-4667-b509-299b5517d0b9",
4
+ "ideVersion": "3.9",
5
+ "name": "dsadasds321312",
6
+ "title": "苏方舟测试(勿删)",
7
+ "icon": "",
8
+ "desc": "",
9
+ "dnsAddr": "http://dsadasds321312.csforkf.lcap.codewave-test.163yun.com",
10
+ "hasUserCenter": true,
11
+ "hasAuth": true,
12
+ "dataSources": [],
13
+ "structures": [],
14
+ "enums": [],
15
+ "logics": [
16
+ {
17
+ "concept": "Logic",
18
+ "name": "logic4",
19
+ "title": null,
20
+ "description": null,
21
+ "triggerType": null,
22
+ "cron": null,
23
+ "overridable": null,
24
+ "transactional": {
25
+ "concept": "Transactional",
26
+ "enabled": false,
27
+ "propagation": null,
28
+ "isolation": null
29
+ },
30
+ "typeParams": [],
31
+ "params": [
32
+ {
33
+ "concept": "Param",
34
+ "name": "param1",
35
+ "typeAnnotation": {
36
+ "concept": "TypeAnnotation",
37
+ "typeKind": "primitive",
38
+ "typeNamespace": "nasl.core",
39
+ "typeName": "String"
40
+ }
41
+ }
42
+ ],
43
+ "returns": [
44
+ {
45
+ "concept": "Return",
46
+ "name": "result",
47
+ "description": null,
48
+ "typeAnnotation": null,
49
+ "defaultValue": null
50
+ }
51
+ ],
52
+ "variables": [],
53
+ "body": [
54
+ {
55
+ "concept": "Start",
56
+ "label": "开始",
57
+ "folded": false
58
+ },
59
+ {
60
+ "concept": "Assignment",
61
+ "left": {
62
+ "concept": "Identifier",
63
+ "name": "result",
64
+ "folded": false
65
+ },
66
+ "right": {
67
+ "concept": "NewComposite",
68
+ "properties": [
69
+ {
70
+ "concept": "Identifier",
71
+ "name": "a",
72
+ "folded": false,
73
+ "typeAnnotation": null
74
+ },
75
+ {
76
+ "concept": "Identifier",
77
+ "name": "b",
78
+ "folded": false,
79
+ "typeAnnotation": null
80
+ }
81
+ ],
82
+ "rights": [
83
+ {
84
+ "concept": "SelectMembers",
85
+ "hideMembers": false,
86
+ "expression": {
87
+ "concept": "NumericLiteral",
88
+ "value": "123",
89
+ "folded": false,
90
+ "typeAnnotation": {
91
+ "concept": "TypeAnnotation",
92
+ "typeKind": "primitive",
93
+ "typeNamespace": "nasl.core",
94
+ "typeName": "Long"
95
+ }
96
+ },
97
+ "members": []
98
+ },
99
+ {
100
+ "concept": "SelectMembers",
101
+ "hideMembers": false,
102
+ "expression": {
103
+ "concept": "StringLiteral",
104
+ "value": "012",
105
+ "folded": false,
106
+ "offsetX": 107,
107
+ "offsetY": 267,
108
+ "changedTime": 1717662962913
109
+ },
110
+ "members": [],
111
+ "changedTime": 1717662960567
112
+ }
113
+ ],
114
+ "assignmentLines": [
115
+ {
116
+ "concept": "AssignmentLine",
117
+ "leftIndex": [
118
+ 0,
119
+ 0
120
+ ],
121
+ "rightIndex": [
122
+ 0
123
+ ]
124
+ },
125
+ {
126
+ "concept": "AssignmentLine",
127
+ "leftIndex": [
128
+ 0,
129
+ 1
130
+ ],
131
+ "rightIndex": [
132
+ 1
133
+ ]
134
+ }
135
+ ],
136
+ "hideProperties": false,
137
+ "hideDefaults": false,
138
+ "autoConnection": true,
139
+ "folded": false,
140
+ "offsetX": -43.23828125,
141
+ "offsetY": 495.1640625,
142
+ "typeAnnotation": {
143
+ "concept": "TypeAnnotation",
144
+ "typeKind": "anonymousStructure",
145
+ "properties": [
146
+ {
147
+ "concept": "StructureProperty",
148
+ "name": "a",
149
+ "typeAnnotation": null,
150
+ "changedTime": 1717662973324
151
+ },
152
+ {
153
+ "concept": "StructureProperty",
154
+ "name": "b",
155
+ "typeAnnotation": null,
156
+ "changedTime": 1717662970430
157
+ }
158
+ ]
159
+ },
160
+ "changedTime": 1717662974828
161
+ },
162
+ "folded": false,
163
+ "offsetX": 184,
164
+ "offsetY": 289.5,
165
+ "changedTime": 1717663491186
166
+ },
167
+ {
168
+ "concept": "End",
169
+ "label": "结束",
170
+ "folded": false
171
+ }
172
+ ],
173
+ "playground": [],
174
+ "applyAnnotations": null,
175
+ "changedTime": 1717663491199,
176
+ "composedBy": null
177
+ },
178
+ {
179
+ "__$Selected": true,
180
+ "concept": "Logic",
181
+ "name": "logic3",
182
+ "title": null,
183
+ "description": null,
184
+ "triggerType": null,
185
+ "cron": null,
186
+ "overridable": null,
187
+ "transactional": {
188
+ "concept": "Transactional",
189
+ "enabled": false,
190
+ "propagation": null,
191
+ "isolation": null
192
+ },
193
+ "typeParams": [],
194
+ "params": [],
195
+ "returns": [
196
+ {
197
+ "concept": "Return",
198
+ "name": "result",
199
+ "description": null,
200
+ "typeAnnotation": null,
201
+ "defaultValue": null
202
+ }
203
+ ],
204
+ "variables": [],
205
+ "body": [
206
+ {
207
+ "concept": "Start",
208
+ "label": "开始",
209
+ "folded": false
210
+ },
211
+ {
212
+ "concept": "Assignment",
213
+ "left": {
214
+ "concept": "Identifier",
215
+ "name": "result",
216
+ "folded": false
217
+ },
218
+ "right": {
219
+ "concept": "MemberExpression",
220
+ "object": {
221
+ "concept": "CallLogic",
222
+ "uuid": "2a0ce071f2c3419b90216854772ea07d",
223
+ "calleeNamespace": "app.logics",
224
+ "calleeName": "logic4",
225
+ "handleError": false,
226
+ "typeArguments": [],
227
+ "arguments": [
228
+ {
229
+ "concept": "Argument",
230
+ "keyword": "param1",
231
+ "expression": {
232
+ "concept": "MemberExpression",
233
+ "object": {
234
+ "concept": "CallLogic",
235
+ "uuid": "a2cf38a95b7249edabaea73f6fde2502",
236
+ "calleeNamespace": "app.logics",
237
+ "calleeName": "logic2",
238
+ "handleError": false,
239
+ "typeArguments": [],
240
+ "arguments": [],
241
+ "folded": false
242
+ },
243
+ "property": {
244
+ "concept": "Identifier",
245
+ "name": "b",
246
+ "folded": false
247
+ },
248
+ "folded": false
249
+ },
250
+ "folded": false
251
+ }
252
+ ],
253
+ "folded": false,
254
+ "offsetX": 87,
255
+ "offsetY": 275
256
+ },
257
+ "property": {
258
+ "concept": "Identifier",
259
+ "name": "a",
260
+ "folded": false
261
+ },
262
+ "folded": false
263
+ },
264
+ "folded": false,
265
+ "changedTime": 1717663000345
266
+ },
267
+ {
268
+ "concept": "End",
269
+ "label": "结束",
270
+ "folded": false
271
+ }
272
+ ],
273
+ "playground": [],
274
+ "applyAnnotations": null,
275
+ "changedTime": 1717662677728,
276
+ "composedBy": null
277
+ },
278
+ {
279
+ "concept": "Logic",
280
+ "name": "logic2",
281
+ "title": null,
282
+ "description": null,
283
+ "triggerType": null,
284
+ "cron": null,
285
+ "overridable": null,
286
+ "transactional": {
287
+ "concept": "Transactional",
288
+ "enabled": false,
289
+ "propagation": null,
290
+ "isolation": null
291
+ },
292
+ "typeParams": [],
293
+ "params": [],
294
+ "returns": [
295
+ {
296
+ "concept": "Return",
297
+ "name": "result",
298
+ "description": null,
299
+ "typeAnnotation": null,
300
+ "defaultValue": null
301
+ }
302
+ ],
303
+ "variables": [],
304
+ "body": [
305
+ {
306
+ "concept": "Start",
307
+ "label": "开始",
308
+ "folded": false
309
+ },
310
+ {
311
+ "concept": "Assignment",
312
+ "left": {
313
+ "concept": "Identifier",
314
+ "name": "result",
315
+ "folded": false
316
+ },
317
+ "right": {
318
+ "concept": "NewComposite",
319
+ "properties": [
320
+ {
321
+ "concept": "Identifier",
322
+ "name": "a",
323
+ "folded": false
324
+ },
325
+ {
326
+ "concept": "Identifier",
327
+ "name": "b",
328
+ "folded": false
329
+ }
330
+ ],
331
+ "rights": [
332
+ {
333
+ "concept": "SelectMembers",
334
+ "hideMembers": false,
335
+ "expression": {
336
+ "concept": "NumericLiteral",
337
+ "value": "123",
338
+ "folded": false,
339
+ "typeAnnotation": {
340
+ "concept": "TypeAnnotation",
341
+ "typeKind": "primitive",
342
+ "typeNamespace": "nasl.core",
343
+ "typeName": "Long"
344
+ }
345
+ },
346
+ "members": []
347
+ },
348
+ {
349
+ "concept": "SelectMembers",
350
+ "hideMembers": false,
351
+ "expression": {
352
+ "concept": "StringLiteral",
353
+ "value": "012",
354
+ "folded": false,
355
+ "offsetX": 107,
356
+ "offsetY": 267
357
+ },
358
+ "members": []
359
+ }
360
+ ],
361
+ "assignmentLines": [
362
+ {
363
+ "concept": "AssignmentLine",
364
+ "leftIndex": [
365
+ 0,
366
+ 0
367
+ ],
368
+ "rightIndex": [
369
+ 0
370
+ ]
371
+ },
372
+ {
373
+ "concept": "AssignmentLine",
374
+ "leftIndex": [
375
+ 0,
376
+ 1
377
+ ],
378
+ "rightIndex": [
379
+ 1
380
+ ]
381
+ }
382
+ ],
383
+ "hideProperties": false,
384
+ "hideDefaults": false,
385
+ "autoConnection": true,
386
+ "folded": false,
387
+ "offsetX": -43.23828125,
388
+ "offsetY": 495.1640625,
389
+ "typeAnnotation": {
390
+ "concept": "TypeAnnotation",
391
+ "typeKind": "anonymousStructure",
392
+ "properties": [
393
+ {
394
+ "concept": "StructureProperty",
395
+ "name": "a",
396
+ "typeAnnotation": null
397
+ },
398
+ {
399
+ "concept": "StructureProperty",
400
+ "name": "b",
401
+ "typeAnnotation": null
402
+ }
403
+ ]
404
+ }
405
+ },
406
+ "folded": false,
407
+ "changedTime": 1717385790487
408
+ },
409
+ {
410
+ "concept": "End",
411
+ "label": "结束",
412
+ "folded": false
413
+ }
414
+ ],
415
+ "playground": [],
416
+ "applyAnnotations": null,
417
+ "composedBy": null
418
+ }
419
+ ],
420
+ "overriddenLogics": [],
421
+ "interfaces": [],
422
+ "frontendTypes": [],
423
+ "backend": {
424
+ "concept": "Backend",
425
+ "name": "",
426
+ "variables": []
427
+ },
428
+ "processes": [],
429
+ "processV2s": [],
430
+ "roles": [],
431
+ "configuration": {
432
+ "concept": "Configuration",
433
+ "groups": []
434
+ },
435
+ "connectorDependencies": [],
436
+ "interfaceDependencies": [],
437
+ "dependencies": [],
438
+ "integration": {
439
+ "concept": "Integration",
440
+ "microApp": {},
441
+ "connectors": []
442
+ },
443
+ "authLogics": [],
444
+ "authLogicsForCallInterface": [],
445
+ "connections": [],
446
+ "triggerLaunchers": [],
447
+ "metadataTypes": [],
448
+ "preferenceMap": {
449
+ "namingConvention.tableName": "snake_case",
450
+ "namingConvention.columnName": "snake_case",
451
+ "javaLogicEnabled": "false",
452
+ "onDemandInterfaceGeneration": "true",
453
+ "serverValidationRules": "auto",
454
+ "metadataTypeEnable": false
455
+ },
456
+ "changedTime": 1717494049956
457
+ }