@eagleoutice/flowr 2.14.1 → 2.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (413) hide show
  1. package/README.md +154 -87
  2. package/abstract-interpretation/absint-visitor.d.ts +91 -25
  3. package/abstract-interpretation/absint-visitor.js +235 -74
  4. package/abstract-interpretation/data-frame/mappers/access-mapper.d.ts +1 -1
  5. package/abstract-interpretation/data-frame/mappers/access-mapper.js +4 -4
  6. package/abstract-interpretation/data-frame/mappers/arguments.d.ts +1 -1
  7. package/abstract-interpretation/data-frame/mappers/arguments.js +1 -1
  8. package/abstract-interpretation/data-frame/mappers/function-mapper.js +107 -254
  9. package/abstract-interpretation/data-frame/mappers/replacement-mapper.js +5 -5
  10. package/abstract-interpretation/data-frame/resolve-args.d.ts +1 -1
  11. package/abstract-interpretation/data-frame/resolve-args.js +6 -4
  12. package/abstract-interpretation/data-frame/shape-inference.d.ts +4 -9
  13. package/abstract-interpretation/domains/bounded-set-domain.d.ts +1 -0
  14. package/abstract-interpretation/domains/bounded-set-domain.js +1 -0
  15. package/abstract-interpretation/domains/partial-product-domain.js +1 -1
  16. package/abstract-interpretation/domains/set-range-domain.d.ts +3 -2
  17. package/abstract-interpretation/domains/set-range-domain.js +3 -2
  18. package/abstract-interpretation/domains/set-upper-bound-domain.d.ts +3 -2
  19. package/abstract-interpretation/domains/set-upper-bound-domain.js +3 -2
  20. package/benchmark/calibration.d.ts +11 -6
  21. package/benchmark/calibration.js +19 -8
  22. package/benchmark/slicer.d.ts +7 -1
  23. package/benchmark/slicer.js +38 -34
  24. package/benchmark/stats/count-comments.d.ts +16 -0
  25. package/benchmark/stats/count-comments.js +30 -0
  26. package/benchmark/stats/print.js +2 -0
  27. package/benchmark/stats/size-of.d.ts +7 -3
  28. package/benchmark/stats/size-of.js +7 -3
  29. package/benchmark/stats/stats.d.ts +7 -0
  30. package/benchmark/summarizer/first-phase/process.js +2 -19
  31. package/benchmark/summarizer/second-phase/graph.js +13 -3
  32. package/benchmark/summarizer/second-phase/process.js +2 -0
  33. package/cli/repl/commands/repl-dataflow.js +70 -27
  34. package/cli/repl/core.d.ts +1 -1
  35. package/cli/repl/core.js +1 -1
  36. package/cli/repl/parser/slice-query-parser.js +2 -1
  37. package/cli/repl/server/connection.d.ts +4 -0
  38. package/cli/repl/server/connection.js +19 -16
  39. package/cli/repl/server/messages/message-analysis.d.ts +1 -1
  40. package/config.d.ts +6 -0
  41. package/config.js +8 -4
  42. package/control-flow/basic-cfg-guided-visitor.d.ts +7 -2
  43. package/control-flow/basic-cfg-guided-visitor.js +37 -24
  44. package/control-flow/cfg-dead-code.js +44 -33
  45. package/control-flow/cfg-properties.js +2 -2
  46. package/control-flow/cfg-simplification.js +6 -5
  47. package/control-flow/cfg-to-basic-blocks.js +11 -13
  48. package/control-flow/control-flow-graph.d.ts +179 -189
  49. package/control-flow/control-flow-graph.js +400 -263
  50. package/control-flow/dfg-cfg-guided-visitor.d.ts +21 -3
  51. package/control-flow/dfg-cfg-guided-visitor.js +17 -13
  52. package/control-flow/diff-cfg.js +6 -14
  53. package/control-flow/happens-before.js +5 -4
  54. package/control-flow/semantic-cfg-guided-visitor.d.ts +44 -101
  55. package/control-flow/semantic-cfg-guided-visitor.js +6 -26
  56. package/control-flow/simple-visitor.js +14 -15
  57. package/control-flow/syntax-cfg-guided-visitor.d.ts +2 -1
  58. package/control-flow/useless-loop.js +18 -14
  59. package/core/steps/all/core/20-dataflow.d.ts +1 -3
  60. package/core/steps/pipeline/default-pipelines.d.ts +141 -157
  61. package/dataflow/cluster.js +7 -0
  62. package/dataflow/environments/apply-kill.d.ts +6 -0
  63. package/dataflow/environments/apply-kill.js +63 -31
  64. package/dataflow/environments/built-in-props.d.ts +5 -1
  65. package/dataflow/environments/built-in-props.js +4 -0
  66. package/dataflow/environments/built-in.d.ts +6 -3
  67. package/dataflow/environments/built-in.js +8 -5
  68. package/dataflow/environments/clone.d.ts +3 -3
  69. package/dataflow/environments/clone.js +5 -5
  70. package/dataflow/environments/default-builtin-config.d.ts +112 -7
  71. package/dataflow/environments/default-builtin-config.js +82 -34
  72. package/dataflow/environments/environment.d.ts +5 -5
  73. package/dataflow/environments/environment.js +5 -5
  74. package/dataflow/environments/identifier.d.ts +11 -1
  75. package/dataflow/environments/identifier.js +4 -1
  76. package/dataflow/environments/resolve-by-name.d.ts +7 -0
  77. package/dataflow/environments/resolve-by-name.js +12 -0
  78. package/dataflow/environments/resolve-helper.d.ts +3 -1
  79. package/dataflow/environments/resolve-helper.js +2 -0
  80. package/dataflow/eval/resolve/alias-tracking.d.ts +2 -2
  81. package/dataflow/eval/resolve/alias-tracking.js +2 -2
  82. package/dataflow/eval/resolve/match-arguments.js +7 -5
  83. package/dataflow/eval/resolve/node-value.d.ts +3 -1
  84. package/dataflow/eval/resolve/node-value.js +12 -0
  85. package/dataflow/eval/resolve/resolve-argument.js +5 -4
  86. package/dataflow/eval/resolve/resolve-operators.js +9 -6
  87. package/dataflow/eval/resolve/resolve-strings.js +2 -2
  88. package/dataflow/eval/resolve/resolve-working-directory.js +4 -3
  89. package/dataflow/eval/resolve/resolve.js +3 -2
  90. package/dataflow/eval/values/general.js +8 -5
  91. package/dataflow/extractor.d.ts +1 -4
  92. package/dataflow/extractor.js +11 -10
  93. package/dataflow/fn/exceptions-of-function.d.ts +3 -1
  94. package/dataflow/fn/strict-function.js +7 -5
  95. package/dataflow/graph/call-graph.js +2 -2
  96. package/dataflow/graph/df-helper.d.ts +8 -1
  97. package/dataflow/graph/diff-dataflow-graph.d.ts +1 -1
  98. package/dataflow/graph/diff-dataflow-graph.js +19 -2
  99. package/dataflow/graph/edge.d.ts +38 -2
  100. package/dataflow/graph/edge.js +32 -2
  101. package/dataflow/graph/graph.d.ts +4 -3
  102. package/dataflow/graph/graph.js +6 -2
  103. package/dataflow/graph/match-args.d.ts +69 -0
  104. package/dataflow/graph/match-args.js +167 -0
  105. package/dataflow/info.d.ts +14 -0
  106. package/dataflow/internal/control-flow.d.ts +102 -0
  107. package/dataflow/internal/control-flow.js +200 -0
  108. package/dataflow/internal/linker.d.ts +6 -31
  109. package/dataflow/internal/linker.js +24 -81
  110. package/dataflow/internal/process/functions/call/argument/unpack-argument.d.ts +1 -1
  111. package/dataflow/internal/process/functions/call/argument/unpack-argument.js +3 -3
  112. package/dataflow/internal/process/functions/call/built-in/built-in-access.d.ts +2 -2
  113. package/dataflow/internal/process/functions/call/built-in/built-in-access.js +9 -6
  114. package/dataflow/internal/process/functions/call/built-in/built-in-apply.d.ts +1 -1
  115. package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +6 -4
  116. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.d.ts +1 -10
  117. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +18 -37
  118. package/dataflow/internal/process/functions/call/built-in/built-in-attach.d.ts +1 -1
  119. package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +3 -3
  120. package/dataflow/internal/process/functions/call/built-in/built-in-class-generator.d.ts +1 -1
  121. package/dataflow/internal/process/functions/call/built-in/built-in-class-generator.js +11 -7
  122. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +6 -8
  123. package/dataflow/internal/process/functions/call/built-in/built-in-eval.d.ts +1 -1
  124. package/dataflow/internal/process/functions/call/built-in/built-in-eval.js +18 -14
  125. package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +8 -1
  126. package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +11 -0
  127. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.d.ts +2 -1
  128. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +27 -20
  129. package/dataflow/internal/process/functions/call/built-in/built-in-get.js +3 -2
  130. package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.d.ts +1 -1
  131. package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +35 -6
  132. package/dataflow/internal/process/functions/call/built-in/built-in-library.d.ts +1 -1
  133. package/dataflow/internal/process/functions/call/built-in/built-in-library.js +20 -17
  134. package/dataflow/internal/process/functions/call/built-in/built-in-list.d.ts +1 -1
  135. package/dataflow/internal/process/functions/call/built-in/built-in-list.js +6 -4
  136. package/dataflow/internal/process/functions/call/built-in/built-in-load.js +4 -3
  137. package/dataflow/internal/process/functions/call/built-in/built-in-local.js +8 -3
  138. package/dataflow/internal/process/functions/call/built-in/built-in-namespace-access.d.ts +2 -2
  139. package/dataflow/internal/process/functions/call/built-in/built-in-namespace-access.js +5 -5
  140. package/dataflow/internal/process/functions/call/built-in/built-in-new-env.d.ts +1 -1
  141. package/dataflow/internal/process/functions/call/built-in/built-in-new-env.js +5 -4
  142. package/dataflow/internal/process/functions/call/built-in/built-in-pipe.js +7 -5
  143. package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.d.ts +1 -1
  144. package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.js +15 -13
  145. package/dataflow/internal/process/functions/call/built-in/built-in-quote.js +2 -2
  146. package/dataflow/internal/process/functions/call/built-in/built-in-recall.js +2 -2
  147. package/dataflow/internal/process/functions/call/built-in/built-in-register-hook.js +4 -3
  148. package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.d.ts +1 -1
  149. package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.js +26 -4
  150. package/dataflow/internal/process/functions/call/built-in/built-in-replacement.d.ts +2 -2
  151. package/dataflow/internal/process/functions/call/built-in/built-in-replacement.js +17 -4
  152. package/dataflow/internal/process/functions/call/built-in/built-in-rm.d.ts +2 -2
  153. package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +71 -33
  154. package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.js +6 -15
  155. package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.js +12 -13
  156. package/dataflow/internal/process/functions/call/built-in/built-in-source.d.ts +1 -1
  157. package/dataflow/internal/process/functions/call/built-in/built-in-source.js +14 -11
  158. package/dataflow/internal/process/functions/call/built-in/built-in-special-bin-op.js +15 -1
  159. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +1 -1
  160. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +12 -8
  161. package/dataflow/internal/process/functions/call/built-in/built-in-stop-if-not.js +6 -5
  162. package/dataflow/internal/process/functions/call/built-in/built-in-string-template.d.ts +1 -1
  163. package/dataflow/internal/process/functions/call/built-in/built-in-string-template.js +5 -4
  164. package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.d.ts +2 -2
  165. package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +45 -10
  166. package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.d.ts +2 -2
  167. package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +19 -3
  168. package/dataflow/internal/process/functions/call/built-in/built-in-with.js +6 -2
  169. package/dataflow/internal/process/functions/call/common.js +5 -6
  170. package/dataflow/internal/process/functions/call/deferred.js +2 -2
  171. package/dataflow/internal/process/functions/call/known-call-handling.d.ts +12 -2
  172. package/dataflow/internal/process/functions/call/known-call-handling.js +23 -1
  173. package/dataflow/internal/process/functions/call/named-call-handling.js +2 -0
  174. package/dataflow/internal/process/functions/call/nse.d.ts +1 -1
  175. package/dataflow/internal/process/functions/call/nse.js +6 -1
  176. package/dataflow/internal/process/functions/call/quoted.js +2 -2
  177. package/dataflow/internal/process/functions/call/unnamed-call-handling.js +19 -6
  178. package/dataflow/internal/process/functions/process-argument.d.ts +1 -1
  179. package/dataflow/internal/process/functions/process-argument.js +12 -4
  180. package/dataflow/internal/process/functions/process-parameter.js +13 -0
  181. package/dataflow/internal/process/process-named-call.d.ts +2 -2
  182. package/dataflow/internal/process/process-named-call.js +9 -7
  183. package/documentation/data/server/doc-data-server-messages.js +4 -4
  184. package/documentation/doc-readme.js +45 -0
  185. package/documentation/doc-util/doc-cfg.d.ts +8 -7
  186. package/documentation/doc-util/doc-cfg.js +10 -10
  187. package/documentation/doc-util/doc-playground.d.ts +12 -0
  188. package/documentation/doc-util/doc-playground.js +21 -0
  189. package/documentation/doc-util/doc-query.d.ts +4 -1
  190. package/documentation/doc-util/doc-query.js +4 -2
  191. package/documentation/wiki-absint.d.ts +3 -4
  192. package/documentation/wiki-absint.js +12 -5
  193. package/documentation/wiki-analyzer.js +2 -2
  194. package/documentation/wiki-cfg.js +101 -106
  195. package/documentation/wiki-dataflow-graph.js +84 -53
  196. package/documentation/wiki-linter.js +15 -1
  197. package/documentation/wiki-linting-and-testing.js +1 -16
  198. package/documentation/wiki-mk/doc-maker.js +6 -4
  199. package/documentation/wiki-query.js +14 -4
  200. package/documentation/wiki-signature-database.js +28 -2
  201. package/linter/linter-fix.d.ts +16 -0
  202. package/linter/linter-fix.js +104 -0
  203. package/linter/linter-format.d.ts +18 -1
  204. package/linter/linter-format.js +31 -1
  205. package/linter/linter-output.js +46 -10
  206. package/linter/linter-rules.d.ts +40 -9
  207. package/linter/linter-rules.js +2 -0
  208. package/linter/rules/absolute-path.js +4 -2
  209. package/linter/rules/dataframe-access-validation.js +6 -7
  210. package/linter/rules/deprecated-functions.d.ts +107 -10
  211. package/linter/rules/deprecated-functions.js +309 -23
  212. package/linter/rules/file-path-validity.js +5 -4
  213. package/linter/rules/function-finder-util.d.ts +6 -0
  214. package/linter/rules/function-finder-util.js +21 -13
  215. package/linter/rules/naming-convention.js +1 -1
  216. package/linter/rules/network-functions.d.ts +2 -2
  217. package/linter/rules/stop-with-call-arg.js +2 -2
  218. package/linter/rules/unclosed-connection.js +2 -2
  219. package/linter/rules/undefined-symbol-util.js +6 -4
  220. package/linter/rules/undefined-symbol.js +2 -2
  221. package/linter/rules/unused-definition.js +8 -4
  222. package/linter/rules/unused-import.d.ts +60 -0
  223. package/linter/rules/unused-import.js +179 -0
  224. package/package.json +2 -2
  225. package/project/attached-packages.js +2 -1
  226. package/project/cache/flowr-analyzer-cache.d.ts +2 -5
  227. package/project/cache/flowr-analyzer-cache.js +4 -7
  228. package/project/cache/flowr-analyzer-controlflow-cache.d.ts +9 -8
  229. package/project/cache/flowr-analyzer-controlflow-cache.js +17 -34
  230. package/project/cache/flowr-cache.d.ts +9 -0
  231. package/project/cache/flowr-cache.js +19 -0
  232. package/project/context/flowr-analyzer-context.d.ts +7 -3
  233. package/project/context/flowr-analyzer-context.js +15 -9
  234. package/project/context/flowr-analyzer-dependencies-context.d.ts +24 -3
  235. package/project/context/flowr-analyzer-dependencies-context.js +9 -14
  236. package/project/context/flowr-analyzer-files-context.js +15 -17
  237. package/project/context/flowr-analyzer-meta-context.js +2 -12
  238. package/project/dependency-version-space.d.ts +0 -7
  239. package/project/dependency-version-space.js +8 -7
  240. package/project/flowr-analyzer.d.ts +4 -6
  241. package/project/flowr-analyzer.js +4 -5
  242. package/project/plugins/file-plugins/files/flowr-namespace-file.js +22 -34
  243. package/project/plugins/file-plugins/files/flowr-rda-file.d.ts +13 -13
  244. package/project/plugins/file-plugins/files/flowr-rda-file.js +131 -286
  245. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +1 -0
  246. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +1 -0
  247. package/project/plugins/file-plugins/flowr-analyzer-description-file-plugin.d.ts +2 -5
  248. package/project/plugins/file-plugins/flowr-analyzer-description-file-plugin.js +2 -8
  249. package/project/plugins/file-plugins/flowr-analyzer-file-plugin.d.ts +32 -0
  250. package/project/plugins/file-plugins/flowr-analyzer-file-plugin.js +43 -1
  251. package/project/plugins/file-plugins/flowr-analyzer-inst-file-plugin.d.ts +4 -12
  252. package/project/plugins/file-plugins/flowr-analyzer-inst-file-plugin.js +3 -16
  253. package/project/plugins/file-plugins/flowr-analyzer-license-file-plugin.d.ts +5 -8
  254. package/project/plugins/file-plugins/flowr-analyzer-license-file-plugin.js +4 -10
  255. package/project/plugins/file-plugins/flowr-analyzer-manifest-file-plugin.d.ts +3 -10
  256. package/project/plugins/file-plugins/flowr-analyzer-manifest-file-plugin.js +1 -13
  257. package/project/plugins/file-plugins/flowr-analyzer-namespace-files-plugin.d.ts +3 -6
  258. package/project/plugins/file-plugins/flowr-analyzer-namespace-files-plugin.js +2 -8
  259. package/project/plugins/file-plugins/flowr-analyzer-news-file-plugin.d.ts +2 -5
  260. package/project/plugins/file-plugins/flowr-analyzer-news-file-plugin.js +2 -8
  261. package/project/plugins/file-plugins/flowr-analyzer-rda-file-plugin.d.ts +2 -5
  262. package/project/plugins/file-plugins/flowr-analyzer-rda-file-plugin.js +2 -8
  263. package/project/plugins/file-plugins/flowr-analyzer-rprofile-file-plugin.d.ts +3 -4
  264. package/project/plugins/file-plugins/flowr-analyzer-rprofile-file-plugin.js +3 -6
  265. package/project/plugins/file-plugins/flowr-analyzer-test-file-plugin.d.ts +4 -12
  266. package/project/plugins/file-plugins/flowr-analyzer-test-file-plugin.js +3 -16
  267. package/project/plugins/file-plugins/flowr-analyzer-vignette-file-plugin.d.ts +4 -12
  268. package/project/plugins/file-plugins/flowr-analyzer-vignette-file-plugin.js +3 -16
  269. package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.d.ts +4 -12
  270. package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.js +3 -16
  271. package/project/plugins/file-plugins/notebooks/flowr-analyzer-jupyter-file-plugin.d.ts +2 -5
  272. package/project/plugins/file-plugins/notebooks/flowr-analyzer-jupyter-file-plugin.js +2 -8
  273. package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmarkdown-file-plugin.d.ts +2 -6
  274. package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmarkdown-file-plugin.js +1 -10
  275. package/project/plugins/file-plugins/notebooks/flowr-analyzer-sweave-file-plugin.d.ts +2 -5
  276. package/project/plugins/file-plugins/notebooks/flowr-analyzer-sweave-file-plugin.js +2 -8
  277. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-library-plugin.js +2 -1
  278. package/project/sigdb/build.d.ts +2 -2
  279. package/project/sigdb/decode.d.ts +0 -5
  280. package/project/sigdb/decode.js +0 -8
  281. package/project/sigdb/index-format.d.ts +4 -4
  282. package/project/sigdb/manifest.d.ts +2 -2
  283. package/project/sigdb/reader.d.ts +48 -13
  284. package/project/sigdb/reader.js +2 -1
  285. package/project/sigdb/schema.d.ts +3 -1
  286. package/project/sigdb/signature-db.d.ts +69 -0
  287. package/project/sigdb/signature-db.js +54 -0
  288. package/project/sigdb/signature-match.d.ts +10 -5
  289. package/project/sigdb/signature-match.js +13 -8
  290. package/queries/catalog/absint-query/absint-query-executor.js +1 -2
  291. package/queries/catalog/call-context-query/call-context-query-executor.js +2 -4
  292. package/queries/catalog/call-context-query/identify-link-to-last-call-relation.d.ts +1 -1
  293. package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +33 -6
  294. package/queries/catalog/control-flow-query/control-flow-query-executor.js +1 -2
  295. package/queries/catalog/dependencies-query/dependencies-query-executor.js +2 -2
  296. package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +8 -7
  297. package/queries/catalog/dependencies-query/dependencies-query-format.js +22 -35
  298. package/queries/catalog/dependencies-query/function-info/library-functions.d.ts +13 -1
  299. package/queries/catalog/dependencies-query/function-info/library-functions.js +26 -22
  300. package/queries/catalog/dependencies-query/function-info/statistics-functions.d.ts +9 -0
  301. package/queries/catalog/dependencies-query/function-info/statistics-functions.js +19 -0
  302. package/queries/catalog/dependencies-query/implicit-echo.d.ts +13 -0
  303. package/queries/catalog/dependencies-query/implicit-echo.js +133 -0
  304. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.js +2 -2
  305. package/queries/catalog/happens-before-query/happens-before-query-executor.js +1 -2
  306. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.d.ts +2 -2
  307. package/queries/catalog/signature-query/signature-query-executor.js +4 -3
  308. package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +1 -1
  309. package/r-bridge/lang-4.x/ast/model/nodes/info/r-delimiter.d.ts +1 -0
  310. package/r-bridge/lang-4.x/ast/model/nodes/info/r-delimiter.js +1 -0
  311. package/r-bridge/lang-4.x/ast/model/nodes/r-access.d.ts +1 -0
  312. package/r-bridge/lang-4.x/ast/model/nodes/r-access.js +1 -0
  313. package/r-bridge/lang-4.x/ast/model/nodes/r-argument.d.ts +4 -1
  314. package/r-bridge/lang-4.x/ast/model/nodes/r-argument.js +5 -2
  315. package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.d.ts +1 -0
  316. package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.js +1 -0
  317. package/r-bridge/lang-4.x/ast/model/nodes/r-break.d.ts +1 -0
  318. package/r-bridge/lang-4.x/ast/model/nodes/r-break.js +1 -0
  319. package/r-bridge/lang-4.x/ast/model/nodes/r-comment.d.ts +1 -0
  320. package/r-bridge/lang-4.x/ast/model/nodes/r-comment.js +1 -0
  321. package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.d.ts +1 -0
  322. package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.js +1 -0
  323. package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.d.ts +1 -0
  324. package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.js +1 -0
  325. package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.d.ts +6 -4
  326. package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.js +6 -4
  327. package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.d.ts +1 -0
  328. package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.js +1 -0
  329. package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.d.ts +1 -0
  330. package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.js +1 -0
  331. package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.d.ts +1 -0
  332. package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.js +1 -0
  333. package/r-bridge/lang-4.x/ast/model/nodes/r-logical.d.ts +1 -0
  334. package/r-bridge/lang-4.x/ast/model/nodes/r-logical.js +1 -0
  335. package/r-bridge/lang-4.x/ast/model/nodes/r-next.d.ts +1 -0
  336. package/r-bridge/lang-4.x/ast/model/nodes/r-next.js +1 -0
  337. package/r-bridge/lang-4.x/ast/model/nodes/r-number.d.ts +6 -0
  338. package/r-bridge/lang-4.x/ast/model/nodes/r-number.js +13 -0
  339. package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.d.ts +1 -0
  340. package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.js +1 -0
  341. package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.d.ts +1 -0
  342. package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.js +1 -0
  343. package/r-bridge/lang-4.x/ast/model/nodes/r-project.d.ts +1 -0
  344. package/r-bridge/lang-4.x/ast/model/nodes/r-project.js +1 -0
  345. package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.d.ts +1 -0
  346. package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.js +1 -0
  347. package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +1 -0
  348. package/r-bridge/lang-4.x/ast/model/nodes/r-string.js +1 -0
  349. package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.d.ts +1 -0
  350. package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.js +1 -0
  351. package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.d.ts +1 -0
  352. package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.js +1 -0
  353. package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.d.ts +1 -0
  354. package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.js +1 -0
  355. package/r-bridge/lang-4.x/ast/model/processing/decorate.js +2 -1
  356. package/r-bridge/lang-4.x/ast/model/processing/stateful-fold.d.ts +1 -1
  357. package/r-bridge/lang-4.x/ast/model/processing/stateful-fold.js +3 -2
  358. package/r-bridge/lang-4.x/ast/parser/main/internal/control/normalize-if-then-else.js +2 -1
  359. package/r-bridge/lang-4.x/ast/parser/main/internal/control/normalize-if-then.js +2 -1
  360. package/r-bridge/lang-4.x/ast/parser/main/internal/expression/normalize-expression.js +1 -1
  361. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-argument.js +2 -1
  362. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-call.d.ts +2 -2
  363. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-call.js +6 -3
  364. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-definition.js +2 -1
  365. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-parameter.js +2 -1
  366. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-for.js +5 -3
  367. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-repeat.js +2 -1
  368. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-while.js +2 -1
  369. package/r-bridge/lang-4.x/ast/parser/main/internal/normalize-access.js +2 -1
  370. package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-binary.js +5 -3
  371. package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-unary.js +2 -1
  372. package/r-bridge/lang-4.x/ast/parser/main/internal/structure/normalize-expressions.d.ts +1 -1
  373. package/r-bridge/lang-4.x/ast/parser/main/internal/structure/normalize-expressions.js +2 -1
  374. package/r-bridge/lang-4.x/ast/parser/main/internal/structure/normalize-root.js +3 -1
  375. package/r-bridge/lang-4.x/ast/parser/main/normalize-meta.d.ts +1 -1
  376. package/r-bridge/lang-4.x/ast/parser/main/normalize-meta.js +2 -1
  377. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +5 -3
  378. package/reconstruct/inline/source-inline-map.js +3 -3
  379. package/reconstruct/reconstruct.js +6 -4
  380. package/search/flowr-search-builder.d.ts +8 -8
  381. package/search/flowr-search-builder.js +4 -4
  382. package/search/flowr-search-filters.d.ts +2 -2
  383. package/search/flowr-search-filters.js +3 -2
  384. package/search/search-executor/search-enrichers.d.ts +6 -4
  385. package/search/search-executor/search-enrichers.js +44 -5
  386. package/slicing/criterion/filters/all-variables.js +2 -1
  387. package/slicing/criterion/parse.js +8 -6
  388. package/slicing/static/slice-call.js +2 -2
  389. package/util/arg-matching.d.ts +3 -0
  390. package/util/arg-matching.js +12 -1
  391. package/util/collections/arrays.d.ts +0 -4
  392. package/util/collections/arrays.js +4 -26
  393. package/util/diff-graph.d.ts +1 -1
  394. package/util/diff-graph.js +17 -3
  395. package/util/diff.d.ts +6 -0
  396. package/util/mermaid/ast.d.ts +1 -1
  397. package/util/mermaid/ast.js +5 -4
  398. package/util/mermaid/cfg.js +130 -24
  399. package/util/mermaid/dfg.js +31 -10
  400. package/util/mermaid/mermaid.js +2 -0
  401. package/util/objects.d.ts +9 -0
  402. package/util/objects.js +12 -0
  403. package/util/prefix.d.ts +1 -1
  404. package/util/text/playground-link.d.ts +131 -0
  405. package/util/text/playground-link.js +214 -0
  406. package/util/text/strings.js +7 -3
  407. package/util/version.js +1 -1
  408. package/control-flow/cfg-builder.d.ts +0 -30
  409. package/control-flow/cfg-builder.js +0 -79
  410. package/control-flow/extract-cfg.d.ts +0 -36
  411. package/control-flow/extract-cfg.js +0 -693
  412. package/project/cfg-kind.d.ts +0 -21
  413. package/project/cfg-kind.js +0 -26
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LintQuickFixes = void 0;
4
+ const linter_format_1 = require("./linter-format");
5
+ const range_1 = require("../util/range");
6
+ const assert_1 = require("../util/assert");
7
+ /**
8
+ * The offset `line:column` sits at, both counted from one. A place beyond the text is pulled back into it, so a
9
+ * range that outruns its line cuts at the line's end rather than reaching into the ones after it.
10
+ */
11
+ function offsetOf(code, lineStarts, line, column) {
12
+ const at = Math.min(Math.max(line, 1), lineStarts.length);
13
+ /* the last place on the line is its final character: the break after it separates lines, it is not one */
14
+ const beyond = at < lineStarts.length ? lineStarts[at] - 1 : code.length;
15
+ return Math.min(lineStarts[at - 1] + Math.max(column, 1) - 1, beyond);
16
+ }
17
+ function lineStartsOf(code) {
18
+ const starts = [0];
19
+ for (let i = code.indexOf('\n'); i >= 0; i = code.indexOf('\n', i + 1)) {
20
+ starts.push(i + 1);
21
+ }
22
+ return starts;
23
+ }
24
+ /** an edit that leaves nothing but whitespace behind on its lines takes them with it, rather than a blank line */
25
+ function widenToLine(code, lineStarts, edit) {
26
+ if (edit.insert.length > 0) {
27
+ return edit;
28
+ }
29
+ const lineStart = offsetOf(code, lineStarts, edit.range[0], 1);
30
+ const nextLine = code.indexOf('\n', edit.to);
31
+ const lineEnd = nextLine < 0 ? code.length : nextLine + 1;
32
+ if (code.slice(lineStart, edit.from).trim() !== '' || code.slice(edit.to, lineEnd).trim() !== '') {
33
+ return edit;
34
+ }
35
+ return { ...edit, from: lineStart, to: lineEnd };
36
+ }
37
+ exports.LintQuickFixes = {
38
+ /** Every quick fix a lint run offers, grouped by the file it changes. Fixes flowR cannot place are left out. */
39
+ byFile(results) {
40
+ const byFile = new Map();
41
+ for (const perRule of Object.values(results)) {
42
+ if (linter_format_1.LintingResults.isError(perRule)) {
43
+ continue;
44
+ }
45
+ for (const result of perRule.results) {
46
+ for (const fix of result.quickFix ?? []) {
47
+ const file = range_1.SourceLocation.getFile(fix.loc);
48
+ if (file === undefined || !linter_format_1.LintQuickFix.isPlaced(fix)) {
49
+ continue;
50
+ }
51
+ const known = byFile.get(file);
52
+ if (known === undefined) {
53
+ byFile.set(file, [fix]);
54
+ }
55
+ else {
56
+ known.push(fix);
57
+ }
58
+ }
59
+ }
60
+ }
61
+ return byFile;
62
+ },
63
+ /**
64
+ * The content of one file with the given fixes carried out, as {@link LintQuickFixes.byFile} groups them. Of two
65
+ * overlapping fixes only the one coming first in the file is kept, since the second would be applied to a range
66
+ * that no longer says what it did. What survives is then carried out back to front, so the offsets of the edits
67
+ * still to come stay valid.
68
+ *
69
+ * Fixes naming a file must all name the same one, as those of another file would cut at offsets of a text that
70
+ * is not this one. Fixes naming none are taken to belong to whatever `code` is.
71
+ */
72
+ apply(code, fixes) {
73
+ const files = new Set(fixes.map(fix => range_1.SourceLocation.getFile(fix.loc)).filter(assert_1.isNotUndefined));
74
+ (0, assert_1.guard)(files.size <= 1, () => `quick fixes of ${[...files].join(', ')} cannot be applied to one text`);
75
+ const lineStarts = lineStartsOf(code);
76
+ const edits = [];
77
+ for (const fix of fixes.toSorted((a, b) => range_1.SourceLocation.compare(a.loc, b.loc))) {
78
+ if (!linter_format_1.LintQuickFix.isPlaced(fix)) {
79
+ continue;
80
+ }
81
+ const range = range_1.SourceLocation.getRange(fix.loc);
82
+ /* what is kept is disjoint and runs left to right, so the last of them is the only one that can be met */
83
+ const last = edits[edits.length - 1];
84
+ if (last !== undefined && range_1.SourceRange.overlap(last.range, range)) {
85
+ continue;
86
+ }
87
+ const from = offsetOf(code, lineStarts, range[0], range[1]);
88
+ edits.push(widenToLine(code, lineStarts, {
89
+ range,
90
+ from,
91
+ /* the end column names the last character, so the cut runs one past it */
92
+ to: Math.max(from, offsetOf(code, lineStarts, range[2], range[3] + 1)),
93
+ insert: linter_format_1.LintQuickFix.inserted(fix)
94
+ }));
95
+ }
96
+ let out = code;
97
+ for (let i = edits.length - 1; i >= 0; i--) {
98
+ const { from, to, insert } = edits[i];
99
+ out = out.slice(0, from) + insert + out.slice(to);
100
+ }
101
+ return out;
102
+ }
103
+ };
104
+ //# sourceMappingURL=linter-fix.js.map
@@ -7,7 +7,7 @@ import type { ParentInformation } from '../r-bridge/lang-4.x/ast/model/processin
7
7
  import type { LintingRuleConfig, LintingRuleMetadata, LintingRuleNames, LintingRuleResult } from './linter-rules';
