@eagleoutice/flowr 2.15.8 → 2.15.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (617) hide show
  1. package/README.md +39 -280
  2. package/abstract-interpretation/absint-inference.d.ts +5 -5
  3. package/abstract-interpretation/absint-inference.js +12 -12
  4. package/abstract-interpretation/abstract-semantics.d.ts +10 -10
  5. package/abstract-interpretation/data-frame/arguments.d.ts +9 -9
  6. package/abstract-interpretation/data-frame/arguments.js +11 -11
  7. package/abstract-interpretation/data-frame/dataframe-semantics.d.ts +1 -1
  8. package/abstract-interpretation/data-frame/dataframe-semantics.js +14 -14
  9. package/abstract-interpretation/unsupported-functions.d.ts +0 -1
  10. package/abstract-interpretation/unsupported-functions.js +1 -2
  11. package/abstract-interpretation/value-semantics.d.ts +1 -1
  12. package/abstract-interpretation/value-semantics.js +2 -3
  13. package/benchmark/calibration.d.ts +0 -2
  14. package/benchmark/calibration.js +0 -5
  15. package/benchmark/slicer.d.ts +2 -2
  16. package/benchmark/slicer.js +4 -4
  17. package/benchmark/stats/size-of.d.ts +1 -1
  18. package/benchmark/stats/size-of.js +2 -2
  19. package/benchmark/summarizer/first-phase/process.d.ts +1 -1
  20. package/benchmark/summarizer/first-phase/process.js +1 -1
  21. package/benchmark/summarizer/second-phase/graph.d.ts +1 -1
  22. package/benchmark/summarizer/second-phase/graph.js +1 -1
  23. package/cli/benchmark-app.js +3 -3
  24. package/cli/common/options.d.ts +0 -16
  25. package/cli/common/options.js +0 -3
  26. package/cli/common/scripts-info.d.ts +0 -16
  27. package/cli/compile-cache.d.ts +1 -0
  28. package/cli/compile-cache.js +19 -0
  29. package/cli/flowr-main-options.d.ts +5 -0
  30. package/cli/flowr-main-options.js +6 -0
  31. package/cli/flowr.d.ts +13 -0
  32. package/cli/flowr.js +27 -2
  33. package/cli/repl/commands/repl-clipboard.d.ts +4 -1
  34. package/cli/repl/commands/repl-clipboard.js +4 -1
  35. package/cli/repl/commands/repl-main.d.ts +0 -2
  36. package/cli/repl/commands/repl-main.js +0 -5
  37. package/cli/repl/commands/repl-normalize.js +3 -0
  38. package/cli/repl/commands/repl-parse.js +27 -0
  39. package/cli/repl/commands/repl-signature.js +17 -1
  40. package/cli/script-core/summarizer-core.js +0 -9
  41. package/cli/summarizer-app.d.ts +0 -3
  42. package/cli/wiki.d.ts +2 -2
  43. package/cli/wiki.js +18 -2
  44. package/config.d.ts +54 -5
  45. package/config.js +43 -8
  46. package/control-flow/cfg-dead-code.js +5 -4
  47. package/control-flow/cfg-properties.d.ts +2 -2
  48. package/control-flow/cfg-properties.js +2 -2
  49. package/control-flow/control-flow-graph.d.ts +32 -10
  50. package/control-flow/control-flow-graph.js +22 -10
  51. package/control-flow/diff-cfg.js +3 -2
  52. package/control-flow/happens-before.d.ts +6 -0
  53. package/control-flow/happens-before.js +42 -0
  54. package/control-flow/semantic-cfg-guided-visitor.d.ts +1 -1
  55. package/control-flow/semantic-cfg-guided-visitor.js +5 -2
  56. package/control-flow/simple-visitor.d.ts +2 -7
  57. package/control-flow/simple-visitor.js +2 -6
  58. package/control-flow/useless-loop.d.ts +2 -2
  59. package/control-flow/useless-loop.js +11 -8
  60. package/core/pipeline-executor.d.ts +2 -2
  61. package/core/pipeline-executor.js +2 -2
  62. package/core/steps/all/core/20-dataflow.d.ts +2 -2
  63. package/core/steps/all/static-slicing/00-slice.d.ts +1 -1
  64. package/core/steps/all/static-slicing/00-slice.js +1 -1
  65. package/core/steps/all/static-slicing/10-reconstruct.js +1 -1
  66. package/core/steps/pipeline/default-pipelines.d.ts +16 -16
  67. package/core/steps/pipeline/pipeline.d.ts +1 -6
  68. package/data/r-base-packages.generated.d.ts +2 -2
  69. package/data/r-base-packages.generated.js +4 -4
  70. package/dataflow/cluster.js +1 -1
  71. package/dataflow/environments/apply-kill.d.ts +4 -0
  72. package/dataflow/environments/apply-kill.js +43 -8
  73. package/dataflow/environments/built-in-config.d.ts +7 -2
  74. package/dataflow/environments/built-in-config.js +7 -5
  75. package/dataflow/environments/built-in-eval-name.d.ts +4 -2
  76. package/dataflow/environments/built-in-eval-name.js +3 -1
  77. package/dataflow/environments/built-in-proc-name.d.ts +2 -0
  78. package/dataflow/environments/built-in-proc-name.js +2 -0
  79. package/dataflow/environments/built-in-props.d.ts +23 -7
  80. package/dataflow/environments/built-in-props.js +27 -10
  81. package/dataflow/environments/built-in.d.ts +5 -6
  82. package/dataflow/environments/built-in.js +12 -16
  83. package/dataflow/environments/data-masking-functions.js +1 -1
  84. package/dataflow/environments/default-builtin-config.d.ts +221 -32
  85. package/dataflow/environments/default-builtin-config.js +133 -83
  86. package/dataflow/environments/environment.d.ts +5 -0
  87. package/dataflow/environments/environment.js +39 -11
  88. package/dataflow/environments/frame-memory.d.ts +41 -2
  89. package/dataflow/environments/frame-memory.js +143 -12
  90. package/dataflow/environments/identifier.d.ts +64 -9
  91. package/dataflow/environments/identifier.js +99 -13
  92. package/dataflow/environments/query-fn-props.d.ts +8 -2
  93. package/dataflow/environments/query-fn-props.js +20 -12
  94. package/dataflow/environments/reference-to-maybe.js +1 -1
  95. package/dataflow/environments/removal-marker.d.ts +7 -0
  96. package/dataflow/environments/removal-marker.js +20 -0
  97. package/dataflow/environments/resolve-by-name.d.ts +8 -8
  98. package/dataflow/environments/resolve-by-name.js +15 -12
  99. package/dataflow/environments/resolve-helper.d.ts +26 -4
  100. package/dataflow/environments/resolve-helper.js +27 -4
  101. package/dataflow/eval/resolve/alias-tracking.d.ts +17 -17
  102. package/dataflow/eval/resolve/alias-tracking.js +57 -32
  103. package/dataflow/eval/resolve/node-value.d.ts +15 -28
  104. package/dataflow/eval/resolve/node-value.js +26 -45
  105. package/dataflow/eval/resolve/resolve-argument.js +21 -2
  106. package/dataflow/eval/resolve/resolve-get.d.ts +28 -0
  107. package/dataflow/eval/resolve/resolve-get.js +49 -0
  108. package/dataflow/eval/resolve/resolve-numbers.d.ts +4 -2
  109. package/dataflow/eval/resolve/resolve-numbers.js +4 -2
  110. package/dataflow/eval/resolve/resolve-operators.d.ts +4 -1
  111. package/dataflow/eval/resolve/resolve-operators.js +7 -3
  112. package/dataflow/eval/resolve/resolve-strings.d.ts +6 -3
  113. package/dataflow/eval/resolve/resolve-strings.js +29 -5
  114. package/dataflow/eval/resolve/resolve-working-directory.js +2 -8
  115. package/dataflow/eval/resolve/resolve.js +27 -15
  116. package/dataflow/eval/values/general.js +13 -12
  117. package/dataflow/eval/values/intervals/interval-constants.d.ts +10 -2
  118. package/dataflow/eval/values/intervals/interval-constants.js +10 -2
  119. package/dataflow/eval/values/logical/logical-constants.d.ts +1 -8
  120. package/dataflow/eval/values/logical/logical-constants.js +1 -23
  121. package/dataflow/eval/values/r-value.d.ts +8 -9
  122. package/dataflow/eval/values/r-value.js +8 -8
  123. package/dataflow/eval/values/scalar/scalar-constants.d.ts +1 -12
  124. package/dataflow/eval/values/scalar/scalar-constants.js +0 -14
  125. package/dataflow/eval/values/sets/set-constants.d.ts +1 -4
  126. package/dataflow/eval/values/sets/set-constants.js +0 -11
  127. package/dataflow/eval/values/string/string-constants.d.ts +4 -18
  128. package/dataflow/eval/values/string/string-constants.js +3 -18
  129. package/dataflow/eval/values/vectors/vector-constants.d.ts +1 -1
  130. package/dataflow/eval/values/vectors/vector-constants.js +1 -1
  131. package/dataflow/extractor.js +176 -13
  132. package/dataflow/fn/argument-roles.d.ts +10 -12
  133. package/dataflow/fn/argument-roles.js +16 -22
  134. package/dataflow/fn/class-declaration.d.ts +8 -30
  135. package/dataflow/fn/class-declaration.js +12 -37
  136. package/dataflow/fn/exceptions-of-function.d.ts +3 -16
  137. package/dataflow/fn/exceptions-of-function.js +5 -21
  138. package/dataflow/fn/frame-reflection.d.ts +5 -19
  139. package/dataflow/fn/frame-reflection.js +14 -29
  140. package/dataflow/fn/function-props.d.ts +9 -10
  141. package/dataflow/fn/function-props.js +16 -20
  142. package/dataflow/fn/function-semantics.d.ts +130 -0
  143. package/dataflow/fn/function-semantics.js +89 -0
  144. package/dataflow/fn/higher-order-function.d.ts +8 -16
  145. package/dataflow/fn/higher-order-function.js +17 -28
  146. package/dataflow/fn/recursive-function.js +1 -1
  147. package/dataflow/fn/strict-function.d.ts +8 -20
  148. package/dataflow/fn/strict-function.js +20 -38
  149. package/dataflow/graph/call-graph.d.ts +9 -0
  150. package/dataflow/graph/call-graph.js +15 -14
  151. package/dataflow/graph/dataflowgraph-builder.d.ts +18 -23
  152. package/dataflow/graph/dataflowgraph-builder.js +18 -29
  153. package/dataflow/graph/df-helper.d.ts +22 -109
  154. package/dataflow/graph/df-helper.js +20 -64
  155. package/dataflow/graph/diff-dataflow-graph.d.ts +5 -0
  156. package/dataflow/graph/diff-dataflow-graph.js +12 -7
  157. package/dataflow/graph/edge.d.ts +1 -0
  158. package/dataflow/graph/edge.js +1 -0
  159. package/dataflow/graph/graph-helper.d.ts +26 -1
  160. package/dataflow/graph/graph-helper.js +53 -2
  161. package/dataflow/graph/graph.d.ts +42 -7
  162. package/dataflow/graph/graph.js +43 -9
  163. package/dataflow/graph/match-args.d.ts +16 -12
  164. package/dataflow/graph/match-args.js +68 -26
  165. package/dataflow/graph/vertex.d.ts +38 -57
  166. package/dataflow/graph/vertex.js +38 -66
  167. package/dataflow/info.d.ts +5 -2
  168. package/dataflow/info.js +3 -1
  169. package/dataflow/internal/control-flow.d.ts +13 -12
  170. package/dataflow/internal/control-flow.js +13 -12
  171. package/dataflow/internal/linker.d.ts +24 -15
  172. package/dataflow/internal/linker.js +115 -33
  173. package/dataflow/internal/process/functions/call/built-in/built-in-access.js +6 -8
  174. package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +8 -7
  175. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.d.ts +17 -3
  176. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +112 -39
  177. package/dataflow/internal/process/functions/call/built-in/built-in-class-generator.js +10 -2
  178. package/dataflow/internal/process/functions/call/built-in/built-in-class-relation.d.ts +1 -1
  179. package/dataflow/internal/process/functions/call/built-in/built-in-env-contents.d.ts +21 -0
  180. package/dataflow/internal/process/functions/call/built-in/built-in-env-contents.js +99 -0
  181. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +56 -13
  182. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +179 -45
  183. package/dataflow/internal/process/functions/call/built-in/built-in-eval.d.ts +2 -0
  184. package/dataflow/internal/process/functions/call/built-in/built-in-eval.js +46 -5
  185. package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +49 -13
  186. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +119 -22
  187. package/dataflow/internal/process/functions/call/built-in/built-in-get.d.ts +5 -1
  188. package/dataflow/internal/process/functions/call/built-in/built-in-get.js +62 -28
  189. package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +2 -2
  190. package/dataflow/internal/process/functions/call/built-in/built-in-library.js +7 -2
  191. package/dataflow/internal/process/functions/call/built-in/built-in-list.d.ts +9 -2
  192. package/dataflow/internal/process/functions/call/built-in/built-in-list.js +26 -10
  193. package/dataflow/internal/process/functions/call/built-in/built-in-load.js +3 -3
  194. package/dataflow/internal/process/functions/call/built-in/built-in-local.js +13 -10
  195. package/dataflow/internal/process/functions/call/built-in/built-in-new-env.js +2 -2
  196. package/dataflow/internal/process/functions/call/built-in/built-in-pipe.js +36 -22
  197. package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.d.ts +2 -2
  198. package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.js +7 -7
  199. package/dataflow/internal/process/functions/call/built-in/built-in-quote.js +3 -2
  200. package/dataflow/internal/process/functions/call/built-in/built-in-recall.js +1 -1
  201. package/dataflow/internal/process/functions/call/built-in/built-in-register-hook.js +7 -11
  202. package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.d.ts +5 -5
  203. package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.js +7 -7
  204. package/dataflow/internal/process/functions/call/built-in/built-in-replacement.d.ts +2 -0
  205. package/dataflow/internal/process/functions/call/built-in/built-in-replacement.js +28 -7
  206. package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +5 -5
  207. package/dataflow/internal/process/functions/call/built-in/built-in-s-four.js +1 -1
  208. package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-dispatch.js +2 -2
  209. package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.d.ts +2 -2
  210. package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.js +12 -14
  211. package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.js +2 -2
  212. package/dataflow/internal/process/functions/call/built-in/built-in-source.js +3 -4
  213. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +8 -2
  214. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +21 -13
  215. package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.d.ts +1 -0
  216. package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +29 -11
  217. package/dataflow/internal/process/functions/call/built-in/built-in-with.d.ts +1 -1
  218. package/dataflow/internal/process/functions/call/built-in/built-in-with.js +15 -12
  219. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +5 -5
  220. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +23 -16
  221. package/dataflow/internal/process/functions/call/common.d.ts +7 -1
  222. package/dataflow/internal/process/functions/call/common.js +17 -7
  223. package/dataflow/internal/process/functions/call/deferred.d.ts +1 -3
  224. package/dataflow/internal/process/functions/call/deferred.js +20 -10
  225. package/dataflow/internal/process/functions/call/known-call-handling.d.ts +4 -4
  226. package/dataflow/internal/process/functions/call/known-call-handling.js +17 -8
  227. package/dataflow/internal/process/functions/call/named-call-handling.d.ts +1 -1
  228. package/dataflow/internal/process/functions/call/named-call-handling.js +5 -4
  229. package/dataflow/internal/process/functions/call/nse.d.ts +1 -2
  230. package/dataflow/internal/process/functions/call/nse.js +13 -15
  231. package/dataflow/internal/process/functions/call/quoted.d.ts +3 -4
  232. package/dataflow/internal/process/functions/call/quoted.js +96 -42
  233. package/dataflow/internal/process/functions/call/unnamed-call-handling.js +2 -2
  234. package/dataflow/internal/process/functions/process-parameter.d.ts +4 -1
  235. package/dataflow/internal/process/functions/process-parameter.js +4 -1
  236. package/dataflow/origin/dfg-get-origin.d.ts +1 -1
  237. package/dataflow/origin/dfg-get-origin.js +17 -10
  238. package/dataflow/origin/dfg-get-symbol-refs.d.ts +2 -2
  239. package/dataflow/origin/dfg-get-symbol-refs.js +2 -2
  240. package/dataflow/processor.d.ts +10 -0
  241. package/documentation/data/dfg/doc-data-dfg-util.d.ts +2 -2
  242. package/documentation/data/dfg/doc-data-dfg-util.js +2 -2
  243. package/documentation/data/faq/faqs.d.ts +2 -1
  244. package/documentation/data/faq/faqs.js +12 -3
  245. package/documentation/data/server/doc-data-server-messages.d.ts +2 -1
  246. package/documentation/data/server/doc-data-server-messages.js +2 -1
  247. package/documentation/doc-capabilities.d.ts +13 -7
  248. package/documentation/doc-capabilities.js +445 -126
  249. package/documentation/doc-util/doc-auto-gen.d.ts +4 -2
  250. package/documentation/doc-util/doc-auto-gen.js +22 -4
  251. package/documentation/doc-util/doc-cfg.js +2 -2
  252. package/documentation/doc-util/doc-code.d.ts +8 -2
  253. package/documentation/doc-util/doc-code.js +36 -7
  254. package/documentation/doc-util/doc-dfg.d.ts +2 -0
  255. package/documentation/doc-util/doc-dfg.js +4 -3
  256. package/documentation/doc-util/doc-env.d.ts +2 -1
  257. package/documentation/doc-util/doc-env.js +2 -1
  258. package/documentation/doc-util/doc-escape.d.ts +2 -2
  259. package/documentation/doc-util/doc-escape.js +2 -2
  260. package/documentation/doc-util/doc-files.d.ts +0 -2
  261. package/documentation/doc-util/doc-files.js +2 -3
  262. package/documentation/doc-util/doc-normalized-ast.js +2 -2
  263. package/documentation/doc-util/doc-query.d.ts +2 -1
  264. package/documentation/doc-util/doc-query.js +4 -3
  265. package/documentation/doc-util/doc-repl.d.ts +1 -1
  266. package/documentation/doc-util/doc-repl.js +1 -1
  267. package/documentation/doc-util/doc-search.js +2 -2
  268. package/documentation/doc-util/doc-server-message.js +2 -2
  269. package/documentation/doc-util/doc-sigdb.js +1 -1
  270. package/documentation/doc-util/doc-structure.d.ts +10 -3
  271. package/documentation/doc-util/doc-structure.js +10 -3
  272. package/documentation/doc-util/doc-timings.d.ts +19 -0
  273. package/documentation/doc-util/doc-timings.js +44 -0
  274. package/documentation/doc-util/doc-types.d.ts +8 -6
  275. package/documentation/doc-util/doc-types.js +11 -8
  276. package/documentation/index.d.ts +1 -0
  277. package/documentation/index.js +1 -0
  278. package/documentation/wiki-core.js +3 -0
  279. package/documentation/wiki-create-linting-rules.js +1 -1
  280. package/documentation/wiki-dataflow-graph.js +19 -20
  281. package/documentation/wiki-engine.js +13 -2
  282. package/documentation/wiki-helper-objects.d.ts +9 -0
  283. package/documentation/wiki-helper-objects.js +102 -0
  284. package/documentation/wiki-linter.js +154 -16
  285. package/documentation/wiki-linting-and-testing.js +99 -6
  286. package/documentation/wiki-mk/doc-context.d.ts +33 -29
  287. package/documentation/wiki-mk/doc-context.js +1 -0
  288. package/documentation/wiki-mk/doc-maker.d.ts +1 -1
  289. package/documentation/wiki-mk/doc-maker.js +18 -2
  290. package/documentation/wiki-query.js +44 -0
  291. package/documentation/wiki-signature-database.js +7 -3
  292. package/gas.d.ts +3 -2
  293. package/index.d.ts +18 -3
  294. package/index.js +29 -3
  295. package/linter/linter-executor.js +2 -2
  296. package/linter/linter-format.d.ts +9 -3
  297. package/linter/linter-format.js +2 -0
  298. package/linter/linter-rules.d.ts +118 -98
  299. package/linter/linter-rules.js +3 -1
  300. package/linter/rules/absolute-path.d.ts +10 -10
  301. package/linter/rules/absolute-path.js +9 -12
  302. package/linter/rules/dataframe-access-validation.d.ts +2 -2
  303. package/linter/rules/dataframe-access-validation.js +17 -4
  304. package/linter/rules/dead-code.d.ts +2 -2
  305. package/linter/rules/dead-code.js +1 -1
  306. package/linter/rules/deprecated-functions.d.ts +5 -5
  307. package/linter/rules/deprecated-functions.js +8 -8
  308. package/linter/rules/file-path-validity.d.ts +7 -7
  309. package/linter/rules/file-path-validity.js +4 -4
  310. package/linter/rules/function-finder-util.d.ts +0 -6
  311. package/linter/rules/function-finder-util.js +7 -2
  312. package/linter/rules/namespace-access.d.ts +42 -0
  313. package/linter/rules/namespace-access.js +78 -0
  314. package/linter/rules/naming-convention.d.ts +3 -3
  315. package/linter/rules/naming-convention.js +7 -3
  316. package/linter/rules/network-functions.d.ts +5 -5
  317. package/linter/rules/network-functions.js +5 -6
  318. package/linter/rules/no-leaked-credentials.d.ts +3 -3
  319. package/linter/rules/no-leaked-credentials.js +4 -5
  320. package/linter/rules/problematic-inputs.d.ts +5 -5
  321. package/linter/rules/problematic-inputs.js +13 -21
  322. package/linter/rules/roxygen-arguments.d.ts +1 -1
  323. package/linter/rules/roxygen-arguments.js +4 -3
  324. package/linter/rules/seeded-randomness.d.ts +6 -5
  325. package/linter/rules/seeded-randomness.js +15 -13
  326. package/linter/rules/software-has-license.d.ts +2 -2
  327. package/linter/rules/software-has-license.js +2 -2
  328. package/linter/rules/software-has-tests.d.ts +3 -3
  329. package/linter/rules/software-has-tests.js +2 -2
  330. package/linter/rules/stop-with-call-arg.d.ts +1 -1
  331. package/linter/rules/stop-with-call-arg.js +16 -3
  332. package/linter/rules/syntactically-valid.d.ts +3 -3
  333. package/linter/rules/syntactically-valid.js +2 -2
  334. package/linter/rules/unclosed-connection.d.ts +3 -3
  335. package/linter/rules/unclosed-connection.js +23 -12
  336. package/linter/rules/undefined-symbol-util.d.ts +3 -1
  337. package/linter/rules/undefined-symbol-util.js +9 -7
  338. package/linter/rules/undefined-symbol.d.ts +4 -4
  339. package/linter/rules/undefined-symbol.js +4 -4
  340. package/linter/rules/unescaped-arguments.d.ts +37 -37
  341. package/linter/rules/unescaped-arguments.js +20 -21
  342. package/linter/rules/unused-definition.d.ts +3 -3
  343. package/linter/rules/unused-definition.js +63 -26
  344. package/linter/rules/unused-import.d.ts +4 -4
  345. package/linter/rules/unused-import.js +14 -5
  346. package/linter/rules/useless-loop.d.ts +3 -3
  347. package/linter/rules/useless-loop.js +3 -3
  348. package/package.json +6 -4
  349. package/project/context/flowr-analyzer-context.d.ts +5 -0
  350. package/project/context/flowr-analyzer-context.js +5 -0
  351. package/project/context/flowr-analyzer-dependencies-context.d.ts +3 -3
  352. package/project/context/flowr-analyzer-environment-context.d.ts +20 -1
  353. package/project/context/flowr-analyzer-environment-context.js +24 -1
  354. package/project/context/flowr-analyzer-files-context.d.ts +7 -3
  355. package/project/context/flowr-analyzer-files-context.js +53 -22
  356. package/project/context/flowr-analyzer-functions-context.d.ts +1 -6
  357. package/project/context/flowr-analyzer-functions-context.js +1 -7
  358. package/project/context/flowr-analyzer-gas-context.d.ts +7 -0
  359. package/project/context/flowr-analyzer-gas-context.js +6 -1
  360. package/project/dependency-version-space.d.ts +7 -0
  361. package/project/dependency-version-space.js +2 -2
  362. package/project/flowr-analyzer-builder.d.ts +14 -4
  363. package/project/flowr-analyzer-builder.js +3 -1
  364. package/project/flowr-analyzer.d.ts +3 -3
  365. package/project/flowr-analyzer.js +1 -3
  366. package/project/plugins/file-plugins/files/flowr-description-file.d.ts +1 -1
  367. package/project/plugins/file-plugins/files/flowr-description-file.js +2 -2
  368. package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +1 -1
  369. package/project/plugins/file-plugins/files/flowr-namespace-file.js +1 -1
  370. package/project/plugins/file-plugins/files/flowr-rda-file.js +8 -6
  371. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +3 -3
  372. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +33 -10
  373. package/project/plugins/file-plugins/files/flowr-sweave-file.d.ts +2 -2
  374. package/project/plugins/file-plugins/files/flowr-sweave-file.js +2 -2
  375. package/project/plugins/file-plugins/files/r-fun-tab.d.ts +4 -67
  376. package/project/plugins/file-plugins/files/r-fun-tab.js +6 -653
  377. package/project/plugins/file-plugins/flowr-analyzer-description-file-plugin.d.ts +4 -1
  378. package/project/plugins/file-plugins/flowr-analyzer-description-file-plugin.js +4 -1
  379. package/project/plugins/flowr-analyzer-plugin.d.ts +1 -1
  380. package/project/plugins/flowr-analyzer-plugin.js +1 -1
  381. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.d.ts +0 -19
  382. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +4 -51
  383. package/project/sigdb/codec.d.ts +0 -4
  384. package/project/sigdb/codec.js +1 -8
  385. package/project/sigdb/manifest.d.ts +0 -2
  386. package/project/sigdb/manifest.js +2 -6
  387. package/project/sigdb/memory-source.js +2 -1
  388. package/project/sigdb/reader.js +3 -2
  389. package/project/sigdb/schema.d.ts +0 -2
  390. package/project/sigdb/schema.js +1 -7
  391. package/project/sigdb/signature-db.d.ts +9 -1
  392. package/project/sigdb/signature-db.js +8 -0
  393. package/queries/catalog/call-context-query/call-context-query-executor.d.ts +1 -1
  394. package/queries/catalog/call-context-query/call-context-query-executor.js +5 -4
  395. package/queries/catalog/call-context-query/call-context-query-format.d.ts +1 -1
  396. package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +2 -2
  397. package/queries/catalog/call-context-query/identify-link-to-nested-call-relation.js +1 -1
  398. package/queries/catalog/dependencies-query/dependencies-query-executor.js +40 -6
  399. package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +33 -54
  400. package/queries/catalog/dependencies-query/dependencies-query-format.js +37 -13
  401. package/queries/catalog/dependencies-query/function-info/derived-functions.d.ts +3 -2
  402. package/queries/catalog/dependencies-query/function-info/derived-functions.js +5 -5
  403. package/queries/catalog/dependencies-query/function-info/read-functions.d.ts +6 -1
  404. package/queries/catalog/dependencies-query/function-info/read-functions.js +12 -9
  405. package/queries/catalog/dependencies-query/function-info/statistics-functions.d.ts +2 -2
  406. package/queries/catalog/dependencies-query/function-info/statistics-functions.js +1 -2
  407. package/queries/catalog/dependencies-query/function-info/write-functions.d.ts +9 -1
  408. package/queries/catalog/dependencies-query/function-info/write-functions.js +17 -6
  409. package/queries/catalog/dependencies-query/implicit-echo.js +28 -5
  410. package/queries/catalog/dependencies-query/link-devices.js +23 -10
  411. package/queries/catalog/dice-query/dice-query-executor.js +2 -14
  412. package/queries/catalog/does-call-query/does-call-query-executor.js +1 -2
  413. package/queries/catalog/files-query/files-query-format.d.ts +1 -1
  414. package/queries/catalog/function-info-query/function-info-query-executor.d.ts +7 -0
  415. package/queries/catalog/function-info-query/function-info-query-executor.js +38 -0
  416. package/queries/catalog/function-info-query/function-info-query-format.d.ts +48 -0
  417. package/queries/catalog/function-info-query/function-info-query-format.js +54 -0
  418. package/queries/catalog/function-info-query/function-origin.d.ts +22 -0
  419. package/queries/catalog/function-info-query/function-origin.js +46 -0
  420. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.js +2 -1
  421. package/queries/catalog/happens-before-query/happens-before-query-format.d.ts +1 -0
  422. package/queries/catalog/happens-before-query/happens-before-query-format.js +1 -0
  423. package/queries/catalog/input-sources-query/input-source-functions.d.ts +2 -2
  424. package/queries/catalog/input-sources-query/input-source-functions.js +1 -2
  425. package/queries/catalog/input-sources-query/input-sources-query-executor.js +2 -2
  426. package/queries/catalog/input-sources-query/input-sources-query-format.d.ts +4 -2
  427. package/queries/catalog/input-sources-query/input-sources-query-format.js +24 -24
  428. package/queries/catalog/input-sources-query/input-types.d.ts +2 -2
  429. package/queries/catalog/input-sources-query/input-types.js +2 -2
  430. package/queries/catalog/input-sources-query/simple-input-classifier.js +6 -6
  431. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-executor.js +2 -2
  432. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.d.ts +1 -1
  433. package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-executor.js +6 -7
  434. package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.d.ts +4 -4
  435. package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.js +8 -7
  436. package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-executor.js +2 -2
  437. package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.d.ts +1 -1
  438. package/queries/catalog/inspect-recursion-query/inspect-recursion-query-format.d.ts +1 -1
  439. package/queries/catalog/linter-query/linter-query-format.d.ts +1 -1
  440. package/queries/catalog/signature-query/signature-query-executor.d.ts +2 -11
  441. package/queries/catalog/signature-query/signature-query-executor.js +124 -63
  442. package/queries/catalog/signature-query/signature-query-format.d.ts +21 -0
  443. package/queries/catalog/signature-query/signature-query-format.js +5 -1
  444. package/queries/catalog/signature-query/signature-query-render.js +28 -3
  445. package/queries/catalog/slice-query-options.d.ts +19 -2
  446. package/queries/catalog/slice-query-options.js +19 -3
  447. package/queries/catalog/static-slice-query/static-slice-query-executor.d.ts +2 -2
  448. package/queries/catalog/static-slice-query/static-slice-query-executor.js +4 -17
  449. package/queries/query-function-filter.d.ts +1 -0
  450. package/queries/query-function-filter.js +1 -0
  451. package/queries/query.d.ts +13 -2
  452. package/queries/query.js +4 -1
  453. package/r-bridge/data/data.d.ts +1435 -450
  454. package/r-bridge/data/data.js +1063 -478
  455. package/r-bridge/data/get.d.ts +1 -6
  456. package/r-bridge/data/get.js +0 -32
  457. package/r-bridge/data/types.d.ts +3 -0
  458. package/r-bridge/init.d.ts +7 -2
  459. package/r-bridge/init.js +10 -5
  460. package/r-bridge/lang-4.x/ast/model/model.d.ts +10 -8
  461. package/r-bridge/lang-4.x/ast/model/model.js +9 -10
  462. package/r-bridge/lang-4.x/ast/model/nodes/r-access.d.ts +4 -4
  463. package/r-bridge/lang-4.x/ast/model/nodes/r-argument.d.ts +5 -5
  464. package/r-bridge/lang-4.x/ast/model/nodes/r-argument.js +1 -1
  465. package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.d.ts +4 -4
  466. package/r-bridge/lang-4.x/ast/model/nodes/r-break.d.ts +4 -4
  467. package/r-bridge/lang-4.x/ast/model/nodes/r-comment.d.ts +4 -4
  468. package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.d.ts +4 -4
  469. package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.d.ts +4 -4
  470. package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.d.ts +6 -6
  471. package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.js +2 -2
  472. package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.d.ts +4 -4
  473. package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.d.ts +4 -4
  474. package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.d.ts +4 -4
  475. package/r-bridge/lang-4.x/ast/model/nodes/r-logical.d.ts +4 -4
  476. package/r-bridge/lang-4.x/ast/model/nodes/r-next.d.ts +4 -4
  477. package/r-bridge/lang-4.x/ast/model/nodes/r-number.d.ts +4 -4
  478. package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.d.ts +5 -5
  479. package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.js +1 -1
  480. package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.d.ts +6 -4
  481. package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.js +4 -0
  482. package/r-bridge/lang-4.x/ast/model/nodes/r-project.d.ts +4 -3
  483. package/r-bridge/lang-4.x/ast/model/nodes/r-project.js +4 -3
  484. package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.d.ts +4 -4
  485. package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +5 -5
  486. package/r-bridge/lang-4.x/ast/model/nodes/r-string.js +1 -1
  487. package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.d.ts +5 -5
  488. package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.js +1 -1
  489. package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.d.ts +4 -4
  490. package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.d.ts +4 -4
  491. package/r-bridge/lang-4.x/ast/model/processing/decorate.d.ts +4 -20
  492. package/r-bridge/lang-4.x/ast/model/processing/decorate.js +4 -43
  493. package/r-bridge/lang-4.x/ast/model/processing/node-id.d.ts +11 -0
  494. package/r-bridge/lang-4.x/ast/model/processing/node-id.js +18 -3
  495. package/r-bridge/lang-4.x/ast/model/processing/role.d.ts +0 -5
  496. package/r-bridge/lang-4.x/ast/model/processing/role.js +0 -13
  497. package/r-bridge/lang-4.x/ast/model/versions.d.ts +2 -0
  498. package/r-bridge/lang-4.x/ast/model/versions.js +3 -1
  499. package/r-bridge/lang-4.x/ast/parser/json/parser.js +3 -2
  500. package/r-bridge/lang-4.x/ast/parser/main/internal/expression/normalize-expression.d.ts +2 -2
  501. package/r-bridge/lang-4.x/ast/parser/main/internal/expression/normalize-expression.js +2 -2
  502. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-argument.d.ts +1 -1
  503. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-argument.js +1 -1
  504. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-call.d.ts +1 -1
  505. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-call.js +10 -2
  506. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-definition.d.ts +2 -2
  507. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-definition.js +2 -2
  508. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-parameter.d.ts +1 -1
  509. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-parameter.js +1 -1
  510. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-break.d.ts +3 -1
  511. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-break.js +3 -1
  512. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-for.d.ts +5 -1
  513. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-for.js +5 -1
  514. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-next.d.ts +3 -1
  515. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-next.js +3 -1
  516. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-repeat.d.ts +1 -1
  517. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-repeat.js +1 -1
  518. package/r-bridge/lang-4.x/ast/parser/main/internal/normalize-access.d.ts +1 -1
  519. package/r-bridge/lang-4.x/ast/parser/main/internal/normalize-access.js +1 -1
  520. package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-binary.js +39 -2
  521. package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-unary.d.ts +1 -1
  522. package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-unary.js +1 -1
  523. package/r-bridge/lang-4.x/ast/parser/main/internal/structure/normalize-single-node.d.ts +1 -1
  524. package/r-bridge/lang-4.x/ast/parser/main/internal/structure/normalize-single-node.js +2 -1
  525. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-symbol.d.ts +1 -1
  526. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-symbol.js +1 -1
  527. package/r-bridge/lang-4.x/ast/parser/main/normalize-meta.d.ts +2 -2
  528. package/r-bridge/lang-4.x/ast/parser/main/normalize-meta.js +2 -2
  529. package/r-bridge/lang-4.x/convert-values.d.ts +6 -0
  530. package/r-bridge/lang-4.x/convert-values.js +6 -0
  531. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.d.ts +2 -2
  532. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +2 -2
  533. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.d.ts +1 -1
  534. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +15 -2
  535. package/r-bridge/parser.d.ts +1 -1
  536. package/r-bridge/parser.js +1 -1
  537. package/r-bridge/retriever.d.ts +0 -21
  538. package/r-bridge/retriever.js +5 -63
  539. package/r-bridge/roxygen2/documentation-provider.d.ts +2 -2
  540. package/r-bridge/roxygen2/documentation-provider.js +2 -2
  541. package/r-bridge/shell-executor.js +1 -1
  542. package/r-bridge/shell.d.ts +4 -4
  543. package/r-bridge/shell.js +58 -35
  544. package/reconstruct/inline/source-inline-map.d.ts +15 -22
  545. package/reconstruct/inline/source-inline-map.js +63 -70
  546. package/reconstruct/reconstruct.d.ts +1 -1
  547. package/reconstruct/reconstruct.js +5 -2
  548. package/search/flowr-search-builder.d.ts +17 -16
  549. package/search/flowr-search-builder.js +9 -8
  550. package/search/flowr-search-filters.d.ts +1 -13
  551. package/search/flowr-search-filters.js +4 -13
  552. package/search/search-executor/search-enrichers.d.ts +2 -2
  553. package/search/search-executor/search-enrichers.js +3 -3
  554. package/search/search-executor/search-generators.d.ts +0 -3
  555. package/search/search-executor/search-transformer.d.ts +0 -3
  556. package/slicing/criterion/parse.d.ts +24 -20
  557. package/slicing/criterion/parse.js +34 -24
  558. package/slicing/static/slice-call.d.ts +1 -1
  559. package/slicing/static/slice-call.js +28 -9
  560. package/slicing/static/static-slicer.js +3 -4
  561. package/slicing/static/visiting-queue.d.ts +3 -1
  562. package/slicing/static/visiting-queue.js +25 -14
  563. package/util/accessor.d.ts +22 -0
  564. package/util/accessor.js +3 -0
  565. package/util/assert.d.ts +14 -8
  566. package/util/assert.js +25 -8
  567. package/util/collections/arrays.d.ts +11 -7
  568. package/util/collections/arrays.js +14 -14
  569. package/util/collections/defaultmap.d.ts +5 -0
  570. package/util/collections/defaultmap.js +14 -0
  571. package/util/diff-graph.d.ts +1 -2
  572. package/util/diff-graph.js +0 -1
  573. package/util/files.d.ts +20 -34
  574. package/util/files.js +36 -51
  575. package/util/glob.js +1 -1
  576. package/util/json.d.ts +0 -7
  577. package/util/json.js +0 -15
  578. package/util/logic.d.ts +5 -0
  579. package/util/logic.js +6 -1
  580. package/util/mermaid/dfg.d.ts +2 -1
  581. package/util/mermaid/dfg.js +7 -6
  582. package/util/mermaid/mermaid.d.ts +1 -0
  583. package/util/mermaid/mermaid.js +1 -0
  584. package/util/numbers.d.ts +0 -5
  585. package/util/numbers.js +0 -9
  586. package/util/objects.d.ts +3 -3
  587. package/util/objects.js +3 -3
  588. package/util/quads.d.ts +2 -2
  589. package/util/quads.js +1 -1
  590. package/util/r-base-packages.d.ts +14 -1
  591. package/util/r-base-packages.js +21 -1
  592. package/util/r-package-urls.d.ts +33 -0
  593. package/util/r-package-urls.js +79 -0
  594. package/util/r-version.d.ts +8 -2
  595. package/util/r-version.js +8 -2
  596. package/util/range.d.ts +173 -54
  597. package/util/range.js +221 -75
  598. package/util/record.d.ts +7 -6
  599. package/util/record.js +7 -6
  600. package/util/simple-df/dfg-ascii.js +6 -6
  601. package/util/summarizer.d.ts +2 -15
  602. package/util/summarizer.js +0 -15
  603. package/util/text/args.d.ts +2 -2
  604. package/util/text/args.js +2 -2
  605. package/util/text/playground-link.d.ts +3 -23
  606. package/util/text/playground-link.js +10 -10
  607. package/util/text/r-highlight.d.ts +20 -0
  608. package/util/text/r-highlight.js +171 -0
  609. package/util/text/strings.d.ts +6 -0
  610. package/util/text/strings.js +11 -2
  611. package/util/version.js +2 -2
  612. package/cli/run-script.d.ts +0 -7
  613. package/cli/run-script.js +0 -17
  614. package/project/sigdb/signature-match.d.ts +0 -18
  615. package/project/sigdb/signature-match.js +0 -32
  616. package/util/text/text.d.ts +0 -5
  617. package/util/text/text.js +0 -24
