@lcap/nasl 3.4.0-beta.8 → 3.4.0-beta.9

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 (407) hide show
  1. package/.nyc_output/559608df-ab15-4969-acf0-5239dacd6111.json +1 -0
  2. package/.nyc_output/processinfo/559608df-ab15-4969-acf0-5239dacd6111.json +1 -0
  3. package/.nyc_output/processinfo/index.json +1 -0
  4. package/coverage/base.css +224 -0
  5. package/coverage/block-navigation.js +87 -0
  6. package/coverage/favicon.png +0 -0
  7. package/coverage/index.html +476 -0
  8. package/coverage/prettify.css +1 -0
  9. package/coverage/prettify.js +2 -0
  10. package/coverage/sort-arrow-sprite.png +0 -0
  11. package/coverage/sorter.js +196 -0
  12. package/coverage/src/automate/engine/index.html +116 -0
  13. package/coverage/src/automate/engine/utils.js.html +1414 -0
  14. package/coverage/src/bak/index.html +116 -0
  15. package/coverage/src/bak/translator.js.html +718 -0
  16. package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +175 -0
  17. package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +169 -0
  18. package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +1282 -0
  19. package/coverage/src/breakpoint/generator/CallbackNode.ts.html +196 -0
  20. package/coverage/src/breakpoint/generator/index.html +176 -0
  21. package/coverage/src/breakpoint/generator/index.ts.html +508 -0
  22. package/coverage/src/breakpoint/index.html +116 -0
  23. package/coverage/src/breakpoint/index.ts.html +94 -0
  24. package/coverage/src/breakpoint/shared/constants.ts.html +436 -0
  25. package/coverage/src/breakpoint/shared/index.html +176 -0
  26. package/coverage/src/breakpoint/shared/index.ts.html +94 -0
  27. package/coverage/src/breakpoint/shared/operations.ts.html +160 -0
  28. package/coverage/src/breakpoint/shared/socket.ts.html +1297 -0
  29. package/coverage/src/breakpoint/shared/utils.ts.html +1087 -0
  30. package/coverage/src/breakpoint/store/core.ts.html +1600 -0
  31. package/coverage/src/breakpoint/store/dock.ts.html +733 -0
  32. package/coverage/src/breakpoint/store/index.html +146 -0
  33. package/coverage/src/breakpoint/store/index.ts.html +91 -0
  34. package/coverage/src/common/BaseNode.ts.html +4303 -0
  35. package/coverage/src/common/Command.ts.html +310 -0
  36. package/coverage/src/common/EventEmitter.ts.html +370 -0
  37. package/coverage/src/common/Messager.ts.html +820 -0
  38. package/coverage/src/common/asyncFuncMap.ts.html +127 -0
  39. package/coverage/src/common/index.html +206 -0
  40. package/coverage/src/common/index.ts.html +97 -0
  41. package/coverage/src/common/utils.ts.html +136 -0
  42. package/coverage/src/concepts/Abort__.ts.html +358 -0
  43. package/coverage/src/concepts/AbstractInterface__.ts.html +280 -0
  44. package/coverage/src/concepts/Anchor__.ts.html +703 -0
  45. package/coverage/src/concepts/AnonymousFunction__.ts.html +2122 -0
  46. package/coverage/src/concepts/App__.ts.html +14305 -0
  47. package/coverage/src/concepts/Argument__.ts.html +1033 -0
  48. package/coverage/src/concepts/Assignee__.ts.html +2326 -0
  49. package/coverage/src/concepts/AssignmentLine__.ts.html +442 -0
  50. package/coverage/src/concepts/Assignment__.ts.html +1201 -0
  51. package/coverage/src/concepts/Attribute__.ts.html +760 -0
  52. package/coverage/src/concepts/AuthInterface__.ts.html +370 -0
  53. package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +1948 -0
  54. package/coverage/src/concepts/AuthLogic__.ts.html +793 -0
  55. package/coverage/src/concepts/BackendVariable__.ts.html +1567 -0
  56. package/coverage/src/concepts/Backend__.ts.html +1243 -0
  57. package/coverage/src/concepts/BatchAssignment__.ts.html +3406 -0
  58. package/coverage/src/concepts/BinaryExpression__.ts.html +1519 -0
  59. package/coverage/src/concepts/BindAttribute__.ts.html +3955 -0
  60. package/coverage/src/concepts/BindDirective__.ts.html +2026 -0
  61. package/coverage/src/concepts/BindEvent__.ts.html +3502 -0
  62. package/coverage/src/concepts/BindStyle__.ts.html +1669 -0
  63. package/coverage/src/concepts/Block__.ts.html +910 -0
  64. package/coverage/src/concepts/BooleanLiteral__.ts.html +445 -0
  65. package/coverage/src/concepts/CallAuthInterface__.ts.html +1672 -0
  66. package/coverage/src/concepts/CallConnector__.ts.html +949 -0
  67. package/coverage/src/concepts/CallFunction__.ts.html +2290 -0
  68. package/coverage/src/concepts/CallInterface__.ts.html +2752 -0
  69. package/coverage/src/concepts/CallLogic__.ts.html +4924 -0
  70. package/coverage/src/concepts/CallQueryComponent__.ts.html +5341 -0
  71. package/coverage/src/concepts/Comment__.ts.html +427 -0
  72. package/coverage/src/concepts/CompletionProperty__.ts.html +952 -0
  73. package/coverage/src/concepts/ConfigGroup__.ts.html +1132 -0
  74. package/coverage/src/concepts/ConfigPropertyValue__.ts.html +427 -0
  75. package/coverage/src/concepts/ConfigProperty__.ts.html +1405 -0
  76. package/coverage/src/concepts/Configuration__.ts.html +1054 -0
  77. package/coverage/src/concepts/Connection__.ts.html +1435 -0
  78. package/coverage/src/concepts/ConnectorTrigger__.ts.html +598 -0
  79. package/coverage/src/concepts/Connector__.ts.html +4378 -0
  80. package/coverage/src/concepts/Constant__.ts.html +973 -0
  81. package/coverage/src/concepts/CountersignPolicy__.ts.html +316 -0
  82. package/coverage/src/concepts/DataSource__.ts.html +1825 -0
  83. package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +334 -0
  84. package/coverage/src/concepts/DefaultValue__.ts.html +1000 -0
  85. package/coverage/src/concepts/Destination__.ts.html +2773 -0
  86. package/coverage/src/concepts/End__.ts.html +463 -0
  87. package/coverage/src/concepts/EntityIndex__.ts.html +817 -0
  88. package/coverage/src/concepts/EntityProperty__.ts.html +2776 -0
  89. package/coverage/src/concepts/Entity__.ts.html +3028 -0
  90. package/coverage/src/concepts/EnumItem__.ts.html +580 -0
  91. package/coverage/src/concepts/Enum__.ts.html +1291 -0
  92. package/coverage/src/concepts/Event__.ts.html +1111 -0
  93. package/coverage/src/concepts/ExternalDestination__.ts.html +1087 -0
  94. package/coverage/src/concepts/ForEachStatement__.ts.html +2005 -0
  95. package/coverage/src/concepts/FrontendLibrary__.ts.html +1762 -0
  96. package/coverage/src/concepts/FrontendVariable__.ts.html +292 -0
  97. package/coverage/src/concepts/Frontend__.ts.html +4117 -0
  98. package/coverage/src/concepts/Function__.ts.html +3751 -0
  99. package/coverage/src/concepts/I18nInfo__.ts.html +436 -0
  100. package/coverage/src/concepts/Identifier__.ts.html +1087 -0
  101. package/coverage/src/concepts/IfStatement__.ts.html +1657 -0
  102. package/coverage/src/concepts/ImportedInterface__.ts.html +268 -0
  103. package/coverage/src/concepts/Integration__.ts.html +1279 -0
  104. package/coverage/src/concepts/InterfaceParam__.ts.html +1144 -0
  105. package/coverage/src/concepts/Interface__.ts.html +3496 -0
  106. package/coverage/src/concepts/JSBlock__.ts.html +451 -0
  107. package/coverage/src/concepts/JavaLogic__.ts.html +493 -0
  108. package/coverage/src/concepts/LogicItem__.ts.html +1201 -0
  109. package/coverage/src/concepts/Logic__.ts.html +7495 -0
  110. package/coverage/src/concepts/MatchCase__.ts.html +3013 -0
  111. package/coverage/src/concepts/Match__.ts.html +2527 -0
  112. package/coverage/src/concepts/MemberExpression__.ts.html +1783 -0
  113. package/coverage/src/concepts/MetadataType__.ts.html +2053 -0
  114. package/coverage/src/concepts/MicroApp__.ts.html +439 -0
  115. package/coverage/src/concepts/Module__.ts.html +9874 -0
  116. package/coverage/src/concepts/MsgTriggerEvent__.ts.html +1072 -0
  117. package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +1045 -0
  118. package/coverage/src/concepts/MultiApprovalPolicy__.ts.html +292 -0
  119. package/coverage/src/concepts/Namespace__.ts.html +8209 -0
  120. package/coverage/src/concepts/NewComposite__.ts.html +4909 -0
  121. package/coverage/src/concepts/NewList__.ts.html +1756 -0
  122. package/coverage/src/concepts/NewMap__.ts.html +2431 -0
  123. package/coverage/src/concepts/New__.ts.html +319 -0
  124. package/coverage/src/concepts/NullLiteral__.ts.html +376 -0
  125. package/coverage/src/concepts/NumericLiteral__.ts.html +730 -0
  126. package/coverage/src/concepts/OqlQueryComponent__.ts.html +1267 -0
  127. package/coverage/src/concepts/OverriddenLogic__.ts.html +6940 -0
  128. package/coverage/src/concepts/Param__.ts.html +1801 -0
  129. package/coverage/src/concepts/Point__.ts.html +334 -0
  130. package/coverage/src/concepts/ProcessComponent__.ts.html +1717 -0
  131. package/coverage/src/concepts/ProcessElement__.ts.html +6292 -0
  132. package/coverage/src/concepts/ProcessOutcome__.ts.html +424 -0
  133. package/coverage/src/concepts/ProcessOutcomes__.ts.html +415 -0
  134. package/coverage/src/concepts/Process__.ts.html +4915 -0
  135. package/coverage/src/concepts/QueryAggregateExpression__.ts.html +619 -0
  136. package/coverage/src/concepts/QueryFieldExpression__.ts.html +613 -0
  137. package/coverage/src/concepts/QueryFromExpression__.ts.html +970 -0
  138. package/coverage/src/concepts/QueryGroupByExpression__.ts.html +610 -0
  139. package/coverage/src/concepts/QueryJoinExpression__.ts.html +1627 -0
  140. package/coverage/src/concepts/QueryLimitExpression__.ts.html +694 -0
  141. package/coverage/src/concepts/QueryOrderByExpression__.ts.html +739 -0
  142. package/coverage/src/concepts/QuerySelectExpression__.ts.html +1741 -0
  143. package/coverage/src/concepts/Rect__.ts.html +376 -0
  144. package/coverage/src/concepts/Return__.ts.html +1393 -0
  145. package/coverage/src/concepts/Role__.ts.html +631 -0
  146. package/coverage/src/concepts/SelectMembers__.ts.html +1303 -0
  147. package/coverage/src/concepts/SequentialPolicy__.ts.html +259 -0
  148. package/coverage/src/concepts/Slot__.ts.html +655 -0
  149. package/coverage/src/concepts/SqlQueryComponent__.ts.html +1042 -0
  150. package/coverage/src/concepts/Start__.ts.html +331 -0
  151. package/coverage/src/concepts/StaticString__.ts.html +403 -0
  152. package/coverage/src/concepts/StringInterpolation__.ts.html +1210 -0
  153. package/coverage/src/concepts/StringLiteral__.ts.html +535 -0
  154. package/coverage/src/concepts/StructureProperty__.ts.html +1189 -0
  155. package/coverage/src/concepts/Structure__.ts.html +2176 -0
  156. package/coverage/src/concepts/SwitchCase__.ts.html +1225 -0
  157. package/coverage/src/concepts/SwitchStatement__.ts.html +934 -0
  158. package/coverage/src/concepts/Theme__.ts.html +361 -0
  159. package/coverage/src/concepts/Transactional__.ts.html +631 -0
  160. package/coverage/src/concepts/TriggerEvent__.ts.html +1039 -0
  161. package/coverage/src/concepts/TriggerLauncher__.ts.html +808 -0
  162. package/coverage/src/concepts/TypeAnnotation__.ts.html +3949 -0
  163. package/coverage/src/concepts/TypeParam__.ts.html +349 -0
  164. package/coverage/src/concepts/UnaryExpression__.ts.html +775 -0
  165. package/coverage/src/concepts/Unparsed__.ts.html +418 -0
  166. package/coverage/src/concepts/UseComponent__.ts.html +334 -0
  167. package/coverage/src/concepts/ValidationRule__.ts.html +1879 -0
  168. package/coverage/src/concepts/Variable__.ts.html +1570 -0
  169. package/coverage/src/concepts/ViewBlock__.ts.html +355 -0
  170. package/coverage/src/concepts/ViewComponent__.ts.html +4255 -0
  171. package/coverage/src/concepts/ViewElement__.ts.html +9013 -0
  172. package/coverage/src/concepts/View__.ts.html +8932 -0
  173. package/coverage/src/concepts/WhileStatement__.ts.html +1126 -0
  174. package/coverage/src/concepts/basics/constants.ts.html +88 -0
  175. package/coverage/src/concepts/basics/index.html +116 -0
  176. package/coverage/src/concepts/basics/stdlib/index.html +356 -0
  177. package/coverage/src/concepts/basics/stdlib/index.ts.html +208 -0
  178. package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +565 -0
  179. package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +517 -0
  180. package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +226 -0
  181. package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +172 -0
  182. package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +214 -0
  183. package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +145 -0
  184. package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +589 -0
  185. package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +214 -0
  186. package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +229 -0
  187. package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +268 -0
  188. package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +1999 -0
  189. package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +3259 -0
  190. package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +6844 -0
  191. package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +1768 -0
  192. package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +163 -0
  193. package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +664 -0
  194. package/coverage/src/concepts/basics/types/coreTypeList.ts.html +121 -0
  195. package/coverage/src/concepts/basics/types/index.html +131 -0
  196. package/coverage/src/concepts/basics/types/index.ts.html +160 -0
  197. package/coverage/src/concepts/index.html +2021 -0
  198. package/coverage/src/concepts/index.ts.html +103 -0
  199. package/coverage/src/concepts/index__.ts.html +463 -0
  200. package/coverage/src/concepts/utils/asserts.ts.html +27967 -0
  201. package/coverage/src/concepts/utils/index.html +116 -0
  202. package/coverage/src/config.ts.html +325 -0
  203. package/coverage/src/decorators/index.html +131 -0
  204. package/coverage/src/decorators/index.ts.html +574 -0
  205. package/coverage/src/decorators/promise.ts.html +169 -0
  206. package/coverage/src/eventBus.ts.html +100 -0
  207. package/coverage/src/generator/compileComponent.ts.html +142 -0
  208. package/coverage/src/generator/genBundleFiles.ts.html +1822 -0
  209. package/coverage/src/generator/genHash.ts.html +124 -0
  210. package/coverage/src/generator/genMetaData.ts.html +1129 -0
  211. package/coverage/src/generator/genReleaseBody.ts.html +1282 -0
  212. package/coverage/src/generator/icestark.ts.html +226 -0
  213. package/coverage/src/generator/index.html +266 -0
  214. package/coverage/src/generator/index.ts.html +106 -0
  215. package/coverage/src/generator/microApp.ts.html +172 -0
  216. package/coverage/src/generator/permission.ts.html +1108 -0
  217. package/coverage/src/generator/qiankun.ts.html +238 -0
  218. package/coverage/src/generator/styleReplacer.ts.html +199 -0
  219. package/coverage/src/index.html +146 -0
  220. package/coverage/src/index.ts.html +121 -0
  221. package/coverage/src/manager/diagnostic.ts.html +439 -0
  222. package/coverage/src/manager/index.html +131 -0
  223. package/coverage/src/manager/stepRecorder.ts.html +457 -0
  224. package/coverage/src/natural/genNaturalTS.ts.html +355 -0
  225. package/coverage/src/natural/index.html +161 -0
  226. package/coverage/src/natural/index.ts.html +91 -0
  227. package/coverage/src/natural/naslStdlibMap.ts.html +157 -0
  228. package/coverage/src/natural/transformTSCode.ts.html +2707 -0
  229. package/coverage/src/sentry/index.html +116 -0
  230. package/coverage/src/sentry/index.ts.html +682 -0
  231. package/coverage/src/server/createUiTs.ts.html +919 -0
  232. package/coverage/src/server/entity2LogicNamespace.ts.html +1294 -0
  233. package/coverage/src/server/event.js.html +526 -0
  234. package/coverage/src/server/extendBaseNode.ts.html +1792 -0
  235. package/coverage/src/server/formatTsUtils.ts.html +2692 -0
  236. package/coverage/src/server/getConnector.ts.html +316 -0
  237. package/coverage/src/server/getExtensionModules.ts.html +178 -0
  238. package/coverage/src/server/getFunctions.ts.html +133 -0
  239. package/coverage/src/server/getInterfaces.ts.html +229 -0
  240. package/coverage/src/server/getLogging.ts.html +100 -0
  241. package/coverage/src/server/getLogics.ts.html +1375 -0
  242. package/coverage/src/server/getMemberIdentifier.ts.html +1672 -0
  243. package/coverage/src/server/getProcessComponents.ts.html +112 -0
  244. package/coverage/src/server/getProcesses.ts.html +2173 -0
  245. package/coverage/src/server/getValidates.ts.html +115 -0
  246. package/coverage/src/server/index.html +401 -0
  247. package/coverage/src/server/index.ts.html +232 -0
  248. package/coverage/src/server/naslServer.ts.html +14659 -0
  249. package/coverage/src/server/naslStdlibMap.ts.html +241 -0
  250. package/coverage/src/server/process2LogicNamespace.ts.html +454 -0
  251. package/coverage/src/server/translator.ts.html +2611 -0
  252. package/coverage/src/service/creator/add.configs.js.html +397 -0
  253. package/coverage/src/service/creator/errHandles.js.html +313 -0
  254. package/coverage/src/service/creator/index.html +146 -0
  255. package/coverage/src/service/creator/index.js.html +352 -0
  256. package/coverage/src/service/datasource/api.js.html +118 -0
  257. package/coverage/src/service/datasource/index.html +131 -0
  258. package/coverage/src/service/datasource/index.js.html +103 -0
  259. package/coverage/src/service/logic/api.js.html +109 -0
  260. package/coverage/src/service/logic/index.html +131 -0
  261. package/coverage/src/service/logic/index.js.html +103 -0
  262. package/coverage/src/service/storage/api.js.html +202 -0
  263. package/coverage/src/service/storage/index.html +206 -0
  264. package/coverage/src/service/storage/index.ts.html +103 -0
  265. package/coverage/src/service/storage/init.ts.html +3694 -0
  266. package/coverage/src/service/storage/jsoner.ts.html +565 -0
  267. package/coverage/src/service/storage/map.ts.html +256 -0
  268. package/coverage/src/service/storage/service.ts.html +331 -0
  269. package/coverage/src/service/storage/storagePoint.ts.html +304 -0
  270. package/coverage/src/templator/genCallComponentLogic.ts.html +163 -0
  271. package/coverage/src/templator/genCreateBlock.ts.html +1072 -0
  272. package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +1609 -0
  273. package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +2236 -0
  274. package/coverage/src/templator/genEditTableBlock.ts.html +1018 -0
  275. package/coverage/src/templator/genEnumSelectBlock.ts.html +178 -0
  276. package/coverage/src/templator/genGetBlock.ts.html +451 -0
  277. package/coverage/src/templator/genGridViewBlock.ts.html +1114 -0
  278. package/coverage/src/templator/genListViewBlock.ts.html +475 -0
  279. package/coverage/src/templator/genQueryComponent.ts.html +1207 -0
  280. package/coverage/src/templator/genSelectBlock.ts.html +1243 -0
  281. package/coverage/src/templator/genTableBlock.ts.html +973 -0
  282. package/coverage/src/templator/genUpdateBlock.ts.html +1195 -0
  283. package/coverage/src/templator/index.html +326 -0
  284. package/coverage/src/templator/index.ts.html +154 -0
  285. package/coverage/src/templator/utils.ts.html +1924 -0
  286. package/coverage/src/translator/constant.ts.html +106 -0
  287. package/coverage/src/translator/index.html +146 -0
  288. package/coverage/src/translator/index.ts.html +94 -0
  289. package/coverage/src/translator/utils.ts.html +757 -0
  290. package/coverage/src/utils/cookie.ts.html +265 -0
  291. package/coverage/src/utils/env.ts.html +91 -0
  292. package/coverage/src/utils/i18nInfo.ts.html +166 -0
  293. package/coverage/src/utils/index.html +221 -0
  294. package/coverage/src/utils/index.ts.html +748 -0
  295. package/coverage/src/utils/logger.ts.html +145 -0
  296. package/coverage/src/utils/sortTsString.ts.html +202 -0
  297. package/coverage/src/utils/string.ts.html +502 -0
  298. package/coverage/src/utils/time-slicing/constant.ts.html +196 -0
  299. package/coverage/src/utils/time-slicing/controller.ts.html +1144 -0
  300. package/coverage/src/utils/time-slicing/index.html +236 -0
  301. package/coverage/src/utils/time-slicing/index.ts.html +103 -0
  302. package/coverage/src/utils/time-slicing/page-state.ts.html +121 -0
  303. package/coverage/src/utils/time-slicing/performance.ts.html +253 -0
  304. package/coverage/src/utils/time-slicing/runner.ts.html +241 -0
  305. package/coverage/src/utils/time-slicing/tool.ts.html +220 -0
  306. package/coverage/src/utils/time-slicing/utils.ts.html +355 -0
  307. package/coverage/src/utils/time-slicing/wrapper.ts.html +259 -0
  308. package/coverage/src/utils/time-slicing.ts.html +418 -0
  309. package/coverage/src/utils/traverse.ts.html +568 -0
  310. package/coverage/src/utils/window.ts.html +112 -0
  311. package/out/concepts/BackendVariable__.js +10 -2
  312. package/out/concepts/BackendVariable__.js.map +1 -1
  313. package/out/concepts/BinaryExpression__.d.ts +2 -0
  314. package/out/concepts/BinaryExpression__.js +4 -0
  315. package/out/concepts/BinaryExpression__.js.map +1 -1
  316. package/out/concepts/CallFunction__.d.ts +2 -0
  317. package/out/concepts/CallFunction__.js +14 -2
  318. package/out/concepts/CallFunction__.js.map +1 -1
  319. package/out/concepts/CallInterface__.d.ts +2 -0
  320. package/out/concepts/CallInterface__.js +5 -1
  321. package/out/concepts/CallInterface__.js.map +1 -1
  322. package/out/concepts/CallLogic__.d.ts +3 -2
  323. package/out/concepts/CallLogic__.js +15 -26
  324. package/out/concepts/CallLogic__.js.map +1 -1
  325. package/out/concepts/Logic__.js +0 -1
  326. package/out/concepts/Logic__.js.map +1 -1
  327. package/out/concepts/MemberExpression__.d.ts +1 -1
  328. package/out/concepts/MemberExpression__.js +3 -3
  329. package/out/concepts/MemberExpression__.js.map +1 -1
  330. package/out/concepts/NewComposite__.d.ts +2 -0
  331. package/out/concepts/NewComposite__.js +4 -0
  332. package/out/concepts/NewComposite__.js.map +1 -1
  333. package/out/concepts/NewList__.d.ts +2 -0
  334. package/out/concepts/NewList__.js +4 -0
  335. package/out/concepts/NewList__.js.map +1 -1
  336. package/out/concepts/NewMap__.d.ts +2 -0
  337. package/out/concepts/NewMap__.js +4 -0
  338. package/out/concepts/NewMap__.js.map +1 -1
  339. package/out/concepts/Param__.js +11 -3
  340. package/out/concepts/Param__.js.map +1 -1
  341. package/out/concepts/Return__.js +10 -2
  342. package/out/concepts/Return__.js.map +1 -1
  343. package/out/concepts/Variable__.js +10 -2
  344. package/out/concepts/Variable__.js.map +1 -1
  345. package/out/concepts/utils/quick-info.d.ts +13 -0
  346. package/out/concepts/utils/quick-info.js +51 -0
  347. package/out/concepts/utils/quick-info.js.map +1 -0
  348. package/out/server/naslServer.js +2 -48
  349. package/out/server/naslServer.js.map +1 -1
  350. package/out/translator/utils.d.ts +2 -2
  351. package/package.json +1 -1
  352. package/src/concepts/BackendVariable__.ts +10 -2
  353. package/src/concepts/BinaryExpression__.ts +5 -1
  354. package/src/concepts/CallFunction__.ts +15 -2
  355. package/src/concepts/CallInterface__.ts +6 -1
  356. package/src/concepts/CallLogic__.ts +15 -30
  357. package/src/concepts/Logic__.ts +0 -1
  358. package/src/concepts/MemberExpression__.ts +3 -3
  359. package/src/concepts/NewComposite__.ts +5 -5
  360. package/src/concepts/NewList__.ts +6 -2
  361. package/src/concepts/NewMap__.ts +6 -3
  362. package/src/concepts/Param__.ts +11 -3
  363. package/src/concepts/Return__.ts +10 -2
  364. package/src/concepts/Variable__.ts +10 -2
  365. package/src/concepts/utils/quick-info.ts +64 -0
  366. package/src/server/naslServer.ts +1 -45
  367. package/src/translator/utils.ts +2 -2
  368. package/test/concepts/binary-expression/__snapshots__/getQuickInfoOffset.spec.ts.snap +25 -0
  369. package/test/concepts/binary-expression/getQuickInfoOffset.spec.ts +19 -0
  370. package/test/concepts/call-function/__snapshots__/getQuickInfoOffset.spec.ts.snap +41 -0
  371. package/test/concepts/call-function/getQuickInfoOffset.spec.ts +19 -0
  372. package/test/concepts/call-interface/__snapshots__/getQuickInfoOffset.spec.ts.snap +86 -0
  373. package/test/concepts/call-interface/__snapshots__/toEmbeddedTS.spec.ts.snap +3 -3
  374. package/test/concepts/call-interface/getQuickInfoOffset.spec.ts +19 -0
  375. package/test/concepts/call-logic/getQuickInfoOffset.spec.ts +2 -7
  376. package/test/concepts/new-composite/__snapshots__/getQuickInfoOffset.spec.ts.snap +104 -0
  377. package/test/concepts/new-composite/__snapshots__/toEmbeddedTS.spec.ts.snap +97 -0
  378. package/test/concepts/new-composite/__snapshots__/toJS.spec.ts.snap +43 -0
  379. package/test/concepts/new-composite/constant.ts +5 -0
  380. package/test/concepts/new-composite/fixtures/nested-transform.json +241 -0
  381. package/test/concepts/new-composite/fixtures/nested.json +146 -0
  382. package/test/concepts/new-composite/fixtures/normal.json +63 -0
  383. package/test/concepts/new-composite/getQuickInfoOffset.spec.ts +19 -0
  384. package/test/concepts/new-composite/toEmbeddedTS.spec.ts +15 -0
  385. package/test/concepts/new-composite/toJS.spec.ts +14 -0
  386. package/test/concepts/new-list/__snapshots__/getQuickInfoOffset.spec.ts.snap +165 -0
  387. package/test/concepts/new-list/__snapshots__/toEmbeddedTS.spec.ts.snap +207 -0
  388. package/test/concepts/new-list/__snapshots__/toJS.spec.ts.snap +63 -0
  389. package/test/concepts/new-list/constant.ts +5 -0
  390. package/test/concepts/new-list/fixtures/nested-map.json +117 -0
  391. package/test/concepts/new-list/fixtures/nested-tranform.json +140 -0
  392. package/test/concepts/new-list/fixtures/nested.json +107 -0
  393. package/test/concepts/new-list/fixtures/normal.json +95 -0
  394. package/test/concepts/new-list/getQuickInfoOffset.spec.ts +19 -0
  395. package/test/concepts/new-list/toEmbeddedTS.spec.ts +15 -0
  396. package/test/concepts/new-list/toJS.spec.ts +14 -0
  397. package/test/concepts/new-map/__snapshots__/getQuickInfoOffset.spec.ts.snap +115 -0
  398. package/test/concepts/new-map/__snapshots__/toEmbeddedTS.spec.ts.snap +192 -0
  399. package/test/concepts/new-map/__snapshots__/toJS.spec.ts.snap +54 -0
  400. package/test/concepts/new-map/constant.ts +5 -0
  401. package/test/concepts/new-map/fixtures/nested-transform.json +169 -0
  402. package/test/concepts/new-map/fixtures/nested.json +141 -0
  403. package/test/concepts/new-map/fixtures/normal.json +101 -0
  404. package/test/concepts/new-map/getQuickInfoOffset.spec.ts +19 -0
  405. package/test/concepts/new-map/toEmbeddedTS.spec.ts +15 -0
  406. package/test/concepts/new-map/toJS.spec.ts +14 -0
  407. package/test/concepts/utils.ts +17 -0