8
8
  import type { AsyncOrSync, DeepPartial, DeepReadonly } from 'ts-essentials';
9
9
  import type { LintingRuleTag } from './linter-tags';
10
- import type { SourceLocation } from '../util/range';
10
+ import { SourceLocation } from '../util/range';
11
11
  import type { ReadonlyFlowrAnalysisProvider } from '../project/flowr-analyzer';
12
12
  import type { NodeId } from '../r-bridge/lang-4.x/ast/model/processing/node-id';
13
13
  export interface LinterRuleInformation<Config extends MergeableRecord = never> {
@@ -91,6 +91,23 @@ export interface LintQuickFixRemove extends BaseQuickFix {
91
91
  readonly type: 'remove';
92
92
  }
93
93
  export type LintQuickFix = LintQuickFixReplacement | LintQuickFixRemove;
94
+ /**
95
+ * Helper for working with {@link LintQuickFix|quick fixes}.
96
+ */
97
+ export declare const LintQuickFix: {
98
+ readonly name: "LintQuickFix";
99
+ /**
100
+ * Whether the fix names a span that can be changed at all. A rule that cannot locate its finding falls back
101
+ * to {@link SourceLocation.invalid}, and carrying that out would cut somewhere else entirely. An insertion is
102
+ * a span of no width, written with its end one column before its start, so only the lines have to be real.
103
+ */
104
+ readonly isPlaced: (this: void, fix: LintQuickFix) => boolean;
105
+ /**
106
+ * The text that takes the place of the span the fix covers, which is what carrying it out amounts to.
107
+ * Every kind of fix is named here, so a new one cannot quietly inherit the behaviour of another.
108
+ */
109
+ readonly inserted: (this: void, fix: LintQuickFix) => string;
110
+ };
94
111
  /**
95
112
  * A linting result for a single linting rule match.
96
113
  */
@@ -1,7 +1,37 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LintingPrettyPrintContext = exports.LintingRuleCertainty = exports.LintingResultCertainty = exports.LintingResults = void 0;
3
+ exports.LintingPrettyPrintContext = exports.LintingRuleCertainty = exports.LintingResultCertainty = exports.LintingResults = exports.LintQuickFix = void 0;
4
+ const range_1 = require("../util/range");
4
5
  const assert_1 = require("../util/assert");
6
+ /**
7
+ * Helper for working with {@link LintQuickFix|quick fixes}.
8
+ */
9
+ exports.LintQuickFix = {
10
+ name: 'LintQuickFix',
11
+ /**
12
+ * Whether the fix names a span that can be changed at all. A rule that cannot locate its finding falls back
13
+ * to {@link SourceLocation.invalid}, and carrying that out would cut somewhere else entirely. An insertion is
14
+ * a span of no width, written with its end one column before its start, so only the lines have to be real.
15
+ */
16
+ isPlaced(fix) {
17
+ const [startLine, startColumn, endLine, endColumn] = range_1.SourceLocation.getRange(fix.loc);
18
+ return startLine > 0 && endLine > 0 && startColumn > 0 && endColumn >= 0;
19
+ },
20
+ /**
21
+ * The text that takes the place of the span the fix covers, which is what carrying it out amounts to.
22
+ * Every kind of fix is named here, so a new one cannot quietly inherit the behaviour of another.
23
+ */
24
+ inserted(fix) {
25
+ switch (fix.type) {
26
+ case 'replace':
27
+ return fix.replacement;
28
+ case 'remove':
29
+ return '';
30
+ default:
31
+ (0, assert_1.assertUnreachable)(fix);
32
+ }
33
+ }
34
+ };
5
35
  /**
6
36
  * Helper functions for working with {@link LintingResults}.
7
37
  */
@@ -8,8 +8,11 @@ exports.formatLints = formatLints;
8
8
  */
9
9
  const linter_rules_1 = require("./linter-rules");
10
10
  const linter_format_1 = require("./linter-format");
11
+ const range_1 = require("../util/range");
11
12
  const files_1 = require("../util/files");
12
13
  const doc_files_1 = require("../documentation/doc-util/doc-files");
14
+ const assert_1 = require("../util/assert");
15
+ const arrays_1 = require("../util/collections/arrays");
13
16
  /** The formats linting results are reported in. */
14
17
  var LinterOutputFormat;
15
18
  (function (LinterOutputFormat) {
@@ -27,13 +30,14 @@ function findings(results) {
27
30
  const perRule = perRuleResults;
28
31
  /* staying silent about a rule that threw would claim it passed */
29
32
  if (linter_format_1.LintingResults.isError(perRule)) {
30
- return [{ rule, message: `the linting rule failed: ${linter_format_1.LintingResults.stringifyError(perRule)}`, level: 'error', loc: undefined }];
33
+ return [{ rule, message: `the linting rule failed: ${linter_format_1.LintingResults.stringifyError(perRule)}`, level: 'error', loc: undefined, quickFix: [] }];
31
34
  }
32
35
  return perRule.results.map(result => ({
33
36
  rule,
34
37
  message: linter_rules_1.LintingRules[rule].prettyPrint[linter_format_1.LintingPrettyPrintContext.Query](result, perRule['.meta']),
35
38
  level: (result.certainty === linter_format_1.LintingResultCertainty.Certain ? 'warning' : 'note'),
36
- loc: result.loc
39
+ loc: result.loc,
40
+ quickFix: result.quickFix ?? []
37
41
  }));
38
42
  });
39
43
  }
@@ -53,13 +57,36 @@ function sarifLocation(loc) {
53
57
  }
54
58
  }];
