@eagleoutice/flowr 2.10.9 → 2.11.0

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 (417) hide show
  1. package/README.md +116 -38
  2. package/abstract-interpretation/absint-visitor.js +6 -3
  3. package/abstract-interpretation/domains/abstract-domain.d.ts +1 -1
  4. package/abstract-interpretation/domains/bounded-set-domain.d.ts +1 -1
  5. package/abstract-interpretation/domains/bounded-set-domain.js +1 -1
  6. package/abstract-interpretation/domains/interval-domain.d.ts +1 -1
  7. package/abstract-interpretation/domains/interval-domain.js +1 -1
  8. package/abstract-interpretation/domains/lattice.d.ts +1 -1
  9. package/abstract-interpretation/domains/partial-product-domain.d.ts +1 -1
  10. package/abstract-interpretation/domains/partial-product-domain.js +2 -2
  11. package/abstract-interpretation/domains/set-range-domain.d.ts +1 -1
  12. package/abstract-interpretation/domains/set-range-domain.js +1 -1
  13. package/abstract-interpretation/domains/set-upper-bound-domain.d.ts +1 -1
  14. package/abstract-interpretation/domains/set-upper-bound-domain.js +1 -1
  15. package/abstract-interpretation/domains/singleton-domain.d.ts +1 -1
  16. package/abstract-interpretation/domains/singleton-domain.js +1 -1
  17. package/abstract-interpretation/domains/state-abstract-domain.d.ts +1 -1
  18. package/abstract-interpretation/domains/state-abstract-domain.js +2 -2
  19. package/abstract-interpretation/unsupported-functions.d.ts +3 -2
  20. package/abstract-interpretation/unsupported-functions.js +38 -28
  21. package/cli/benchmark-app.js +2 -1
  22. package/cli/common/options.d.ts +2 -108
  23. package/cli/common/options.js +3 -27
  24. package/cli/common/script.js +3 -2
  25. package/cli/common/scripts-info.d.ts +2 -123
  26. package/cli/common/scripts-info.js +0 -17
  27. package/cli/flowr-main-options.d.ts +5 -0
  28. package/cli/flowr-main-options.js +10 -0
  29. package/cli/flowr.js +48 -11
  30. package/cli/repl/commands/repl-cfg.js +9 -9
  31. package/cli/repl/commands/repl-commands.js +5 -0
  32. package/cli/repl/commands/repl-dataflow.js +31 -24
  33. package/cli/repl/commands/repl-main.d.ts +6 -0
  34. package/cli/repl/commands/repl-normalize.js +15 -12
  35. package/cli/repl/commands/repl-parse.js +1 -1
  36. package/cli/repl/commands/repl-query.js +4 -5
  37. package/cli/repl/commands/repl-quit.js +2 -1
  38. package/cli/repl/core.d.ts +11 -0
  39. package/cli/repl/core.js +101 -3
  40. package/cli/repl/execute.js +3 -2
  41. package/cli/repl/parser/slice-query-parser.d.ts +16 -0
  42. package/cli/repl/parser/slice-query-parser.js +52 -0
  43. package/cli/repl/print-version.d.ts +3 -1
  44. package/cli/repl/print-version.js +21 -2
  45. package/cli/repl/server/connection.d.ts +3 -0
  46. package/cli/repl/server/connection.js +65 -31
  47. package/cli/repl/server/messages/message-analysis.d.ts +10 -0
  48. package/cli/repl/server/messages/message-analysis.js +6 -2
  49. package/cli/repl/server/messages/message-slice.d.ts +1 -1
  50. package/cli/script-core/summarizer-core.js +13 -32
  51. package/cli/wiki.d.ts +3 -1
  52. package/cli/wiki.js +6 -1
  53. package/config.d.ts +22 -10
  54. package/config.js +33 -7
  55. package/control-flow/diff-cfg.d.ts +1 -1
  56. package/control-flow/diff-cfg.js +1 -1
  57. package/control-flow/semantic-cfg-guided-visitor.js +2 -0
  58. package/control-flow/simple-visitor.js +6 -5
  59. package/control-flow/useless-loop.js +2 -2
  60. package/core/print/dataflow-printer.d.ts +2 -2
  61. package/core/print/dataflow-printer.js +2 -2
  62. package/core/steps/all/static-slicing/00-slice.js +1 -1
  63. package/data/pkgdb/pkgdb-latest.json.br +0 -0
  64. package/data/pkgdb/pkgdb-tiny.json.br +0 -0
  65. package/dataflow/environments/append.d.ts +2 -2
  66. package/dataflow/environments/append.js +4 -10
  67. package/dataflow/environments/apply-kill.d.ts +21 -0
  68. package/dataflow/environments/apply-kill.js +155 -0
  69. package/dataflow/environments/built-in-proc-name.d.ts +4 -0
  70. package/dataflow/environments/built-in-proc-name.js +4 -0
  71. package/dataflow/environments/built-in.d.ts +4 -0
  72. package/dataflow/environments/built-in.js +4 -0
  73. package/dataflow/environments/default-builtin-config.d.ts +183 -67
  74. package/dataflow/environments/default-builtin-config.js +358 -147
  75. package/dataflow/environments/environment.d.ts +49 -31
  76. package/dataflow/environments/environment.js +144 -25
  77. package/dataflow/environments/identifier.d.ts +65 -2
  78. package/dataflow/environments/identifier.js +37 -2
  79. package/dataflow/environments/overwrite.js +2 -10
  80. package/dataflow/environments/reference-to-maybe.d.ts +2 -0
  81. package/dataflow/environments/reference-to-maybe.js +56 -11
  82. package/dataflow/environments/resolve-by-name.d.ts +1 -1
  83. package/dataflow/environments/resolve-by-name.js +23 -9
  84. package/dataflow/environments/scoping.d.ts +9 -2
  85. package/dataflow/environments/scoping.js +15 -2
  86. package/dataflow/eval/values/general.js +4 -0
  87. package/dataflow/extractor.js +35 -4
  88. package/dataflow/graph/df-helper.d.ts +14 -0
  89. package/dataflow/graph/df-helper.js +41 -0
  90. package/dataflow/graph/graph.d.ts +4 -1
  91. package/dataflow/graph/graph.js +6 -2
  92. package/dataflow/info.d.ts +27 -1
  93. package/dataflow/internal/linker.d.ts +5 -1
  94. package/dataflow/internal/linker.js +34 -9
  95. package/dataflow/internal/process/functions/call/built-in/built-in-access.js +7 -5
  96. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +19 -0
  97. package/dataflow/internal/process/functions/call/built-in/built-in-attach.d.ts +1 -8
  98. package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +7 -13
  99. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +9 -48
  100. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +30 -47
  101. package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +17 -0
  102. package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +7 -2
  103. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.d.ts +2 -2
  104. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +61 -1
  105. package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +9 -0
  106. package/dataflow/internal/process/functions/call/built-in/built-in-library.d.ts +37 -3
  107. package/dataflow/internal/process/functions/call/built-in/built-in-library.js +391 -21
  108. package/dataflow/internal/process/functions/call/built-in/built-in-namespace-access.d.ts +13 -0
  109. package/dataflow/internal/process/functions/call/built-in/built-in-namespace-access.js +58 -0
  110. package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.js +1 -1
  111. package/dataflow/internal/process/functions/call/built-in/built-in-rm.d.ts +3 -2
  112. package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +132 -25
  113. package/dataflow/internal/process/functions/call/built-in/built-in-source.js +9 -10
  114. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +25 -0
  115. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +94 -0
  116. package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +11 -4
  117. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +30 -0
  118. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +279 -0
  119. package/dataflow/internal/process/functions/call/known-call-handling.js +4 -3
  120. package/dataflow/internal/process/functions/call/named-call-handling.d.ts +1 -1
  121. package/dataflow/internal/process/functions/call/named-call-handling.js +23 -0
  122. package/dataflow/origin/dfg-get-origin.d.ts +1 -1
  123. package/dataflow/origin/dfg-get-origin.js +1 -1
  124. package/dataflow/processor.d.ts +6 -0
  125. package/documentation/data/faq/faqs.d.ts +2 -1
  126. package/documentation/data/faq/faqs.js +78 -57
  127. package/documentation/data/interface/doc-writing-code.js +4 -80
  128. package/documentation/data/server/doc-data-server-messages.d.ts +2 -1
  129. package/documentation/data/server/doc-data-server-messages.js +15 -7
  130. package/documentation/doc-readme.js +15 -15
  131. package/documentation/doc-util/doc-cfg.d.ts +3 -1
  132. package/documentation/doc-util/doc-cfg.js +3 -3
  133. package/documentation/doc-util/doc-dfg.d.ts +3 -1
  134. package/documentation/doc-util/doc-dfg.js +3 -3
  135. package/documentation/doc-util/doc-files.d.ts +3 -1
  136. package/documentation/doc-util/doc-files.js +9 -6
  137. package/documentation/doc-util/doc-normalized-ast.d.ts +3 -1
  138. package/documentation/doc-util/doc-normalized-ast.js +2 -2
  139. package/documentation/doc-util/doc-query.d.ts +2 -1
  140. package/documentation/doc-util/doc-query.js +2 -2
  141. package/documentation/doc-util/doc-repl.js +1 -0
  142. package/documentation/doc-util/doc-structure.js +1 -2
  143. package/documentation/doc-util/doc-types.d.ts +6 -6
  144. package/documentation/doc-util/doc-types.js +11 -9
  145. package/documentation/issue-linting-rule.js +1 -2
  146. package/documentation/wiki-analyzer.js +9 -9
  147. package/documentation/wiki-cfg.js +40 -41
  148. package/documentation/wiki-core.js +121 -32
  149. package/documentation/wiki-create-linting-rules.d.ts +6 -0
  150. package/documentation/wiki-create-linting-rules.js +95 -0
  151. package/documentation/wiki-dataflow-graph.js +112 -77
  152. package/documentation/wiki-engine.js +1 -2
  153. package/documentation/wiki-faq.d.ts +2 -1
  154. package/documentation/wiki-faq.js +4 -4
  155. package/documentation/wiki-interface.js +22 -8
  156. package/documentation/wiki-linter.d.ts +1 -1
  157. package/documentation/wiki-linter.js +16 -6
  158. package/documentation/wiki-linting-and-testing.js +2 -2
  159. package/documentation/wiki-mk/doc-context.d.ts +3 -3
  160. package/documentation/wiki-mk/doc-maker.d.ts +2 -0
  161. package/documentation/wiki-mk/doc-maker.js +7 -1
  162. package/documentation/wiki-normalized-ast.js +5 -5
  163. package/documentation/wiki-onboarding.d.ts +2 -1
  164. package/documentation/wiki-onboarding.js +5 -5
  165. package/documentation/wiki-overview.js +4 -17
  166. package/documentation/wiki-package-database.d.ts +9 -0
  167. package/documentation/wiki-package-database.js +63 -0
  168. package/documentation/wiki-query.js +86 -84
  169. package/documentation/wiki-search.js +4 -5
  170. package/documentation/wiki-setup.js +6 -7
  171. package/gas.d.ts +74 -0
  172. package/gas.js +18 -0
  173. package/linter/linter-executor.js +2 -8
  174. package/linter/linter-format.d.ts +4 -11
  175. package/linter/linter-rules.d.ts +111 -86
  176. package/linter/linter-rules.js +9 -1
  177. package/linter/rules/absolute-path.d.ts +2 -7
  178. package/linter/rules/absolute-path.js +8 -5
  179. package/linter/rules/dataframe-access-validation.d.ts +1 -6
  180. package/linter/rules/dataframe-access-validation.js +8 -6
  181. package/linter/rules/dead-code.d.ts +2 -11
  182. package/linter/rules/dead-code.js +16 -11
  183. package/linter/rules/deprecated-functions.d.ts +3 -3
  184. package/linter/rules/file-path-validity.d.ts +1 -6
  185. package/linter/rules/file-path-validity.js +5 -5
  186. package/linter/rules/function-finder-util.d.ts +7 -11
  187. package/linter/rules/function-finder-util.js +9 -6
  188. package/linter/rules/naming-convention.d.ts +2 -7
  189. package/linter/rules/naming-convention.js +3 -2
  190. package/linter/rules/network-functions.d.ts +2 -7
  191. package/linter/rules/network-functions.js +14 -12
  192. package/linter/rules/no-leaked-credentials.d.ts +36 -0
  193. package/linter/rules/no-leaked-credentials.js +75 -0
  194. package/linter/rules/problematic-inputs.d.ts +1 -8
  195. package/linter/rules/problematic-inputs.js +5 -4
  196. package/linter/rules/roxygen-arguments.d.ts +2 -7
  197. package/linter/rules/roxygen-arguments.js +13 -20
  198. package/linter/rules/seeded-randomness.d.ts +2 -7
  199. package/linter/rules/seeded-randomness.js +7 -4
  200. package/linter/rules/software-has-license.d.ts +31 -0
  201. package/linter/rules/software-has-license.js +46 -0
  202. package/linter/rules/software-has-tests.d.ts +38 -0
  203. package/linter/rules/software-has-tests.js +48 -0
  204. package/linter/rules/stop-with-call-arg.d.ts +2 -7
  205. package/linter/rules/stop-with-call-arg.js +3 -2
  206. package/linter/rules/undefined-symbol.d.ts +39 -0
  207. package/linter/rules/undefined-symbol.js +80 -0
  208. package/linter/rules/unused-definition.d.ts +3 -8
  209. package/linter/rules/unused-definition.js +7 -5
  210. package/linter/rules/useless-loop.d.ts +2 -7
  211. package/linter/rules/useless-loop.js +5 -2
  212. package/package.json +5 -5
  213. package/project/cache/flowr-analyzer-cache.d.ts +2 -0
  214. package/project/cache/flowr-analyzer-cache.js +9 -1
  215. package/project/context/flowr-analyzer-context.d.ts +13 -14
  216. package/project/context/flowr-analyzer-context.js +4 -0
  217. package/project/context/flowr-analyzer-dependencies-context.d.ts +16 -8
  218. package/project/context/flowr-analyzer-dependencies-context.js +36 -4
  219. package/project/context/flowr-analyzer-environment-context.d.ts +2 -4
  220. package/project/context/flowr-analyzer-environment-context.js +3 -4
  221. package/project/context/flowr-analyzer-files-context.d.ts +13 -0
  222. package/project/context/flowr-analyzer-files-context.js +12 -2
  223. package/project/context/flowr-analyzer-gas-context.d.ts +28 -0
  224. package/project/context/flowr-analyzer-gas-context.js +101 -0
  225. package/project/context/flowr-file.d.ts +2 -0
  226. package/project/context/flowr-file.js +2 -0
  227. package/project/flowr-analyzer-builder.js +3 -0
  228. package/project/flowr-analyzer.d.ts +2 -1
  229. package/project/flowr-analyzer.js +3 -1
  230. package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +13 -15
  231. package/project/plugins/file-plugins/files/flowr-namespace-file.js +36 -13
  232. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +13 -7
  233. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +56 -11
  234. package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.d.ts +27 -0
  235. package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.js +41 -0
  236. package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.d.ts +1 -1
  237. package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.js +2 -2
  238. package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.d.ts +2 -1
  239. package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.js +5 -5
  240. package/project/plugins/flowr-analyzer-plugin.d.ts +15 -8
  241. package/project/plugins/flowr-analyzer-plugin.js +14 -7
  242. package/project/plugins/gas-plugins/flowr-analyzer-gas-plugin.d.ts +19 -0
  243. package/project/plugins/gas-plugins/flowr-analyzer-gas-plugin.js +35 -0
  244. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.d.ts +18 -0
  245. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +62 -0
  246. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-pkgdb-plugin.d.ts +63 -0
  247. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-pkgdb-plugin.js +174 -0
  248. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.d.ts +10 -0
  249. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.js +6 -0
  250. package/project/plugins/package-version-plugins/package.d.ts +3 -0
  251. package/project/plugins/package-version-plugins/package.js +12 -0
  252. package/project/plugins/package-version-plugins/pkgdb.d.ts +133 -0
  253. package/project/plugins/package-version-plugins/pkgdb.js +370 -0
  254. package/project/plugins/plugin-registry.d.ts +5 -1
  255. package/project/plugins/plugin-registry.js +10 -1
  256. package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.d.ts +22 -0
  257. package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.js +47 -0
  258. package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +1 -1
  259. package/queries/catalog/call-context-query/call-context-query-executor.js +62 -8
  260. package/queries/catalog/call-context-query/call-context-query-format.d.ts +4 -2
  261. package/queries/catalog/call-context-query/call-context-query-format.js +1 -0
  262. package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +8 -0
  263. package/queries/catalog/dependencies-query/dependencies-query-executor.js +31 -3
  264. package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +3 -1
  265. package/queries/catalog/dependencies-query/dependencies-query-format.js +3 -2
  266. package/queries/catalog/dependencies-query/function-info/function-info.d.ts +1 -1
  267. package/queries/catalog/dependencies-query/function-info/other-path-functions.d.ts +2 -0
  268. package/queries/catalog/dependencies-query/function-info/other-path-functions.js +27 -0
  269. package/queries/catalog/dependencies-query/function-info/read-functions.js +5 -4
  270. package/queries/catalog/dependencies-query/function-info/test-functions.d.ts +2 -0
  271. package/queries/catalog/dependencies-query/function-info/test-functions.js +18 -177
  272. package/queries/catalog/dependencies-query/function-info/visualize-functions.js +3 -1
  273. package/queries/catalog/df-shape-query/df-shape-query-format.js +1 -1
  274. package/queries/catalog/dice-query/dice-query-executor.d.ts +8 -0
  275. package/queries/catalog/dice-query/dice-query-executor.js +52 -0
  276. package/queries/catalog/dice-query/dice-query-format.d.ts +53 -0
  277. package/queries/catalog/dice-query/dice-query-format.js +102 -0
  278. package/queries/catalog/happens-before-query/happens-before-query-executor.js +2 -2
  279. package/queries/catalog/input-sources-query/input-sources-query-format.d.ts +2 -0
  280. package/queries/catalog/input-sources-query/input-sources-query-format.js +1 -0
  281. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.d.ts +2 -0
  282. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.js +1 -0
  283. package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.d.ts +2 -0
  284. package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.js +1 -0
  285. package/queries/catalog/linter-query/linter-query-executor.js +8 -0
  286. package/queries/catalog/location-map-query/location-map-query-format.d.ts +2 -0
  287. package/queries/catalog/location-map-query/location-map-query-format.js +1 -0
  288. package/queries/catalog/origin-query/origin-query-format.d.ts +2 -0
  289. package/queries/catalog/origin-query/origin-query-format.js +1 -0
  290. package/queries/catalog/provenance-query/provenance-query-format.d.ts +2 -0
  291. package/queries/catalog/provenance-query/provenance-query-format.js +1 -0
  292. package/queries/catalog/resolve-value-query/resolve-value-query-format.d.ts +2 -0
  293. package/queries/catalog/resolve-value-query/resolve-value-query-format.js +1 -0
  294. package/queries/catalog/static-slice-query/static-slice-query-executor.js +1 -1
  295. package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +2 -0
  296. package/queries/catalog/static-slice-query/static-slice-query-format.js +1 -0
  297. package/queries/query.d.ts +18 -1
  298. package/queries/query.js +3 -1
  299. package/r-bridge/data/data.d.ts +7 -2
  300. package/r-bridge/data/data.js +8 -2
  301. package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +0 -1
  302. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.d.ts +1 -1
  303. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.js +1 -1
  304. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.d.ts +1 -1
  305. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.js +1 -1
  306. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +13 -4
  307. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +55 -44
  308. package/r-bridge/parser.js +2 -9
  309. package/r-bridge/shell.d.ts +8 -1
  310. package/r-bridge/shell.js +26 -7
  311. package/search/flowr-search-builder.d.ts +2 -2
  312. package/search/flowr-search-builder.js +1 -1
  313. package/search/flowr-search-filters.d.ts +30 -9
  314. package/search/flowr-search-filters.js +26 -21
  315. package/search/search-executor/search-enrichers.d.ts +601 -1
  316. package/search/search-executor/search-enrichers.js +30 -6
  317. package/slicing/static/static-slicer.d.ts +39 -11
  318. package/slicing/static/static-slicer.js +44 -14
  319. package/util/collections/queue.d.ts +16 -0
  320. package/util/collections/queue.js +38 -0
  321. package/util/log.d.ts +1 -1
  322. package/util/log.js +1 -1
  323. package/util/mermaid/dfg.d.ts +2 -2
  324. package/util/mermaid/dfg.js +2 -2
  325. package/util/mermaid/mermaid.d.ts +4 -0
  326. package/util/mermaid/mermaid.js +8 -1
  327. package/util/objects.d.ts +9 -0
  328. package/util/objects.js +54 -0
  329. package/util/proc.d.ts +6 -0
  330. package/util/proc.js +20 -0
  331. package/util/version.js +10 -2
  332. package/cli/common/features.d.ts +0 -9
  333. package/cli/common/features.js +0 -35
  334. package/cli/script-core/statistics-core.d.ts +0 -6
  335. package/cli/script-core/statistics-core.js +0 -103
  336. package/cli/script-core/statistics-helper-core.d.ts +0 -6
  337. package/cli/script-core/statistics-helper-core.js +0 -85
  338. package/cli/statistics-app.d.ts +0 -11
  339. package/cli/statistics-app.js +0 -16
  340. package/cli/statistics-helper-app.d.ts +0 -11
  341. package/cli/statistics-helper-app.js +0 -14
  342. package/statistics/features/common-syntax-probability.d.ts +0 -38
  343. package/statistics/features/common-syntax-probability.js +0 -169
  344. package/statistics/features/feature.d.ts +0 -179
  345. package/statistics/features/feature.js +0 -38
  346. package/statistics/features/post-processing.d.ts +0 -18
  347. package/statistics/features/post-processing.js +0 -26
  348. package/statistics/features/supported/assignments/assignments.d.ts +0 -12
  349. package/statistics/features/supported/assignments/assignments.js +0 -56
  350. package/statistics/features/supported/assignments/post-process.d.ts +0 -6
  351. package/statistics/features/supported/assignments/post-process.js +0 -126
  352. package/statistics/features/supported/comments/comments.d.ts +0 -18
  353. package/statistics/features/supported/comments/comments.js +0 -143
  354. package/statistics/features/supported/comments/post-process.d.ts +0 -6
  355. package/statistics/features/supported/comments/post-process.js +0 -51
  356. package/statistics/features/supported/control-flow/control-flow.d.ts +0 -17
  357. package/statistics/features/supported/control-flow/control-flow.js +0 -69
  358. package/statistics/features/supported/control-flow/post-process.d.ts +0 -6
  359. package/statistics/features/supported/control-flow/post-process.js +0 -66
  360. package/statistics/features/supported/data-access/data-access.d.ts +0 -15
  361. package/statistics/features/supported/data-access/data-access.js +0 -122
  362. package/statistics/features/supported/data-access/post-process.d.ts +0 -6
  363. package/statistics/features/supported/data-access/post-process.js +0 -108
  364. package/statistics/features/supported/defined-functions/defined-functions.d.ts +0 -34
  365. package/statistics/features/supported/defined-functions/defined-functions.js +0 -145
  366. package/statistics/features/supported/defined-functions/post-process.d.ts +0 -6
  367. package/statistics/features/supported/defined-functions/post-process.js +0 -168
  368. package/statistics/features/supported/expression-list/post-process.d.ts +0 -6
  369. package/statistics/features/supported/expression-list/post-process.js +0 -45
  370. package/statistics/features/supported/expression-list/statistics-expression-list.d.ts +0 -9
  371. package/statistics/features/supported/expression-list/statistics-expression-list.js +0 -37
  372. package/statistics/features/supported/loops/loops.d.ts +0 -20
  373. package/statistics/features/supported/loops/loops.js +0 -81
  374. package/statistics/features/supported/loops/post-process.d.ts +0 -6
  375. package/statistics/features/supported/loops/post-process.js +0 -73
  376. package/statistics/features/supported/used-functions/post-process.d.ts +0 -6
  377. package/statistics/features/supported/used-functions/post-process.js +0 -176
  378. package/statistics/features/supported/used-functions/used-functions.d.ts +0 -24
  379. package/statistics/features/supported/used-functions/used-functions.js +0 -99
  380. package/statistics/features/supported/used-packages/post-process.d.ts +0 -6
  381. package/statistics/features/supported/used-packages/post-process.js +0 -122
  382. package/statistics/features/supported/used-packages/used-packages.d.ts +0 -16
  383. package/statistics/features/supported/used-packages/used-packages.js +0 -140
  384. package/statistics/features/supported/values/post-process.d.ts +0 -6
  385. package/statistics/features/supported/values/post-process.js +0 -73
  386. package/statistics/features/supported/values/values.d.ts +0 -14
  387. package/statistics/features/supported/values/values.js +0 -111
  388. package/statistics/features/supported/variables/post-process.d.ts +0 -15
  389. package/statistics/features/supported/variables/post-process.js +0 -126
  390. package/statistics/features/supported/variables/variables.d.ts +0 -15
  391. package/statistics/features/supported/variables/variables.js +0 -62
  392. package/statistics/meta-statistics.d.ts +0 -32
  393. package/statistics/meta-statistics.js +0 -16
  394. package/statistics/output/file-provider.d.ts +0 -36
  395. package/statistics/output/file-provider.js +0 -96
  396. package/statistics/output/print-stats.d.ts +0 -29
  397. package/statistics/output/print-stats.js +0 -81
  398. package/statistics/output/statistics-file.d.ts +0 -36
  399. package/statistics/output/statistics-file.js +0 -68
  400. package/statistics/statistics.d.ts +0 -29
  401. package/statistics/statistics.js +0 -108
  402. package/statistics/summarizer/auto-detect.d.ts +0 -5
  403. package/statistics/summarizer/auto-detect.js +0 -34
  404. package/statistics/summarizer/first-phase/process.d.ts +0 -6
  405. package/statistics/summarizer/first-phase/process.js +0 -81
  406. package/statistics/summarizer/post-process/clusterer.d.ts +0 -25
  407. package/statistics/summarizer/post-process/clusterer.js +0 -40
  408. package/statistics/summarizer/post-process/file-based-count.d.ts +0 -16
  409. package/statistics/summarizer/post-process/file-based-count.js +0 -47
  410. package/statistics/summarizer/post-process/histogram.d.ts +0 -57
  411. package/statistics/summarizer/post-process/histogram.js +0 -126
  412. package/statistics/summarizer/post-process/post-process-output.d.ts +0 -14
  413. package/statistics/summarizer/post-process/post-process-output.js +0 -102
  414. package/statistics/summarizer/second-phase/process.d.ts +0 -15
  415. package/statistics/summarizer/second-phase/process.js +0 -118
  416. package/statistics/summarizer/summarizer.d.ts +0 -34
  417. package/statistics/summarizer/summarizer.js +0 -141
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.DiceQueryDefinition = void 0;
7
+ const ansi_1 = require("../../../util/text/ansi");
8
+ const time_1 = require("../../../util/text/time");
9
+ const joi_1 = __importDefault(require("joi"));
10
+ const dice_query_executor_1 = require("./dice-query-executor");
11
+ const query_print_1 = require("../../query-print");
12
+ const slice_query_parser_1 = require("../../../cli/repl/parser/slice-query-parser");
13
+ const diceFormat = '(from1;from2->to1;to2)';
14
+ function diceQueryLineParser(output, line, _config) {
15
+ const parsed = (0, slice_query_parser_1.diceCriteriaParser)(line[0]);
16
+ if (!parsed) {
17
+ output.stderr(output.formatter.format(`Invalid dice query format. Expected ${diceFormat}, e.g. (2@x->12@x) or (1@a;2@b->5@c).`, { color: 1 /* Colors.Red */, effect: ansi_1.ColorEffect.Foreground, style: 1 /* FontStyles.Bold */ }));
18
+ return { query: [] };
19
+ }
20
+ return {
21
+ query: [{ type: 'dice', from: parsed.from, to: parsed.to }],
22
+ rCode: line[1]
23
+ };
24
+ }
25
+ function diceQueryCompleter(line, startingNewArg, _config) {
26
+ if (line.length === 0) {
27
+ return { completions: ['('] };
28
+ }
29
+ if (startingNewArg || line.length !== 1) {
30
+ return { completions: [] };
31
+ }
32
+ const arg = line[0];
33
+ if (arg.endsWith(')')) {
34
+ return { completions: [] };
35
+ }
36
+ const hasArrow = arg.includes('->');
37
+ const side = hasArrow ? arg.slice(arg.indexOf('->') + 2) : arg.slice(1);
38
+ const fragment = side.slice(side.lastIndexOf(';') + 1);
39
+ if (/^\d+$/.test(fragment)) {
40
+ return { completions: [`${arg}@`], argumentPart: arg };
41
+ }
42
+ if (/^\d+@\w+$/.test(fragment)) {
43
+ return { completions: [hasArrow ? `${arg}) ` : `${arg}->`], argumentPart: arg };
44
+ }
45
+ return { completions: [] };
46
+ }
47
+ exports.DiceQueryDefinition = {
48
+ executor: dice_query_executor_1.executeDiceQuery,
49
+ asciiSummarizer: (formatter, _analyzer, queryResults, result) => {
50
+ const out = queryResults;
51
+ if (Object.keys(out.results).length === 1) {
52
+ const [, obj] = Object.entries(out.results)[0];
53
+ const rec = obj.reconstruct;
54
+ if (rec !== undefined) {
55
+ const code = Array.isArray(rec.code) ? rec.code : [rec.code];
56
+ if (code.length === 1) {
57
+ result.push(code[0]);
58
+ return true;
59
+ }
60
+ }
61
+ }
62
+ result.push(`Query: ${(0, ansi_1.bold)('dice', formatter)} (${(0, time_1.printAsMs)(out['.meta'].timing, 0)})`);
63
+ for (const [fingerprint, obj] of Object.entries(out.results)) {
64
+ const { from, to, noReconstruction, noMagicComments } = JSON.parse(fingerprint);
65
+ const addons = [];
66
+ if (noReconstruction) {
67
+ addons.push('no reconstruction');
68
+ }
69
+ if (noMagicComments) {
70
+ addons.push('no magic comments');
71
+ }
72
+ result.push(` ╰ Dice from {${from.join(', ')}} to {${to.join(', ')}} ${addons.join(', ')}`);
73
+ const rec = obj.reconstruct;
74
+ if (rec !== undefined) {
75
+ const code = Array.isArray(rec.code) ? rec.code : [rec.code];
76
+ result.push(' ╰ Code (newline as <code>&#92;n</code>): <code>' + code.flatMap(c => c.split('\n')).join('\\n') + '</code>');
77
+ }
78
+ else {
79
+ result.push(` ╰ Id List: {${(0, query_print_1.summarizeIdsIfTooLong)(formatter, [...obj.slice.result])}}`);
80
+ }
81
+ }
82
+ return true;
83
+ },
84
+ fromLine: diceQueryLineParser,
85
+ completer: diceQueryCompleter,
86
+ schema: joi_1.default.object({
87
+ type: joi_1.default.string().valid('dice').required().description('The type of the query.'),
88
+ from: joi_1.default.array().items(joi_1.default.string()).min(1).required().description('Slicing criteria for the start of the dice (forward slice seeds).'),
89
+ to: joi_1.default.array().items(joi_1.default.string()).min(1).required().description('Slicing criteria for the end of the dice (backward slice seeds).'),
90
+ noReconstruction: joi_1.default.boolean().optional().description('Do not reconstruct the dice into readable code.'),
91
+ noMagicComments: joi_1.default.boolean().optional().description('Should the magic comments be ignored?'),
92
+ }).description('Dice query: selects only paths from the given start nodes that reach the given end nodes.'),
93
+ flattenInvolvedNodes: (queryResults) => {
94
+ const flattened = [];
95
+ const out = queryResults;
96
+ for (const [, obj] of Object.entries(out.results)) {
97
+ flattened.push(...obj.slice.result);
98
+ }
99
+ return flattened;
100
+ }
101
+ };
102
+ //# sourceMappingURL=dice-query-format.js.map
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.executeHappensBefore = executeHappensBefore;
4
4
  const logic_1 = require("../../../util/logic");