@@ -0,0 +1,86 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`call-interface:getQuickInfoOffset only-interface 1`] = `
4
+ Object {
5
+ "code": "apis.a123456.interfaces.only_interface();
6
+ ",
7
+ "line": 1,
8
+ "offset": 25,
9
+ }
10
+ `;
11
+
12
+ exports[`call-interface:getQuickInfoOffset with-body-complex-argument 1`] = `
13
+ Object {
14
+ "code": "apis.a123456.interfaces.with_body({param1:new nasl.core.String('StringLiteral'), param2:new nasl.core.Long(123), Body:(() => {
15
+ new nasl.core.Long(1);
16
+ new nasl.core.String('StringLiteral');
17
+ new nasl.core.String('StringLiteral');
18
+ function __newComposite() {
19
+ let __obj = nasl.util.New<apis.a123456.structures.With_bodyBody>();
20
+ const { id, value, property1 } = __obj;
21
+ __obj.id = new nasl.core.Long(1);
22
+ __obj.value = new nasl.core.String('StringLiteral');
23
+ __obj.property1 = new nasl.core.String('StringLiteral');
24
+ return __obj;
25
+ };
26
+ return __newComposite();
27
+ })()});
28
+ ",
29
+ "line": 1,
30
+ "offset": 25,
31
+ }
32
+ `;
33
+
34
+ exports[`call-interface:getQuickInfoOffset with-body-no-argument 1`] = `
35
+ Object {
36
+ "code": "apis.a123456.interfaces.with_body({param1:undefined});
37
+ ",
38
+ "line": 1,
39
+ "offset": 25,
40
+ }
41
+ `;
42
+
43
+ exports[`call-interface:getQuickInfoOffset with-body-simple-argument 1`] = `
44
+ Object {
45
+ "code": "apis.a123456.interfaces.with_body({param1:new nasl.core.String('StringLiteral'), param2:new nasl.core.String('StringLiteral')});
46
+ ",
47
+ "line": 1,
48
+ "offset": 25,
49
+ }
50
+ `;
51
+
52
+ exports[`call-interface:getQuickInfoOffset with-headers 1`] = `
53
+ Object {
54
+ "code": "apis.a123456.interfaces.with_headers({param1:new nasl.core.String('StringLiteral')});
55
+ ",
56
+ "line": 1,
57
+ "offset": 25,
58
+ }
59
+ `;
60
+
61
+ exports[`call-interface:getQuickInfoOffset with-headers-no-argument 1`] = `
62
+ Object {
63
+ "code": "apis.a123456.interfaces.with_headers({param1:__IDENTIFIER__, param2:undefined});
64
+ ",
65
+ "line": 1,
66
+ "offset": 25,
67
+ }
68
+ `;
69
+
70
+ exports[`call-interface:getQuickInfoOffset with-query 1`] = `
71
+ Object {
72
+ "code": "apis.a123456.interfaces.with_query({param1:new nasl.core.String('StringLiteral')});
73
+ ",
74
+ "line": 1,
75
+ "offset": 25,
76
+ }
77
+ `;
78
+
79
+ exports[`call-interface:getQuickInfoOffset with-query-no-argument 1`] = `
80
+ Object {
81
+ "code": "apis.a123456.interfaces.with_query({param1:__IDENTIFIER__, param2:undefined});
82
+ ",
83
+ "line": 1,
84
+ "offset": 25,
85
+ }
86
+ `;
@@ -28,7 +28,7 @@ exports[`call-interface:toEmbeddedTS with-body-complex-argument 1`] = `
28
28
  `;