@@ -6,6 +6,7 @@ exports.namespacePlotFunctions = namespacePlotFunctions;
6
6
  exports.statedSignatures = statedSignatures;
7
7
  exports.statedSignatureOf = statedSignatureOf;
8
8
  exports.getDefaultProcessor = getDefaultProcessor;
9
+ const function_semantics_1 = require("../fn/function-semantics");
9
10
  const identify_link_to_last_call_relation_1 = require("../../queries/catalog/call-context-query/identify-link-to-last-call-relation");
10
11
  const type_1 = require("../../r-bridge/lang-4.x/ast/model/type");
11
12
  const cascade_action_1 = require("../../queries/catalog/call-context-query/cascade-action");
@@ -19,6 +20,7 @@ const nse_1 = require("../internal/process/functions/call/nse");
19
20
  const data_masking_functions_1 = require("./data-masking-functions");
20
21
  const built_in_props_1 = require("./built-in-props");
21
22
  const r_base_packages_1 = require("../../util/r-base-packages");
23
+ const r_base_primitives_generated_1 = require("../../data/r-base-primitives.generated");
22
24
  const r_base_packages_generated_1 = require("../../data/r-base-packages.generated");
23
25
  const r_value_1 = require("../eval/values/r-value");
24
26
  /** Which stack environment an env-returning/-transforming builtin denotes (see {@link StackEnvBuiltins}). */