5
5
  const log_1 = require("../../../util/log");
6
- const extract_cfg_1 = require("../../../control-flow/extract-cfg");
7
6
  const happens_before_1 = require("../../../control-flow/happens-before");
8
7
  const parse_1 = require("../../../slicing/criterion/parse");
8
+ const cfg_kind_1 = require("../../../project/cfg-kind");
9
9
  /**
10
10
  * Execute happens-before queries on the given analyzer.
11
11
  * This checks, whether for two given slicing criteria `a` and `b`, `a` happens before `b` in the control flow graph.
@@ -14,7 +14,7 @@ async function executeHappensBefore({ analyzer }, queries) {
14
14
  const start = Date.now();
15
15
  const results = {};
16
16
  const ast = await analyzer.normalize();
17
- const cfg = (0, extract_cfg_1.extractCfgQuick)(ast);
17
+ const cfg = await analyzer.controlflow(undefined, cfg_kind_1.CfgKind.Quick);
18
18
  for (const query of queries) {
19
19
  const { a, b } = query;
20
20
  const fingerprint = `${a}<${b}`;
@@ -6,6 +6,7 @@ import type { NodeId } from '../../../r-bridge/lang-4.x/ast/model/processing/nod
6
6
  import { type InputClassifierConfig, type InputSources } from './simple-input-classifier';
7
7
  import type { ReplOutput } from '../../../cli/repl/commands/repl-main';
8
8
  import type { FlowrConfig } from '../../../config';
9
+ import { criteriaQueryCompleter } from '../../../cli/repl/parser/slice-query-parser';
9
10
  import { executeInputSourcesQuery } from './input-sources-query-executor';
10
11
  export type InputSourcesQueryConfig = InputClassifierConfig;
11
12
  /**
@@ -33,6 +34,7 @@ export declare const InputSourcesDefinition: {
33
34
  readonly executor: typeof executeInputSourcesQuery;
34
35
  readonly asciiSummarizer: (formatter: import("../../../util/text/ansi").OutputFormatter, analyzer: import("../../../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../../../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => Promise<boolean>;
35
36
  readonly fromLine: typeof inputSourcesQueryLineParser;
37
+ readonly completer: typeof criteriaQueryCompleter;
36
38
  readonly schema: Joi.ObjectSchema<any>;
37
39
  readonly flattenInvolvedNodes: (queryResults: BaseQueryResult) => NodeId[];
38
40
  };
@@ -57,6 +57,7 @@ exports.InputSourcesDefinition = {
57
57
  return true;
58
58
  },
59
59
  fromLine: inputSourcesQueryLineParser,
60
+ completer: slice_query_parser_1.criteriaQueryCompleter,
60
61
  schema: joi_1.default.object({
61
62
  type: joi_1.default.string().valid('input-sources').required().description('The type of the query.'),
62
63
  criterion: joi_1.default.alternatives(joi_1.default.string(), joi_1.default.array().items(joi_1.default.string())).required().description('The slicing criterion or array of criteria to use.'),
@@ -5,6 +5,7 @@ import { executeExceptionQuery } from './inspect-exception-query-executor';
5
5
  import { NodeId } from '../../../r-bridge/lang-4.x/ast/model/processing/node-id';
6
6
  import type { ReplOutput } from '../../../cli/repl/commands/repl-main';
7
7
  import type { FlowrConfig } from '../../../config';
8
+ import { criteriaQueryCompleter } from '../../../cli/repl/parser/slice-query-parser';
8
9
  import type { ExceptionPoint } from '../../../dataflow/fn/exceptions-of-function';
9
10
  import type { SlicingCriterion } from '../../../slicing/criterion/parse';
10
11
  /**
@@ -28,6 +29,7 @@ export declare const InspectExceptionQueryDefinition: {
28
29
  readonly executor: typeof executeExceptionQuery;
29
30
  readonly asciiSummarizer: (formatter: import("../../../util/text/ansi").OutputFormatter, processed: import("../../../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../../../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => Promise<boolean>;
30
31
  readonly fromLine: typeof inspectExceptionLineParser;
32
+ readonly completer: typeof criteriaQueryCompleter;
31
33
  readonly schema: Joi.ObjectSchema<any>;
32
34
  readonly flattenInvolvedNodes: (queryResults: BaseQueryResult) => NodeId[];
33
35
  };
@@ -43,6 +43,7 @@ exports.InspectExceptionQueryDefinition = {
43
43
  return true;
44
44
  },
45
45
  fromLine: inspectExceptionLineParser,
46
+ completer: slice_query_parser_1.criteriaQueryCompleter,
46
47
  schema: joi_1.default.object({
47
48
  type: joi_1.default.string().valid('inspect-exception').required().description('The type of the query.'),
48
49
  filter: joi_1.default.array().items(joi_1.default.string().required()).optional().description('If given, only function definitions that match one of the given slicing criteria are considered. Each criterion can be either `line:column`, `line@variable-name`, or `$id`, where the latter directly specifies the node id of the function definition to be considered.'),
@@ -6,6 +6,7 @@ import { NodeId } from '../../../r-bridge/lang-4.x/ast/model/processing/node-id'
6
6
  import type { SlicingCriterion } from '../../../slicing/criterion/parse';
7
7
  import type { ReplOutput } from '../../../cli/repl/commands/repl-main';
8
8
  import type { FlowrConfig } from '../../../config';
9
+ import { criteriaQueryCompleter } from '../../../cli/repl/parser/slice-query-parser';
9
10
  /**
10
11
  * Either returns all function definitions alongside whether they are higher-order functions,
11
12
  * or just those matching the filters.
@@ -22,6 +23,7 @@ export declare const InspectHigherOrderQueryDefinition: {
22
23
  readonly executor: typeof executeHigherOrderQuery;
23
24
  readonly asciiSummarizer: (formatter: import("../../../util/text/ansi").OutputFormatter, processed: import("../../../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../../../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => Promise<boolean>;
24
25
  readonly fromLine: typeof inspectHoLineParser;
26
+ readonly completer: typeof criteriaQueryCompleter;
25
27
  readonly schema: Joi.ObjectSchema<any>;
26
28
  readonly flattenInvolvedNodes: (queryResults: BaseQueryResult) => NodeId[];
27
29
  };
@@ -33,6 +33,7 @@ exports.InspectHigherOrderQueryDefinition = {
33
33
  return true;
34
34
  },
35
35
  fromLine: inspectHoLineParser,
36
+ completer: slice_query_parser_1.criteriaQueryCompleter,
36
37
  schema: joi_1.default.object({
37
38
  type: joi_1.default.string().valid('inspect-higher-order').required().description('The type of the query.'),
38
39
  filter: joi_1.default.array().items(joi_1.default.string().required()).optional().description('If given, only function definitions that match one of the given slicing criteria are considered. Each criterion can be either `line:column`, `line@variable-name`, or `$id`, where the latter directly specifies the node id of the function definition to be considered.')
@@ -4,6 +4,7 @@ exports.executeLinterQuery = executeLinterQuery;
4
4
  const linter_rules_1 = require("../../../linter/linter-rules");
5
5
  const log_1 = require("../../../util/log");
6
6
  const linter_executor_1 = require("../../../linter/linter-executor");
7
+ const gas_1 = require("../../../gas");
7
8
  /**
8
9
  * Executes the given linter queries using the provided analyzer.
9
10
  * @see {@link executeLintingRule}
@@ -15,10 +16,17 @@ async function executeLinterQuery({ analyzer }, queries) {
15
16
  const pretty = [...distinct].filter(r => flattened.indexOf(r) !== flattened.lastIndexOf(r)).map(r => typeof r === 'string' ? r : r.name).join(', ');
16
17
  log_1.log.warn(`Linter query collection contains duplicate rules ${pretty}, only linting for each rule once`);
17
18
  }
19
+ // typed loosely to avoid a too-complex mapped-union at the indexed writes below; cast back on return
18
20
  const results = { results: {} };
19
21
  const start = Date.now();
22
+ const gas = analyzer.inspectContext().gas;
20
23
  for (const entry of distinct) {
21
24
  const ruleName = typeof entry === 'string' ? entry : entry.name;
25
+ if (gas.checkGas(gas_1.GasFeatureKey.Linter) >= 2 /* GasLevel.Critical */) {
26
+ log_1.log.warn(`Skipping linting rule ${ruleName} due to resource pressure (gas: critical). See ${gas_1.GasWikiRef}`);
27
+ results.results[ruleName] = { error: new Error(`skipped due to resource pressure (gas: critical), see ${gas_1.GasWikiRef}`) };
28
+ continue;
29
+ }
22
30
  results.results[ruleName] = await (0, linter_executor_1.executeLintingRule)(ruleName, analyzer, entry?.config);