29
29
 
30
30
  exports[`call-interface:toEmbeddedTS with-body-no-argument 1`] = `
31
- "apis.a123456.interfaces.with_body({ param1: __IDENTIFIER__ });
31
+ "apis.a123456.interfaces.with_body({ param1: undefined });
32
32
  "
33
33
  `;
34
34
 
@@ -50,7 +50,7 @@ exports[`call-interface:toEmbeddedTS with-headers 1`] = `
50
50
  exports[`call-interface:toEmbeddedTS with-headers-no-argument 1`] = `
51
51
  "apis.a123456.interfaces.with_headers({
52
52
  param1: __IDENTIFIER__,
53
- param2: __IDENTIFIER__,
53
+ param2: undefined,
54
54
  });
55
55
  "
56
56
  `;
@@ -65,7 +65,7 @@ exports[`call-interface:toEmbeddedTS with-query 1`] = `
65
65
  exports[`call-interface:toEmbeddedTS with-query-no-argument 1`] = `
66
66
  "apis.a123456.interfaces.with_query({
67
67
  param1: __IDENTIFIER__,
68
- param2: __IDENTIFIER__,
68
+ param2: undefined,
69
69
  });
70
70
  "
71
71
  `;
@@ -0,0 +1,19 @@
1
+ import { expect } from 'chai';
2
+ import type { CallInterface } from '../../../src';
3
+ import { runGeneratorSync as runSync } from '../../../src/utils';
4
+ import { getNodeByData, readFixture, getCodeRange } from '../utils';
5
+ import { ConceptName, cases } from './constant';
6
+
7
+ describe(`${ConceptName}:getQuickInfoOffset`, () => {
8
+ cases.forEach((name) => {
9
+ it(name, () => {
10
+ const data = readFixture(ConceptName, name);
11
+ const node = getNodeByData<CallInterface>(data);
12
+ const tsCode = runSync(node.toEmbeddedTS());
13
+ expect({
14
+ code: tsCode,
15
+ ...node.getQuickInfoOffset(getCodeRange(tsCode), () => tsCode),
16
+ }).toMatchSnapshot();
17
+ });
18
+ });
19
+ });
@@ -1,15 +1,10 @@
1
1
  import { expect } from 'chai';