@@ -263,7 +265,7 @@ exports.GgPlotAddons = [
263
265
  const PlotAddons = exports.GraphicsPlotAddons.concat(exports.GgPlotImplicitAddons, ...exports.PlotFunctionsWithAddParam);
264
266
  /** The packages exporting magrittr's `%>%`: the tidyverse and friends re-export the very same function. */
265
267
  const MagrittrPipePackages = ["magrittr" /* PkgName.Magrittr */, "dplyr" /* PkgName.Dplyr */, "purrr" /* PkgName.Purrr */, "stringr" /* PkgName.Stringr */, "tibble" /* PkgName.Tibble */,
266
- "tidyr" /* PkgName.TidyR */, "readr" /* PkgName.Readr */, "testthat" /* PkgName.Testthat */, "magick" /* PkgName.Magick */, "promises" /* PkgName.Promises */];
268
+ "tidyr" /* PkgName.TidyR */, "testthat" /* PkgName.Testthat */, "magick" /* PkgName.Magick */, "promises" /* PkgName.Promises */];
267
269
  /** The packages re-exporting rlang's tidy-evaluation helpers unchanged. */
268
270
  const TidyEvalPackages = ["rlang" /* PkgName.Rlang */, "dplyr" /* PkgName.Dplyr */, "ggplot2" /* PkgName.GgPlot2 */];
269
271
  const SigAtomicBinOp = [['e1', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Atomic], ['e2', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Atomic]];