55
59
  }
60
+ /**
61
+ * The quick fixes of one finding as SARIF `fixes`. A fix needs a file and a span to change, so the ones flowR cannot
62
+ * place are left out rather than reported against no artifact or an invalid region.
63
+ */
64
+ function sarifFixes(fixes) {
65
+ return fixes.flatMap(fix => {
66
+ const file = range_1.SourceLocation.getFile(fix.loc);
67
+ if (file === undefined || !linter_format_1.LintQuickFix.isPlaced(fix)) {
68
+ return [];
69
+ }
70
+ const [startLine, startColumn, endLine, endColumn] = range_1.SourceLocation.getRange(fix.loc);
71
+ return [{
72
+ description: { text: fix.description },
73
+ artifactChanges: [{
74
+ artifactLocation: { uri: reportedPath(file) },
75
+ replacements: [{
76
+ deletedRegion: { startLine, startColumn, endLine, endColumn },
77
+ insertedContent: { text: linter_format_1.LintQuickFix.inserted(fix) }
78
+ }]
79
+ }]
80
+ }];
81
+ });
82
+ }
56
83
  /**
57
84
  * Renders the linting results as SARIF 2.1.0, the format code scanners (e.g. GitHub's) ingest, on a single line.
58
85
  * Only the rules that produced a finding are described, as SARIF requires every reported rule to be declared.
59
86
  */