23
31
  }
24
32
  return {
@@ -8,6 +8,7 @@ import type { SlicingCriterion } from '../../../slicing/criterion/parse';
8
8
  import type { ReplOutput } from '../../../cli/repl/commands/repl-main';
9
9
  import type { FlowrConfig } from '../../../config';
10
10
  import type { ParsedQueryLine } from '../../query';
11
+ import { criteriaQueryCompleter } from '../../../cli/repl/parser/slice-query-parser';
11
12
  export interface LocationMapQuery extends BaseQueryFormat {
12
13
  readonly type: 'location-map';
13
14
  /** Optional list of ids to filter the results by. If not provided, all ids will be included. */
@@ -30,6 +31,7 @@ export declare const LocationMapQueryDefinition: {
30
31
  readonly executor: typeof executeLocationMapQuery;
31
32
  readonly asciiSummarizer: (formatter: OutputFormatter, _analyzer: unknown, queryResults: BaseQueryResult, result: string[]) => true;
32
33
  readonly fromLine: typeof locationMapLineParser;
34
+ readonly completer: typeof criteriaQueryCompleter;
33
35
  readonly schema: Joi.ObjectSchema<any>;
34
36
  readonly flattenInvolvedNodes: () => never[];
35
37
  };
@@ -33,6 +33,7 @@ exports.LocationMapQueryDefinition = {
33
33
  return true;
34
34
  },
35
35
  fromLine: locationMapLineParser,
36
+ completer: slice_query_parser_1.criteriaQueryCompleter,
36
37
  schema: joi_1.default.object({
37
38
  type: joi_1.default.string().valid('location-map').required().description('The type of the query.'),
38
39
  ids: joi_1.default.array().items(joi_1.default.string()).optional().description('Optional list of ids to filter the results by.')
@@ -7,6 +7,7 @@ import type { Origin } from '../../../dataflow/origin/dfg-get-origin';
7
7
  import type { NodeId } from '../../../r-bridge/lang-4.x/ast/model/processing/node-id';
8
8
  import type { ReplOutput } from '../../../cli/repl/commands/repl-main';
9
9
  import type { FlowrConfig } from '../../../config';
10
+ import { criteriaQueryCompleter } from '../../../cli/repl/parser/slice-query-parser';
10
11
  export interface OriginQuery extends BaseQueryFormat {
11
12
  readonly type: 'origin';
12
13
  /** The slicing criteria to use */
@@ -20,6 +21,7 @@ export declare const OriginQueryDefinition: {
20
21
  readonly executor: typeof executeResolveValueQuery;
21
22
  readonly asciiSummarizer: (formatter: import("../../../util/text/ansi").OutputFormatter, _analyzer: import("../../../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../../../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => true;
22
23
  readonly fromLine: typeof originQueryLineParser;
24
+ readonly completer: typeof criteriaQueryCompleter;
23
25
  readonly schema: Joi.ObjectSchema<any>;
24
26
  readonly flattenInvolvedNodes: (queryResults: BaseQueryResult) => NodeId[];
25
27
  };
@@ -35,6 +35,7 @@ exports.OriginQueryDefinition = {
35
35
  return true;
36
36
  },
37
37
  fromLine: originQueryLineParser,
38
+ completer: slice_query_parser_1.criteriaQueryCompleter,
38
39
  schema: joi_1.default.object({
39
40
  type: joi_1.default.string().valid('origin').required().description('The type of the query.'),
40
41
  criterion: joi_1.default.string().required().description('The slicing criteria to use'),
@@ -5,6 +5,7 @@ import Joi from 'joi';
5
5
  import type { NodeId } from '../../../r-bridge/lang-4.x/ast/model/processing/node-id';
6
6
  import type { ReplOutput } from '../../../cli/repl/commands/repl-main';
7
7
  import type { FlowrConfig } from '../../../config';
8
+ import { criteriaQueryCompleter } from '../../../cli/repl/parser/slice-query-parser';
8
9
  import { executeProvenanceQuery } from './provenance-query-executor';
9
10
  /** Calculates the provenance starting from a given criterion */
10
11
  export interface ProvenanceQuery extends BaseQueryFormat {
@@ -29,6 +30,7 @@ export declare const ProvenanceQueryDefinition: {
29
30
  readonly executor: typeof executeProvenanceQuery;
30
31
  readonly asciiSummarizer: (formatter: import("../../../util/text/ansi").OutputFormatter, analyzer: import("../../../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../../../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => Promise<boolean>;
31
32
  readonly fromLine: typeof provenanceQueryLineParser;
33
+ readonly completer: typeof criteriaQueryCompleter;
32
34
  readonly schema: Joi.ObjectSchema<any>;
33
35
  readonly flattenInvolvedNodes: (queryResults: BaseQueryResult) => NodeId[];
34
36
  };
@@ -45,6 +45,7 @@ exports.ProvenanceQueryDefinition = {
45
45
  return true;
46
46
  },
47
47
  fromLine: provenanceQueryLineParser,
48
+ completer: slice_query_parser_1.criteriaQueryCompleter,
48
49
  schema: joi_1.default.object({
49
50
  type: joi_1.default.string().valid('provenance').required().description('The type of the query.'),
50
51
  criterion: joi_1.default.string().required().description('The slicing criterion to use.'),
@@ -6,6 +6,7 @@ import { executeResolveValueQuery } from './resolve-value-query-executor';
6
6
  import type { ResolveResult } from '../../../dataflow/eval/resolve/alias-tracking';
7
7
  import type { ReplOutput } from '../../../cli/repl/commands/repl-main';
8
8
  import type { FlowrConfig } from '../../../config';
9
+ import { criteriaQueryCompleter } from '../../../cli/repl/parser/slice-query-parser';
9
10
  export interface ResolveValueQuery extends BaseQueryFormat {
10
11
  readonly type: 'resolve-value';
11
12
  /** The slicing criteria to use */
@@ -21,6 +22,7 @@ export declare const ResolveValueQueryDefinition: {
21
22
  readonly executor: typeof executeResolveValueQuery;
22
23
  readonly asciiSummarizer: (formatter: import("../../../util/text/ansi").OutputFormatter, _analyzer: import("../../../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../../../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => true;
23
24
  readonly fromLine: typeof resolveValueLineParser;
25
+ readonly completer: typeof criteriaQueryCompleter;
24
26
  readonly schema: Joi.ObjectSchema<any>;
25
27
  readonly flattenInvolvedNodes: () => never[];
26
28
  };
@@ -43,6 +43,7 @@ exports.ResolveValueQueryDefinition = {
43
43
  return true;
44
44
  },
45
45
  fromLine: resolveValueLineParser,
46
+ completer: slice_query_parser_1.criteriaQueryCompleter,
46
47
  schema: joi_1.default.object({
47
48
  type: joi_1.default.string().valid('resolve-value').required().description('The type of the query.'),
48
49
  criteria: joi_1.default.array().items(joi_1.default.string()).min(1).required().description('The slicing criteria to use.'),
@@ -32,7 +32,7 @@ async function executeStaticSliceQuery({ analyzer }, queries) {
32
32
  const { criteria, noReconstruction, noMagicComments } = query;
33
33
  const sliceStart = Date.now();
34
34
  const n = await analyzer.normalize();
35
- const slice = (0, static_slicer_1.staticSlice)(analyzer.inspectContext(), await analyzer.dataflow(), n, parse_1.SlicingCriteria.convertAll(criteria, n.idMap), query.direction ?? slice_direction_1.SliceDirection.Backward, analyzer.flowrConfig.solver.slicer?.threshold);
35
+ const slice = (0, static_slicer_1.staticSlice)({ ctx: analyzer.inspectContext(), info: await analyzer.dataflow(), ast: n, ids: parse_1.SlicingCriteria.convertAll(criteria, n.idMap), direction: query.direction ?? slice_direction_1.SliceDirection.Backward, threshold: analyzer.flowrConfig.solver.slicer?.threshold });
36
36
  const sliceEnd = Date.now();
37
37
  if (noReconstruction) {
38
38
  results[key] = { slice: { ...slice, '.meta': { timing: sliceEnd - sliceStart } } };
@@ -8,6 +8,7 @@ import { executeStaticSliceQuery } from './static-slice-query-executor';
8
8
  import type { NodeId } from '../../../r-bridge/lang-4.x/ast/model/processing/node-id';
9
9
  import type { ReplOutput } from '../../../cli/repl/commands/repl-main';
10
10
  import type { FlowrConfig } from '../../../config';
11
+ import { criteriaQueryCompleter } from '../../../cli/repl/parser/slice-query-parser';
11
12
  import { SliceDirection } from '../../../util/slice-direction';
12
13
  /** Calculates and returns the static backward or forward slice from the given criteria */
13
14
  export interface StaticSliceQuery extends BaseQueryFormat {
@@ -36,6 +37,7 @@ export declare const StaticSliceQueryDefinition: {
36
37
  readonly executor: typeof executeStaticSliceQuery;
37
38
  readonly asciiSummarizer: (formatter: import("../../../util/text/ansi").OutputFormatter, _analyzer: import("../../../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../../../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => true;
38
39
  readonly fromLine: typeof sliceQueryLineParser;
40
+ readonly completer: typeof criteriaQueryCompleter;
39
41
  readonly schema: Joi.ObjectSchema<any>;
40
42
  readonly flattenInvolvedNodes: (queryResults: BaseQueryResult) => NodeId[];
41
43
  };
@@ -63,6 +63,7 @@ exports.StaticSliceQueryDefinition = {
63
63
  return true;
64
64
  },
65
65
  fromLine: sliceQueryLineParser,
66
+ completer: slice_query_parser_1.criteriaQueryCompleter,
66
67
  schema: joi_1.default.object({
67
68
  type: joi_1.default.string().valid('static-slice').required().description('The type of the query.'),
68
69
  criteria: joi_1.default.array().items(joi_1.default.string()).min(0).required().description('The slicing criteria to use.'),
@@ -36,10 +36,11 @@ import type { InspectExceptionQuery } from './catalog/inspect-exceptions-query/i
36
36
  import type { InputSourcesQuery } from './catalog/input-sources-query/input-sources-query-format';
37
37
  import type { ProvenanceQuery } from './catalog/provenance-query/provenance-query-format';
38
38
  import type { LintingResultCertainty } from '../linter/linter-format';
39
+ import { type DiceQuery } from './catalog/dice-query/dice-query-format';
39
40
  /**
40
41
  * These are all queries that can be executed from within flowR
41
42
  */
42
- export type Query = CallContextQuery | ConfigQuery | SearchQuery | DataflowQuery | DoesCallQuery | CallGraphQuery | ControlFlowQuery | DataflowLensQuery | FilesQuery | DfShapeQuery | NormalizedAstQuery | IdMapQuery | DataflowClusterQuery | StaticSliceQuery | DependenciesQuery | LocationMapQuery | HappensBeforeQuery | InspectExceptionQuery | InspectHigherOrderQuery | InspectRecursionQuery | ResolveValueQuery | ProjectQuery | OriginQuery | LinterQuery | ProvenanceQuery | InputSourcesQuery;
43
+ export type Query = CallContextQuery | ConfigQuery | SearchQuery | DataflowQuery | DoesCallQuery | CallGraphQuery | ControlFlowQuery | DataflowLensQuery | FilesQuery | DfShapeQuery | NormalizedAstQuery | IdMapQuery | DataflowClusterQuery | StaticSliceQuery | DependenciesQuery | LocationMapQuery | HappensBeforeQuery | InspectExceptionQuery | InspectHigherOrderQuery | InspectRecursionQuery | ResolveValueQuery | ProjectQuery | OriginQuery | LinterQuery | ProvenanceQuery | InputSourcesQuery | DiceQuery;
43
44
  export type QueryArgumentsWithType<QueryType extends BaseQueryFormat['type']> = Query & {
44
45
  type: QueryType;
45
46
  };
@@ -156,6 +157,7 @@ export declare const SupportedQueries: {
156
157
  readonly executor: typeof import("./catalog/static-slice-query/static-slice-query-executor").executeStaticSliceQuery;
157
158
  readonly asciiSummarizer: (formatter: OutputFormatter, _analyzer: ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => true;
158
159
  readonly fromLine: (output: ReplOutput, line: readonly string[], _config: FlowrConfig) => ParsedQueryLine<"static-slice">;
160
+ readonly completer: typeof import("../cli/repl/parser/slice-query-parser").criteriaQueryCompleter;
159
161
  readonly schema: Joi.ObjectSchema<any>;
160
162
  readonly flattenInvolvedNodes: (queryResults: BaseQueryResult) => NodeId[];
161
163
  };
@@ -163,6 +165,7 @@ export declare const SupportedQueries: {
163
165
  readonly executor: typeof import("./catalog/provenance-query/provenance-query-executor").executeProvenanceQuery;
164
166
  readonly asciiSummarizer: (formatter: OutputFormatter, analyzer: ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => Promise<boolean>;
165
167
  readonly fromLine: (output: ReplOutput, line: readonly string[], _config: FlowrConfig) => ParsedQueryLine<"provenance">;
168
+ readonly completer: typeof import("../cli/repl/parser/slice-query-parser").criteriaQueryCompleter;
166
169
  readonly schema: Joi.ObjectSchema<any>;
167
170
  readonly flattenInvolvedNodes: (queryResults: BaseQueryResult) => NodeId[];
168
171
  };
@@ -170,6 +173,7 @@ export declare const SupportedQueries: {
170
173
  readonly executor: typeof import("./catalog/input-sources-query/input-sources-query-executor").executeInputSourcesQuery;
171
174
  readonly asciiSummarizer: (formatter: OutputFormatter, analyzer: ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => Promise<boolean>;
172
175
  readonly fromLine: (output: ReplOutput, line: readonly string[], _config: FlowrConfig) => ParsedQueryLine<"input-sources">;
176
+ readonly completer: typeof import("../cli/repl/parser/slice-query-parser").criteriaQueryCompleter;
173
177
  readonly schema: Joi.ObjectSchema<any>;
174
178
  readonly flattenInvolvedNodes: (queryResults: BaseQueryResult) => NodeId[];
175
179
  };
@@ -183,6 +187,7 @@ export declare const SupportedQueries: {
183
187
  readonly executor: typeof import("./catalog/location-map-query/location-map-query-executor").executeLocationMapQuery;
184
188
  readonly asciiSummarizer: (formatter: OutputFormatter, _analyzer: unknown, queryResults: BaseQueryResult, result: string[]) => true;
185
189
  readonly fromLine: (_output: ReplOutput, line: readonly string[], _config: FlowrConfig) => ParsedQueryLine<"location-map">;
190
+ readonly completer: typeof import("../cli/repl/parser/slice-query-parser").criteriaQueryCompleter;
186
191
  readonly schema: Joi.ObjectSchema<any>;
187
192
  readonly flattenInvolvedNodes: () => never[];
188
193
  };
@@ -202,6 +207,7 @@ export declare const SupportedQueries: {
202
207
  readonly executor: typeof import("./catalog/inspect-exceptions-query/inspect-exception-query-executor").executeExceptionQuery;
203
208
  readonly asciiSummarizer: (formatter: OutputFormatter, processed: ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => Promise<boolean>;
204
209
  readonly fromLine: (_output: ReplOutput, line: readonly string[], _config: FlowrConfig) => ParsedQueryLine<"inspect-exception">;
210
+ readonly completer: typeof import("../cli/repl/parser/slice-query-parser").criteriaQueryCompleter;
205
211
  readonly schema: Joi.ObjectSchema<any>;
206
212
  readonly flattenInvolvedNodes: (queryResults: BaseQueryResult) => NodeId[];
207
213
  };
@@ -209,6 +215,7 @@ export declare const SupportedQueries: {
209
215
  readonly executor: typeof import("./catalog/inspect-higher-order-query/inspect-higher-order-query-executor").executeHigherOrderQuery;
210
216
  readonly asciiSummarizer: (formatter: OutputFormatter, processed: ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => Promise<boolean>;
211
217
  readonly fromLine: (_output: ReplOutput, line: readonly string[], _config: FlowrConfig) => ParsedQueryLine<"inspect-higher-order">;
218
+ readonly completer: typeof import("../cli/repl/parser/slice-query-parser").criteriaQueryCompleter;
212
219
  readonly schema: Joi.ObjectSchema<any>;
213
220
  readonly flattenInvolvedNodes: (queryResults: BaseQueryResult) => NodeId[];
214
221
  };
@@ -223,6 +230,7 @@ export declare const SupportedQueries: {
223
230
  readonly executor: typeof import("./catalog/resolve-value-query/resolve-value-query-executor").executeResolveValueQuery;
224
231
  readonly asciiSummarizer: (formatter: OutputFormatter, _analyzer: ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => true;
225
232
  readonly fromLine: (output: ReplOutput, line: readonly string[], _config: FlowrConfig) => ParsedQueryLine<"resolve-value">;
233
+ readonly completer: typeof import("../cli/repl/parser/slice-query-parser").criteriaQueryCompleter;
226
234
  readonly schema: Joi.ObjectSchema<any>;
227
235
  readonly flattenInvolvedNodes: () => never[];
228
236
  };
@@ -236,6 +244,7 @@ export declare const SupportedQueries: {
236
244
  readonly executor: typeof import("./catalog/origin-query/origin-query-executor").executeResolveValueQuery;
237
245
  readonly asciiSummarizer: (formatter: OutputFormatter, _analyzer: ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => true;
238
246
  readonly fromLine: (output: ReplOutput, line: readonly string[], _config: FlowrConfig) => ParsedQueryLine<"origin">;
247
+ readonly completer: typeof import("../cli/repl/parser/slice-query-parser").criteriaQueryCompleter;
239
248
  readonly schema: Joi.ObjectSchema<any>;
240
249
  readonly flattenInvolvedNodes: (queryResults: BaseQueryResult) => NodeId[];
241
250
  };
@@ -251,6 +260,14 @@ export declare const SupportedQueries: {
251
260
  __brand?: "node-id";
252
261
  }))[];
253
262
  };
263
+ readonly dice: {
264
+ readonly executor: typeof import("./catalog/dice-query/dice-query-executor").executeDiceQuery;
265
+ readonly asciiSummarizer: (formatter: OutputFormatter, _analyzer: ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => true;
266
+ readonly fromLine: (output: ReplOutput, line: readonly string[], _config: FlowrConfig) => ParsedQueryLine<"dice">;
267
+ readonly completer: (line: readonly string[], startingNewArg: boolean, _config: FlowrConfig) => CommandCompletions;
268
+ readonly schema: Joi.ObjectSchema<any>;
269
+ readonly flattenInvolvedNodes: (queryResults: BaseQueryResult) => NodeId[];
270
+ };
254
271
  };
255
272
  export type SupportedQueryTypes = keyof typeof SupportedQueries;
256
273
  export type QueryResult<Type extends Query['type']> = Promise<ReturnType<typeof SupportedQueries[Type]['executor']>>;
package/queries/query.js CHANGED
@@ -42,6 +42,7 @@ const does_call_query_format_1 = require("./catalog/does-call-query/does-call-qu
42
42
  const inspect_exception_query_format_1 = require("./catalog/inspect-exceptions-query/inspect-exception-query-format");
43
43
  const input_sources_query_format_1 = require("./catalog/input-sources-query/input-sources-query-format");
44
44
  const provenance_query_format_1 = require("./catalog/provenance-query/provenance-query-format");
45
+ const dice_query_format_1 = require("./catalog/dice-query/dice-query-format");
45
46
  exports.SupportedQueries = {
46
47
  'call-context': call_context_query_format_1.CallContextQueryDefinition,
47
48
  'config': config_query_format_1.ConfigQueryDefinition,
@@ -68,7 +69,8 @@ exports.SupportedQueries = {
68
69
  'resolve-value': resolve_value_query_format_1.ResolveValueQueryDefinition,
69
70
  'project': project_query_format_1.ProjectQueryDefinition,
70
71
  'origin': origin_query_format_1.OriginQueryDefinition,
71
- 'linter': linter_query_format_1.LinterQueryDefinition
72
+ 'linter': linter_query_format_1.LinterQueryDefinition,
73
+ 'dice': dice_query_format_1.DiceQueryDefinition
72
74
  };
73
75
  /**
74
76
  * Executes a set of queries that are all of the same type.
@@ -98,6 +98,11 @@ export declare const flowrCapabilities: {
98
98
  readonly id: "environment-with";
99
99
  readonly supported: "partially";
100
100
  readonly description: "_Evaluating an expression inside a named environment with `with(data, expr)` or `within(data, expr)`. When `data` is a tracked env variable, reads of names defined in that env resolve correctly. Writes inside `expr` are ephemeral (not persisted back to the env)._";
101
+ }, {
102
+ readonly name: "Dynamic Variable Removal";
103
+ readonly id: "dynamic-variable-removal";
104
+ readonly supported: "partially";
105
+ readonly description: "_Support for `rm(list=..., envir=sys.frame(N))` removing variables from a specific call frame. Currently handles negative and zero offsets from within depth-1 functions._";
101
106
  }];
102
107
  }, {
103
108
  readonly name: "Environment Sharing";
@@ -113,7 +118,7 @@ export declare const flowrCapabilities: {
113
118
  readonly name: "Search Path";
114
119
  readonly id: "search-path";
115
120
  readonly supported: "partially";
116
- readonly description: "_Handling [R's search path](https://cran.r-project.org/doc/manuals/r-release/R-lang.html#Search-path) as explained in [Advanced R](https://adv-r.hadley.nz/environments.html#search-path)._ Currently, _flowR_ does not support dynamic modifications with `attach`, `search`, or `fn_env` and tests are definitely missing. Yet, theoretically, the tooling is all there.";
121
+ readonly description: "_Handling [R's search path](https://cran.r-project.org/doc/manuals/r-release/R-lang.html#Search-path) as explained in [Advanced R](https://adv-r.hadley.nz/environments.html#search-path)._ Attached packages and `attach`ed environments are placed below `.GlobalEnv` (so global bindings shadow package exports, matching R), attaching inside/through function calls propagates to the caller, and re-attaching is a no-op. Not yet handled: dynamic `search`/`fn_env` manipulation.";
117
122
  }, {
118
123
  readonly name: "Namespaces";
119
124
  readonly id: "namespaces";
@@ -132,7 +137,7 @@ export declare const flowrCapabilities: {
132
137
  }, {
133
138
  readonly name: "Library Loading";
134
139
  readonly id: "library-loading";
135
- readonly supported: "not";
140
+ readonly supported: "partially";
136
141
  readonly description: "_Resolve libraries identified with `library`, `require`, `attachNamespace`, ... and attach them to the search path_";
137
142
  }, {
138
143
  readonly name: "Dynamic Scope Changes";
@@ -136,6 +136,12 @@ ${await (0, doc_dfg_1.printDfGraphForCode)(parser, code, { simplified: true })}
136
136
  id: 'environment-with',
137
137
  supported: 'partially',
138
138
  description: '_Evaluating an expression inside a named environment with `with(data, expr)` or `within(data, expr)`. When `data` is a tracked env variable, reads of names defined in that env resolve correctly. Writes inside `expr` are ephemeral (not persisted back to the env)._'
139
+ },
140
+ {
141
+ name: 'Dynamic Variable Removal',
142
+ id: 'dynamic-variable-removal',
143
+ supported: 'partially',
144
+ description: '_Support for `rm(list=..., envir=sys.frame(N))` removing variables from a specific call frame. Currently handles negative and zero offsets from within depth-1 functions._'
139
145
  }
140
146
  ]
141
147
  },
@@ -155,7 +161,7 @@ ${await (0, doc_dfg_1.printDfGraphForCode)(parser, code, { simplified: true })}
155
161
  name: 'Search Path',
156
162
  id: 'search-path',
157
163
  supported: 'partially',
158
- description: "_Handling [R's search path](https://cran.r-project.org/doc/manuals/r-release/R-lang.html#Search-path) as explained in [Advanced R](https://adv-r.hadley.nz/environments.html#search-path)._ Currently, _flowR_ does not support dynamic modifications with `attach`, `search`, or `fn_env` and tests are definitely missing. Yet, theoretically, the tooling is all there."
164
+ description: "_Handling [R's search path](https://cran.r-project.org/doc/manuals/r-release/R-lang.html#Search-path) as explained in [Advanced R](https://adv-r.hadley.nz/environments.html#search-path)._ Attached packages and `attach`ed environments are placed below `.GlobalEnv` (so global bindings shadow package exports, matching R), attaching inside/through function calls propagates to the caller, and re-attaching is a no-op. Not yet handled: dynamic `search`/`fn_env` manipulation."
159
165
  },
160
166
  {
161
167
  name: 'Namespaces',
@@ -178,7 +184,7 @@ ${await (0, doc_dfg_1.printDfGraphForCode)(parser, code, { simplified: true })}
178
184
  {
179
185
  name: 'Library Loading',
180
186
  id: 'library-loading',
181
- supported: 'not',
187
+ supported: 'partially',
182
188
  description: '_Resolve libraries identified with `library`, `require`, `attachNamespace`, ... and attach them to the search path_'
183
189
  },
184
190
  {
@@ -5,7 +5,6 @@ import { RType } from '../type';
5
5
  import { SemVer } from 'semver';
6
6
  /**
7
7
  * Represents a string like `"hello"`, including raw strings like `r"(hello)"`.
8
- * @see {@link isRString} - to check whether a node is an R string
9
8
  */
10
9
  export interface RString<Info = NoInfo> extends Leaf<Info>, Location {
11
10
  readonly type: RType.String;
@@ -6,7 +6,7 @@ import type { RSymbol } from '../../../../model/nodes/r-symbol';
6
6
  import type { NoInfo } from '../../../../model/model';
7
7
  import type { JsonEntry } from '../../../json/format';
8
8
  /**
9
- * Normalize the given object as a R number (see {@link number2ts}), supporting booleans (see {@link boolean2ts}),
9
+ * Normalize the given object as a R number (see {@link RNumberValue.fromRLexeme}), supporting booleans (see {@link boolean2ts}),
10
10
  * and special values.
11
11
  * This requires you to check the corresponding name beforehand.
12
12
  * @param data - The data used by the parser (see {@link NormalizerData})
@@ -5,7 +5,7 @@ const convert_values_1 = require("../../../../../convert-values");
5
5
  const normalize_meta_1 = require("../../normalize-meta");
6
6
  const type_1 = require("../../../../model/type");
7
7
  /**
8
- * Normalize the given object as a R number (see {@link number2ts}), supporting booleans (see {@link boolean2ts}),
8
+ * Normalize the given object as a R number (see {@link RNumberValue.fromRLexeme}), supporting booleans (see {@link boolean2ts}),
9
9
  * and special values.
10
10
  * This requires you to check the corresponding name beforehand.
11
11
  * @param data - The data used by the parser (see {@link NormalizerData})
@@ -2,7 +2,7 @@ import type { NormalizerData } from '../../normalizer-data';
2
2
  import type { RString } from '../../../../model/nodes/r-string';
3
3
  import type { JsonEntry } from '../../../json/format';
4
4
  /**
5
- * Normalize the given object as a R string (see {@link string2ts}).
5
+ * Normalize the given object as a R string (see {@link RStringValue.fromRLexeme}).
6
6
  * This requires you to check the corresponding name beforehand.
7
7
  * @param data - The data used by the parser (see {@link NormalizerData})
8
8
  * @param obj - The JSON object to extract the meta-information from
@@ -6,7 +6,7 @@ const assert_1 = require("../../../../../../../util/assert");
6
6
  const type_1 = require("../../../../model/type");
7
7
  const convert_values_1 = require("../../../../../convert-values");
8
8
  /**
9
- * Normalize the given object as a R string (see {@link string2ts}).
9
+ * Normalize the given object as a R string (see {@link RStringValue.fromRLexeme}).
10
10
  * This requires you to check the corresponding name beforehand.
11
11
  * @param data - The data used by the parser (see {@link NormalizerData})
12
12
  * @param obj - The JSON object to extract the meta-information from