@@ -342,8 +344,8 @@ function statedSignatures(definitions = exports.DefaultBuiltinConfig) {
342
344
  const entry = {
343
345
  pkg,
344
346
  params: declared.length > 0 ? declared.map(([param]) => param).join(', ') : undefined,
345
- props: built_in_props_1.CallProps.labels(info),
346
- args: declared.length > 0 ? declared.map(([param, props]) => [param, built_in_props_1.ArgProps.words(props)]) : undefined
347
+ props: function_semantics_1.FunctionSemantics.call.props.labels(info),
348
+ args: declared.length > 0 ? declared.map(([param, props]) => [param, function_semantics_1.FunctionSemantics.call.argument.words(props)]) : undefined
347
349
  };
348
350
  const known = stated.get(name) ?? [];
349
351
  /* the last definition for a package is the one that resolves, so it is the one stated */
@@ -414,6 +416,40 @@ function markGenerics(definitions) {
414
416
  }
415
417
  return out;
416
418
  }
419
+ /**
420
+ * Label every name the R language itself provides {@link CallProp.Primitive}, splitting an entry that mixes
421
+ * them with names R does not (one definition covers `base::stopifnot` and `assertthat::assert_that`, and only
422
+ * the first is R's). {@link RBasePrimitives} is read out of a real R, so this states what that R has.
423
+ */
424
+ function markPrimitives(definitions) {
425
+ const out = [];
426
+ for (const def of definitions) {
427
+ if (def.type !== 'function') {
428
+ out.push(def);
429
+ continue;
430
+ }
431
+ let primitives = undefined;
432
+ let rest = undefined;
433
+ for (const name of def.names) {
434
+ /* the set is base's own, so a name of another namespace is not the one R provides */
435
+ if (r_base_primitives_generated_1.RBasePrimitives.has(identifier_1.Identifier.getName(name)) && (identifier_1.Identifier.getNamespace(name) ?? "base" /* PkgName.Base */) === "base" /* PkgName.Base */) {
436
+ (primitives ??= []).push(name);
437
+ }
438
+ else {
439
+ (rest ??= []).push(name);
440
+ }
441
+ }
442
+ if (primitives === undefined) {
443
+ out.push(def);
444
+ continue;
445
+ }
446
+ out.push({ ...def, names: primitives, config: { ...def.config, props: (def.config?.props ?? 0) | built_in_props_1.CallProp.Primitive } });
447
+ if (rest !== undefined) {
448
+ out.push({ ...def, names: rest });
449
+ }
450
+ }
451
+ return out;
452
+ }
417
453
  /**
418
454
  * Whether the call names a plot function that can append to an existing plot, and if so whether its `add`
419
455
  * argument says so; `undefined` for a call that has no such argument at all.
@@ -476,7 +512,7 @@ exports.WrittenBuiltinDefinitions = [
476
512
  { type: 'constant', names: [identifier_1.Identifier.from(['month.abb', "base" /* PkgName.Base */])], value: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], assumePrimitive: true },
477
513
  { type: 'constant', names: [identifier_1.Identifier.from(['month.name', "base" /* PkgName.Base */])], value: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], assumePrimitive: true },
478
514
  /* formula: operands are model terms/columns, not variables */