2
2
  import type { CallLogic } from '../../../src';
3
3
  import { runGeneratorSync as runSync } from '../../../src/utils';
4
- import { getNodeByData, readFixture } from '../utils';
4
+ import { getNodeByData, readFixture, getCodeRange } from '../utils';
5
5
  import { ConceptName, cases } from './constant';
6
6
 
7
7
  describe(`${ConceptName}:getQuickInfoOffset`, () => {
8
- const fakeInputOffset = {
9
- line: 1,
10
- offset: 1,
11
- };
12
-
13
8
  cases.forEach((name) => {
14
9
  it(name, () => {
15
10
  const data = readFixture(ConceptName, name);
@@ -17,7 +12,7 @@ describe(`${ConceptName}:getQuickInfoOffset`, () => {
17
12
  const tsCode = runSync(node.toEmbeddedTS());
18
13
  expect({
19
14
  code: tsCode,
20
- ...node.getQuickInfoOffset(fakeInputOffset, tsCode),
15
+ ...node.getQuickInfoOffset(getCodeRange(tsCode), () => tsCode),
21
16
  }).toMatchSnapshot();
22
17
  });
23
18
  });
@@ -0,0 +1,104 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`new-composite:getQuickInfoOffset nested 1`] = `
4
+ Object {
5
+ "code": "(() => {
6
+ (() => {
7
+ new nasl.core.Boolean(true);
8
+ let temp0__ = new nasl.core.Boolean(true);
9
+ function __newComposite() {
10
+ let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
11
+ return {
12
+ property1,
13
+ __name: \\"AStructure_AAAAAAAA\\" as const,
14
+ }
15
+ };
16
+ return __newComposite();
17
+ })();
18
+ let temp0__ = (() => {
19
+ new nasl.core.Boolean(true);
20
+ let temp0__ = new nasl.core.Boolean(true);
21
+ function __newComposite() {
22
+ let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
23
+ return {
24
+ property1,
25
+ __name: \\"AStructure_AAAAAAAA\\" as const,
26
+ }
27
+ };
28
+ return __newComposite();
29
+ })();
30
+ function __newComposite() {
31
+ let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
32
+ return {
33
+ property1,
34
+ __name: \\"AStructure_AAAAAAAA\\" as const,
35
+ }
36
+ };
37
+ return __newComposite();
38
+ })()",
39
+ "line": 33,
40
+ "offset": 12,
41
+ }
42
+ `;
43
+
44
+ exports[`new-composite:getQuickInfoOffset nested-transform 1`] = `
45
+ Object {
46
+ "code": "(() => {
47
+ nasl.util.ListTransform(variable1, (item) => {
48
+ return (() => {
49
+ item;
50
+ let temp0__ = item;
51
+ function __newComposite() {
52
+ let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
53
+ return {
54
+ property1,
55
+ __name: \\"AStructure_AAAAAAAA\\" as const,
56
+ }
57
+ };
58
+ return __newComposite();
59
+ })();});
60
+ let temp0__ = nasl.util.ListTransform(variable1, (item) => {
61
+ return (() => {
62
+ item;
63
+ let temp0__ = item;
64
+ function __newComposite() {
65
+ let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
66
+ return {
67
+ property1,
68
+ __name: \\"AStructure_AAAAAAAA\\" as const,
69
+ }
70
+ };
71
+ return __newComposite();
72
+ })();});
73
+ function __newComposite() {
74
+ let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
75
+ return {
76
+ property1,
77
+ __name: \\"AStructure_AAAAAAAA\\" as const,
78
+ }
79
+ };
80
+ return __newComposite();
81
+ })()",
82
+ "line": 35,
83
+ "offset": 12,
84
+ }
85
+ `;
86
+
87
+ exports[`new-composite:getQuickInfoOffset normal 1`] = `
88
+ Object {
89
+ "code": "(() => {
90
+ new nasl.core.String('StringLiteral');
91
+ let temp0__ = new nasl.core.String('StringLiteral');
92
+ function __newComposite() {
93
+ let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
94
+ return {
95
+ property1,
96
+ __name: \\"AStructure_AAAAAAAA\\" as const,
97
+ }
98
+ };
99
+ return __newComposite();
100
+ })()",
101
+ "line": 11,
102
+ "offset": 12,
103
+ }
104
+ `;
@@ -0,0 +1,97 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`new-composite:toEmbeddedTS nested 1`] = `
4
+ "(() => {
5
+ (() => {
6
+ new nasl.core.Boolean(true);
7
+ let temp0__ = new nasl.core.Boolean(true);
8
+ function __newComposite() {
9
+ let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
10
+ return {
11
+ property1,
12
+ __name: \\"AStructure_AAAAAAAA\\" as const,
13
+ };
14
+ }
15
+ return __newComposite();
16
+ })();
17
+ let temp0__ = (() => {
18
+ new nasl.core.Boolean(true);
19
+ let temp0__ = new nasl.core.Boolean(true);
20
+ function __newComposite() {
21
+ let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
22
+ return {
23
+ property1,
24
+ __name: \\"AStructure_AAAAAAAA\\" as const,
25
+ };
26
+ }
27
+ return __newComposite();
28
+ })();
29
+ function __newComposite() {
30
+ let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
31
+ return {
32
+ property1,
33
+ __name: \\"AStructure_AAAAAAAA\\" as const,
34
+ };
35
+ }
36
+ return __newComposite();
37
+ })();
38
+ "
39
+ `;
40
+
41
+ exports[`new-composite:toEmbeddedTS nested-transform 1`] = `
42
+ "(() => {
43
+ nasl.util.ListTransform(variable1, (item) => {
44
+ return (() => {
45
+ item;
46
+ let temp0__ = item;
47
+ function __newComposite() {
48
+ let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
49
+ return {
50
+ property1,
51
+ __name: \\"AStructure_AAAAAAAA\\" as const,
52
+ };
53
+ }
54
+ return __newComposite();
55
+ })();
56
+ });
57
+ let temp0__ = nasl.util.ListTransform(variable1, (item) => {
58
+ return (() => {
59
+ item;
60
+ let temp0__ = item;
61
+ function __newComposite() {
62
+ let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
63
+ return {
64
+ property1,
65
+ __name: \\"AStructure_AAAAAAAA\\" as const,
66
+ };
67
+ }
68
+ return __newComposite();
69
+ })();
70
+ });
71
+ function __newComposite() {
72
+ let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
73
+ return {
74
+ property1,
75
+ __name: \\"AStructure_AAAAAAAA\\" as const,
76
+ };
77
+ }
78
+ return __newComposite();
79
+ })();
80
+ "
81
+ `;
82
+
83
+ exports[`new-composite:toEmbeddedTS normal 1`] = `
84
+ "(() => {
85
+ new nasl.core.String(\\"StringLiteral\\");
86
+ let temp0__ = new nasl.core.String(\\"StringLiteral\\");
87
+ function __newComposite() {
88
+ let property1: nasl.core.Incompatible<typeof temp0__, void> = temp0__;
89
+ return {
90
+ property1,
91
+ __name: \\"AStructure_AAAAAAAA\\" as const,
92
+ };
93
+ }
94
+ return __newComposite();
95
+ })();
96
+ "
97
+ `;
@@ -0,0 +1,43 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`new-composite:toJS nested 1`] = `
4
+ "await(async () => {
5
+ const obj = {};
6
+ obj.property1 = null;
7
+ obj.property1 = await (async () => {
8
+ const obj = {};
9
+ obj.property1 = null;
10
+ obj.property1 = true;
11
+ return obj;
12
+ })();
13
+ return obj;
14
+ })();
15
+ "
16
+ `;
17
+
18
+ exports[`new-composite:toJS nested-transform 1`] = `
19
+ "await(async () => {
20
+ const obj = {};
21
+ obj.property1 = null;
22
+ obj.property1 = this.$utils[\\"ListTransform\\"](variable1, (item) =>
23
+ await(async () => {
24
+ const obj = {};
25
+ obj.property1 = null;
26
+ obj.property1 = item;
27
+ return obj;
28
+ })()
29
+ );
30
+ return obj;
31
+ })();
32
+ "
33
+ `;
34
+
35
+ exports[`new-composite:toJS normal 1`] = `
36
+ "await(async () => {
37
+ const obj = {};
38
+ obj.property1 = null;
39
+ obj.property1 = \`test\`;
40
+ return obj;
41
+ })();
42
+ "
43
+ `;
@@ -0,0 +1,5 @@
1
+ import { basename } from 'path';
2
+ import { getCases } from '../utils';
3
+
4
+ export const ConceptName = basename(__dirname);
5
+ export const cases = getCases(ConceptName);
@@ -0,0 +1,241 @@
1
+ {
2
+ "concept": "Logic",
3
+ "name": "logic4",
4
+ "typeParams": null,
5
+ "params": [],
6
+ "returns": [
7
+ {
8
+ "concept": "Return",
9
+ "name": "result"
10
+ }
11
+ ],
12
+ "variables": [
13
+ {
14
+ "concept": "Variable",
15
+ "changedTime": 1702381136886,
16
+ "name": "variable1",
17
+ "typeAnnotation": {
18
+ "concept": "TypeAnnotation",
19
+ "changedTime": null,
20
+ "branchName": null,
21
+ "workingCopy": null,
22
+ "branch": null,
23
+ "name": "",
24
+ "typeKind": "generic",
25
+ "typeNamespace": "nasl.collection",
26
+ "typeName": "List",
27
+ "typeArguments": [
28
+ {
29
+ "concept": "TypeAnnotation",
30
+ "changedTime": null,
31
+ "branchName": null,
32
+ "workingCopy": null,
33
+ "branch": null,
34
+ "name": "T",
35
+ "typeKind": "primitive",
36
+ "typeNamespace": "nasl.core",
37
+ "typeName": "String",
38
+ "typeArguments": null,
39
+ "returnType": null,
40
+ "inferred": null,
41
+ "properties": null,
42
+ "ruleMap": null
43
+ }
44
+ ],
45
+ "returnType": null,
46
+ "inferred": null,
47
+ "properties": null,
48
+ "ruleMap": null
49
+ }
50
+ }
51
+ ],
52
+ "body": [
53
+ {
54
+ "concept": "Start",
55
+ "name": "",
56
+ "label": "开始",
57
+ "folded": false
58
+ },
59
+ {
60
+ "concept": "Assignment",
61
+ "changedTime": 1702381212461,
62
+ "name": "",
63
+ "label": "赋值",
64
+ "folded": false,
65
+ "left": {
66
+ "concept": "Identifier",
67
+ "name": "result",
68
+ "folded": false
69
+ },
70
+ "right": {
71
+ "__$Selected": true,
72
+ "concept": "NewComposite",
73
+ "typeAnnotation": {
74
+ "concept": "TypeAnnotation",
75
+ "name": "",
76
+ "typeKind": "anonymousStructure",
77
+ "typeArguments": null,
78
+ "returnType": null,
79
+ "properties": [
80
+ {
81
+ "concept": "StructureProperty",
82
+ "name": "property1",
83
+ "typeAnnotation": null,
84
+ "isLeaf": true
85
+ }
86
+ ]
87
+ },
88
+ "properties": [
89
+ {
90
+ "concept": "Identifier",
91
+ "name": "property1",
92
+ "folded": false
93
+ }
94
+ ],
95
+ "rights": [
96
+ {
97
+ "concept": "SelectMembers",
98
+ "changedTime": 1702381243045,
99
+ "name": "",
100
+ "hideMembers": false,
101
+ "expression": {
102
+ "concept": "CallFunction",
103
+ "changedTime": 1702381246577,
104
+ "name": "",
105
+ "label": "内置函数",
106
+ "folded": false,
107
+ "calleeNamespace": "nasl.util",
108
+ "calleeName": "ListTransform",
109
+ "typeArguments": [],
110
+ "arguments": [
111
+ {
112
+ "concept": "Argument",
113
+ "changedTime": 1702381256850,
114
+ "name": "",
115
+ "folded": false,
116
+ "keyword": "list",
117
+ "expression": {
118
+ "concept": "Identifier",
119
+ "name": "variable1",
120
+ "folded": false
121
+ }
122
+ },
123
+ {
124
+ "concept": "Argument",
125
+ "changedTime": 1702381246585,
126
+ "name": "",
127
+ "folded": false,
128
+ "keyword": "by",
129
+ "expression": {
130
+ "concept": "AnonymousFunction",
131
+ "changedTime": 1702381265999,
132
+ "name": "",
133
+ "folded": false,
134
+ "params": [
135
+ {
136
+ "concept": "Param",
137
+ "name": "item",
138
+ "typeAnnotation": null,
139
+ "required": true,
140
+ "defaultValue": "",
141
+ "defaultExpression": null,
142
+ "options": null,
143
+ "useComponent": null,
144
+ "cascader": false
145
+ }
146
+ ],
147
+ "body": {
148
+ "concept": "NewComposite",
149
+ "changedTime": 1702381283175,
150
+ "name": "",
151
+ "folded": false,
152
+ "typeAnnotation": {
153
+ "concept": "TypeAnnotation",
154
+ "name": "",
155
+ "typeKind": "anonymousStructure",
156
+ "typeArguments": null,
157
+ "returnType": null,
158
+ "properties": [
159
+ {
160
+ "concept": "StructureProperty",
161
+ "name": "property1",
162
+ "typeAnnotation": null,
163
+ "isLeaf": true
164
+ }
165
+ ]
166
+ },
167
+ "properties": [
168
+ {
169
+ "concept": "Identifier",
170
+ "name": "property1",
171
+ "folded": false
172
+ }
173
+ ],
174
+ "rights": [
175
+ {
176
+ "concept": "SelectMembers",
177
+ "changedTime": null,
178
+ "branchName": null,
179
+ "workingCopy": null,
180
+ "branch": null,
181
+ "name": "",
182
+ "hideMembers": false,
183
+ "expression": {
184
+ "concept": "Identifier",
185
+ "name": "item",
186
+ "folded": false
187
+ },
188
+ "members": []
189
+ }
190
+ ],
191
+ "assignmentLines": [
192
+ {
193
+ "concept": "AssignmentLine",
194
+ "name": "",
195
+ "leftIndex": [
196
+ 0,
197
+ 0
198
+ ],
199
+ "rightIndex": [
200
+ 0
201
+ ]
202
+ }
203
+ ],
204
+ "hideProperties": false,
205
+ "hideDefaults": false,
206
+ "autoConnection": true
207
+ }
208
+ }
209
+ }
210
+ ]
211
+ },
212
+ "members": []
213
+ }
214
+ ],
215
+ "assignmentLines": [
216
+ {
217
+ "concept": "AssignmentLine",
218
+ "name": "",
219
+ "leftIndex": [
220
+ 0,
221
+ 0
222
+ ],
223
+ "rightIndex": [
224
+ 0
225
+ ]
226
+ }
227
+ ],
228
+ "hideProperties": false,
229
+ "hideDefaults": false,
230
+ "autoConnection": true
231
+ }
232
+ },
233
+ {
234
+ "concept": "End",
235
+ "name": "",
236
+ "label": "结束",
237
+ "folded": false
238
+ }
239
+ ],
240
+ "playground": []
241
+ }