60
87
  function lintsToSarif(results, flowrVersion) {
61
88
  const flat = findings(results);
62
- const reported = [...new Set(flat.map(f => f.rule))];
89
+ const reported = (0, arrays_1.uniqueArray)(flat.map(f => f.rule));
63
90
  return JSON.stringify({
64
91
  $schema: 'https://json.schemastore.org/sarif-2.1.0.json',
65
92
  version: '2.1.0',
@@ -77,12 +104,16 @@ function lintsToSarif(results, flowrVersion) {
77
104
  }))
78
105
  }
79
106
  },
80
- results: flat.map(f => ({
81
- ruleId: f.rule,
82
- level: f.level,
83
- message: { text: f.message },
84
- locations: sarifLocation(f.loc)
85
- }))
107
+ results: flat.map(f => {
108
+ const fixes = sarifFixes(f.quickFix);
109
+ return {
110
+ ruleId: f.rule,
111
+ level: f.level,
112
+ message: { text: f.message },
113
+ locations: sarifLocation(f.loc),
114
+ ...(fixes.length > 0 ? { fixes } : {})
115
+ };
116
+ })
86
117
  }]
87
118
  });
88
119
  }
@@ -97,7 +128,9 @@ function lintsToGithub(results) {
97
128
  return findings(results).map(f => {
98
129
  const loc = f.loc !== undefined && f.loc[4] !== undefined ? f.loc : undefined;
99
130
  const where = loc === undefined ? '' : ` file=${escapeGithubData(reportedPath(loc[4]))},line=${loc[0]},col=${loc[1]},endLine=${loc[2]},endColumn=${loc[3]},`;
100
- return `::${githubCommand[f.level]}${where}${loc === undefined ? ' ' : ''}title=${escapeGithubData(f.rule)}::${escapeGithubData(f.message)}`;
131
+ // github annotations carry no fix of their own, so the offer goes into the message
132
+ const fixes = f.quickFix.length === 0 ? '' : ` [quick fix: ${f.quickFix.map(fix => fix.description).join('; ')}]`;
133
+ return `::${githubCommand[f.level]}${where}${loc === undefined ? ' ' : ''}title=${escapeGithubData(f.rule)}::${escapeGithubData(f.message + fixes)}`;
101
134
  }).join('\n');
102
135
  }