479
- { type: 'function', names: [identifier_1.Identifier.from(['~', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { markArgsAsMasked: known_call_handling_1.NseArguments.All }, assumePrimitive: false },
515
+ { type: 'function', names: [identifier_1.Identifier.from(['~', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { markArgsAsMasked: known_call_handling_1.NseArguments.All, sig: [['y', built_in_props_1.ArgProp.Nse], ['model', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Nse]] }, assumePrimitive: false },
480
516
  /* cohortBuilder has a `filter` too, and built-ins go by name, so dplyr's entry below wins in the environment
481
517
  while this one still states what cohortBuilder's does */
482
518
  { type: 'function', names: [identifier_1.Identifier.from(['filter', "cohortBuilder" /* PkgName.CohortBuilder */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Pure, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
@@ -496,7 +532,7 @@ exports.WrittenBuiltinDefinitions = [
496
532
  { type: 'function', names: [identifier_1.Identifier.from(['?', "utils" /* PkgName.Utils */])], /* shows the help page of what it is given */
497
533
  processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { sig: [['e1', built_in_props_1.ArgProp.Nse], ['e2', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
498
534
  /* the result follows from how large the argument is, not from what is in it, so it is bounded (`Narrows`) */
499
- { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['length', 'lengths', 'nrow', 'ncol', 'NROW', 'NCOL', 'dim', 'is.null', 'is.factor', 'is.vector', 'is.matrix', 'is.data.frame', 'is.numeric', 'is.character', 'is.logical', 'is.function', 'is.list']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: SigShape }, assumePrimitive: true },
535
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['length', 'lengths', 'nrow', 'ncol', 'NROW', 'NCOL', 'dim', 'is.null', 'is.factor', 'is.vector', 'is.matrix', 'is.data.frame', 'is.numeric', 'is.character', 'is.logical', 'is.function', 'is.list', 'is.double', 'is.integer', 'is.complex', 'is.raw', 'is.single', 'is.ordered']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: SigShape }, assumePrimitive: true },
500
536
  /* the names and the class are read off the argument, so whatever it carries can show up in the result */
501
537
  { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['dimnames', 'names', 'rownames', 'colnames', 'class']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigShape }, assumePrimitive: true },
502
538
  { type: 'function', names: [identifier_1.Identifier.from(['nchar', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: SigShape }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn },
@@ -521,7 +557,8 @@ exports.WrittenBuiltinDefinitions = [
521
557
  'cumsum', 'cumprod', 'cummax', 'cummin', 'diff', 'sort', 'rev', 'unique', 'duplicated', 't',
522
558
  /* coercion */
523
559
  'as.character', 'as.integer', 'as.logical', 'as.numeric', 'as.matrix', 'as.data.frame',
524
- 'as.factor', 'as.raw', 'as.list', 'as.array', 'as.double', 'as.complex', 'factor'
560
+ 'as.factor', 'as.raw', 'as.list', 'as.array', 'as.double', 'as.complex', 'factor',
561
+ 'as.single', 'as.ordered'
525
562
  ]),
526
563
  ...identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['head', 'tail']),
527
564
  ...identifier_1.Identifier.fromAll("stats" /* PkgName.Stats */, ['var', 'sd', 'median', 'quantile']),
@@ -540,7 +577,11 @@ exports.WrittenBuiltinDefinitions = [
540
577
  { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['basename', 'dirname']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn },
541
578
  { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Re', 'Im', 'Mod', 'Arg', 'Conj']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['z', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
542
579
  /* the vector constructors take the length of the result, not its contents */
543
- { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['numeric', 'character', 'logical', 'integer', 'double', 'raw']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['length', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
580
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['numeric', 'character', 'logical', 'integer', 'double', 'raw', 'single']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['length', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
581
+ { type: 'function', names: [identifier_1.Identifier.from(['vector', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['length', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
582
+ { type: 'function', names: [identifier_1.Identifier.from(['mat.or.vec', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['nr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['nc', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
583
+ { type: 'function', names: [identifier_1.Identifier.from(['as.vector', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: true },
584
+ { type: 'function', names: [identifier_1.Identifier.from(['rep_len', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['length.out', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
544
585
  { type: 'function', names: [identifier_1.Identifier.from(['na.omit', "stats" /* PkgName.Stats */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['object', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
545
586
  /* two data arguments, under the names R gives them */
546
587
  { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['xor', 'crossprod', 'tcrossprod', 'intersect', 'union', 'setdiff']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigXY }, assumePrimitive: true },
@@ -561,7 +602,7 @@ exports.WrittenBuiltinDefinitions = [
561
602
  type: 'function',
562
603
  names: [
563
604
  ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, [
564
- 'rep', 'rep.int', 'seq', 'seq.int', 'append', 'complex',
605
+ 'rep', 'rep.int', 'seq.int', 'append', 'complex',
565
606
  'matrix', 'array', 'table', 'prop.table', 'colSums', 'rowSums', 'colMeans', 'rowMeans',
566
607
  'solve', 'det', 'eigen', 'aperm',
567
608
  /* string */
@@ -580,6 +621,8 @@ exports.WrittenBuiltinDefinitions = [
580
621
  { type: 'function', names: [...identifier_1.Identifier.fromAll("stats" /* PkgName.Stats */, ['anova', 'ansari.test', 'aov', 'bartlett.test', 'binom.test', 'Box.test', 'chisq.test', 'cor.test', 'fisher.test', 'fligner.test', 'friedman.test', 'kruskal.test', 'ks.test', 'manova', 'mantelhaen.test', 'mauchly.test', 'mcnemar.test', 'mood.test', 'oneway.test', 'pairwise.prop.test', 'pairwise.t.test', 'pairwise.wilcox.test', 'poisson.test', 'PP.test', 'prop.test', 'prop.trend.test', 'quade.test', 'shapiro.test', 't.test', 'TukeyHSD', 'var.test', 'wilcox.test']), ...identifier_1.Identifier.fromAll("car" /* PkgName.Car */, ['Anova', 'durbinWatsonTest', 'leveneTest', 'linearHypothesis', 'ncvTest', 'outlierTest']), ...identifier_1.Identifier.fromAll("lmtest" /* PkgName.LmTest */, ['bgtest', 'bptest', 'coeftest', 'dwtest', 'gqtest', 'lrtest', 'raintest', 'resettest', 'waldtest']), ...identifier_1.Identifier.fromAll("nortest" /* PkgName.NorTest */, ['ad.test', 'cvm.test', 'lillie.test', 'pearson.test', 'sf.test']), ...identifier_1.Identifier.fromAll("tseries" /* PkgName.Tseries */, ['adf.test', 'jarque.bera.test', 'kpss.test', 'pp.test', 'runs.test', 'white.test']), ...identifier_1.Identifier.fromAll("rstatix" /* PkgName.Rstatix */, ['anova_test', 'chisq_test', 'cor_test', 'kruskal_test', 'shapiro_test', 't_test', 'wilcox_test']), identifier_1.Identifier.from(['glht', "multcomp" /* PkgName.Multcomp */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Statistics] }, assumePrimitive: false },
581
622
  /* indices and index sequences: bounded by the shape of what they are handed, never by its contents */
582
623
  { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['which', 'which.max', 'which.min', 'seq_len', 'seq_along']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows] }, assumePrimitive: true },
624
+ /* `seq` dispatches, so `...` really is all it declares; the named formals belong to `seq.default`/`seq.int` */
625
+ { type: 'function', names: [identifier_1.Identifier.from(['seq', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
583
626
  /* they open a device that writes the plot to the file they are given, under the name each of them uses */
584
627
  { type: 'function', names: [...identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['png', 'jpeg', 'bmp', 'tiff', 'svg', 'cairo_pdf']), identifier_1.Identifier.from(['raster_pdf', "rasterpdf" /* PkgName.RasterPdf */]), ...identifier_1.Identifier.fromAll("ragg" /* PkgName.Ragg */, ['agg_png', 'agg_jpeg', 'agg_tiff', 'agg_ppm', 'agg_webp'])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['filename', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['width', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['height', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
585
628
  { type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['pdf', 'postscript', 'xfig', 'bitmap', 'pictex']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['type', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['height', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['width', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
@@ -797,14 +840,14 @@ exports.WrittenBuiltinDefinitions = [
797
840
  { type: 'function', names: [identifier_1.Identifier.from(['new_handle', "curl" /* PkgName.Curl */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Opens, built_in_props_1.SemanticCallTag.Network], sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
798
841
  { type: 'function', names: [identifier_1.Identifier.from(['getURL', "RCurl" /* PkgName.Rcurl */]), identifier_1.Identifier.from(['getForm', "rBDAT" /* PkgName.Rbdat */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
799
842
  { type: 'function', names: identifier_1.Identifier.fromAll("xml2" /* PkgName.Xml2 */, ['read_html', 'read_xml']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['encoding', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
800
- { type: 'function', names: [identifier_1.Identifier.from(['download_html', "rvest" /* PkgName.Rvest */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
843
+ { type: 'function', names: identifier_1.Identifier.fromAll("xml2" /* PkgName.Xml2 */, ['download_html', 'download_xml']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
801
844
  /* `html_nodes`/`html_text` take a document, but rvest lets that be an address it fetches first */
802
845
  { type: 'function', names: identifier_1.Identifier.fromAll("rvest" /* PkgName.Rvest */, ['html_nodes', 'html_text']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
803
846
  { type: 'function', names: [identifier_1.Identifier.from(['read_html_live', "rvest" /* PkgName.Rvest */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
804
847
  { type: 'function', names: identifier_1.Identifier.fromAll("xfun" /* PkgName.Xfun */, ['url_filename', 'url_accessible', 'url_destination']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
805
848
  { type: 'function', names: identifier_1.Identifier.fromAll("googledrive" /* PkgName.GoogleDrive */, ['drive_get', 'drive_download', 'shared_drive_get', 'shared_drive_rm']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
806
849
  { type: 'function', names: identifier_1.Identifier.fromAll("aws.s3" /* PkgName.AwsS3 */, ['s3read_using', 's3write_using']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['FUN', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['object', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
807
- { type: 'function', names: [identifier_1.Identifier.from(['storage_download', "googleCloudStorageR" /* PkgName.GoogleCloudStorageR */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['object_name', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['saveToDisk', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
850
+ { type: 'function', names: [identifier_1.Identifier.from(['gcs_get_object', "googleCloudStorageR" /* PkgName.GoogleCloudStorageR */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['object_name', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['saveToDisk', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
808
851
  { type: 'function', names: [identifier_1.Identifier.from(['AnnotationHub', "AnnotationHub" /* PkgName.AnnotationHub */]), identifier_1.Identifier.from(['ExperimentHub', "ExperimentHub" /* PkgName.ExperimentHub */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['hub', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
809
852
  { type: 'function', names: identifier_1.Identifier.fromAll("devtools" /* PkgName.Devtools */, ['source_url', 'source_gist']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
810
853
  { type: 'function', names: [identifier_1.Identifier.from(['github_pull', "remotes" /* PkgName.Remotes */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['pull', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
@@ -834,10 +877,10 @@ exports.WrittenBuiltinDefinitions = [
834
877
  { type: 'function', names: identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['write.csv', 'write.csv2']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
835
878
  { type: 'function', names: identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['read.table', 'read.delim', 'read.csv2', 'read.delim2']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
836
879
  { type: 'function', names: [identifier_1.Identifier.from(['download.file', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['destfile', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
837
- { type: 'function', names: [identifier_1.Identifier.from(['jitter', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Random] }, assumePrimitive: true },
880
+ { type: 'function', names: [identifier_1.Identifier.from(['jitter', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Random], sig: [['x', built_in_props_1.ArgProp.NoDefault], ['factor', 0], ['amount', 0]] }, assumePrimitive: true },
838
881
  { type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['sample', 'sample.int']), ...identifier_1.Identifier.fromAll("stats" /* PkgName.Stats */, ['runif', 'rnorm', 'rbinom', 'rpois', 'rexp', 'rgamma', 'rbeta', 'rcauchy', 'rchisq', 'rgeom', 'rhyper', 'rlnorm', 'rlogis', 'rmultinom', 'rnbinom', 'rsignrank', 'rt', 'rf', 'rweibull', 'rwilcox', 'arima.sim', 'simulate', 'kmeans'])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Random] }, assumePrimitive: false },
839
- { type: 'function', names: [identifier_1.Identifier.from(['expression', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Lang }, assumePrimitive: true },
840
- { type: 'function', names: [identifier_1.Identifier.from(['rm', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Rm, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope }, assumePrimitive: true },
882
+ { type: 'function', names: [identifier_1.Identifier.from(['expression', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Lang, sig: [['...', 0]] }, assumePrimitive: true },
883
+ { type: 'function', names: [identifier_1.Identifier.from(['rm', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Rm, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, sig: [['...', 0], ['list', 0], ['pos', 0], ['envir', 0], ['inherits', 0]] }, assumePrimitive: true },
841
884
  /* they read the state they set, so both bits apply */
842
885
  { type: 'function', names: [identifier_1.Identifier.from(['options', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Ambient | built_in_props_1.CallProp.Configures, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
843
886
  /* `Sys.putenv` is defunct in current R, older scripts still use it */
@@ -857,21 +900,20 @@ exports.WrittenBuiltinDefinitions = [
857
900
  { type: 'function', names: [identifier_1.Identifier.from(['mirai_map', "mirai" /* PkgName.Mirai */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: '.f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure | built_in_props_1.CallProp.Concurrent, sig: [['.x', built_in_props_1.ArgProp.Value], ['.f', built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
858
901
  { type: 'function', names: [identifier_1.Identifier.from(['daemons', "mirai" /* PkgName.Mirai */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures | built_in_props_1.CallProp.Concurrent, tags: [built_in_props_1.SemanticCallTag.Process], sig: [['n', built_in_props_1.ArgProp.Value], ['url', built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
859
902
  { type: 'function', names: identifier_1.Identifier.fromAll("callr" /* PkgName.Callr */, ['r_bg', 'rcmd_bg']), processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'func', unquoteFunction: true, props: built_in_props_1.CallProp.Concurrent, tags: [built_in_props_1.SemanticCallTag.Process, built_in_props_1.SemanticCallTag.Opens], sig: [['func', built_in_props_1.ArgProp.Callee], ['args', built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
860
- { type: 'function', names: identifier_1.Identifier.fromAll("RcppParallel" /* PkgName.RcppParallel */, ['parallelFor', 'parallelReduce']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Concurrent | built_in_props_1.CallProp.Ffi, sig: [['begin', built_in_props_1.ArgProp.Value], ['end', built_in_props_1.ArgProp.Value], ['worker', built_in_props_1.ArgProp.Callee], ['grainSize', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
861
903
  { type: 'function', names: [identifier_1.Identifier.from(['setThreadOptions', "RcppParallel" /* PkgName.RcppParallel */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures | built_in_props_1.CallProp.Concurrent, sig: [['numThreads', built_in_props_1.ArgProp.Value], ['stackSize', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
862
904
  { type: 'function', names: [identifier_1.Identifier.from(['mapply', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['Mapply', "functools" /* PkgName.Functools */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['FUN', built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
863
905
  { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['lapply', 'sapply', 'vapply']), processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['X', built_in_props_1.ArgProp.Value], ['FUN', built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
864
906
  /* `vapply` takes the shape of the result before its `...`, so naming it keeps the positions honest */
865
907
  { overrides: true, type: 'function', names: [identifier_1.Identifier.from(['vapply', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['X', built_in_props_1.ArgProp.Value], ['FUN', built_in_props_1.ArgProp.Callee], ['FUN.VALUE', built_in_props_1.ArgProp.Shape], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
866
908
  { type: 'function', names: identifier_1.Identifier.fromAll("functools" /* PkgName.Functools */, ['Lapply', 'Sapply', 'Vapply']), processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
867
- { type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['apply', 'tapply']), identifier_1.Identifier.from(['Tapply', "functools" /* PkgName.Functools */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 2, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
909
+ { type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['apply', 'tapply']), identifier_1.Identifier.from(['Tapply', "functools" /* PkgName.Functools */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 2, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['X', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
868
910
  { type: 'function', names: [identifier_1.Identifier.from(['Map', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['f', built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
869
911
  { type: 'function', names: [identifier_1.Identifier.from(['Filter', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['f', built_in_props_1.ArgProp.Callee], ['x', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
870
912
  { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Find', 'Position']), processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['f', built_in_props_1.ArgProp.Callee], ['x', built_in_props_1.ArgProp.Value], ['right', built_in_props_1.ArgProp.Flag], ['nomatch', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
871
913
  { type: 'function', names: [identifier_1.Identifier.from(['Reduce', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['f', built_in_props_1.ArgProp.Callee]] }, assumePrimitive: false },
872
- { type: 'function', names: [identifier_1.Identifier.from(['rapply', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
914
+ { type: 'function', names: [identifier_1.Identifier.from(['rapply', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['object', built_in_props_1.ArgProp.NoDefault], ['f', built_in_props_1.ArgProp.NoDefault], ['classes', 0], ['deflt', 0], ['how', 0], ['...', 0]] }, assumePrimitive: false },
873
915
  { type: 'function', names: [identifier_1.Identifier.from(['print', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Generic, tags: [built_in_props_1.SemanticCallTag.Prints], sig: [['x', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced], ['...', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
874
- { type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['message', 'warning']), 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 */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Prints], sig: [['...', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
916
+ { type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['message', 'warning']), identifier_1.Identifier.from(['warn', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['info', "msgr" /* PkgName.Msgr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Prints], sig: [['...', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
875
917
  { type: 'function', names: [identifier_1.Identifier.from(['invisible', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, props: built_in_props_1.CallProp.Pure | built_in_props_1.CallProp.Invisible, sig: [['x', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
876
918
  { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['force', 'identity']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
877
919
  // graphics base
@@ -890,7 +932,7 @@ exports.WrittenBuiltinDefinitions = [
890
932
  /* they put what the device holds on disk */
891
933
  { type: 'function', names: [identifier_1.Identifier.from(['image_write', "magick" /* PkgName.Magick */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: LinkToLastPlot, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['image', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: true },
892
934
  { type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['dev.off', 'graphics.off']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: LinkToLastPlot, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.Closes, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
893
- { type: 'function', names: ['('], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Group },
935
+ { type: 'function', names: ['('], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Group },
894
936
  { type: 'function', names: [identifier_1.Identifier.from(['load_all', "pkgload" /* PkgName.PkgLoad */]), identifier_1.Identifier.from(['load_all', "devtools" /* PkgName.Devtools */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Scope, sig: [['path', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
895
937
  { type: 'function', names: [identifier_1.Identifier.from(['setwd', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Ambient | built_in_props_1.CallProp.Configures, sig: [['dir', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
896
938
  { type: 'function', names: [identifier_1.Identifier.from(['set.seed', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.Random], sig: [['seed', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
@@ -920,7 +962,7 @@ exports.WrittenBuiltinDefinitions = [
920
962
  { type: 'function', names: [identifier_1.Identifier.from(['evalText', "SoDA" /* PkgName.Soda */]), identifier_1.Identifier.from(['evalText', "FastUtils" /* PkgName.FastUtils */])], processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: true, keepEnvironment: true, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['text', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
921
963
  { type: 'function', names: [identifier_1.Identifier.from(['cat', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes, built_in_props_1.SemanticCallTag.Prints], sig: [['...', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
922
964
  { type: 'function', names: [identifier_1.Identifier.from(['switch', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { alternativeArgsFrom: 1, useAsProcessor: built_in_proc_name_1.BuiltInProcName.Switch, props: built_in_props_1.CallProp.Pure, sig: [['EXPR', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
923
- { type: 'function', names: ['return'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { cfg: 1 /* ExitPointType.Return */, keepArgumentOut: true, useAsProcessor: built_in_proc_name_1.BuiltInProcName.Return, props: built_in_props_1.CallProp.Pure, sig: [['value', built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true },
965
+ { type: 'function', names: ['return'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { cfg: 1 /* ExitPointType.Return */, keepArgumentOut: true, useAsProcessor: built_in_proc_name_1.BuiltInProcName.Return, props: built_in_props_1.CallProp.Pure, sig: [['value', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true },
924
966
  {
925
967
  type: 'function',
926
968
  names: [
@@ -935,35 +977,40 @@ exports.WrittenBuiltinDefinitions = [
935
977
  },
936
978
  /* the block is evaluated whatever happens, the handlers only when something does, and an error keeps the value from coming back */
937
979
  { type: 'function', names: [identifier_1.Identifier.from(['try', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: {}, sig: [['expr', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
938
- { type: 'function', names: [identifier_1.Identifier.from(['tryCatch', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['tryCatchLog', "tryCatchLog" /* PkgName.TryCatchLog */])], processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: { error: 'error', finally: 'finally' }, sig: [['expr', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['error', built_in_props_1.ArgProp.Callee], ['finally', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
939
- { type: 'function', names: [identifier_1.Identifier.from(['stopifnot', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['assert_that', "assertthat" /* PkgName.AssertThat */])], processor: built_in_proc_name_1.BuiltInProcName.StopIfNot, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Throws }, assumePrimitive: false },
980
+ { type: 'function', names: [identifier_1.Identifier.from(['tryCatch', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['tryCatchLog', "tryCatchLog" /* PkgName.TryCatchLog */])], processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: { error: 'error', finally: 'finally' }, sig: [['expr', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['...', built_in_props_1.ArgProp.Callee], ['finally', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
981
+ { type: 'function', names: [identifier_1.Identifier.from(['withCallingHandlers', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', aborts: false, handlers: {}, sig: [['expr', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['...', built_in_props_1.ArgProp.Callee]] }, assumePrimitive: true },
982
+ { type: 'function', names: [identifier_1.Identifier.from(['stopifnot', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['assert_that', "assertthat" /* PkgName.AssertThat */])], processor: built_in_proc_name_1.BuiltInProcName.StopIfNot, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Throws, sig: [['...', 0], ['exprs', built_in_props_1.ArgProp.NoDefault], ['exprObject', built_in_props_1.ArgProp.NoDefault], ['local', 0]] }, assumePrimitive: false },
940
983
  { 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 },
941
984
  { type: 'function', names: ['next'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { cfg: 3 /* ExitPointType.Next */ }, assumePrimitive: false },
942
- { type: 'function', names: ['{'], processor: built_in_proc_name_1.BuiltInProcName.ExpressionList, config: {}, assumePrimitive: true },
985
+ { type: 'function', names: ['{'], processor: built_in_proc_name_1.BuiltInProcName.ExpressionList, config: { props: built_in_props_1.CallProp.Pure, sig: [['...', 0]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Group },
943
986
  { type: 'function', names: [identifier_1.Identifier.from(['source', "base" /* PkgName.Base */])],
944
987
  /* it hands back what it evaluated invisibly, so a top-level `source()` prints nothing of its own */
945
988
  processor: built_in_proc_name_1.BuiltInProcName.Source,
946
989
  config: { includeFunctionCall: true, forceFollow: false, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads],
947
990
  sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['local', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['echo', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
948
991
  { type: 'function', names: [identifier_1.Identifier.from(['sys.source', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Written]] }, assumePrimitive: false },
949
- { type: 'function', names: ['['], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
950
- { type: 'function', names: ['[['], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false, resolveField: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
992
+ { type: 'function', names: ['['], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
993
+ { type: 'function', names: ['[['], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false, resolveField: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
951
994
  /* the field is a name rather than a value, so it is never evaluated */
952
- { type: 'function', names: ['$', '@'], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: true, resolveField: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Value], ['name', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
953
- { type: 'function', names: ['::'], processor: built_in_proc_name_1.BuiltInProcName.NamespaceAccess, config: { internal: false }, assumePrimitive: true },
954
- { type: 'function', names: [':::'], processor: built_in_proc_name_1.BuiltInProcName.NamespaceAccess, config: { internal: true }, assumePrimitive: true },
955
- { type: 'function', names: ['if'], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: {}, assumePrimitive: true },
956
- { type: 'function', names: [identifier_1.Identifier.from(['ifelse', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['fifelse', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['IfElse', "functools" /* PkgName.Functools */])], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'test', yes: 'yes', no: 'no' }, props: built_in_props_1.CallProp.Pure }, assumePrimitive: true },
995
+ { type: 'function', names: ['$', '@'], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: true, resolveField: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['name', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
996
+ { type: 'function', names: ['::'], processor: built_in_proc_name_1.BuiltInProcName.NamespaceAccess, config: { internal: false, sig: [['pkg', built_in_props_1.ArgProp.NoDefault], ['name', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
997
+ { type: 'function', names: [':::'], processor: built_in_proc_name_1.BuiltInProcName.NamespaceAccess, config: { internal: true, sig: [['pkg', built_in_props_1.ArgProp.NoDefault], ['name', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
998
+ { type: 'function', names: ['if'], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { sig: [['cond', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Atomic], ['cons.expr', built_in_props_1.ArgProp.NoDefault], ['alt.expr', 0]] }, assumePrimitive: true },
999
+ { type: 'function', names: [identifier_1.Identifier.from(['ifelse', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['fifelse', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['IfElse', "functools" /* PkgName.Functools */])], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'test', yes: 'yes', no: 'no' }, props: built_in_props_1.CallProp.Pure, sig: [['test', built_in_props_1.ArgProp.NoDefault], ['yes', built_in_props_1.ArgProp.NoDefault], ['no', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
957
1000
  { type: 'function', names: [identifier_1.Identifier.from(['if_else', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'condition', yes: 'true', no: 'false' }, props: built_in_props_1.CallProp.Pure }, assumePrimitive: true },
958
- { type: 'function', names: [identifier_1.Identifier.from(['get', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['pos', built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
959
- { type: 'function', names: [identifier_1.Identifier.from(['get0', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['ifnotfound', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
960
- { type: 'function', names: [identifier_1.Identifier.from(['match.fun', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['FUN', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['descend', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
961
- { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['library', 'require']), processor: built_in_proc_name_1.BuiltInProcName.Library, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope }, assumePrimitive: false },
962
- { type: 'function', names: [identifier_1.Identifier.from(['attachNamespace', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { characterOnly: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope }, assumePrimitive: false },
963
- { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['requireNamespace', 'loadNamespace']), processor: built_in_proc_name_1.BuiltInProcName.Library, config: { namespaceOnly: true, characterOnly: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope }, assumePrimitive: false },
1001
+ { type: 'function', names: [identifier_1.Identifier.from(['get', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, evalHandler: built_in_eval_name_1.BuiltInEvalName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['pos', built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
1002
+ { type: 'function', names: [identifier_1.Identifier.from(['get0', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, evalHandler: built_in_eval_name_1.BuiltInEvalName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['ifnotfound', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
1003
+ { type: 'function', names: [identifier_1.Identifier.from(['ls', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['objects', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.EnvContents, config: { props: built_in_props_1.CallProp.Pure, sig: [['name', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['pos', built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['all.names', built_in_props_1.ArgProp.Flag], ['pattern', built_in_props_1.ArgProp.Value], ['sorted', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
1004
+ { type: 'function', names: [identifier_1.Identifier.from(['list2env', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.ListToEnv, config: { props: built_in_props_1.CallProp.Scope, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['envir', built_in_props_1.ArgProp.Written]] }, assumePrimitive: false },
1005
+ { type: 'function', names: [identifier_1.Identifier.from(['mget', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['ifnotfound', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
1006
+ { type: 'function', names: [identifier_1.Identifier.from(['exists', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, config: { returnsValue: false, props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['where', built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['frame', built_in_props_1.ArgProp.Flag], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
1007
+ { type: 'function', names: [identifier_1.Identifier.from(['match.fun', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, evalHandler: built_in_eval_name_1.BuiltInEvalName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['FUN', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['descend', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
1008
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['library', 'require']), processor: built_in_proc_name_1.BuiltInProcName.Library, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, sig: [['package', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
1009
+ { type: 'function', names: [identifier_1.Identifier.from(['attachNamespace', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { characterOnly: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, sig: [['ns', built_in_props_1.ArgProp.NoDefault], ['pos', 0], ['depends', 0], ['exclude', built_in_props_1.ArgProp.NoDefault], ['include.only', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: false },
1010
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['requireNamespace', 'loadNamespace']), processor: built_in_proc_name_1.BuiltInProcName.Library, config: { namespaceOnly: true, characterOnly: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, sig: [['package', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
964
1011
  { type: 'function', names: [identifier_1.Identifier.from(['from', "import" /* PkgName.Import */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { fromImports: true, props: built_in_props_1.CallProp.Scope }, assumePrimitive: false },
965
- { type: 'function', names: [identifier_1.Identifier.from(['use', "box" /* PkgName.Box */]), identifier_1.Identifier.from(['use', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { boxUse: true, props: built_in_props_1.CallProp.Scope }, assumePrimitive: false },
966
- { type: 'function', names: ['<-', '='], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { canBeReplacement: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible }, assumePrimitive: true },
1012
+ { type: 'function', names: [identifier_1.Identifier.from(['use', "box" /* PkgName.Box */]), identifier_1.Identifier.from(['use', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { boxUse: true, props: built_in_props_1.CallProp.Scope, sig: [['package', built_in_props_1.ArgProp.NoDefault], ['include.only', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: false },
1013
+ { type: 'function', names: ['<-', '='], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { canBeReplacement: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['x', built_in_props_1.ArgProp.NoDefault], ['value', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true },
967
1014
  { type: 'function', names: [identifier_1.Identifier.from([':=', "data.table" /* PkgName.DataTable */])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope }, assumePrimitive: true },
968
1015
  { type: 'function', names: [identifier_1.Identifier.from(['assign', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { targetVariable: true, mayHaveMoreArgs: true, environmentArg: 'envir', props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['x', built_in_props_1.ArgProp.Value], ['value', built_in_props_1.ArgProp.Value], ['pos', built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Written], ['inherits', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: true },
969
1016
  { type: 'function', names: [identifier_1.Identifier.from(['setValidity', "methods" /* PkgName.Methods */])],
@@ -972,14 +1019,14 @@ exports.WrittenBuiltinDefinitions = [
972
1019
  assignment: { targetVariable: true, mayHaveMoreArgs: true, environmentArg: 'envir' },
973
1020
  /* `setValidity(Class, method)` attributes the validator to the class it names, not to a binding */
974
1021
  classDecl: { system: "s4" /* ClassSystem.S4 */, nameArg: { idx: 0, name: 'Class' }, relation: 'validity' },
975
- props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible
1022
+ props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['Class', built_in_props_1.ArgProp.NoDefault], ['method', built_in_props_1.ArgProp.NoDefault], ['where', 0]]
976
1023
  }, assumePrimitive: true },
977
1024
  { type: 'function', names: [identifier_1.Identifier.from(['setIs', "methods" /* PkgName.Methods */])],
978
1025
  processor: built_in_proc_name_1.BuiltInProcName.ClassRelation,
979
1026
  config: {
980
1027
  /* `setIs(class1, class2)` states the same is-a relation `contains` does, after the fact */
981
1028
  classDecl: { system: "s4" /* ClassSystem.S4 */, nameArg: { idx: 0, name: 'class1' }, containsArg: { idx: 1, name: 'class2' }, relation: 'is' },
982
- props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible
1029
+ props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['class1', built_in_props_1.ArgProp.NoDefault], ['class2', built_in_props_1.ArgProp.NoDefault], ['test', 0], ['coerce', 0], ['replace', 0], ['by', 0], ['where', 0], ['classDef', 0], ['extensionObject', 0], ['doComplete', 0]]
983
1030
  }, assumePrimitive: true },
984
1031
  { type: 'function', names: [identifier_1.Identifier.from(['setMethod', "methods" /* PkgName.Methods */])],
985
1032
  processor: built_in_proc_name_1.BuiltInProcName.ClassRelation,
@@ -987,17 +1034,18 @@ exports.WrittenBuiltinDefinitions = [
987
1034
  assignmentLike: { targetVariable: true, canBeReplacement: false, target: { idx: 0, name: 'f' }, source: { idx: 2, name: 'definition' }, modesForFn: ['s4'] },
988
1035
  /* a method answers an existing generic for existing classes, both named by string rather than bound */
989
1036
  genericArg: { idx: 0, name: 'f' },
990
- classArgs: [{ idx: 1, name: 'signature' }]
1037
+ classArgs: [{ idx: 1, name: 'signature' }], sig: [['f', built_in_props_1.ArgProp.NoDefault], ['signature', 0], ['definition', built_in_props_1.ArgProp.NoDefault], ['where', 0], ['valueClass', 0], ['sealed', 0]]
991
1038
  }, assumePrimitive: true },
992
- { type: 'function', names: [identifier_1.Identifier.from(['delayedAssign', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { quoteSource: true, targetVariable: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope }, assumePrimitive: true },
993
- { type: 'function', names: ['<<-'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, canBeReplacement: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible }, assumePrimitive: true },
994
- { type: 'function', names: ['->'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { swapSourceAndTarget: true, canBeReplacement: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible }, assumePrimitive: true },
995
- { type: 'function', names: ['->>'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, swapSourceAndTarget: true, canBeReplacement: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible }, assumePrimitive: true },
996
- { type: 'function', names: [identifier_1.Identifier.from(['data', "utils" /* PkgName.Utils */]), identifier_1.Identifier.from(['getHdata', "Hmisc" /* PkgName.Hmisc */])], processor: built_in_proc_name_1.BuiltInProcName.DefineArgument, config: { superAssignment: true }, assumePrimitive: false },
1039
+ { type: 'function', names: [identifier_1.Identifier.from(['makeActiveBinding', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { targetVariable: true, mayHaveMoreArgs: true, callsSource: true, environmentArg: 'env', props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['sym', built_in_props_1.ArgProp.Value], ['fun', built_in_props_1.ArgProp.Callee], ['env', built_in_props_1.ArgProp.Written]] }, assumePrimitive: true },
1040
+ { type: 'function', names: [identifier_1.Identifier.from(['delayedAssign', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { quoteSource: true, targetVariable: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, sig: [['x', built_in_props_1.ArgProp.NoDefault], ['value', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Nse], ['eval.env', 0], ['assign.env', 0]] }, assumePrimitive: true },
1041
+ { type: 'function', names: ['<<-'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, canBeReplacement: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['x', built_in_props_1.ArgProp.NoDefault], ['value', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true },
1042
+ { type: 'function', names: ['->'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { swapSourceAndTarget: true, canBeReplacement: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['value', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias], ['x', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
1043
+ { type: 'function', names: ['->>'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, swapSourceAndTarget: true, canBeReplacement: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['value', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias], ['x', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
1044
+ { type: 'function', names: [identifier_1.Identifier.from(['data', "utils" /* PkgName.Utils */]), identifier_1.Identifier.from(['getHdata', "Hmisc" /* PkgName.Hmisc */])], processor: built_in_proc_name_1.BuiltInProcName.DefineArgument, config: { superAssignment: true, sig: [['...', 0], ['list', 0], ['package', 0], ['lib.loc', 0], ['verbose', 0], ['envir', 0], ['overwrite', 0]] }, assumePrimitive: false },
997
1045
  /* only `&&`/`||` short-circuit */
998
- { type: 'function', names: [identifier_1.Identifier.from(['&&', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: true, props: built_in_props_1.CallProp.Pure }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Logical },
999
- { type: 'function', names: [identifier_1.Identifier.from(['||', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: false, props: built_in_props_1.CallProp.Pure }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Logical },
1000
- { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['&', '|']), processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: false, props: built_in_props_1.CallProp.Pure }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Logical },
1046
+ { type: 'function', names: [identifier_1.Identifier.from(['&&', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Atomic], ['y', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Atomic]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Logical },
1047
+ { type: 'function', names: [identifier_1.Identifier.from(['||', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: false, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Atomic], ['y', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Atomic]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Logical },
1048
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['&', '|']), processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: false, props: built_in_props_1.CallProp.Pure, sig: [['e1', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Atomic], ['e2', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Atomic]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Logical },
1001
1049
  /* a pipe hands back what the side it feeds hands back, which `Alias` is what states */
1002
1050
  { type: 'function', names: ['|>'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '_', assignLhs: false, returnLhs: false, sig: [['lhs', built_in_props_1.ArgProp.Value], ['rhs', built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true },
1003
1051
  { type: 'function', names: [...identifier_1.Identifier.fromAllIn(MagrittrPipePackages, ['%>%']), '%!>%'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', assignLhs: false, returnLhs: false, rhsMightBeSymbol: true, sig: [['lhs', built_in_props_1.ArgProp.Value], ['rhs', built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true },
@@ -1021,7 +1069,7 @@ exports.WrittenBuiltinDefinitions = [
1021
1069
  { type: 'function', names: [identifier_1.Identifier.from(['map2_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.x' }, '.y': { index: 1, name: '.y' } }, '.f': { index: 2, name: '.f' }, ignore: ['.progress', '.ptype'] } },
1022
1070
  { type: 'function', names: [identifier_1.Identifier.from(['across', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.cols' } }, '.f': { index: 1, name: '.fns' }, ignore: ['.names', '.unpack'] } },
1023
1071
  { type: 'function', names: [identifier_1.Identifier.from(['rename_with', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.data' } }, '.f': { index: 1, name: '.fn' }, ignore: ['.cols'] } },
1024
- { type: 'function', names: ['function', '\\'], processor: built_in_proc_name_1.BuiltInProcName.FunctionDefinition, config: {}, assumePrimitive: true },
1072
+ { type: 'function', names: ['function', '\\'], processor: built_in_proc_name_1.BuiltInProcName.FunctionDefinition, config: { sig: [['arglist', built_in_props_1.ArgProp.Nse], ['expr', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
1025
1073
  { type: 'function', names: [identifier_1.Identifier.from(['quote', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, keepEnvironment: true, props: built_in_props_1.CallProp.Lang, sig: [['expr', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
1026
1074
  /* `bquote` evaluates the operand of `.()` */
1027
1075
  { type: 'function', names: [identifier_1.Identifier.from(['bquote', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, unquote: nse_1.Unquote.Bquote, keepEnvironment: true, props: built_in_props_1.CallProp.Lang, sig: [['expr', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
@@ -1040,9 +1088,9 @@ exports.WrittenBuiltinDefinitions = [
1040
1088
  { type: 'function', names: [identifier_1.Identifier.from(['brew', "brew" /* PkgName.Brew */])], processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { open: '<%=', close: '%>', props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
1041
1089
  { type: 'function', names: [identifier_1.Identifier.from(['rprintf', "rprintf" /* PkgName.Rprintf */])], processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { open: '$', close: '', props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
1042
1090
  /* `local(expr)` evaluates `expr` in a frame of its own and hands its value back */
1043
- { type: 'function', names: [identifier_1.Identifier.from(['local', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Local, config: { args: { env: 'envir', expr: 'expr' }, sig: [['expr', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
1044
- { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['with', 'within']), processor: built_in_proc_name_1.BuiltInProcName.With, config: {}, assumePrimitive: false },
1045
- { type: 'function', names: [identifier_1.Identifier.from(['new.env', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['new_environment', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.NewEnv, config: {}, assumePrimitive: true },
1091
+ { type: 'function', names: [identifier_1.Identifier.from(['local', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Local, config: { args: { env: 'envir', expr: 'expr' }, sig: [['expr', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced], ['envir', built_in_props_1.ArgProp.Written]] }, assumePrimitive: false },
1092
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['with', 'within']), processor: built_in_proc_name_1.BuiltInProcName.With, config: { sig: [['data', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Written], ['expr', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
1093
+ { type: 'function', names: [identifier_1.Identifier.from(['new.env', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['new_environment', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.NewEnv, config: { sig: [['hash', 0], ['parent', 0], ['size', 0]] }, assumePrimitive: true },
1046
1094
  { type: 'function', names: [identifier_1.Identifier.from(['R6Class', "R6" /* PkgName.R6 */])],
1047
1095
  processor: built_in_proc_name_1.BuiltInProcName.ClassGenerator,
1048
1096
  config: { classDecl: {
@@ -1056,7 +1104,7 @@ exports.WrittenBuiltinDefinitions = [
1056
1104
  { name: 'active', visibility: "active" /* MemberVisibility.Active */ }
1057
1105
  ]
1058
1106
  } }, assumePrimitive: false },
1059
- { type: 'function', names: [identifier_1.Identifier.from(['setRefClass', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.ClassGenerator, config: { classDecl: { system: "rc" /* ClassSystem.RefClass */, nameArg: { idx: 0, name: 'Class' }, containsArg: { idx: 2, name: 'contains' }, memberArgs: [{ idx: 1, name: 'fields', typed: true }, { idx: 3, name: 'methods', methods: true }] } }, assumePrimitive: false },
1107
+ { type: 'function', names: [identifier_1.Identifier.from(['setRefClass', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.ClassGenerator, config: { classDecl: { system: "rc" /* ClassSystem.RefClass */, nameArg: { idx: 0, name: 'Class' }, containsArg: { idx: 2, name: 'contains' }, memberArgs: [{ idx: 1, name: 'fields', typed: true }, { idx: 3, name: 'methods', methods: true }] }, sig: [['Class', built_in_props_1.ArgProp.NoDefault], ['fields', 0], ['contains', 0], ['methods', 0], ['where', 0], ['inheritPackage', 0], ['...', 0]] }, assumePrimitive: false },
1060
1108
  /* env-returning builtins pointing into the current search-path stack (`e <- globalenv(); e$x`) */
1061
1109
  { type: 'function', names: Object.entries(exports.StackEnvBuiltins)
1062
1110
  .filter(([n, kind]) => !n.startsWith('.') && (kind === StackEnvKind.Global || kind === StackEnvKind.Base || kind === StackEnvKind.Empty))
@@ -1067,24 +1115,24 @@ exports.WrittenBuiltinDefinitions = [
1067
1115
  { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['sys.frame', 'sys.frames']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { frame: built_in_props_1.ArgProp.Value }, assumePrimitive: true },
1068
1116
  { type: 'function', names: [identifier_1.Identifier.from(['load', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Load, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
1069
1117
  /* attach injects an environment's contents into the search path; detach reverses it (treated as unknown side effect) */
1070
- { type: 'function', names: [identifier_1.Identifier.from(['attach', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Attach, config: {}, assumePrimitive: false },
1071
- { type: 'function', names: ['for'], processor: built_in_proc_name_1.BuiltInProcName.ForLoop, config: {}, assumePrimitive: true },
1072
- { type: 'function', names: ['repeat'], processor: built_in_proc_name_1.BuiltInProcName.RepeatLoop, config: {}, assumePrimitive: true },
1073
- { type: 'function', names: ['while'], processor: built_in_proc_name_1.BuiltInProcName.WhileLoop, config: {}, assumePrimitive: true },
1118
+ { type: 'function', names: [identifier_1.Identifier.from(['attach', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Attach, config: { sig: [['what', built_in_props_1.ArgProp.NoDefault], ['pos', 0], ['name', 0], ['warn.conflicts', 0]] }, assumePrimitive: false },
1119
+ { type: 'function', names: ['for'], processor: built_in_proc_name_1.BuiltInProcName.ForLoop, config: { sig: [['var', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Nse], ['seq', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced], ['expr', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
1120
+ { type: 'function', names: ['repeat'], processor: built_in_proc_name_1.BuiltInProcName.RepeatLoop, config: { sig: [['expr', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
1121
+ { type: 'function', names: ['while'], processor: built_in_proc_name_1.BuiltInProcName.WhileLoop, config: { sig: [['cond', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Atomic], ['expr', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
1074
1122
  { type: 'function', names: [identifier_1.Identifier.from(['do.call', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['what', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Callee | built_in_props_1.ArgProp.Injectable], ['args', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
1075
- { type: 'function', names: [identifier_1.Identifier.from(['UseMethod', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' }, props: built_in_props_1.CallProp.Generic }, assumePrimitive: true },
1076
- { type: 'function', names: [identifier_1.Identifier.from(['NextMethod', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' }, inferFromClosure: true, props: built_in_props_1.CallProp.Generic }, assumePrimitive: true },
1123
+ { type: 'function', names: [identifier_1.Identifier.from(['UseMethod', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' }, props: built_in_props_1.CallProp.Generic, sig: [['generic', built_in_props_1.ArgProp.NoDefault], ['object', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
1124
+ { type: 'function', names: [identifier_1.Identifier.from(['NextMethod', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' }, inferFromClosure: true, props: built_in_props_1.CallProp.Generic, sig: [['generic', 0], ['object', 0], ['...', 0]] }, assumePrimitive: true },
1077
1125
  { type: 'function', names: [identifier_1.Identifier.from(['new_generic', "S7" /* PkgName.S7 */])], processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: 'dispatch_args', fun: 'fun' } }, assumePrimitive: true },
1078
- { type: 'function', names: [identifier_1.Identifier.from(['setGeneric', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: undefined, fun: 'fun' }, binds: true }, assumePrimitive: true },
1126
+ { type: 'function', names: [identifier_1.Identifier.from(['setGeneric', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: undefined, fun: 'fun' }, binds: true, sig: [['name', built_in_props_1.ArgProp.NoDefault], ['def', 0], ['group', 0], ['valueClass', 0], ['where', 0], ['package', 0], ['signature', 0], ['useAsDefault', 0], ['genericFunction', 0], ['simpleInheritanceOnly', 0]] }, assumePrimitive: true },
1079
1127
  { type: 'function', names: [identifier_1.Identifier.from(['S7_dispatch', "S7" /* PkgName.S7 */])], processor: built_in_proc_name_1.BuiltInProcName.S7Dispatch, config: { libFn: true }, assumePrimitive: true },
1080
1128
  { type: 'function', names: [identifier_1.Identifier.from(['make_constructor', "ggplot2" /* PkgName.GgPlot2 */]), identifier_1.Identifier.from(['new_class', "S7" /* PkgName.S7 */])], processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor, config: { mode: ['s7'], classDecl: { system: "s7" /* ClassSystem.S7 */, nameArg: { idx: 0, name: 'name' }, containsArg: { idx: 1, name: 'parent' }, memberArgs: [{ name: 'properties', typed: true }], virtualArg: { name: 'abstract' } } }, assumePrimitive: true },
1081
1129
  /* S4 keeps its classes and generics in string-keyed registries, so a call naming one depends on whatever registered it */
1082
- { type: 'function', names: [identifier_1.Identifier.from(['new', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 0, name: 'Class' }] }, assumePrimitive: false },
1130
+ { type: 'function', names: [identifier_1.Identifier.from(['new', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 0, name: 'Class' }], sig: [['Class', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
1083
1131
  { type: 'function', names: identifier_1.Identifier.fromAll("methods" /* PkgName.Methods */, ['getClass', 'getClassDef', 'getSlots', 'slotNames', 'isVirtualClass', 'removeClass', 'resetClass', 'getValidity']), processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 0, name: 'Class' }] }, assumePrimitive: false },
1084
- { type: 'function', names: [identifier_1.Identifier.from(['as', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 1, name: 'Class' }] }, assumePrimitive: false },
1085
- { type: 'function', names: [identifier_1.Identifier.from(['is', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 1, name: 'class2' }] }, assumePrimitive: false },
1086
- { type: 'function', names: [identifier_1.Identifier.from(['setAs', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 0, name: 'from' }], registersArg: { idx: 1, name: 'to' } }, assumePrimitive: false },
1087
- { type: 'function', names: identifier_1.Identifier.fromAll("methods" /* PkgName.Methods */, ['existsMethod', 'hasMethod', 'getMethod', 'selectMethod', 'removeMethod']), processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { genericArg: { idx: 0, name: 'f' }, classArgs: [{ idx: 1, name: 'signature' }] }, assumePrimitive: false },
1132
+ { type: 'function', names: [identifier_1.Identifier.from(['as', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 1, name: 'Class' }], sig: [['object', built_in_props_1.ArgProp.NoDefault], ['Class', built_in_props_1.ArgProp.NoDefault], ['strict', 0], ['ext', 0]] }, assumePrimitive: false },
1133
+ { type: 'function', names: [identifier_1.Identifier.from(['is', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 1, name: 'class2' }], sig: [['object', built_in_props_1.ArgProp.NoDefault], ['class2', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: false },
1134
+ { type: 'function', names: [identifier_1.Identifier.from(['setAs', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 0, name: 'from' }], registersArg: { idx: 1, name: 'to' }, sig: [['from', built_in_props_1.ArgProp.NoDefault], ['to', built_in_props_1.ArgProp.NoDefault], ['def', built_in_props_1.ArgProp.NoDefault], ['replace', 0], ['where', 0]] }, assumePrimitive: false },
1135
+ { type: 'function', names: identifier_1.Identifier.fromAll("methods" /* PkgName.Methods */, ['existsMethod', 'hasMethod', 'getMethod', 'selectMethod', 'removeMethod']), processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { genericArg: { idx: 0, name: 'f' }, classArgs: [{ idx: 1, name: 'signature' }], sig: [['f', built_in_props_1.ArgProp.NoDefault], ['signature', 0], ['...', 0]] }, assumePrimitive: false },
1088
1136
  { type: 'function', names: [identifier_1.Identifier.from(['setClass', "methods" /* PkgName.Methods */])],
1089
1137
  processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor,
1090
1138
  config: { mode: ['s4'], classDecl: {
@@ -1094,7 +1142,7 @@ exports.WrittenBuiltinDefinitions = [
1094
1142
  /* the modern `slots=` and the historical `representation()` state the same thing */
1095
1143
  memberArgs: [{ idx: 1, name: 'representation', typed: true }, { name: 'slots', typed: true }],
1096
1144
  prototypeArg: { idx: 2, name: 'prototype' }
1097
- } }, assumePrimitive: true },
1145
+ }, sig: [['Class', built_in_props_1.ArgProp.NoDefault], ['representation', 0], ['prototype', 0], ['contains', 0], ['validity', 0], ['access', 0], ['where', 0], ['version', 0], ['sealed', 0], ['package', 0], ['S3methods', 0], ['slots', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
1098
1146
  { type: 'function', names: [identifier_1.Identifier.from(['setClassUnion', "methods" /* PkgName.Methods */])],
1099
1147
  processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor,
1100
1148
  config: { mode: ['s4'], classDecl: {
@@ -1102,7 +1150,7 @@ exports.WrittenBuiltinDefinitions = [
1102
1150
  nameArg: { idx: 0, name: 'name' },
1103
1151
  /* a union is a virtual class its members become subclasses of */
1104
1152
  unionArg: { idx: 1, name: 'members' }
1105
- } }, assumePrimitive: true },
1153
+ }, sig: [['name', built_in_props_1.ArgProp.NoDefault], ['members', 0], ['where', 0]] }, assumePrimitive: true },
1106
1154
  { type: 'function', names: [identifier_1.Identifier.from(['Negate', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor, config: { wrapIndex: 0, props: built_in_props_1.CallProp.Pure, sig: [['f', built_in_props_1.ArgProp.Callee]] }, assumePrimitive: true },
1107
1155
  { type: 'function', names: [identifier_1.Identifier.from(['Vectorize', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor, config: { wrapIndex: 0, props: built_in_props_1.CallProp.Pure, sig: [['FUN', built_in_props_1.ArgProp.Callee]] }, assumePrimitive: true },
1108
1156
  { type: 'function', names: [identifier_1.Identifier.from(['partial', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor, config: { wrapIndex: 0, wrapName: '.f' }, assumePrimitive: true },
@@ -1110,13 +1158,14 @@ exports.WrittenBuiltinDefinitions = [
1110
1158
  { type: 'function', names: [identifier_1.Identifier.from(['interference', "inferference" /* PkgName.Inferference */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { unquoteFunction: true, nameOfFunctionArgument: 'propensity_integrand', libFn: true }, assumePrimitive: false },
1111
1159
  { type: 'function', names: [identifier_1.Identifier.from(['ddply', "plyr" /* PkgName.Plyr */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { unquoteFunction: true, indexOfFunction: 2, nameOfFunctionArgument: '.fun', libFn: true }, assumePrimitive: false },
1112
1160
  { type: 'function', names: [identifier_1.Identifier.from(['list', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.List, config: { props: built_in_props_1.CallProp.Pure, sig: [['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
1113
- { type: 'function', names: [identifier_1.Identifier.from(['Recall', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true }, assumePrimitive: false },
1114
- { type: 'function', names: [identifier_1.Identifier.from(['sys.function', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true, unknownOnNonZeroArg: true, props: built_in_props_1.CallProp.Lang, frame: built_in_props_1.ArgProp.Nse }, assumePrimitive: false },
1161
+ { type: 'function', names: [identifier_1.Identifier.from(['Recall', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true, sig: [['...', 0]] }, assumePrimitive: false },
1162
+ { type: 'function', names: [identifier_1.Identifier.from(['sys.function', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true, unknownOnNonZeroArg: true, props: built_in_props_1.CallProp.Lang, frame: built_in_props_1.ArgProp.Nse, sig: [['which', 0]] }, assumePrimitive: false },
1115
1163
  { type: 'function', names: [identifier_1.Identifier.from(['c', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Vector, config: { props: built_in_props_1.CallProp.Pure, sig: [['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Vector },
1116
1164
  { type: 'function', names: [identifier_1.Identifier.from(['cmpfun', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { sig: [['f', built_in_props_1.ArgProp.Alias]] } },
1117
1165
  { type: 'function', names: [identifier_1.Identifier.from(['compile', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { sig: [['e', built_in_props_1.ArgProp.Alias]] } },
1118
- { type: 'function', names: [identifier_1.Identifier.from(['loadcmp', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true } },
1119
- { type: 'function', names: [identifier_1.Identifier.from(['setnames', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['setNames', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['setNames', "FastUtils" /* PkgName.FastUtils */]), ...identifier_1.Identifier.fromAll("data.table" /* PkgName.DataTable */, ['setkey', 'setkeyv', 'setindex', 'setindexv', 'setattr'])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { canBeReplacement: false, targetVariable: false, makeMaybe: true, mayHaveMoreArgs: true } },
1166
+ { type: 'function', names: [identifier_1.Identifier.from(['loadcmp', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, sig: [['file', built_in_props_1.ArgProp.NoDefault], ['envir', 0], ['chdir', 0]] } },
1167
+ { type: 'function', names: [identifier_1.Identifier.from(['setNames', "stats" /* PkgName.Stats */]), identifier_1.Identifier.from(['setNames', "FastUtils" /* PkgName.FastUtils */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Pure, sig: [['object', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['nm', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] } },
1168
+ { type: 'function', names: identifier_1.Identifier.fromAll("data.table" /* PkgName.DataTable */, ['setnames', 'setkey', 'setkeyv', 'setindex', 'setindexv', 'setattr']), processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { canBeReplacement: false, targetVariable: false, makeMaybe: true, mayHaveMoreArgs: true, readTarget: true, props: built_in_props_1.CallProp.Invisible, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Written | built_in_props_1.ArgProp.Alias], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] } },
1120
1169
  {
1121
1170
  type: 'function',
1122
1171
  names: [
@@ -1133,7 +1182,7 @@ exports.WrittenBuiltinDefinitions = [
1133
1182
  { type: 'function', names: [identifier_1.Identifier.from(['dir.create', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dir_create', "fs" /* PkgName.Fs */]), ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Sys.chmod', 'unlink', 'file.remove', 'file.rename', 'file.copy', 'file.link', 'file.append', 'Sys.junction'])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes] }, assumePrimitive: false },
1134
1183
  /* `sink` diverts the output, `par`/`tpar` set the parameters of the current device */
1135
1184
  { type: 'function', names: [identifier_1.Identifier.from(['sink', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
1136
- { type: 'function', names: [identifier_1.Identifier.from(['par', "graphics" /* PkgName.Graphics */]), identifier_1.Identifier.from(['tpar', "tinyplot" /* PkgName.TinyPlot */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, tags: [built_in_props_1.SemanticCallTag.Graphics] }, assumePrimitive: false },
1185
+ { type: 'function', names: [identifier_1.Identifier.from(['par', "graphics" /* PkgName.Graphics */]), identifier_1.Identifier.from(['tpar', "tinyplot" /* PkgName.TinyPlot */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['...', 0], ['no.readonly', 0]] }, assumePrimitive: false },
1137
1186
  {
1138
1187
  type: 'function',
1139
1188
  names: [
@@ -1143,7 +1192,7 @@ exports.WrittenBuiltinDefinitions = [
1143
1192
  identifier_1.Identifier.from(['install_local', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_local', "devtools" /* PkgName.Devtools */]),
1144
1193
  ],
1145
1194
  processor: built_in_proc_name_1.BuiltInProcName.Default,
1146
- config: { hasUnknownSideEffects: true, libFn: true },
1195
+ config: { hasUnknownSideEffects: true, libFn: true, sig: [['chname', built_in_props_1.ArgProp.NoDefault], ['package', built_in_props_1.ArgProp.NoDefault], ['lib.loc', built_in_props_1.ArgProp.NoDefault], ['verbose', 0], ['file.ext', 0], ['...', 0]] },
1147
1196
  assumePrimitive: false
1148
1197
  },
1149
1198
  /* installers fetch the package and put it into the library (devtools re-exports the entire remotes install API) */
@@ -1159,7 +1208,7 @@ exports.WrittenBuiltinDefinitions = [
1159
1208
  config: { hasUnknownSideEffects: true, libFn: true, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes] },
1160
1209
  assumePrimitive: false
1161
1210
  },
1162
- { type: 'function', names: [identifier_1.Identifier.from(['on.exit', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.RegisterHook, config: { hook: hooks_1.KnownHooks.OnFnExit, args: { expr: { idx: 0, name: 'expr' }, add: { idx: 1, name: 'add', default: false }, after: { idx: 2, name: 'after', default: true } } }, assumePrimitive: true },
1211
+ { type: 'function', names: [identifier_1.Identifier.from(['on.exit', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.RegisterHook, config: { hook: hooks_1.KnownHooks.OnFnExit, args: { expr: { idx: 0, name: 'expr' }, add: { idx: 1, name: 'add', default: false }, after: { idx: 2, name: 'after', default: true } }, sig: [['expr', 0], ['add', 0], ['after', 0]] }, assumePrimitive: true },
1163
1212
  { type: 'function', names: [identifier_1.Identifier.from(['on_load', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.MayPure, sig: [['expr', built_in_props_1.ArgProp.Forced], ['env', built_in_props_1.ArgProp.Value], ['ns', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
1164
1213
  { type: 'function', names: [identifier_1.Identifier.from(['on_package_load', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.MayPure, sig: [['pkg', built_in_props_1.ArgProp.Value], ['expr', built_in_props_1.ArgProp.Forced], ['env', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
1165
1214
  { type: 'function', names: [identifier_1.Identifier.from(['run_on_load', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.MayPure, sig: [['ns', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
@@ -1169,7 +1218,7 @@ exports.WrittenBuiltinDefinitions = [
1169
1218
  { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['list.files', 'dir', 'list.dirs']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Glob], sig: [['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
1170
1219
  { type: 'function', names: [identifier_1.Identifier.from(['Sys.glob', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Glob], sig: [['paths', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
1171
1220
  /* language objects */
1172
- { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['enquote', 'call', 'as.call', 'as.expression', 'as.name', 'as.symbol', 'as.language', 'args', 'deparse', 'deparse1']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
1221
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['enquote', 'call', 'as.call', 'as.expression', 'as.name', 'as.symbol', 'args', 'deparse', 'deparse1']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
1173
1222
  /* they hand back the call they sit in, so the function around them reads its arguments as written, unevaluated */
1174
1223
  { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['match.call', 'sys.call', 'sys.calls']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, frame: built_in_props_1.ArgProp.Nse, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
1175
1224
  /* `nargs()` counts what the call supplied, so it sees no argument, only whether there was one */
@@ -1177,7 +1226,7 @@ exports.WrittenBuiltinDefinitions = [
1177
1226
  /* `alist` keeps its arguments unevaluated, `evalq` evaluates its first one in another frame */
1178
1227
  { type: 'function', names: [identifier_1.Identifier.from(['alist', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, sig: [['...', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: false },
1179
1228
  { type: 'function', names: [identifier_1.Identifier.from(['evalq', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Nse | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
1180
- { type: 'function', names: [identifier_1.Identifier.from(['eval.parent', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['n', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
1229
+ { type: 'function', names: [identifier_1.Identifier.from(['eval.parent', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: false, keepEnvironment: false, parameterNames: ['expr', 'n'], parentFrame: true, props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['n', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
1181
1230
  { type: 'function', names: [identifier_1.Identifier.from(['eval_tidy', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['data', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['env', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
1182
1231
  { type: 'function', names: [identifier_1.Identifier.from(['eval_bare', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['env', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
1183
1232
  { type: 'function', names: [...identifier_1.Identifier.fromAllIn(TidyEvalPackages, ['enexpr', 'enexprs', 'enquo', 'enquos', 'ensym', 'ensyms', 'sym', 'syms', 'quo_name', 'as_label']), ...identifier_1.Identifier.fromAll("rlang" /* PkgName.Rlang */, ['inject', 'enquo0', 'enquos0', 'new_formula', 'f_rhs', 'f_lhs', 'fn_body', 'fn_fmls', 'fn_fmls_names', 'call2', 'as_name', 'as_string'])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Lang, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
@@ -1224,13 +1273,14 @@ exports.WrittenBuiltinDefinitions = [
1224
1273
  },
1225
1274
  /* they only make up a path, they do not go near the file system, so `File` would be wrong here */
1226
1275
  { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['tempfile', 'tempdir']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.TempFile], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
1227
- { type: 'function', names: [...identifier_1.Identifier.fromAll("fs" /* PkgName.Fs */, ['file_temp', 'path_temp', 'dir_temp']), ...identifier_1.Identifier.fromAll("withr" /* PkgName.Withr */, ['local_tempfile', 'with_tempfile', 'local_tempdir', 'with_tempdir'])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.TempFile], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
1276
+ { type: 'function', names: [...identifier_1.Identifier.fromAll("fs" /* PkgName.Fs */, ['file_temp', 'path_temp']), ...identifier_1.Identifier.fromAll("withr" /* PkgName.Withr */, ['local_tempfile', 'with_tempfile', 'local_tempdir', 'with_tempdir'])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.TempFile], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
1228
1277
  /* wrappers that run the expression they are handed; `observe`/`render*` are left out, they yield a handle instead */
1229
1278
  { type: 'function', names: identifier_1.Identifier.fromAll("shiny" /* PkgName.Shiny */, ['reactive', 'eventReactive', 'bindEvent', 'bindCache', 'isolate', 'req', 'debounce', 'throttle', 'reactiveVal', 'reactiveValues', 'reactiveValuesToList', 'freezeReactiveVal']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.MayPure, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
1230
1279
  /* assembling a cohort keeps the data of its source; `filter` is registered above, dplyr holds that name */
1231
1280
  { type: 'function', names: identifier_1.Identifier.fromAll("cohortBuilder" /* PkgName.CohortBuilder */, ['cohort', 'set_source', 'add_source', 'update_source', 'add_filter', 'update_filter', 'rm_filter', 'bind_key', 'bind_keys', 'as.tblist', 'tblist', 'step', 'add_step', 'rm_step', 'run', 'restore']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Pure, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
1232
1281
  /* they are all mapped to `<-` but we separate super assignments */
1233
- { type: 'replacement', suffixes: ['<-', '<<-'], names: ['[', '[[', ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['names', 'dimnames', 'attributes', 'attr', 'class', 'levels', 'rownames', 'colnames', 'body', 'environment', 'formals', 'length', 'dim'])], config: { readIndices: true, props: built_in_props_1.CallProp.Scope } },
1282
+ { type: 'replacement', suffixes: ['<-', '<<-'], names: ['[', '[[', ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['names', 'dimnames', 'attributes', 'attr', 'class', 'levels', 'rownames', 'colnames', 'environment', 'length', 'dim'])], config: { readIndices: true, props: built_in_props_1.CallProp.Scope } },
1283
+ { type: 'replacement', suffixes: ['<-', '<<-'], names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['body', 'formals']), config: { readIndices: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Lang } },
1234
1284
  { type: 'replacement', suffixes: ['<-', '<<-'], names: [identifier_1.Identifier.from(['method', "S7" /* PkgName.S7 */])], config: { readIndices: true, constructName: 's7' } },
1235
1285
  { type: 'replacement', suffixes: ['<-', '<<-'], names: ['$', '@'], config: { readIndices: false, props: built_in_props_1.CallProp.Scope } },
1236
1286
  /* the string and shape functions R declares formals for, restated one by one: the group above gives them
@@ -1287,17 +1337,17 @@ exports.WrittenBuiltinDefinitions = [
1287
1337
  { type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("dplyr" /* PkgName.Dplyr */, ['id', 'top_n', 'sample_n', 'recode', 'progress_estimated', 'group_nest', 'add_rownames', 'tbl_df', 'src_local', 'summarise_each', 'summarize_', 'summarise_', 'slice_', 'select_vars_', 'select_', 'rename_vars_', 'rename_', 'transmute_', 'tally_', 'mutate_', 'group_indices_', 'group_by_', 'funs_', 'filter_', 'do_', 'distinct_', 'count_', 'arrange_', 'add_tally_', 'add_count_', 'funs', 'do', 'combine', 'changes', 'location', 'eval_tbls2', 'eval_tbls', 'compare_tbls2', 'compare_tbls', 'bench_tbls', 'current_vars', 'select_var', 'rename_vars', 'select_vars', 'failwith', 'all_vars', 'vars', 'select_all', 'mutate_all', 'summarise_all', 'group_by_all', 'filter_all', 'all_equal', 'arrange_all', 'distinct_all']) },
1288
1338
  { type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: [identifier_1.Identifier.make('fct_explicit_na', "forcats" /* PkgName.Forecats */)] },
1289
1339
  /* deprecated, but still data-masking: restating the mask keeps the column names out of the variable resolution */
1290
- { overrides: true, type: 'function', processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: [...identifier_1.Identifier.fromAll("dplyr" /* PkgName.Dplyr */, ['nest_by', 'with_groups', 'group_split']), ...identifier_1.Identifier.fromAll("tidyr" /* PkgName.TidyR */, ['spread', 'separate_rows', 'gather', 'extract'])] },
1291
- { type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("ggplot2" /* PkgName.GgPlot2 */, ['gg_dep', 'is.theme', 'is.ggplot', 'guide_train', 'is.ggproto', 'fortify', 'is.facet', 'is.Coord', 'aes_auto', 'aes_']) },
1340
+ { overrides: true, type: 'function', processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: [...identifier_1.Identifier.fromAll("dplyr" /* PkgName.Dplyr */, ['with_groups']), ...identifier_1.Identifier.fromAll("tidyr" /* PkgName.TidyR */, ['spread', 'separate_rows', 'gather', 'extract'])] },
1341
+ { type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("ggplot2" /* PkgName.GgPlot2 */, ['gg_dep', 'is.ggplot', 'guide_train', 'aes_auto', 'aes_']) },
1292
1342
  { type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("plyr" /* PkgName.Plyr */, ['liply', 'isplit2']) },
1293
- { type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['transpose', 'as_vector', 'map_dfr', 'flatten', 'reduce_right', 'accumulate', 'map_raw', 'update_list', 'when', 'rdunif', 'rbernoulli', 'splice', 'rerun', 'prepend', 'at_depth', 'cross', 'list_along']) },
1343
+ { type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['transpose', 'as_vector', 'map_dfr', 'flatten', 'reduce_right', 'map_raw', 'update_list', 'when', 'rdunif', 'rbernoulli', 'splice', 'rerun', 'prepend', 'at_depth', 'cross', 'list_along']) },
1294
1344
  { type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: ['`%@%`'] },
1295
1345
  { type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("readr" /* PkgName.Readr */, ['read_table2', 'melt_table', 'melt_fwf', 'melt_delim']) },
1296
- { type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("tibble" /* PkgName.Tibble */, ['repair_names', 'set_tidy_names', 'tidy_names', 'is.tibble', 'trunc_mat', 'frame_data', 'as.tibble', 'as_data_frame', 'lst_', 'data_frame_', 'tibble_', 'data_frame', 'as_tibble']) },
1346
+ { type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("tibble" /* PkgName.Tibble */, ['repair_names', 'set_tidy_names', 'tidy_names', 'is.tibble', 'trunc_mat', 'frame_data', 'as.tibble', 'as_data_frame', 'lst_', 'data_frame_', 'tibble_', 'data_frame']) },
1297
1347
  { type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("tidyr" /* PkgName.TidyR */, ['nest_legacy', 'unnest_', 'unite_', 'spread_', 'separate_', 'separate_rows_', 'nest_', 'gather_', 'fill_', 'extract_', 'nesting_', 'crossing_', 'expand_', 'drop_na_', 'complete_', 'extract_numeric']) },
1298
1348
  ];
1299
1349
  /** Contains the built-in definitions recognized by flowR */
1300
- exports.DefaultBuiltinConfig = markGenerics(exports.WrittenBuiltinDefinitions);
1350
+ exports.DefaultBuiltinConfig = markPrimitives(markGenerics(exports.WrittenBuiltinDefinitions));
1301
1351
  /** Expensive and naive lookup of the default processor for a built-in function name */
1302
1352
  function getDefaultProcessor(name) {
1303
1353
  if (name.startsWith(unnamed_call_handling_1.UnnamedFunctionCallPrefix)) {