@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
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DefaultBuiltinConfig = exports.GgPlotAddons = exports.GraphicsPlotAddons = exports.PlotFunctionsWithAddParam = exports.GgPlotImplicitAddons = exports.TinyPlotAddons = exports.PlotCreate = exports.GraphicsPlotCreate = exports.TinyPlotCrate = exports.GgPlotCreate = void 0;
3
+ exports.DefaultBuiltinConfig = exports.GgPlotAddons = exports.GraphicsPlotAddons = exports.PlotFunctionsWithAddParam = exports.GgPlotImplicitAddons = exports.TinyPlotAddons = exports.PlotCreate = exports.GraphicsPlotCreate = exports.TinyPlotCrate = exports.GgPlotCreate = exports.StackEnvBuiltins = exports.StackEnvKind = void 0;
4
4
  exports.getDefaultProcessor = getDefaultProcessor;
5
5
  const identify_link_to_last_call_relation_1 = require("../../queries/catalog/call-context-query/identify-link-to-last-call-relation");
6
6
  const type_1 = require("../../r-bridge/lang-4.x/ast/model/type");
@@ -9,6 +9,28 @@ const unnamed_call_handling_1 = require("../internal/process/functions/call/unna
9
9
  const hooks_1 = require("../hooks");
10
10
  const identifier_1 = require("./identifier");
11
11
  const built_in_proc_name_1 = require("./built-in-proc-name");
12
+ /** Which stack environment an env-returning/-transforming builtin denotes (see {@link StackEnvBuiltins}). */
13
+ var StackEnvKind;
14
+ (function (StackEnvKind) {
15
+ StackEnvKind[StackEnvKind["Global"] = 0] = "Global";
16
+ StackEnvKind[StackEnvKind["Base"] = 1] = "Base";
17
+ StackEnvKind[StackEnvKind["Empty"] = 2] = "Empty";
18
+ StackEnvKind[StackEnvKind["Current"] = 3] = "Current";
19
+ StackEnvKind[StackEnvKind["Parent"] = 4] = "Parent";
20
+ StackEnvKind[StackEnvKind["Named"] = 5] = "Named";
21
+ })(StackEnvKind || (exports.StackEnvKind = StackEnvKind = {}));
22
+ /** Maps the env-returning/-transforming base builtins and constants to the stack environment each denotes. */
23
+ exports.StackEnvBuiltins = {
24
+ globalenv: StackEnvKind.Global,
25
+ baseenv: StackEnvKind.Base,
26
+ emptyenv: StackEnvKind.Empty,
27
+ environment: StackEnvKind.Current,
28
+ 'parent.env': StackEnvKind.Parent,
29
+ 'as.environment': StackEnvKind.Named,
30
+ '.GlobalEnv': StackEnvKind.Global,
31
+ '.BaseEnv': StackEnvKind.Base,
32
+ '.BaseNamespaceEnv': StackEnvKind.Base
33
+ };
12
34
  exports.GgPlotCreate = [
13
35
  'ggplot', 'ggplotly', 'ggMarginal', 'ggcorrplot', 'ggseasonplot', 'ggdendrogram', 'qmap', 'qplot', 'quickplot', 'autoplot', 'grid.arrange',
14
36
  'fviz_pca_biplot', 'fviz_pca', 'fviz_pca_ind', 'fviz_pca_var', 'fviz_screeplot', 'fviz_mca_biplot', 'fviz_mca', 'fviz_mca_ind', 'fviz_mca_var', 'fviz_cluster', 'fviz_dend',
@@ -90,50 +112,127 @@ exports.GgPlotAddons = [
90
112
  ];
91
113
  const PlotAddons = exports.GraphicsPlotAddons.concat(exports.GgPlotImplicitAddons, ...exports.PlotFunctionsWithAddParam);
92
114
  const RegexConvIn = /[-/\\^$*+?.()|[\]{}]/g;
115
+ /** Builds a regex from an array of plain names or namespaced {@link Identifier}s, deduplicating by name. */
93
116
  function toRegex(n) {
94
- return new RegExp(`^(${Array.from(new Set(n), s => s.replaceAll(RegexConvIn, String.raw `\$&`)).filter(s => s.length > 0).join('|')})$`);
117
+ return new RegExp(`^(${Array.from(new Set(n.map(identifier_1.Identifier.getName)), s => s.replaceAll(RegexConvIn, String.raw `\$&`)).filter(s => s.length > 0).join('|')})$`);
95
118
  }
96
119
  /**
97
120
  * Contains the built-in definitions recognized by flowR
98
121
  */
99
122
  exports.DefaultBuiltinConfig = [
100
- { type: 'constant', names: ['NULL', 'NA', 'NaN', 'NA_integer_', 'NA_real_', 'NA_complex_', 'NA_character_'], value: null, assumePrimitive: true },
101
- { type: 'constant', names: ['.GlobalEnv', '.BaseNamespaceEnv', '.BaseEnv'], value: null, assumePrimitive: true },
102
- { type: 'constant', names: ['TRUE', 'T'], value: true, assumePrimitive: true },
103
- { type: 'constant', names: ['FALSE', 'F'], value: false, assumePrimitive: true },
123
+ { type: 'constant', names: [
124
+ identifier_1.Identifier.from(['NULL', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['NA', "base" /* PkgName.Base */]),
125
+ identifier_1.Identifier.from(['NA_integer_', "base" /* PkgName.Base */]),
126
+ identifier_1.Identifier.from(['NA_real_', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['NA_complex_', "base" /* PkgName.Base */]),
127
+ identifier_1.Identifier.from(['NA_character_', "base" /* PkgName.Base */])
128
+ ], value: null, assumePrimitive: true },
129
+ { type: 'constant', names: [identifier_1.Identifier.from(['NaN', "base" /* PkgName.Base */])], value: NaN, assumePrimitive: true },
130
+ { type: 'constant', names: [
131
+ identifier_1.Identifier.from(['.GlobalEnv', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['.BaseNamespaceEnv', "base" /* PkgName.Base */]),
132
+ identifier_1.Identifier.from(['.BaseEnv', "base" /* PkgName.Base */])
133
+ ], value: null, assumePrimitive: true },
134
+ { type: 'constant', names: [identifier_1.Identifier.from(['TRUE', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['T', "base" /* PkgName.Base */])], value: true, assumePrimitive: true },
135
+ { type: 'constant', names: [identifier_1.Identifier.from(['FALSE', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['F', "base" /* PkgName.Base */])], value: false, assumePrimitive: true },
136
+ { type: 'constant', names: [identifier_1.Identifier.from(['Inf', "base" /* PkgName.Base */])], value: Infinity, assumePrimitive: true },
137
+ { type: 'constant', names: [identifier_1.Identifier.from(['-Inf', "base" /* PkgName.Base */])], value: -Infinity, assumePrimitive: true },
138
+ { type: 'constant', names: [identifier_1.Identifier.from(['pi', "base" /* PkgName.Base */])], value: Math.PI, assumePrimitive: true },
139
+ { type: 'constant', names: [identifier_1.Identifier.from(['LETTERS', "base" /* PkgName.Base */])],
140
+ value: Array.from({ length: 26 }, (_, i) => String.fromCharCode(65 + i)), assumePrimitive: true },
141
+ { type: 'constant', names: [identifier_1.Identifier.from(['letters', "base" /* PkgName.Base */])],
142
+ value: Array.from({ length: 26 }, (_, i) => String.fromCharCode(97 + i)), assumePrimitive: true },
143
+ { type: 'constant', names: [identifier_1.Identifier.from(['month.abb', "base" /* PkgName.Base */])],
144
+ value: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], assumePrimitive: true },
145
+ { type: 'constant', names: [identifier_1.Identifier.from(['month.name', "base" /* PkgName.Base */])],
146
+ value: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], assumePrimitive: true },
104
147
  {
105
148
  type: 'function',
106
149
  names: [
107
- '~', '+', '-', '*', '/', '^', '!', '?', '**', '==', '!=', '>', '<', '>=', '<=', '%%', '%/%', '%*%', '%in%', ':',
108
- 'rep', 'seq', 'seq_len', 'seq_along', 'seq.int', 'gsub', 'which', 'class', 'dimnames', 'min', 'max',
109
- 'intersect', 'subset', 'match', 'sqrt', 'abs', 'round', 'floor', 'ceiling', 'signif', 'trunc', 'log', 'log10', 'log2', 'sum', 'mean',
110
- 'unique', 'paste', 'paste0', 'read.csv', 'is.null', 'numeric', 'as.character', 'as.integer', 'as.logical', 'as.numeric', 'as.matrix',
111
- 'rbind', 'nrow', 'ncol', 'tryCatch', 'expression', 'factor',
112
- 'missing', 'as.data.frame', 'data.frame', 'na.omit', 'rownames', 'names', 'order', 'length', 'any', 'dim', 'matrix', 'cbind', 'nchar',
113
- 'pdf', 'jpeg', 'png', 'windows', 'postscript', 'xfig', 'bitmap', 'pictex', 'cairo_pdf', 'svg', 'bmp', 'tiff', 'X11', 'quartz',
114
- 'jitter'
150
+ /* arithmetic & comparison operators (base) */
151
+ identifier_1.Identifier.from(['~', "base" /* PkgName.Base */]),
152
+ identifier_1.Identifier.from(['+', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['-', "base" /* PkgName.Base */]),
153
+ identifier_1.Identifier.from(['*', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['/', "base" /* PkgName.Base */]),
154
+ identifier_1.Identifier.from(['^', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['**', "base" /* PkgName.Base */]),
155
+ identifier_1.Identifier.from(['!', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['?', "utils" /* PkgName.Utils */]),
156
+ identifier_1.Identifier.from(['==', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['!=', "base" /* PkgName.Base */]),
157
+ identifier_1.Identifier.from(['>', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['<', "base" /* PkgName.Base */]),
158
+ identifier_1.Identifier.from(['>=', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['<=', "base" /* PkgName.Base */]),
159
+ identifier_1.Identifier.from(['%%', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['%/%', "base" /* PkgName.Base */]),
160
+ identifier_1.Identifier.from(['%*%', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['%in%', "base" /* PkgName.Base */]),
161
+ identifier_1.Identifier.from([':', "base" /* PkgName.Base */]),
162
+ /* sequences & repetition (base) */
163
+ identifier_1.Identifier.from(['rep', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['seq', "base" /* PkgName.Base */]),
164
+ identifier_1.Identifier.from(['seq_len', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['seq_along', "base" /* PkgName.Base */]),
165
+ identifier_1.Identifier.from(['seq.int', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['order', "base" /* PkgName.Base */]),
166
+ /* string (base) */
167
+ identifier_1.Identifier.from(['gsub', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['paste', "base" /* PkgName.Base */]),
168
+ identifier_1.Identifier.from(['paste0', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['nchar', "base" /* PkgName.Base */]),
169
+ /* numeric math (base) */
170
+ identifier_1.Identifier.from(['sqrt', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['abs', "base" /* PkgName.Base */]),
171
+ identifier_1.Identifier.from(['round', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['floor', "base" /* PkgName.Base */]),
172
+ identifier_1.Identifier.from(['ceiling', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['signif', "base" /* PkgName.Base */]),
173
+ identifier_1.Identifier.from(['trunc', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['log', "base" /* PkgName.Base */]),
174
+ identifier_1.Identifier.from(['log10', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['log2', "base" /* PkgName.Base */]),
175
+ identifier_1.Identifier.from(['sum', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['mean', "base" /* PkgName.Base */]),
176
+ identifier_1.Identifier.from(['min', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['max', "base" /* PkgName.Base */]),
177
+ identifier_1.Identifier.from(['jitter', "stats" /* PkgName.Stats */]),
178
+ /* type coercion (base) */
179
+ identifier_1.Identifier.from(['numeric', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['as.character', "base" /* PkgName.Base */]),
180
+ identifier_1.Identifier.from(['as.integer', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['as.logical', "base" /* PkgName.Base */]),
181
+ identifier_1.Identifier.from(['as.numeric', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['as.matrix', "base" /* PkgName.Base */]),
182
+ identifier_1.Identifier.from(['as.data.frame', "base" /* PkgName.Base */]),
183
+ /* collections & data (base) */
184
+ identifier_1.Identifier.from(['unique', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['intersect', "base" /* PkgName.Base */]),
185
+ identifier_1.Identifier.from(['subset', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['match', "base" /* PkgName.Base */]),
186
+ identifier_1.Identifier.from(['which', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['any', "base" /* PkgName.Base */]),
187
+ identifier_1.Identifier.from(['length', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['expression', "base" /* PkgName.Base */]),
188
+ identifier_1.Identifier.from(['factor', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['missing', "base" /* PkgName.Base */]),
189
+ identifier_1.Identifier.from(['data.frame', "base" /* PkgName.Base */]),
190
+ /* matrix / data frame (base) */
191
+ identifier_1.Identifier.from(['matrix', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['cbind', "base" /* PkgName.Base */]),
192
+ identifier_1.Identifier.from(['rbind', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dim', "base" /* PkgName.Base */]),
193
+ identifier_1.Identifier.from(['nrow', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['ncol', "base" /* PkgName.Base */]),
194
+ identifier_1.Identifier.from(['dimnames', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['rownames', "base" /* PkgName.Base */]),
195
+ identifier_1.Identifier.from(['names', "base" /* PkgName.Base */]),
196
+ /* object inspection (base) */
197
+ identifier_1.Identifier.from(['class', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['is.null', "base" /* PkgName.Base */]),
198
+ /* other packages */
199
+ identifier_1.Identifier.from(['read.csv', "utils" /* PkgName.Utils */]), identifier_1.Identifier.from(['na.omit', "stats" /* PkgName.Stats */]),
200
+ /* graphic devices (grDevices) */
201
+ identifier_1.Identifier.from(['pdf', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['jpeg', "grDevices" /* PkgName.GrDevices */]),
202
+ identifier_1.Identifier.from(['png', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['windows', "grDevices" /* PkgName.GrDevices */]),
203
+ identifier_1.Identifier.from(['postscript', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['xfig', "grDevices" /* PkgName.GrDevices */]),
204
+ identifier_1.Identifier.from(['bitmap', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['pictex', "grDevices" /* PkgName.GrDevices */]),
205
+ identifier_1.Identifier.from(['cairo_pdf', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['svg', "grDevices" /* PkgName.GrDevices */]),
206
+ identifier_1.Identifier.from(['bmp', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['tiff', "grDevices" /* PkgName.GrDevices */]),
207
+ identifier_1.Identifier.from(['X11', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['quartz', "grDevices" /* PkgName.GrDevices */]),
208
+ identifier_1.Identifier.from(['dev.new', "grDevices" /* PkgName.GrDevices */]),
209
+ /* graphic devices (third-party) */
210
+ identifier_1.Identifier.from(['trellis.device', "lattice" /* PkgName.Lattice */]),
211
+ identifier_1.Identifier.from(['raster_pdf', "rasterpdf" /* PkgName.RasterPdf */]), identifier_1.Identifier.from(['agg_pdf', "ragg" /* PkgName.Ragg */]),
212
+ identifier_1.Identifier.from(['image_graph', "magick" /* PkgName.Magick */]), identifier_1.Identifier.from(['image_draw', "magick" /* PkgName.Magick */]),
115
213
  ],
116
214
  processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
117
215
  config: {},
118
216
  assumePrimitive: true
119
217
  },
120
- {
121
- type: 'function',
122
- names: [
123
- 't', 'aperm' /* transpose function, permutation generation */
124
- ],
125
- processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
126
- config: {},
127
- assumePrimitive: false
128
- },
129
- { type: 'function', names: ['rm'], processor: built_in_proc_name_1.BuiltInProcName.Rm, config: {}, assumePrimitive: true },
130
- { type: 'function', names: ['options'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: 'all' }, assumePrimitive: false },
131
- { type: 'function', names: ['mapply', 'Mapply'], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
132
- { type: 'function', names: ['lapply', 'sapply', 'vapply'], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
133
- { type: 'function', names: ['Lapply', 'Sapply', 'Vapply'], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false }, /* functool wrappers */
134
- { type: 'function', names: ['apply', 'tapply', 'Tapply'], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 2, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
135
- { type: 'function', names: ['print', 'message', 'warning', 'warn', 'info'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, forceArgs: 'all', hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ } }, assumePrimitive: false },
136
- { type: 'function', names: ['invisible'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, forceArgs: 'all' }, assumePrimitive: true },
218
+ { type: 'function', names: [identifier_1.Identifier.from(['t', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['aperm', "base" /* PkgName.Base */])], /* transpose/permutation */
219
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: {}, assumePrimitive: false },
220
+ { type: 'function', names: [identifier_1.Identifier.from(['rm', "base" /* PkgName.Base */])],
221
+ processor: built_in_proc_name_1.BuiltInProcName.Rm, config: {}, assumePrimitive: true },
222
+ { type: 'function', names: [identifier_1.Identifier.from(['options', "base" /* PkgName.Base */])],
223
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: 'all' }, assumePrimitive: false },
224
+ { type: 'function', names: [identifier_1.Identifier.from(['mapply', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['Mapply', "functools" /* PkgName.Functools */])],
225
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
226
+ { type: 'function', names: [identifier_1.Identifier.from(['lapply', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['sapply', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['vapply', "base" /* PkgName.Base */])],
227
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
228
+ { type: 'function', names: [identifier_1.Identifier.from(['Lapply', "functools" /* PkgName.Functools */]), identifier_1.Identifier.from(['Sapply', "functools" /* PkgName.Functools */]), identifier_1.Identifier.from(['Vapply', "functools" /* PkgName.Functools */])],
229
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
230
+ { type: 'function', names: [identifier_1.Identifier.from(['apply', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['tapply', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['Tapply', "functools" /* PkgName.Functools */])],
231
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 2, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
232
+ { type: 'function', names: [identifier_1.Identifier.from(['print', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['message', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['warning', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['warn', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['warn', "R.utils" /* PkgName.Rutils */]), identifier_1.Identifier.from(['info', "msgr" /* PkgName.Msgr */])],
233
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, forceArgs: 'all', hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ } }, assumePrimitive: false },
234
+ { type: 'function', names: [identifier_1.Identifier.from(['invisible', "base" /* PkgName.Base */])],
235
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, forceArgs: 'all' }, assumePrimitive: true },
137
236
  // graphics base
138
237
  { type: 'function', names: exports.PlotCreate,
139
238
  processor: built_in_proc_name_1.BuiltInProcName.Default,
@@ -207,7 +306,10 @@ exports.DefaultBuiltinConfig = [
207
306
  },
208
307
  {
209
308
  type: 'function',
210
- names: ['image_write', 'image_capture', 'dev.capture', 'dev.off'],
309
+ names: [
310
+ identifier_1.Identifier.from(['image_write', "magick" /* PkgName.Magick */]), identifier_1.Identifier.from(['image_capture', "magick" /* PkgName.Magick */]),
311
+ identifier_1.Identifier.from(['dev.capture', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['dev.off', "grDevices" /* PkgName.GrDevices */])
312
+ ],
211
313
  processor: built_in_proc_name_1.BuiltInProcName.Default,
212
314
  config: {
213
315
  libFn: true,
@@ -218,75 +320,132 @@ exports.DefaultBuiltinConfig = [
218
320
  }
219
321
  }, assumePrimitive: true
220
322
  },
221
- { type: 'function', names: ['('], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0 }, assumePrimitive: true },
222
- { type: 'function', names: ['load', 'load_all', 'setwd', 'set.seed'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: [true] }, assumePrimitive: false },
223
- { type: 'function', names: ['body', 'formals', 'environment'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: [true] }, assumePrimitive: true },
224
- { type: 'function',
225
- names: ['.Call', '.External', '.C', '.Fortran'],
323
+ { type: 'function', names: ['('],
324
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0 }, assumePrimitive: true },
325
+ { type: 'function', names: [identifier_1.Identifier.from(['load_all', "pkgload" /* PkgName.PkgLoad */]), identifier_1.Identifier.from(['load_all', "devtools" /* PkgName.Devtools */]), identifier_1.Identifier.from(['setwd', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['set.seed', "base" /* PkgName.Base */])],
326
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: [true] }, assumePrimitive: false },
327
+ { type: 'function', names: [identifier_1.Identifier.from(['body', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['formals', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['environment', "base" /* PkgName.Base */])],
328
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: [true] }, assumePrimitive: true },
329
+ {
330
+ type: 'function',
331
+ names: [identifier_1.Identifier.from(['.Call', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['.External', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['.C', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['.Fortran', "base" /* PkgName.Base */])],
226
332
  processor: built_in_proc_name_1.BuiltInProcName.Default,
227
- config: { hasUnknownSideEffects: true, forceArgs: [true],
333
+ config: {
334
+ hasUnknownSideEffects: true,
335
+ forceArgs: [true],
228
336
  treatAsFnCall: {
229
337
  '.Call': ['.NAME'],
230
338
  '.External': ['.NAME'],
231
339
  '.C': ['.NAME'],
232
340
  '.Fortran': ['.NAME']
233
341
  }
234
- }, assumePrimitive: true },
235
- { type: 'function', names: ['eval'], processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: false }, assumePrimitive: true },
236
- { type: 'function', names: ['evalText'], processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: true }, assumePrimitive: true },
237
- { type: 'function', names: ['cat'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ } }, assumePrimitive: false },
238
- { type: 'function', names: ['switch'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: [true] }, assumePrimitive: false },
239
- { type: 'function', names: ['return'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, cfg: 1 /* ExitPointType.Return */, useAsProcessor: built_in_proc_name_1.BuiltInProcName.Return }, assumePrimitive: true },
342
+ },
343
+ assumePrimitive: true
344
+ },
345
+ { type: 'function', names: [identifier_1.Identifier.from(['eval', "base" /* PkgName.Base */])],
346
+ processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: false }, assumePrimitive: true },
347
+ { type: 'function', names: [identifier_1.Identifier.from(['evalText', "SoDA" /* PkgName.Soda */])],
348
+ processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: true }, assumePrimitive: true },
349
+ { type: 'function', names: [identifier_1.Identifier.from(['cat', "base" /* PkgName.Base */])],
350
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ } }, assumePrimitive: false },
351
+ { type: 'function', names: [identifier_1.Identifier.from(['switch', "base" /* PkgName.Base */])],
352
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: [true] }, assumePrimitive: false },
353
+ { type: 'function', names: ['return'],
354
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, cfg: 1 /* ExitPointType.Return */, useAsProcessor: built_in_proc_name_1.BuiltInProcName.Return }, assumePrimitive: true },
240
355
  {
241
356
  type: 'function',
242
- names: ['stop', 'abort', 'cli_abort', 'throw', 'stop_bad_type', 'stop_bad_element_type', 'stop_bad_element_length'],
357
+ names: [
358
+ identifier_1.Identifier.from(['stop', "base" /* PkgName.Base */]),
359
+ identifier_1.Identifier.from(['abort', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['cli_abort', "cli" /* PkgName.Cli */]),
360
+ identifier_1.Identifier.from(['throw', "R.methodsS3" /* PkgName.RmethodsS3 */]), identifier_1.Identifier.from(['throw', "R.oo" /* PkgName.Roo */]), /* R.oo re-exports R.methodsS3::throw */
361
+ identifier_1.Identifier.from(['stop_bad_type', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['stop_bad_element_type', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['stop_bad_element_length', "purrr" /* PkgName.Purrr */])
362
+ ],
243
363
  processor: built_in_proc_name_1.BuiltInProcName.Default,
244
364
  config: { useAsProcessor: built_in_proc_name_1.BuiltInProcName.Stop, cfg: 4 /* ExitPointType.Error */, forceArgs: ['all'] },
245
365
  assumePrimitive: false
246
366
  },
247
- { type: 'function', names: ['try'], processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: {} }, assumePrimitive: true },
248
- { type: 'function', names: ['tryCatch', 'tryCatchLog'], processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: { error: 'error', finally: 'finally' } }, assumePrimitive: true },
249
- { type: 'function', names: ['stopifnot', 'assert_that'], processor: built_in_proc_name_1.BuiltInProcName.StopIfNot, config: {}, assumePrimitive: false },
250
- { type: 'function', names: ['break'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { useAsProcessor: built_in_proc_name_1.BuiltInProcName.Break, cfg: 2 /* ExitPointType.Break */ }, assumePrimitive: false },
251
- { type: 'function', names: ['next'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { cfg: 3 /* ExitPointType.Next */ }, assumePrimitive: false },
252
- { type: 'function', names: ['{'], processor: built_in_proc_name_1.BuiltInProcName.ExpressionList, config: {}, assumePrimitive: true },
253
- { type: 'function', names: ['source'], processor: built_in_proc_name_1.BuiltInProcName.Source, config: { includeFunctionCall: true, forceFollow: false }, assumePrimitive: false },
254
- { type: 'function', names: ['[', '[['], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false }, assumePrimitive: true },
255
- { type: 'function', names: ['$', '@'], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: true }, assumePrimitive: true },
256
- { type: 'function', names: ['if'], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: {}, assumePrimitive: true },
257
- { type: 'function', names: ['ifelse', 'fifelse', 'IfElse'], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'test', yes: 'yes', no: 'no' } }, assumePrimitive: true },
258
- { type: 'function', names: ['if_else'], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'condition', yes: 'true', no: 'false' } }, assumePrimitive: true },
259
- { type: 'function', names: ['get'], processor: built_in_proc_name_1.BuiltInProcName.Get, config: {}, assumePrimitive: false },
260
- { type: 'function', names: [identifier_1.Identifier.make('from', 'import'), identifier_1.Identifier.make('library', 'base'), identifier_1.Identifier.make('require', 'base')], processor: built_in_proc_name_1.BuiltInProcName.Library, config: {}, assumePrimitive: false },
261
- { type: 'function', names: ['<-', '='], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { canBeReplacement: true }, assumePrimitive: true },
262
- { type: 'function', names: [':='], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: {}, assumePrimitive: true },
263
- { type: 'function', names: ['assign', 'setValidity'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { targetVariable: true, mayHaveMoreArgs: true, environmentArg: 'envir' }, assumePrimitive: true },
264
- { type: 'function', names: ['setMethod'], processor: built_in_proc_name_1.BuiltInProcName.AssignmentLike, config: { targetVariable: true, canBeReplacement: false, target: { idx: 0, name: 'f' }, source: { idx: 2, name: 'definition' }, modesForFn: ['s4'] }, assumePrimitive: true },
265
- { type: 'function', names: ['delayedAssign'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { quoteSource: true, targetVariable: true }, assumePrimitive: true },
266
- { type: 'function', names: ['<<-'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, canBeReplacement: true }, assumePrimitive: true },
267
- { type: 'function', names: ['->'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { swapSourceAndTarget: true, canBeReplacement: true }, assumePrimitive: true },
268
- { type: 'function', names: ['->>'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, swapSourceAndTarget: true, canBeReplacement: true }, assumePrimitive: true },
269
- { type: 'function', names: ['&&', '&'], processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: true }, assumePrimitive: true },
270
- { type: 'function', names: ['||', '|'], processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: false }, assumePrimitive: true },
271
- { type: 'function', names: ['|>'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '_' }, assumePrimitive: true },
272
- { type: 'function', names: ['%>%', '%!>%'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', rhsMightBeSymbol: true }, assumePrimitive: true },
273
- { type: 'function', names: ['%<>%'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', assignLhs: true, rhsMightBeSymbol: true }, assumePrimitive: true },
274
- { type: 'function', names: ['%T>%'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', returnLhs: true, rhsMightBeSymbol: true }, assumePrimitive: true },
275
- { type: 'function', names: [identifier_1.Identifier.make('map', 'purrr'), identifier_1.Identifier.make('map_lgl', 'purrr'), identifier_1.Identifier.make('map_int', 'purrr'), identifier_1.Identifier.make('map_dbl', 'purrr'), identifier_1.Identifier.make('map_chr', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
367
+ { type: 'function', names: [identifier_1.Identifier.from(['try', "base" /* PkgName.Base */])],
368
+ processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: {} }, assumePrimitive: true },
369
+ { type: 'function', names: [identifier_1.Identifier.from(['tryCatch', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['tryCatchLog', "tryCatchLog" /* PkgName.TryCatchLog */])],
370
+ processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: { error: 'error', finally: 'finally' } }, assumePrimitive: true },
371
+ { type: 'function', names: [identifier_1.Identifier.from(['stopifnot', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['assert_that', "assertthat" /* PkgName.AssertThat */])],
372
+ processor: built_in_proc_name_1.BuiltInProcName.StopIfNot, config: {}, assumePrimitive: false },
373
+ { type: 'function', names: ['break'],
374
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { useAsProcessor: built_in_proc_name_1.BuiltInProcName.Break, cfg: 2 /* ExitPointType.Break */ }, assumePrimitive: false },
375
+ { type: 'function', names: ['next'],
376
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { cfg: 3 /* ExitPointType.Next */ }, assumePrimitive: false },
377
+ { type: 'function', names: ['{'],
378
+ processor: built_in_proc_name_1.BuiltInProcName.ExpressionList, config: {}, assumePrimitive: true },
379
+ { type: 'function', names: [identifier_1.Identifier.from(['source', "base" /* PkgName.Base */])],
380
+ processor: built_in_proc_name_1.BuiltInProcName.Source, config: { includeFunctionCall: true, forceFollow: false }, assumePrimitive: false },
381
+ { type: 'function', names: ['[', '[['],
382
+ processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false }, assumePrimitive: true },
383
+ { type: 'function', names: ['$', '@'],
384
+ processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: true }, assumePrimitive: true },
385
+ { type: 'function', names: ['::'],
386
+ processor: built_in_proc_name_1.BuiltInProcName.NamespaceAccess, config: { internal: false }, assumePrimitive: true },
387
+ { type: 'function', names: [':::'],
388
+ processor: built_in_proc_name_1.BuiltInProcName.NamespaceAccess, config: { internal: true }, assumePrimitive: true },
389
+ { type: 'function', names: ['if'],
390
+ processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: {}, assumePrimitive: true },
391
+ { type: 'function', names: [identifier_1.Identifier.from(['ifelse', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['fifelse', "data.table" /* PkgName.DataTable */]), 'IfElse'],
392
+ processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'test', yes: 'yes', no: 'no' } }, assumePrimitive: true },
393
+ { type: 'function', names: [identifier_1.Identifier.from(['if_else', "dplyr" /* PkgName.Dplyr */])],
394
+ processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'condition', yes: 'true', no: 'false' } }, assumePrimitive: true },
395
+ { type: 'function', names: [identifier_1.Identifier.from(['get', "base" /* PkgName.Base */])],
396
+ processor: built_in_proc_name_1.BuiltInProcName.Get, config: {}, assumePrimitive: false },
397
+ { type: 'function', names: [identifier_1.Identifier.from(['library', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['require', "base" /* PkgName.Base */])],
398
+ processor: built_in_proc_name_1.BuiltInProcName.Library, config: {}, assumePrimitive: false },
399
+ { type: 'function', names: [identifier_1.Identifier.from(['attachNamespace', "base" /* PkgName.Base */])],
400
+ processor: built_in_proc_name_1.BuiltInProcName.Library, config: { characterOnly: true }, assumePrimitive: false },
401
+ { type: 'function', names: [identifier_1.Identifier.from(['requireNamespace', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['loadNamespace', "base" /* PkgName.Base */])],
402
+ processor: built_in_proc_name_1.BuiltInProcName.Library, config: { namespaceOnly: true, characterOnly: true }, assumePrimitive: false },
403
+ { type: 'function', names: [identifier_1.Identifier.from(['from', "import" /* PkgName.Import */])],
404
+ processor: built_in_proc_name_1.BuiltInProcName.Library, config: { fromImports: true }, assumePrimitive: false },
405
+ { type: 'function', names: [identifier_1.Identifier.from(['use', "box" /* PkgName.Box */]), identifier_1.Identifier.from(['use', "base" /* PkgName.Base */])],
406
+ processor: built_in_proc_name_1.BuiltInProcName.Library, config: { boxUse: true }, assumePrimitive: false },
407
+ { type: 'function', names: ['<-', '='],
408
+ processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { canBeReplacement: true }, assumePrimitive: true },
409
+ { type: 'function', names: [identifier_1.Identifier.from([':=', "data.table" /* PkgName.DataTable */])],
410
+ processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: {}, assumePrimitive: true },
411
+ { type: 'function', names: [identifier_1.Identifier.from(['assign', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['setValidity', "methods" /* PkgName.Methods */])],
412
+ processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { targetVariable: true, mayHaveMoreArgs: true, environmentArg: 'envir' }, assumePrimitive: true },
413
+ { type: 'function', names: [identifier_1.Identifier.from(['setMethod', "methods" /* PkgName.Methods */])],
414
+ processor: built_in_proc_name_1.BuiltInProcName.AssignmentLike,
415
+ config: { targetVariable: true, canBeReplacement: false, target: { idx: 0, name: 'f' }, source: { idx: 2, name: 'definition' }, modesForFn: ['s4'] },
416
+ assumePrimitive: true },
417
+ { type: 'function', names: [identifier_1.Identifier.from(['delayedAssign', "base" /* PkgName.Base */])],
418
+ processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { quoteSource: true, targetVariable: true }, assumePrimitive: true },
419
+ { type: 'function', names: ['<<-'],
420
+ processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, canBeReplacement: true }, assumePrimitive: true },
421
+ { type: 'function', names: ['->'],
422
+ processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { swapSourceAndTarget: true, canBeReplacement: true }, assumePrimitive: true },
423
+ { type: 'function', names: ['->>'],
424
+ processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, swapSourceAndTarget: true, canBeReplacement: true }, assumePrimitive: true },
425
+ { type: 'function', names: [identifier_1.Identifier.from(['&&', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['&', "base" /* PkgName.Base */])],
426
+ processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: true }, assumePrimitive: true },
427
+ { type: 'function', names: [identifier_1.Identifier.from(['||', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['|', "base" /* PkgName.Base */])],
428
+ processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: false }, assumePrimitive: true },
429
+ { type: 'function', names: ['|>'],
430
+ processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '_' }, assumePrimitive: true },
431
+ { type: 'function', names: [identifier_1.Identifier.from(['%>%', "magrittr" /* PkgName.Magrittr */]), '%!>%'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', rhsMightBeSymbol: true }, assumePrimitive: true },
432
+ { type: 'function', names: [identifier_1.Identifier.from(['%<>%', "magrittr" /* PkgName.Magrittr */])], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', assignLhs: true, rhsMightBeSymbol: true }, assumePrimitive: true },
433
+ { type: 'function', names: [identifier_1.Identifier.from(['%T>%', "magrittr" /* PkgName.Magrittr */])], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', returnLhs: true, rhsMightBeSymbol: true }, assumePrimitive: true },
434
+ { type: 'function', names: [identifier_1.Identifier.from(['map', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['map_lgl', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['map_int', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['map_dbl', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['map_chr', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
276
435
  args: {
277
436
  '.x': { index: 0, name: '.x' }
278
437
  },
279
438
  '.f': { index: 1, name: '.f' },
280
439
  ignore: ['.progress']
281
440
  } },
282
- { type: 'function', names: [identifier_1.Identifier.make('pmap', 'purrr'), identifier_1.Identifier.make('pmap_lgl', 'purrr'), identifier_1.Identifier.make('pmap_int', 'purrr'), identifier_1.Identifier.make('pmap_dbl', 'purrr'), identifier_1.Identifier.make('pmap_chr', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
441
+ { type: 'function', names: [identifier_1.Identifier.from(['pmap', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['pmap_lgl', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['pmap_int', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['pmap_dbl', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['pmap_chr', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
283
442
  args: {
284
443
  '.l': { index: 0, name: '.l' }
285
444
  },
286
445
  '.f': { index: 1, name: '.f' },
287
446
  ignore: ['.progress']
288
447
  } },
289
- { type: 'function', names: [identifier_1.Identifier.make('map2', 'purrr'), identifier_1.Identifier.make('map2_lgl', 'purrr'), identifier_1.Identifier.make('map2_int', 'purrr'), identifier_1.Identifier.make('map2_dbl', 'purrr'), identifier_1.Identifier.make('map2_chr', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
448
+ { type: 'function', names: [identifier_1.Identifier.from(['map2', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['map2_lgl', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['map2_int', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['map2_dbl', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['map2_chr', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
290
449
  args: {
291
450
  '.x': { index: 0, name: '.x' },
292
451
  '.y': { index: 1, name: '.y' },
@@ -294,14 +453,14 @@ exports.DefaultBuiltinConfig = [
294
453
  '.f': { index: 2, name: '.f' },
295
454
  ignore: ['.progress']
296
455
  } },
297
- { type: 'function', names: [identifier_1.Identifier.make('modify', 'purrr'), identifier_1.Identifier.make('imodify', 'purrr'), identifier_1.Identifier.make('imap', 'purrr'), identifier_1.Identifier.make('imap_lgl', 'purrr'), identifier_1.Identifier.make('imap_int', 'purrr'), identifier_1.Identifier.make('imap_dbl', 'purrr'), identifier_1.Identifier.make('imap_chr', 'purrr'), identifier_1.Identifier.make('imap_vec', 'purrr'), identifier_1.Identifier.make('lmap', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
456
+ { type: 'function', names: [identifier_1.Identifier.from(['modify', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['imodify', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['imap', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['imap_lgl', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['imap_int', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['imap_dbl', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['imap_chr', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['imap_vec', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['lmap', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
298
457
  args: {
299
458
  '.x': { index: 0, name: '.x' }
300
459
  },
301
460
  '.f': { index: 1, name: '.f' },
302
461
  ignore: []
303
462
  } },
304
- { type: 'function', names: [identifier_1.Identifier.make('modify2', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
463
+ { type: 'function', names: [identifier_1.Identifier.from(['modify2', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
305
464
  args: {
306
465
  '.x': { index: 0, name: '.x' },
307
466
  '.y': { index: 1, name: '.y' }
@@ -309,7 +468,7 @@ exports.DefaultBuiltinConfig = [
309
468
  '.f': { index: 2, name: '.f' },
310
469
  ignore: []
311
470
  } },
312
- { type: 'function', names: [identifier_1.Identifier.make('map_at', 'purrr'), identifier_1.Identifier.make('modify_at', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
471
+ { type: 'function', names: [identifier_1.Identifier.from(['map_at', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['modify_at', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
313
472
  args: {
314
473
  '.x': { index: 0, name: '.x' },
315
474
  '.at': { index: 1, name: '.at' },
@@ -317,7 +476,7 @@ exports.DefaultBuiltinConfig = [
317
476
  '.f': { index: 2, name: '.f' },
318
477
  ignore: ['.progress']
319
478
  } },
320
- { type: 'function', names: [identifier_1.Identifier.make('lmap_at', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
479
+ { type: 'function', names: [identifier_1.Identifier.from(['lmap_at', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
321
480
  args: {
322
481
  '.x': { index: 0, name: '.x' },
323
482
  '.at': { index: 1, name: '.at' },
@@ -325,7 +484,7 @@ exports.DefaultBuiltinConfig = [
325
484
  '.f': { index: 2, name: '.f' },
326
485
  ignore: []
327
486
  } },
328
- { type: 'function', names: [identifier_1.Identifier.make('map_if', 'purrr'), identifier_1.Identifier.make('modify_if', 'purrr'), identifier_1.Identifier.make('lmap_if', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
487
+ { type: 'function', names: [identifier_1.Identifier.from(['map_if', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['modify_if', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['lmap_if', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
329
488
  args: {
330
489
  '.x': { index: 0, name: '.x' },
331
490
  '.p': { index: 1, name: '.p' },
@@ -333,7 +492,7 @@ exports.DefaultBuiltinConfig = [
333
492
  '.f': { index: 2, name: '.f' },
334
493
  ignore: ['.else']
335
494
  } },
336
- { type: 'function', names: [identifier_1.Identifier.make('walk', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
495
+ { type: 'function', names: [identifier_1.Identifier.from(['walk', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
337
496
  args: {
338
497
  '.x': { index: 0, name: '.x' }
339
498
  },
@@ -341,7 +500,7 @@ exports.DefaultBuiltinConfig = [
341
500
  ignore: ['.progress'],
342
501
  returnArg: '.x'
343
502
  } },
344
- { type: 'function', names: [identifier_1.Identifier.make('iwalk', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
503
+ { type: 'function', names: [identifier_1.Identifier.from(['iwalk', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
345
504
  args: {
346
505
  '.x': { index: 0, name: '.x' }
347
506
  },
@@ -349,7 +508,7 @@ exports.DefaultBuiltinConfig = [
349
508
  ignore: [],
350
509
  returnArg: '.x'
351
510
  } },
352
- { type: 'function', names: [identifier_1.Identifier.make('pwalk', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
511
+ { type: 'function', names: [identifier_1.Identifier.from(['pwalk', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
353
512
  args: {
354
513
  '.l': { index: 0, name: '.l' }
355
514
  },
@@ -357,7 +516,7 @@ exports.DefaultBuiltinConfig = [
357
516
  ignore: ['.progress'],
358
517
  returnArg: '.l'
359
518
  } },
360
- { type: 'function', names: [identifier_1.Identifier.make('walk2', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
519
+ { type: 'function', names: [identifier_1.Identifier.from(['walk2', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
361
520
  args: {
362
521
  '.x': { index: 0, name: '.x' },
363
522
  '.y': { index: 1, name: '.y' }
@@ -366,21 +525,21 @@ exports.DefaultBuiltinConfig = [
366
525
  ignore: ['.progress'],
367
526
  returnArg: '.x'
368
527
  } },
369
- { type: 'function', names: [identifier_1.Identifier.make('map_vec', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
528
+ { type: 'function', names: [identifier_1.Identifier.from(['map_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
370
529
  args: {
371
530
  '.x': { index: 0, name: '.x' }
372
531
  },
373
532
  '.f': { index: 1, name: '.f' },
374
533
  ignore: ['.progress', '.ptype']
375
534
  } },
376
- { type: 'function', names: [identifier_1.Identifier.make('pmap_vec', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
535
+ { type: 'function', names: [identifier_1.Identifier.from(['pmap_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
377
536
  args: {
378
537
  '.l': { index: 0, name: '.l' }
379
538
  },
380
539
  '.f': { index: 1, name: '.f' },
381
540
  ignore: ['.progress', '.ptype']
382
541
  } },
383
- { type: 'function', names: [identifier_1.Identifier.make('map_depth', 'purrr'), identifier_1.Identifier.make('modify_depth', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
542
+ { type: 'function', names: [identifier_1.Identifier.from(['map_depth', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['modify_depth', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
384
543
  args: {
385
544
  '.x': { index: 0, name: '.x' },
386
545
  '.depth': { index: 2, name: '.depth' }
@@ -388,7 +547,7 @@ exports.DefaultBuiltinConfig = [
388
547
  '.f': { index: 2, name: '.f' },
389
548
  ignore: ['.ragged', '.is_node']
390
549
  } },
391
- { type: 'function', names: [identifier_1.Identifier.make('map2_vec', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
550
+ { type: 'function', names: [identifier_1.Identifier.from(['map2_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
392
551
  args: {
393
552
  '.x': { index: 0, name: '.x' },
394
553
  '.y': { index: 1, name: '.y' }
@@ -396,61 +555,97 @@ exports.DefaultBuiltinConfig = [
396
555
  '.f': { index: 2, name: '.f' },
397
556
  ignore: ['.progress', '.ptype']
398
557
  } },
399
- { type: 'function', names: [identifier_1.Identifier.make('across', 'dplyr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
558
+ { type: 'function', names: [identifier_1.Identifier.from(['across', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
400
559
  args: {
401
560
  '.x': { index: 0, name: '.cols' },
402
561
  },
403
562
  '.f': { index: 1, name: '.fns' },
404
563
  ignore: ['.names', '.unpack']
405
564
  } },
406
- { type: 'function', names: [identifier_1.Identifier.make('filter', 'dplyr'), identifier_1.Identifier.make('filter_out', 'dplyr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
565
+ { type: 'function', names: [identifier_1.Identifier.from(['filter', "dplyr" /* PkgName.Dplyr */]), identifier_1.Identifier.from(['filter_out', "janitor" /* PkgName.Janitor */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
407
566
  args: {
408
567
  '.x': { index: 0, name: '.data' },
409
568
  },
410
569
  '.f': { index: 1, name: '...' },
411
570
  ignore: ['.by', '.preserve']
412
571
  } },
413
- { type: 'function', names: [identifier_1.Identifier.make('rename_with', 'dplyr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
572
+ { type: 'function', names: [identifier_1.Identifier.from(['rename_with', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
414
573
  args: {
415
574
  '.x': { index: 0, name: '.data' },
416
575
  },
417
576
  '.f': { index: 1, name: '.fn' },
418
577
  ignore: ['.cols']
419
578
  } },
420
- { type: 'function', names: ['function', '\\'], processor: built_in_proc_name_1.BuiltInProcName.FunctionDefinition, config: {}, assumePrimitive: true },
421
- { type: 'function', names: ['quote', 'bquote'], processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0 }, assumePrimitive: true },
422
- { type: 'function', names: ['substitute'], processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, envArgIndex: 1 }, assumePrimitive: true },
423
- { type: 'function', names: [identifier_1.Identifier.make('enquo', 'rlang'), identifier_1.Identifier.make('enquos', 'rlang'), identifier_1.Identifier.make('quo', 'rlang'), identifier_1.Identifier.make('quos', 'rlang'), identifier_1.Identifier.make('sym', 'rlang'), identifier_1.Identifier.make('syms', 'rlang'), identifier_1.Identifier.make('ensym', 'rlang'), identifier_1.Identifier.make('ensyms', 'rlang'), identifier_1.Identifier.make('expr', 'rlang'), identifier_1.Identifier.make('exprs', 'rlang'), identifier_1.Identifier.make('quo_name', 'rlang'), identifier_1.Identifier.make('as_name', 'rlang'), identifier_1.Identifier.make('as_label', 'rlang'), identifier_1.Identifier.make('as_string', 'rlang')], processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, libFn: true }, assumePrimitive: true },
424
- { type: 'function', names: [identifier_1.Identifier.make('call2', 'rlang'), identifier_1.Identifier.make('exec', 'rlang'), identifier_1.Identifier.make('invoke', 'purrr'), identifier_1.Identifier.make('invoke_map', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: true, unquoteFunction: true }, assumePrimitive: false },
425
- { type: 'function', names: ['local'], processor: built_in_proc_name_1.BuiltInProcName.Local, config: { args: { env: 'envir', expr: 'expr' } }, assumePrimitive: false },
426
- { type: 'function', names: ['with', 'within'], processor: built_in_proc_name_1.BuiltInProcName.With, config: {}, assumePrimitive: false },
427
- { type: 'function', names: ['new.env', identifier_1.Identifier.make('new_environment', 'rlang')], processor: built_in_proc_name_1.BuiltInProcName.NewEnv, config: {}, assumePrimitive: true },
428
- { type: 'function', names: ['globalenv', 'baseenv', 'emptyenv', 'parent.env', 'parent.frame', 'environmentName', 'as.environment', 'pos.to.env', 'sys.frame', 'sys.frames', 'topenv'],
429
- processor: built_in_proc_name_1.BuiltInProcName.Default, config: {}, assumePrimitive: true },
430
- { type: 'function', names: ['load', 'load_image'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true }, assumePrimitive: false },
579
+ { type: 'function', names: ['function', '\\'],
580
+ processor: built_in_proc_name_1.BuiltInProcName.FunctionDefinition, config: {}, assumePrimitive: true },
581
+ { type: 'function', names: [identifier_1.Identifier.from(['quote', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['bquote', "base" /* PkgName.Base */])],
582
+ processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0 }, assumePrimitive: true },
583
+ { type: 'function', names: [identifier_1.Identifier.from(['substitute', "base" /* PkgName.Base */])],
584
+ processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, envArgIndex: 1 }, assumePrimitive: true },
585
+ { type: 'function', names: [identifier_1.Identifier.from(['enquo', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['enquos', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['quo', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['quos', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['sym', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['syms', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['ensym', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['ensyms', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['expr', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['exprs', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['quo_name', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['as_name', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['as_label', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['as_string', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, libFn: true }, assumePrimitive: true },
586
+ { type: 'function', names: [identifier_1.Identifier.from(['call2', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['exec', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['invoke', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['invoke_map', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: true, unquoteFunction: true }, assumePrimitive: false },
587
+ { type: 'function', names: [identifier_1.Identifier.from(['local', "base" /* PkgName.Base */])],
588
+ processor: built_in_proc_name_1.BuiltInProcName.Local, config: { args: { env: 'envir', expr: 'expr' } }, assumePrimitive: false },
589
+ { type: 'function', names: [identifier_1.Identifier.from(['with', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['within', "base" /* PkgName.Base */])],
590
+ processor: built_in_proc_name_1.BuiltInProcName.With, config: {}, assumePrimitive: false },
591
+ { type: 'function', names: [identifier_1.Identifier.from(['new.env', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['new_environment', "rlang" /* PkgName.Rlang */])],
592
+ processor: built_in_proc_name_1.BuiltInProcName.NewEnv, config: {}, assumePrimitive: true },
593
+ /* env-returning builtins pointing into the current search-path stack (`e <- globalenv(); e$x`) */
594
+ { type: 'function', names: Object.entries(exports.StackEnvBuiltins)
595
+ .filter(([n, kind]) => !n.startsWith('.') && (kind === StackEnvKind.Global || kind === StackEnvKind.Base || kind === StackEnvKind.Empty))
596
+ .map(([n]) => identifier_1.Identifier.from([n, "base" /* PkgName.Base */])),
597
+ processor: built_in_proc_name_1.BuiltInProcName.StackEnv, config: {}, assumePrimitive: true },
598
+ { type: 'function', names: [
599
+ identifier_1.Identifier.from(['parent.env', "base" /* PkgName.Base */]),
600
+ identifier_1.Identifier.from(['parent.frame', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['environmentName', "base" /* PkgName.Base */]),
601
+ identifier_1.Identifier.from(['as.environment', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['pos.to.env', "base" /* PkgName.Base */]),
602
+ identifier_1.Identifier.from(['sys.frame', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['sys.frames', "base" /* PkgName.Base */]),
603
+ identifier_1.Identifier.from(['topenv', "base" /* PkgName.Base */]),
604
+ ], processor: built_in_proc_name_1.BuiltInProcName.Default, config: {}, assumePrimitive: true },
605
+ { type: 'function', names: [identifier_1.Identifier.from(['load', "base" /* PkgName.Base */]), 'load_image'],
606
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true }, assumePrimitive: false },
431
607
  /* attach injects an environment's contents into the search path; detach reverses it (treated as unknown side effect) */
432
- { type: 'function', names: ['attach'], processor: built_in_proc_name_1.BuiltInProcName.Attach, config: {}, assumePrimitive: false },
608
+ { type: 'function', names: [identifier_1.Identifier.from(['attach', "base" /* PkgName.Base */])],
609
+ processor: built_in_proc_name_1.BuiltInProcName.Attach, config: {}, assumePrimitive: false },
433
610
  { type: 'function', names: ['for'], processor: built_in_proc_name_1.BuiltInProcName.ForLoop, config: {}, assumePrimitive: true },
434
611
  { type: 'function', names: ['repeat'], processor: built_in_proc_name_1.BuiltInProcName.RepeatLoop, config: {}, assumePrimitive: true },
435
612
  { type: 'function', names: ['while'], processor: built_in_proc_name_1.BuiltInProcName.WhileLoop, config: {}, assumePrimitive: true },
436
- { type: 'function', names: ['do.call'], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, unquoteFunction: true }, assumePrimitive: true },
437
- { type: 'function', names: ['UseMethod'], processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' } }, assumePrimitive: true },
438
- { type: 'function', names: ['NextMethod'], processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' }, inferFromClosure: true }, assumePrimitive: true },
439
- { type: 'function', names: ['new_generic'], processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: 'dispatch_args', fun: 'fun' } }, assumePrimitive: true },
440
- { type: 'function', names: ['setGeneric'], processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: undefined, fun: 'fun' } }, assumePrimitive: true },
441
- { type: 'function', names: ['S7_dispatch'], processor: built_in_proc_name_1.BuiltInProcName.S7Dispatch, config: { libFn: true }, assumePrimitive: true },
442
- { type: 'function', names: ['.Primitive', '.Internal'], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, unquoteFunction: true, resolveInEnvironment: 'global' }, assumePrimitive: true },
443
- { type: 'function', names: ['interference'], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { unquoteFunction: true, nameOfFunctionArgument: 'propensity_integrand', libFn: true }, assumePrimitive: false },
444
- { type: 'function', names: ['ddply'], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { unquoteFunction: true, indexOfFunction: 2, nameOfFunctionArgument: '.fun', libFn: true }, assumePrimitive: false },
445
- { type: 'function', names: ['list'], processor: built_in_proc_name_1.BuiltInProcName.List, config: {}, assumePrimitive: true },
446
- { type: 'function', names: ['Recall'], processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true }, assumePrimitive: false },
447
- { type: 'function', names: ['sys.function'], processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true, unknownOnNonZeroArg: true }, assumePrimitive: false },
448
- { type: 'function', names: ['c'], processor: built_in_proc_name_1.BuiltInProcName.Vector, config: {}, assumePrimitive: true, evalHandler: 'built-in:c' },
449
- { type: 'function', names: [identifier_1.Identifier.make('cmpfun', 'compiler'), identifier_1.Identifier.make('compile', 'compiler')], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0 } },
450
- { type: 'function', names: [identifier_1.Identifier.make('loadcmp', 'compiler')], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true } },
613
+ { type: 'function', names: [identifier_1.Identifier.from(['do.call', "base" /* PkgName.Base */])],
614
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, unquoteFunction: true }, assumePrimitive: true },
615
+ { type: 'function', names: [identifier_1.Identifier.from(['UseMethod', "base" /* PkgName.Base */])],
616
+ processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' } }, assumePrimitive: true },
617
+ { type: 'function', names: [identifier_1.Identifier.from(['NextMethod', "base" /* PkgName.Base */])],
618
+ processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' }, inferFromClosure: true }, assumePrimitive: true },
619
+ { type: 'function', names: [identifier_1.Identifier.from(['new_generic', "S7" /* PkgName.S7 */])],
620
+ processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: 'dispatch_args', fun: 'fun' } }, assumePrimitive: true },
621
+ { type: 'function', names: [identifier_1.Identifier.from(['setGeneric', "methods" /* PkgName.Methods */])],
622
+ processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: undefined, fun: 'fun' } }, assumePrimitive: true },
623
+ { type: 'function', names: [identifier_1.Identifier.from(['S7_dispatch', "S7" /* PkgName.S7 */])],
624
+ processor: built_in_proc_name_1.BuiltInProcName.S7Dispatch, config: { libFn: true }, assumePrimitive: true },
625
+ { type: 'function', names: [identifier_1.Identifier.from(['.Primitive', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['.Internal', "base" /* PkgName.Base */])],
626
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, unquoteFunction: true, resolveInEnvironment: 'global' }, assumePrimitive: true },
627
+ { type: 'function', names: [identifier_1.Identifier.from(['interference', "inferference" /* PkgName.Inferference */])],
628
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { unquoteFunction: true, nameOfFunctionArgument: 'propensity_integrand', libFn: true }, assumePrimitive: false },
629
+ { type: 'function', names: [identifier_1.Identifier.from(['ddply', "plyr" /* PkgName.Plyr */])],
630
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { unquoteFunction: true, indexOfFunction: 2, nameOfFunctionArgument: '.fun', libFn: true }, assumePrimitive: false },
631
+ { type: 'function', names: [identifier_1.Identifier.from(['list', "base" /* PkgName.Base */])],
632
+ processor: built_in_proc_name_1.BuiltInProcName.List, config: {}, assumePrimitive: true },
633
+ { type: 'function', names: [identifier_1.Identifier.from(['Recall', "base" /* PkgName.Base */])],
634
+ processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true }, assumePrimitive: false },
635
+ { type: 'function', names: [identifier_1.Identifier.from(['sys.function', "base" /* PkgName.Base */])],
636
+ processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true, unknownOnNonZeroArg: true }, assumePrimitive: false },
637
+ { type: 'function', names: [identifier_1.Identifier.from(['c', "base" /* PkgName.Base */])],
638
+ processor: built_in_proc_name_1.BuiltInProcName.Vector, config: {}, assumePrimitive: true, evalHandler: 'built-in:c' },
639
+ { type: 'function', names: [identifier_1.Identifier.from(['cmpfun', "compiler" /* PkgName.Compiler */]), identifier_1.Identifier.from(['compile', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0 } },
640
+ { type: 'function', names: [identifier_1.Identifier.from(['loadcmp', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true } },
451
641
  {
452
642
  type: 'function',
453
- names: ['setnames', 'setNames', 'setkey', 'setkeyv', 'setindex', 'setindexv', 'setattr'],
643
+ names: [
644
+ identifier_1.Identifier.from(['setnames', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['setNames', "base" /* PkgName.Base */]),
645
+ identifier_1.Identifier.from(['setkey', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['setkeyv', "data.table" /* PkgName.DataTable */]),
646
+ identifier_1.Identifier.from(['setindex', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['setindexv', "data.table" /* PkgName.DataTable */]),
647
+ identifier_1.Identifier.from(['setattr', "data.table" /* PkgName.DataTable */])
648
+ ],
454
649
  processor: built_in_proc_name_1.BuiltInProcName.Assignment,
455
650
  config: {
456
651
  canBeReplacement: false,
@@ -462,14 +657,18 @@ exports.DefaultBuiltinConfig = [
462
657
  {
463
658
  type: 'function',
464
659
  names: [
465
- 'sys.on.exit', 'par', 'tpar', 'sink',
466
- /* library and require is handled above */
467
- 'requireNamespace', 'loadNamespace', 'attachNamespace', 'asNamespace',
468
- identifier_1.Identifier.make('use', 'base'),
469
- /* weird env attachments */
470
- 'unname', 'data',
471
- /* file creation/removal */
472
- 'dir.create', 'dir_create', 'Sys.chmod', 'unlink', 'file.remove', 'file.rename', 'file.copy', 'file.link', 'file.append', 'Sys.junction'
660
+ identifier_1.Identifier.from(['sys.on.exit', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['par', "graphics" /* PkgName.Graphics */]),
661
+ identifier_1.Identifier.from(['tpar', "tinyplot" /* PkgName.TinyPlot */]), identifier_1.Identifier.from(['sink', "base" /* PkgName.Base */]),
662
+ /* library/require/(require|load|attach)Namespace/use are handled above */
663
+ identifier_1.Identifier.from(['asNamespace', "base" /* PkgName.Base */]),
664
+ /* env attachment */
665
+ identifier_1.Identifier.from(['unname', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['data', "utils" /* PkgName.Utils */]),
666
+ /* file creation/removal (base) */
667
+ identifier_1.Identifier.from(['dir.create', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dir_create', "fs" /* PkgName.Fs */]),
668
+ identifier_1.Identifier.from(['Sys.chmod', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['unlink', "base" /* PkgName.Base */]),
669
+ identifier_1.Identifier.from(['file.remove', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['file.rename', "base" /* PkgName.Base */]),
670
+ identifier_1.Identifier.from(['file.copy', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['file.link', "base" /* PkgName.Base */]),
671
+ identifier_1.Identifier.from(['file.append', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['Sys.junction', "base" /* PkgName.Base */]),
473
672
  ],
474
673
  processor: built_in_proc_name_1.BuiltInProcName.Default,
475
674
  config: { hasUnknownSideEffects: true },
@@ -478,10 +677,21 @@ exports.DefaultBuiltinConfig = [
478
677
  {
479
678
  type: 'function',
480
679
  names: [
481
- 'tinytheme', 'theme_set',
482
- identifier_1.Identifier.make('context', 'testthat'),
483
- /* downloader and installer functions (R, devtools, BiocManager) */
484
- 'library.dynam', 'install.packages', 'install', 'install_github', 'install_gitlab', 'install_bitbucket', 'install_url', 'install_git', 'install_svn', 'install_local', 'install_version', 'update_packages',
680
+ identifier_1.Identifier.from(['tinytheme', "tinyplot" /* PkgName.TinyPlot */]), identifier_1.Identifier.from(['theme_set', "ggplot2" /* PkgName.GgPlot2 */]),
681
+ identifier_1.Identifier.from(['context', "testthat" /* PkgName.Testthat */]),
682
+ /* installers (utils / devtools / remotes; devtools re-exports the entire remotes install API) */
683
+ identifier_1.Identifier.from(['library.dynam', "base" /* PkgName.Base */]),
684
+ identifier_1.Identifier.from(['install.packages', "utils" /* PkgName.Utils */]),
685
+ identifier_1.Identifier.from(['install', "devtools" /* PkgName.Devtools */]),
686
+ identifier_1.Identifier.from(['install_github', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_github', "devtools" /* PkgName.Devtools */]),
687
+ identifier_1.Identifier.from(['install_gitlab', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_gitlab', "devtools" /* PkgName.Devtools */]),
688
+ identifier_1.Identifier.from(['install_bitbucket', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_bitbucket', "devtools" /* PkgName.Devtools */]),
689
+ identifier_1.Identifier.from(['install_url', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_url', "devtools" /* PkgName.Devtools */]),
690
+ identifier_1.Identifier.from(['install_git', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_git', "devtools" /* PkgName.Devtools */]),
691
+ identifier_1.Identifier.from(['install_svn', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_svn', "devtools" /* PkgName.Devtools */]),
692
+ identifier_1.Identifier.from(['install_local', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_local', "devtools" /* PkgName.Devtools */]),
693
+ identifier_1.Identifier.from(['install_version', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_version', "devtools" /* PkgName.Devtools */]),
694
+ identifier_1.Identifier.from(['update_packages', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['update_packages', "devtools" /* PkgName.Devtools */]),
485
695
  ],
486
696
  processor: built_in_proc_name_1.BuiltInProcName.Default,
487
697
  config: { hasUnknownSideEffects: true, libFn: true },
@@ -489,7 +699,7 @@ exports.DefaultBuiltinConfig = [
489
699
  },
490
700
  {
491
701
  type: 'function',
492
- names: ['on.exit'],
702
+ names: [identifier_1.Identifier.from(['on.exit', "base" /* PkgName.Base */])],
493
703
  processor: built_in_proc_name_1.BuiltInProcName.RegisterHook,
494
704
  config: {
495
705
  hook: hooks_1.KnownHooks.OnFnExit,
@@ -505,27 +715,28 @@ exports.DefaultBuiltinConfig = [
505
715
  {
506
716
  type: 'replacement',
507
717
  suffixes: ['<-', '<<-'],
508
- names: ['[', '[[', 'names', 'dimnames', 'attributes', 'attr', 'class', 'levels', 'rownames', 'colnames', 'body', 'environment', 'formals'],
509
- config: {
510
- readIndices: true
511
- }
718
+ names: [
719
+ '[', '[[',
720
+ identifier_1.Identifier.from(['names', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dimnames', "base" /* PkgName.Base */]),
721
+ identifier_1.Identifier.from(['attributes', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['attr', "base" /* PkgName.Base */]),
722
+ identifier_1.Identifier.from(['class', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['levels', "base" /* PkgName.Base */]),
723
+ identifier_1.Identifier.from(['rownames', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['colnames', "base" /* PkgName.Base */]),
724
+ identifier_1.Identifier.from(['body', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['environment', "base" /* PkgName.Base */]),
725
+ identifier_1.Identifier.from(['formals', "base" /* PkgName.Base */]),
726
+ ],
727
+ config: { readIndices: true }
512
728
  },
513
729
  {
514
730
  type: 'replacement',
515
731
  suffixes: ['<-', '<<-'],
516
- names: ['method'],
517
- config: {
518
- readIndices: true,
519
- constructName: 's7'
520
- }
732
+ names: [identifier_1.Identifier.from(['method', "S7" /* PkgName.S7 */])],
733
+ config: { readIndices: true, constructName: 's7' }
521
734
  },
522
735
  {
523
736
  type: 'replacement',
524
737
  suffixes: ['<-', '<<-'],
525
738
  names: ['$', '@'],
526
- config: {
527
- readIndices: false
528
- }
739
+ config: { readIndices: false }
529
740
  },
530
741
  ];
531
742
  /**
@@ -535,8 +746,8 @@ function getDefaultProcessor(name) {
535
746
  if (name.startsWith(unnamed_call_handling_1.UnnamedFunctionCallPrefix)) {
536
747
  return built_in_proc_name_1.BuiltInProcName.Unnamed;
537
748
  }
538
- const fn = exports.DefaultBuiltinConfig.find(def => (def.names.includes(name) && def.type !== 'constant')
539
- || (def.type === 'replacement' && def.suffixes.flatMap(d => def.names.map(n => `${n}${d}`)).includes(name)));
749
+ const fn = exports.DefaultBuiltinConfig.find(def => (def.names.some(n => identifier_1.Identifier.getName(n) === name) && def.type !== 'constant')
750
+ || (def.type === 'replacement' && def.suffixes.flatMap(d => def.names.map(n => `${identifier_1.Identifier.getName(n)}${d}`)).includes(name)));
540
751
  if (fn?.type === 'replacement') {
541
752
  return built_in_proc_name_1.BuiltInProcName.Replacement;
542
753
  }