103
136
  /**
@@ -112,6 +145,9 @@ function formatLints(results, format, flowrVersion) {
112
145
  return lintsToGithub(results);
113
146
  case LinterOutputFormat.Text:
114
147
  return undefined;
148
+ default:
149
+ /* a format nobody taught this about would otherwise read as Text, i.e. as no output at all */
150
+ (0, assert_1.assertUnreachable)(format);
115
151
  }
116
152
  }
117
153
  //# sourceMappingURL=linter-output.js.map
@@ -5,22 +5,26 @@ import type { LintingRule } from './linter-format';
5
5
  */
6
6
  export declare const LintingRules: {
7
7
  readonly 'deprecated-functions': {
8
- readonly createSearch: (_config: import("./rules/function-finder-util").FunctionsToDetectConfig) => import("../search/flowr-search-builder").FlowrSearchBuilder<"all", ["filter", "with"], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, Promise<import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>>;
9
- readonly processSearchResult: (elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/function-finder-util").FunctionsToDetectConfig, data: import("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => Promise<{
10
- results: import("./rules/function-finder-util").FunctionsResult[];
11
- '.meta': import("./rules/function-finder-util").FunctionsMetadata;
8
+ readonly createSearch: (_config: import("./rules/deprecated-functions").DeprecatedFunctionsConfig) => import("../search/flowr-search-builder").FlowrSearchBuilder<"all", ["filter", "with"], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, Promise<import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>>;
9
+ readonly processSearchResult: (elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/deprecated-functions").DeprecatedFunctionsConfig, data: import("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => Promise<{
10
+ results: import("./rules/deprecated-functions").DeprecatedFunctionRuleResult[];
11
+ '.meta': {
12
+ builtin: number;
13
+ sigdb: number;
14
+ };
12
15
  }>;
13
16
  readonly prettyPrint: {
14
- query: (result: import("./rules/function-finder-util").FunctionsResult) => string;
15
- full: (result: import("./rules/function-finder-util").FunctionsResult) => string;
17
+ readonly query: (result: import("./rules/deprecated-functions").DeprecatedFunctionRuleResult) => string;
18
+ readonly full: (result: import("./rules/deprecated-functions").DeprecatedFunctionRuleResult) => string;
16
19
  };
17
20
  readonly info: {
18
21
  readonly name: "Deprecated Functions";
19
- readonly tags: readonly [import("./linter-tags").LintingRuleTag.Deprecated, import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.Reproducibility];
22
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.Deprecated, import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Usability, import("./linter-tags").LintingRuleTag.Reproducibility, import("./linter-tags").LintingRuleTag.QuickFix];
20
23
  readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
21
- readonly description: "Marks deprecated functions that should not be used anymore.";
24
+ readonly description: "Marks deprecated functions and deprecated arguments of still-current functions, offering the replacement as a quick fix where one is known. A call to a bare name whose package the code never attaches is reported as uncertain, as any function of that name would answer to it.";
22
25
  readonly defaultConfig: {
23
- readonly fns: readonly ["all_equal", "arrange_all", "distinct_all", "filter_all", "group_by_all", "summarise_all", "mutate_all", "select_all", "vars", "all_vars", "id", "failwith", "select_vars", "rename_vars", "select_var", "current_vars", "bench_tbls", "compare_tbls", "compare_tbls2", "eval_tbls", "eval_tbls2", "location", "changes", "combine", "do", "funs", "add_count_", "add_tally_", "arrange_", "count_", "distinct_", "do_", "filter_", "funs_", "group_by_", "group_indices_", "mutate_", "tally_", "transmute_", "rename_", "rename_vars_", "select_", "select_vars_", "slice_", "summarise_", "summarize_", "summarise_each", "src_local", "tbl_df", "add_rownames", "group_nest", "group_split", "with_groups", "nest_by", "progress_estimated", "recode", "sample_n", "top_n", "transmute", "fct_explicit_na", "aes_", "aes_auto", "annotation_logticks", "is.Coord", "coord_flip", "coord_map", "is.facet", "fortify", "is.ggproto", "guide_train", "is.ggplot", "qplot", "is.theme", "gg_dep", "liply", "isplit2", "list_along", "cross", "invoke", "at_depth", "prepend", "rerun", "splice", "`%@%`", "rbernoulli", "rdunif", "when", "update_list", "map_raw", "accumulate", "reduce_right", "flatten", "map_dfr", "as_vector", "transpose", "melt_delim", "melt_fwf", "melt_table", "read_table2", "str_interp", "as_tibble", "data_frame", "tibble_", "data_frame_", "lst_", "as_data_frame", "as.tibble", "frame_data", "trunc_mat", "is.tibble", "tidy_names", "set_tidy_names", "repair_names", "extract_numeric", "complete_", "drop_na_", "expand_", "crossing_", "nesting_", "extract_", "fill_", "gather_", "nest_", "separate_rows_", "separate_", "spread_", "unite_", "unnest_", "extract", "gather", "nest_legacy", "separate_rows", "separate", "spread"];
26
+ readonly always: import("../dataflow/environments/identifier").Identifier[];
27
+ readonly conditionally: Record<import("../dataflow/environments/identifier").BrandedIdentifier, import("./rules/deprecated-functions").DeprecatedFunctionInformation>;
24
28
  };
25
29
  };
26
30
  };
@@ -378,6 +382,33 @@ export declare const LintingRules: {
378
382
  };
379
383
  };
380
384
  };
385
+ readonly 'unused-import': {
386
+ readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from-query", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
387
+ readonly processSearchResult: (elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/unused-import").UnusedImportConfig, data: import("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => Promise<{
388
+ results: {
389
+ certainty: import("./linter-format").LintingResultCertainty;
390
+ involvedId: import("../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId;
391
+ loc: [startLine: number, startColumn: number, endLine: number, endColumn: number, f?: string | undefined];
392
+ package: string;
393
+ version: string;
394
+ quickFix: import("./linter-format").LintQuickFix[] | undefined;
395
+ }[];
396
+ '.meta': import("./rules/unused-import").UnusedImportMetadata;
397
+ }>;
398
+ readonly prettyPrint: {
399
+ readonly query: (result: import("./rules/unused-import").UnusedImportResult) => string;
400
+ readonly full: (result: import("./rules/unused-import").UnusedImportResult) => string;
401
+ };
402
+ readonly info: {
403
+ readonly name: "Unused Import";
404
+ readonly tags: readonly [import("./linter-tags").LintingRuleTag.Smell, import("./linter-tags").LintingRuleTag.Readability, import("./linter-tags").LintingRuleTag.QuickFix];
405
+ readonly certainty: import("./linter-format").LintingRuleCertainty.BestEffort;
406
+ readonly description: "Highlights packages that are attached but never used, so the code runs just the same without them. Requires a signature database, and packages that only do their work on load should be whitelisted in the configuration.";
407
+ readonly defaultConfig: {
408
+ readonly whitelist: readonly [];
409
+ };
410
+ };
411
+ };
381
412
  readonly 'syntactically-valid': {
382
413
  readonly createSearch: () => import("../search/flowr-search-builder").FlowrSearchBuilder<"from", [], import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>;
383
414
  readonly processSearchResult: (_elements: import("../search/flowr-search").FlowrSearchElements<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../search/flowr-search").FlowrSearchElement<import("../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: import("./rules/syntactically-valid").SyntacticallyValidConfig, data: import("../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../r-bridge/parser").KnownParser>) => Promise<{
@@ -18,6 +18,7 @@ const software_has_license_1 = require("./rules/software-has-license");
18
18
  const software_has_tests_1 = require("./rules/software-has-tests");
19
19
  const no_leaked_credentials_1 = require("./rules/no-leaked-credentials");
20
20
  const undefined_symbol_1 = require("./rules/undefined-symbol");
21
+ const unused_import_1 = require("./rules/unused-import");
21
22
  const syntactically_valid_1 = require("./rules/syntactically-valid");
22
23
  const unclosed_connection_1 = require("./rules/unclosed-connection");
23
24
  /**
@@ -42,6 +43,7 @@ exports.LintingRules = {
42
43
  'software-has-tests': software_has_tests_1.SOFTWARE_HAS_TESTS,
43
44
  'no-leaked-credentials': no_leaked_credentials_1.NO_LEAKED_CREDENTIALS,
44
45
  'undefined-symbol': undefined_symbol_1.UNDEFINED_SYMBOL,
46
+ 'unused-import': unused_import_1.UNUSED_IMPORT,
45
47
  'syntactically-valid': syntactically_valid_1.SYNTACTICALLY_VALID,
46
48
  'unclosed-connection': unclosed_connection_1.UNCLOSED_CONNECTION
47
49
  };
@@ -38,12 +38,14 @@ function inferWd(file, wd, ctx) {
38
38
  }
39
39
  // this can be improved by respecting raw strings and supporting more scenarios
40
40
  function buildQuickFix(str, filePath, wd) {
41
- if (!wd || !str || !r_string_1.RString.is(str)) {
41
+ const loc = range_1.SourceLocation.fromNode(str);
42
+ if (!wd || !str || !r_string_1.RString.is(str) || loc === undefined) {
43
+ /* a fix that names no place cannot be carried out, so none is offered */
42
44
  return undefined;
43
45
  }
44
46
  return [{
45
47
  type: 'replace',
46
- loc: range_1.SourceLocation.fromNode(str) ?? range_1.SourceLocation.invalid(),
48
+ loc,
47
49
  description: `Replace with a relative path to \`${filePath}\``,
48
50
  replacement: str.content.quotes + '.' + path_1.default.sep + path_1.default.relative(wd, filePath) + str.content.quotes
49
51
  }];
@@ -5,13 +5,13 @@ const shape_inference_1 = require("../../abstract-interpretation/data-frame/shap
5
5
  const value_abstract_domain_1 = require("../../abstract-interpretation/domains/value-abstract-domain");
6
6
  const config_1 = require("../../config");
7
7
  const identifier_1 = require("../../dataflow/environments/identifier");
8
- const cfg_kind_1 = require("../../project/cfg-kind");
9
- const type_1 = require("../../r-bridge/lang-4.x/ast/model/type");
10
8
  const flowr_search_builder_1 = require("../../search/flowr-search-builder");
11
9
  const logic_1 = require("../../util/logic");
12
10
  const range_1 = require("../../util/range");
13
11
  const linter_format_1 = require("../linter-format");
14
12
  const linter_tags_1 = require("../linter-tags");
13
+ const r_symbol_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-symbol");
14
+ const arrays_1 = require("../../util/collections/arrays");
15
15
  exports.DATA_FRAME_ACCESS_VALIDATION = {
16
16
  createSearch: () => flowr_search_builder_1.Q.all(),
17
17
  processSearchResult: async (elements, config, data) => {
@@ -27,7 +27,7 @@ exports.DATA_FRAME_ACCESS_VALIDATION = {
27
27
  return flowrConfig;
28
28
  })
29
29
  };
30
- const cfg = await data.controlflow(undefined, cfg_kind_1.CfgKind.NoFunctionDefs);
30
+ const cfg = await data.controlflow(undefined);
31
31
  const inference = new shape_inference_1.DataFrameShapeInferenceVisitor({ controlFlow: cfg, dfg: dataflow.graph, normalizedAst: normalize, ctx });
32
32
  inference.start();
33
33
  const accessOperations = getAccessOperations(elements, inference);
@@ -52,9 +52,8 @@ exports.DATA_FRAME_ACCESS_VALIDATION = {
52
52
  const metadata = {
53
53
  numOperations: accessOperations.size,
54
54
  numAccesses: operations.length,
55
- totalAccessed: operations
56
- .map(operation => operation.operation === 'accessCols' ? operation.columns?.length ?? 0 : operation.rows?.length ?? 0)
57
- .reduce((a, b) => a + b, 0)
55
+ totalAccessed: (0, arrays_1.arraySum)(operations
56
+ .map(operation => operation.operation === 'accessCols' ? operation.columns?.length ?? 0 : operation.rows?.length ?? 0))
58
57
  };
59
58
  const results = accesses
60
59
  .flatMap(access => findInvalidDataFrameAccesses(access)
@@ -68,7 +67,7 @@ exports.DATA_FRAME_ACCESS_VALIDATION = {
68
67
  ...accessed,
69
68
  involvedId: node?.info.id,
70
69
  access: node?.lexeme ?? '???',
71
- ...(operand?.type === type_1.RType.Symbol ? { operand: identifier_1.Identifier.getName(operand.content) } : {}),
70
+ ...(r_symbol_1.RSymbol.is(operand) ? { operand: identifier_1.Identifier.getName(operand.content) } : {}),
72
71
  loc: range_1.SourceLocation.fromNode(node) ?? range_1.SourceLocation.invalid(),
73
72
  certainty: linter_format_1.LintingResultCertainty.Certain
74
73
  }));
@@ -1,23 +1,120 @@
1
+ import type { Range } from 'semver';
2
+ import type { BrandedIdentifier } from '../../dataflow/environments/identifier';
3
+ import { Identifier } from '../../dataflow/environments/identifier';
4
+ import type { MergeableRecord } from '../../util/objects';
5
+ import type { LintingResult } from '../linter-format';
1
6
  import { LintingRuleCertainty } from '../linter-format';
2
7
  import { LintingRuleTag } from '../linter-tags';
3
- import { type FunctionsMetadata, type FunctionsResult, type FunctionsToDetectConfig } from './function-finder-util';
8
+ import type { ParentInformation } from '../../r-bridge/lang-4.x/ast/model/processing/decorate';
9
+ import type { ReadonlyFlowrAnalysisProvider } from '../../project/flowr-analyzer';
10
+ import type { KnownParser } from '../../r-bridge/parser';
11
+ /**
12
+ * Information about an argument of a function that should be flagged as deprecated if it is called with this argument
13
+ *
14
+ * Used in {@link DeprecatedFunctionInformation} to mark a function argument as deprecated under certain conditions
15
+ */
16
+ export interface DeprecatedArgumentInformation {
17
+ /** Index of the argument */
18
+ readonly argIdx?: number;
19
+ /** Name of the argument */
20
+ readonly argName?: string;
21
+ /** Only mark this argument as deprecated, if a specific value was provided */
22
+ readonly ifValue?: RegExp | string;
23
+ /** Suggested replacement for this argument */
24
+ readonly replacedBy?: string;
25
+ /** The version since this argument is deprecated */
26
+ readonly sinceVersion?: Range;
27
+ /** The state of deprecation {@link DeprecationState}, i.e. is the argument completely removed, or are there better alternatives */
28
+ readonly state?: DeprecationState;
29
+ }
30
+ /**
31
+ * Information about a deprecated function
32
+ *
33
+ * Used in {@link DeprecatedFunctionsConfig.conditionally} to mark a function as deprecated under certain conditions
34
+ */
35
+ export interface DeprecatedFunctionInformation {
36
+ /**
37
+ * Mark specific arguments as deprecated
38
+ * If only whenArgs is provided, and not sinceVersion, the function is only marked as deprecated, if the argument is provided.
39
+ */
40
+ readonly whenArgs?: DeprecatedArgumentInformation[];
41
+ /** Suggested replacement for this function */
42
+ readonly replacedBy?: string;
43
+ /** The version since this function is deprecated, if version is provided the entire function will be marked as deprecated, if the version range matches */
44
+ readonly sinceVersion?: Range;
45
+ /** Lifecycle State {@link DeprecationState}, i.e. is the function completely removed, or are there better alternatives */
46
+ readonly state?: DeprecationState;
47
+ }
48
+ /**
49
+ * Result of the {@link DEPRECATED_FUNCTIONS} linting rule
50
+ * See also the specializations {@link DeprecatedFunctionResult} and {@link DeprecatedArgumentResult}
51
+ */
52
+ export interface DeprecatedFunctionResultBase extends LintingResult {
53
+ /** The function affected by the deprecation */
54
+ readonly function: Identifier;
55
+ /** The suggested replacement for the deprecated argument or function */
56
+ readonly replacedBy?: string;
57
+ /** Since which package version this argument or function is deprecated */
58
+ readonly sinceVersion?: Range;
59
+ /** Lifecycle State {@link DeprecationState} */
60
+ readonly state?: DeprecationState;
61
+ }
62
+ /**
63
+ * Returned by the {@link DEPRECATED_FUNCTIONS} linting rule, when a deprecated function is detected.
64
+ * Provided for convenience to differentiate between {@link DeprecatedArgumentResult} and {@link DeprecatedFunctionResult}
65
+ */
66
+ export interface DeprecatedFunctionResult extends DeprecatedFunctionResultBase {
67
+ readonly type: 'deprecated-function';
68
+ }
69
+ /**
70
+ * Returned by the {@link DEPRECATED_FUNCTIONS} linting rule, when a deprecated argument is detected.
71
+ * Provided for convenience to differentiate between {@link DeprecatedArgumentResult} and {@link DeprecatedFunctionResult}
72
+ */
73
+ export interface DeprecatedArgumentResult extends DeprecatedFunctionResultBase {
74
+ readonly type: 'deprecated-argument';
75
+ /** The name of the deprecated argument. Index in case of unnamed argument */
76
+ readonly arg: string | number;
77
+ }
78
+ export type DeprecatedFunctionRuleResult = DeprecatedFunctionResult | DeprecatedArgumentResult;
79
+ export declare enum DeprecationState {
80
+ /** A better alternative is available, but the function is kept (softer alternative to deprecated) {@link https://lifecycle.r-lib.org/articles/stages.html#superseded} */
81
+ Superseded = "superseded",
82
+ /** A better alternative is available, and the function is marked for removal {@link https://lifecycle.r-lib.org/articles/stages.html#deprecated} */
83
+ Deprecated = "deprecated",
84
+ /** No longer works and is removed and replaced by another function {@link https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/Defunct} */
85
+ Defunct = "defunct"
86
+ }
87
+ export interface DeprecatedFunctionsConfig extends MergeableRecord {
88
+ /** Functions to always mark as deprecated */
89
+ always: Identifier[];
90
+ /**
91
+ * Functions to mark as deprecated for specific argument, argument value or version. Keyed like
92
+ * {@link DeprecatedFunctionsConfig.always}: `pkg::fn` names the package the versions are checked against and
93
+ * matches only that one, a bare name matches any package.
94
+ */
95
+ conditionally: Record<BrandedIdentifier, DeprecatedFunctionInformation>;
96
+ }
4
97
  export declare const DEPRECATED_FUNCTIONS: {
5
- readonly createSearch: (_config: FunctionsToDetectConfig) => import("../../search/flowr-search-builder").FlowrSearchBuilder<"all", ["filter", "with"], import("../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, Promise<import("../../search/flowr-search").FlowrSearchElements<import("../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../search/flowr-search").FlowrSearchElement<import("../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>>>;
6
- readonly processSearchResult: (elements: import("../../search/flowr-search").FlowrSearchElements<import("../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../search/flowr-search").FlowrSearchElement<import("../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>[]>, config: FunctionsToDetectConfig, data: import("../../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../../r-bridge/parser").KnownParser>) => Promise<{
7
- results: FunctionsResult[];
8
- '.meta': FunctionsMetadata;
98
+ readonly createSearch: (_config: DeprecatedFunctionsConfig) => import("../../search/flowr-search-builder").FlowrSearchBuilder<"all", ["filter", "with"], ParentInformation, Promise<import("../../search/flowr-search").FlowrSearchElements<ParentInformation, import("../../search/flowr-search").FlowrSearchElement<ParentInformation>[]>>>;
99
+ readonly processSearchResult: (elements: import("../../search/flowr-search").FlowrSearchElements<ParentInformation, import("../../search/flowr-search").FlowrSearchElement<ParentInformation>[]>, config: DeprecatedFunctionsConfig, data: ReadonlyFlowrAnalysisProvider<KnownParser>) => Promise<{
100
+ results: DeprecatedFunctionRuleResult[];
101
+ '.meta': {
102
+ builtin: number;
103
+ sigdb: number;
104
+ };
9
105
  }>;
10
106
  readonly prettyPrint: {
11
- query: (result: FunctionsResult) => string;
12
- full: (result: FunctionsResult) => string;
107
+ readonly query: (result: DeprecatedFunctionRuleResult) => string;
108
+ readonly full: (result: DeprecatedFunctionRuleResult) => string;
13
109
  };
14
110
  readonly info: {
15
111
  readonly name: "Deprecated Functions";
16
- readonly tags: readonly [LintingRuleTag.Deprecated, LintingRuleTag.Smell, LintingRuleTag.Usability, LintingRuleTag.Reproducibility];
112
+ readonly tags: readonly [LintingRuleTag.Deprecated, LintingRuleTag.Smell, LintingRuleTag.Usability, LintingRuleTag.Reproducibility, LintingRuleTag.QuickFix];
17
113
  readonly certainty: LintingRuleCertainty.BestEffort;
18
- readonly description: "Marks deprecated functions that should not be used anymore.";
114
+ readonly description: "Marks deprecated functions and deprecated arguments of still-current functions, offering the replacement as a quick fix where one is known. A call to a bare name whose package the code never attaches is reported as uncertain, as any function of that name would answer to it.";
19
115
  readonly defaultConfig: {
20
- readonly fns: readonly ["all_equal", "arrange_all", "distinct_all", "filter_all", "group_by_all", "summarise_all", "mutate_all", "select_all", "vars", "all_vars", "id", "failwith", "select_vars", "rename_vars", "select_var", "current_vars", "bench_tbls", "compare_tbls", "compare_tbls2", "eval_tbls", "eval_tbls2", "location", "changes", "combine", "do", "funs", "add_count_", "add_tally_", "arrange_", "count_", "distinct_", "do_", "filter_", "funs_", "group_by_", "group_indices_", "mutate_", "tally_", "transmute_", "rename_", "rename_vars_", "select_", "select_vars_", "slice_", "summarise_", "summarize_", "summarise_each", "src_local", "tbl_df", "add_rownames", "group_nest", "group_split", "with_groups", "nest_by", "progress_estimated", "recode", "sample_n", "top_n", "transmute", "fct_explicit_na", "aes_", "aes_auto", "annotation_logticks", "is.Coord", "coord_flip", "coord_map", "is.facet", "fortify", "is.ggproto", "guide_train", "is.ggplot", "qplot", "is.theme", "gg_dep", "liply", "isplit2", "list_along", "cross", "invoke", "at_depth", "prepend", "rerun", "splice", "`%@%`", "rbernoulli", "rdunif", "when", "update_list", "map_raw", "accumulate", "reduce_right", "flatten", "map_dfr", "as_vector", "transpose", "melt_delim", "melt_fwf", "melt_table", "read_table2", "str_interp", "as_tibble", "data_frame", "tibble_", "data_frame_", "lst_", "as_data_frame", "as.tibble", "frame_data", "trunc_mat", "is.tibble", "tidy_names", "set_tidy_names", "repair_names", "extract_numeric", "complete_", "drop_na_", "expand_", "crossing_", "nesting_", "extract_", "fill_", "gather_", "nest_", "separate_rows_", "separate_", "spread_", "unite_", "unnest_", "extract", "gather", "nest_legacy", "separate_rows", "separate", "spread"];
116
+ readonly always: Identifier[];
117
+ readonly conditionally: Record<BrandedIdentifier, DeprecatedFunctionInformation>;
21
118
  };
22
119
  };
23
120
  };