@eagleoutice/flowr 2.10.8 → 2.10.10

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 (260) hide show
  1. package/README.md +106 -36
  2. package/abstract-interpretation/absint-visitor.js +6 -3
  3. package/abstract-interpretation/domains/abstract-domain.d.ts +1 -1
  4. package/abstract-interpretation/domains/bounded-set-domain.d.ts +1 -1
  5. package/abstract-interpretation/domains/bounded-set-domain.js +1 -1
  6. package/abstract-interpretation/domains/interval-domain.d.ts +1 -1
  7. package/abstract-interpretation/domains/interval-domain.js +1 -1
  8. package/abstract-interpretation/domains/lattice.d.ts +1 -1
  9. package/abstract-interpretation/domains/partial-product-domain.d.ts +1 -1
  10. package/abstract-interpretation/domains/partial-product-domain.js +2 -2
  11. package/abstract-interpretation/domains/set-range-domain.d.ts +1 -1
  12. package/abstract-interpretation/domains/set-range-domain.js +1 -1
  13. package/abstract-interpretation/domains/set-upper-bound-domain.d.ts +1 -1
  14. package/abstract-interpretation/domains/set-upper-bound-domain.js +1 -1
  15. package/abstract-interpretation/domains/singleton-domain.d.ts +1 -1
  16. package/abstract-interpretation/domains/singleton-domain.js +1 -1
  17. package/abstract-interpretation/domains/state-abstract-domain.d.ts +1 -1
  18. package/abstract-interpretation/domains/state-abstract-domain.js +2 -2
  19. package/abstract-interpretation/unsupported-functions.d.ts +3 -2
  20. package/abstract-interpretation/unsupported-functions.js +38 -28
  21. package/cli/benchmark-app.js +2 -1
  22. package/cli/common/script.js +3 -2
  23. package/cli/flowr.js +47 -10
  24. package/cli/repl/commands/repl-cfg.js +9 -9
  25. package/cli/repl/commands/repl-commands.js +5 -0
  26. package/cli/repl/commands/repl-dataflow.js +31 -24
  27. package/cli/repl/commands/repl-main.d.ts +6 -0
  28. package/cli/repl/commands/repl-normalize.js +15 -12
  29. package/cli/repl/commands/repl-parse.js +1 -1
  30. package/cli/repl/commands/repl-query.js +4 -5
  31. package/cli/repl/commands/repl-quit.js +2 -1
  32. package/cli/repl/core.d.ts +11 -0
  33. package/cli/repl/core.js +101 -3
  34. package/cli/repl/execute.js +3 -2
  35. package/cli/repl/parser/slice-query-parser.d.ts +16 -0
  36. package/cli/repl/parser/slice-query-parser.js +52 -0
  37. package/cli/repl/server/connection.d.ts +1 -0
  38. package/cli/repl/server/connection.js +25 -0
  39. package/cli/repl/server/messages/message-analysis.d.ts +10 -0
  40. package/cli/repl/server/messages/message-analysis.js +6 -2
  41. package/cli/repl/server/messages/message-slice.d.ts +1 -1
  42. package/cli/script-core/statistics-core.js +2 -1
  43. package/cli/script-core/statistics-helper-core.js +2 -1
  44. package/cli/wiki.d.ts +2 -1
  45. package/cli/wiki.js +4 -1
  46. package/config.d.ts +9 -0
  47. package/config.js +23 -1
  48. package/control-flow/diff-cfg.d.ts +1 -1
  49. package/control-flow/diff-cfg.js +1 -1
  50. package/control-flow/extract-cfg.js +9 -3
  51. package/control-flow/semantic-cfg-guided-visitor.js +1 -0
  52. package/control-flow/simple-visitor.js +6 -5
  53. package/control-flow/useless-loop.js +2 -2
  54. package/core/print/dataflow-printer.d.ts +2 -2
  55. package/core/print/dataflow-printer.js +2 -2
  56. package/core/steps/all/static-slicing/00-slice.js +1 -1
  57. package/core/steps/pipeline/default-pipelines.d.ts +146 -146
  58. package/dataflow/environments/append.d.ts +2 -1
  59. package/dataflow/environments/append.js +2 -1
  60. package/dataflow/environments/built-in-proc-name.d.ts +2 -0
  61. package/dataflow/environments/built-in-proc-name.js +2 -0
  62. package/dataflow/environments/built-in.d.ts +2 -0
  63. package/dataflow/environments/built-in.js +2 -0
  64. package/dataflow/environments/default-builtin-config.d.ts +122 -66
  65. package/dataflow/environments/default-builtin-config.js +324 -145
  66. package/dataflow/environments/environment.d.ts +2 -1
  67. package/dataflow/environments/environment.js +13 -9
  68. package/dataflow/environments/identifier.d.ts +55 -2
  69. package/dataflow/environments/identifier.js +14 -2
  70. package/dataflow/environments/reference-to-maybe.d.ts +2 -0
  71. package/dataflow/environments/reference-to-maybe.js +56 -11
  72. package/dataflow/environments/resolve-by-name.js +13 -7
  73. package/dataflow/eval/values/general.js +4 -0
  74. package/dataflow/extractor.js +22 -3
  75. package/dataflow/graph/df-helper.d.ts +6 -0
  76. package/dataflow/graph/df-helper.js +33 -0
  77. package/dataflow/graph/graph.js +7 -3
  78. package/dataflow/info.d.ts +1 -1
  79. package/dataflow/info.js +3 -1
  80. package/dataflow/internal/linker.d.ts +5 -1
  81. package/dataflow/internal/linker.js +34 -9
  82. package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +3 -1
  83. package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +1 -1
  84. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +53 -0
  85. package/dataflow/internal/process/functions/call/built-in/built-in-namespace-access.d.ts +13 -0
  86. package/dataflow/internal/process/functions/call/built-in/built-in-namespace-access.js +58 -0
  87. package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.js +1 -1
  88. package/dataflow/internal/process/functions/call/built-in/built-in-rm.d.ts +1 -1
  89. package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +38 -14
  90. package/dataflow/internal/process/functions/call/built-in/built-in-source.js +19 -0
  91. package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +1 -1
  92. package/dataflow/internal/process/functions/call/known-call-handling.js +4 -3
  93. package/dataflow/internal/process/functions/call/named-call-handling.js +6 -0
  94. package/dataflow/origin/dfg-get-origin.d.ts +1 -1
  95. package/dataflow/origin/dfg-get-origin.js +1 -1
  96. package/dataflow/processor.d.ts +6 -0
  97. package/documentation/data/faq/faqs.d.ts +2 -1
  98. package/documentation/data/faq/faqs.js +75 -57
  99. package/documentation/data/server/doc-data-server-messages.d.ts +2 -1
  100. package/documentation/data/server/doc-data-server-messages.js +15 -7
  101. package/documentation/doc-readme.js +15 -15
  102. package/documentation/doc-util/doc-cfg.d.ts +3 -1
  103. package/documentation/doc-util/doc-cfg.js +3 -3
  104. package/documentation/doc-util/doc-dfg.d.ts +3 -1
  105. package/documentation/doc-util/doc-dfg.js +3 -3
  106. package/documentation/doc-util/doc-files.d.ts +3 -1
  107. package/documentation/doc-util/doc-files.js +9 -6
  108. package/documentation/doc-util/doc-normalized-ast.d.ts +3 -1
  109. package/documentation/doc-util/doc-normalized-ast.js +2 -2
  110. package/documentation/doc-util/doc-query.d.ts +2 -1
  111. package/documentation/doc-util/doc-query.js +2 -2
  112. package/documentation/doc-util/doc-repl.js +1 -0
  113. package/documentation/doc-util/doc-types.d.ts +6 -6
  114. package/documentation/doc-util/doc-types.js +11 -9
  115. package/documentation/issue-linting-rule.js +1 -2
  116. package/documentation/wiki-analyzer.js +9 -9
  117. package/documentation/wiki-cfg.js +40 -41
  118. package/documentation/wiki-core.js +119 -31
  119. package/documentation/wiki-create-linting-rules.d.ts +6 -0
  120. package/documentation/wiki-create-linting-rules.js +95 -0
  121. package/documentation/wiki-dataflow-graph.js +77 -76
  122. package/documentation/wiki-engine.js +1 -2
  123. package/documentation/wiki-faq.d.ts +2 -1
  124. package/documentation/wiki-faq.js +4 -4
  125. package/documentation/wiki-interface.js +19 -6
  126. package/documentation/wiki-linter.d.ts +1 -1
  127. package/documentation/wiki-linter.js +14 -6
  128. package/documentation/wiki-linting-and-testing.js +2 -2
  129. package/documentation/wiki-mk/doc-context.d.ts +3 -3
  130. package/documentation/wiki-mk/doc-maker.d.ts +2 -0
  131. package/documentation/wiki-mk/doc-maker.js +7 -1
  132. package/documentation/wiki-normalized-ast.js +5 -5
  133. package/documentation/wiki-onboarding.d.ts +2 -1
  134. package/documentation/wiki-onboarding.js +5 -5
  135. package/documentation/wiki-overview.js +3 -3
  136. package/documentation/wiki-query.js +85 -84
  137. package/documentation/wiki-search.js +4 -5
  138. package/documentation/wiki-setup.js +6 -7
  139. package/gas.d.ts +74 -0
  140. package/gas.js +18 -0
  141. package/linter/linter-executor.js +2 -8
  142. package/linter/linter-format.d.ts +4 -11
  143. package/linter/linter-rules.d.ts +88 -86
  144. package/linter/linter-rules.js +7 -1
  145. package/linter/rules/absolute-path.d.ts +2 -7
  146. package/linter/rules/absolute-path.js +6 -4
  147. package/linter/rules/dataframe-access-validation.d.ts +1 -6
  148. package/linter/rules/dataframe-access-validation.js +8 -6
  149. package/linter/rules/dead-code.d.ts +2 -11
  150. package/linter/rules/dead-code.js +16 -11
  151. package/linter/rules/deprecated-functions.d.ts +3 -3
  152. package/linter/rules/file-path-validity.d.ts +1 -6
  153. package/linter/rules/file-path-validity.js +5 -5
  154. package/linter/rules/function-finder-util.d.ts +7 -11
  155. package/linter/rules/function-finder-util.js +9 -6
  156. package/linter/rules/naming-convention.d.ts +2 -7
  157. package/linter/rules/naming-convention.js +3 -2
  158. package/linter/rules/network-functions.d.ts +2 -7
  159. package/linter/rules/network-functions.js +14 -12
  160. package/linter/rules/no-leaked-credentials.d.ts +36 -0
  161. package/linter/rules/no-leaked-credentials.js +75 -0
  162. package/linter/rules/problematic-inputs.d.ts +1 -8
  163. package/linter/rules/problematic-inputs.js +5 -4
  164. package/linter/rules/roxygen-arguments.d.ts +2 -7
  165. package/linter/rules/roxygen-arguments.js +13 -20
  166. package/linter/rules/seeded-randomness.d.ts +2 -7
  167. package/linter/rules/seeded-randomness.js +7 -4
  168. package/linter/rules/software-has-license.d.ts +31 -0
  169. package/linter/rules/software-has-license.js +46 -0
  170. package/linter/rules/software-has-tests.d.ts +38 -0
  171. package/linter/rules/software-has-tests.js +48 -0
  172. package/linter/rules/stop-with-call-arg.d.ts +2 -7
  173. package/linter/rules/stop-with-call-arg.js +3 -2
  174. package/linter/rules/unused-definition.d.ts +3 -8
  175. package/linter/rules/unused-definition.js +7 -5
  176. package/linter/rules/useless-loop.d.ts +2 -7
  177. package/linter/rules/useless-loop.js +5 -2
  178. package/package.json +3 -2
  179. package/project/context/flowr-analyzer-context.d.ts +13 -14
  180. package/project/context/flowr-analyzer-context.js +4 -0
  181. package/project/context/flowr-analyzer-files-context.d.ts +12 -0
  182. package/project/context/flowr-analyzer-files-context.js +12 -2
  183. package/project/context/flowr-analyzer-gas-context.d.ts +28 -0
  184. package/project/context/flowr-analyzer-gas-context.js +101 -0
  185. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +13 -7
  186. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +56 -11
  187. package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.d.ts +1 -1
  188. package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.js +2 -2
  189. package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.d.ts +2 -1
  190. package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.js +5 -5
  191. package/project/plugins/flowr-analyzer-plugin.d.ts +15 -8
  192. package/project/plugins/flowr-analyzer-plugin.js +14 -7
  193. package/project/plugins/gas-plugins/flowr-analyzer-gas-plugin.d.ts +19 -0
  194. package/project/plugins/gas-plugins/flowr-analyzer-gas-plugin.js +35 -0
  195. package/project/plugins/plugin-registry.d.ts +2 -1
  196. package/project/plugins/plugin-registry.js +3 -1
  197. package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.d.ts +22 -0
  198. package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.js +47 -0
  199. package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +1 -1
  200. package/queries/catalog/call-context-query/call-context-query-executor.js +54 -8
  201. package/queries/catalog/call-context-query/call-context-query-format.d.ts +2 -2
  202. package/queries/catalog/dependencies-query/function-info/test-functions.d.ts +2 -0
  203. package/queries/catalog/dependencies-query/function-info/test-functions.js +18 -177
  204. package/queries/catalog/df-shape-query/df-shape-query-format.js +1 -1
  205. package/queries/catalog/dice-query/dice-query-executor.d.ts +8 -0
  206. package/queries/catalog/dice-query/dice-query-executor.js +52 -0
  207. package/queries/catalog/dice-query/dice-query-format.d.ts +53 -0
  208. package/queries/catalog/dice-query/dice-query-format.js +102 -0
  209. package/queries/catalog/happens-before-query/happens-before-query-executor.js +2 -2
  210. package/queries/catalog/input-sources-query/input-sources-query-format.d.ts +2 -0
  211. package/queries/catalog/input-sources-query/input-sources-query-format.js +1 -0
  212. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.d.ts +2 -0
  213. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.js +1 -0
  214. package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.d.ts +2 -0
  215. package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.js +1 -0
  216. package/queries/catalog/linter-query/linter-query-executor.js +7 -0
  217. package/queries/catalog/location-map-query/location-map-query-format.d.ts +2 -0
  218. package/queries/catalog/location-map-query/location-map-query-format.js +1 -0
  219. package/queries/catalog/origin-query/origin-query-format.d.ts +2 -0
  220. package/queries/catalog/origin-query/origin-query-format.js +1 -0
  221. package/queries/catalog/provenance-query/provenance-query-format.d.ts +2 -0
  222. package/queries/catalog/provenance-query/provenance-query-format.js +1 -0
  223. package/queries/catalog/resolve-value-query/resolve-value-query-format.d.ts +2 -0
  224. package/queries/catalog/resolve-value-query/resolve-value-query-format.js +1 -0
  225. package/queries/catalog/static-slice-query/static-slice-query-executor.js +1 -1
  226. package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +2 -0
  227. package/queries/catalog/static-slice-query/static-slice-query-format.js +1 -0
  228. package/queries/query.d.ts +18 -1
  229. package/queries/query.js +3 -1
  230. package/r-bridge/data/data.d.ts +5 -0
  231. package/r-bridge/data/data.js +6 -0
  232. package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +0 -1
  233. package/r-bridge/lang-4.x/ast/model/processing/decorate.js +10 -1
  234. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.d.ts +1 -1
  235. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.js +1 -1
  236. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.d.ts +1 -1
  237. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.js +1 -1
  238. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +63 -44
  239. package/r-bridge/parser.js +2 -9
  240. package/r-bridge/shell.d.ts +8 -1
  241. package/r-bridge/shell.js +26 -7
  242. package/search/flowr-search-builder.d.ts +2 -2
  243. package/search/flowr-search-builder.js +1 -1
  244. package/search/flowr-search-filters.d.ts +30 -9
  245. package/search/flowr-search-filters.js +26 -21
  246. package/search/search-executor/search-enrichers.d.ts +600 -0
  247. package/search/search-executor/search-enrichers.js +23 -2
  248. package/slicing/static/static-slicer.d.ts +39 -11
  249. package/slicing/static/static-slicer.js +44 -14
  250. package/util/collections/queue.d.ts +16 -0
  251. package/util/collections/queue.js +38 -0
  252. package/util/log.d.ts +1 -1
  253. package/util/log.js +1 -1
  254. package/util/mermaid/dfg.d.ts +2 -2
  255. package/util/mermaid/dfg.js +2 -2
  256. package/util/objects.d.ts +9 -0
  257. package/util/objects.js +57 -1
  258. package/util/proc.d.ts +6 -0
  259. package/util/proc.js +20 -0
  260. package/util/version.js +1 -1
@@ -90,50 +90,127 @@ exports.GgPlotAddons = [
90
90
  ];
91
91
  const PlotAddons = exports.GraphicsPlotAddons.concat(exports.GgPlotImplicitAddons, ...exports.PlotFunctionsWithAddParam);
92
92
  const RegexConvIn = /[-/\\^$*+?.()|[\]{}]/g;
93
+ /** Builds a regex from an array of plain names or namespaced {@link Identifier}s, deduplicating by name. */
93
94
  function toRegex(n) {
94
- return new RegExp(`^(${Array.from(new Set(n), s => s.replaceAll(RegexConvIn, String.raw `\$&`)).filter(s => s.length > 0).join('|')})$`);
95
+ return new RegExp(`^(${Array.from(new Set(n.map(identifier_1.Identifier.getName)), s => s.replaceAll(RegexConvIn, String.raw `\$&`)).filter(s => s.length > 0).join('|')})$`);
95
96
  }
96
97
  /**
97
98
  * Contains the built-in definitions recognized by flowR
98
99
  */
99
100
  exports.DefaultBuiltinConfig = [
100
- { type: 'constant', names: ['NULL', 'NA', 'NaN', 'NA_integer_', 'NA_real_', 'NA_complex_', 'NA_character_'], value: null, assumePrimitive: true },
101
- { type: 'constant', names: ['.GlobalEnv', '.BaseNamespaceEnv', '.BaseEnv'], value: null, assumePrimitive: true },
102
- { type: 'constant', names: ['TRUE', 'T'], value: true, assumePrimitive: true },
103
- { type: 'constant', names: ['FALSE', 'F'], value: false, assumePrimitive: true },
101
+ { type: 'constant', names: [
102
+ identifier_1.Identifier.from(['NULL', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['NA', "base" /* PkgName.Base */]),
103
+ identifier_1.Identifier.from(['NA_integer_', "base" /* PkgName.Base */]),
104
+ identifier_1.Identifier.from(['NA_real_', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['NA_complex_', "base" /* PkgName.Base */]),
105
+ identifier_1.Identifier.from(['NA_character_', "base" /* PkgName.Base */])
106
+ ], value: null, assumePrimitive: true },
107
+ { type: 'constant', names: [identifier_1.Identifier.from(['NaN', "base" /* PkgName.Base */])], value: NaN, assumePrimitive: true },
108
+ { type: 'constant', names: [
109
+ identifier_1.Identifier.from(['.GlobalEnv', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['.BaseNamespaceEnv', "base" /* PkgName.Base */]),
110
+ identifier_1.Identifier.from(['.BaseEnv', "base" /* PkgName.Base */])
111
+ ], value: null, assumePrimitive: true },
112
+ { type: 'constant', names: [identifier_1.Identifier.from(['TRUE', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['T', "base" /* PkgName.Base */])], value: true, assumePrimitive: true },
113
+ { type: 'constant', names: [identifier_1.Identifier.from(['FALSE', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['F', "base" /* PkgName.Base */])], value: false, assumePrimitive: true },
114
+ { type: 'constant', names: [identifier_1.Identifier.from(['Inf', "base" /* PkgName.Base */])], value: Infinity, assumePrimitive: true },
115
+ { type: 'constant', names: [identifier_1.Identifier.from(['-Inf', "base" /* PkgName.Base */])], value: -Infinity, assumePrimitive: true },
116
+ { type: 'constant', names: [identifier_1.Identifier.from(['pi', "base" /* PkgName.Base */])], value: Math.PI, assumePrimitive: true },
117
+ { type: 'constant', names: [identifier_1.Identifier.from(['LETTERS', "base" /* PkgName.Base */])],
118
+ value: Array.from({ length: 26 }, (_, i) => String.fromCharCode(65 + i)), assumePrimitive: true },
119
+ { type: 'constant', names: [identifier_1.Identifier.from(['letters', "base" /* PkgName.Base */])],
120
+ value: Array.from({ length: 26 }, (_, i) => String.fromCharCode(97 + i)), assumePrimitive: true },
121
+ { type: 'constant', names: [identifier_1.Identifier.from(['month.abb', "base" /* PkgName.Base */])],
122
+ value: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], assumePrimitive: true },
123
+ { type: 'constant', names: [identifier_1.Identifier.from(['month.name', "base" /* PkgName.Base */])],
124
+ value: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], assumePrimitive: true },
104
125
  {
105
126
  type: 'function',
106
127
  names: [
107
- '~', '+', '-', '*', '/', '^', '!', '?', '**', '==', '!=', '>', '<', '>=', '<=', '%%', '%/%', '%*%', '%in%', ':',
108
- 'rep', 'seq', 'seq_len', 'seq_along', 'seq.int', 'gsub', 'which', 'class', 'dimnames', 'min', 'max',
109
- 'intersect', 'subset', 'match', 'sqrt', 'abs', 'round', 'floor', 'ceiling', 'signif', 'trunc', 'log', 'log10', 'log2', 'sum', 'mean',
110
- 'unique', 'paste', 'paste0', 'read.csv', 'is.null', 'numeric', 'as.character', 'as.integer', 'as.logical', 'as.numeric', 'as.matrix',
111
- 'rbind', 'nrow', 'ncol', 'tryCatch', 'expression', 'factor',
112
- 'missing', 'as.data.frame', 'data.frame', 'na.omit', 'rownames', 'names', 'order', 'length', 'any', 'dim', 'matrix', 'cbind', 'nchar',
113
- 'pdf', 'jpeg', 'png', 'windows', 'postscript', 'xfig', 'bitmap', 'pictex', 'cairo_pdf', 'svg', 'bmp', 'tiff', 'X11', 'quartz',
114
- 'jitter'
128
+ /* arithmetic & comparison operators (base) */
129
+ identifier_1.Identifier.from(['~', "base" /* PkgName.Base */]),
130
+ identifier_1.Identifier.from(['+', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['-', "base" /* PkgName.Base */]),
131
+ identifier_1.Identifier.from(['*', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['/', "base" /* PkgName.Base */]),
132
+ identifier_1.Identifier.from(['^', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['**', "base" /* PkgName.Base */]),
133
+ identifier_1.Identifier.from(['!', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['?', "utils" /* PkgName.Utils */]),
134
+ identifier_1.Identifier.from(['==', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['!=', "base" /* PkgName.Base */]),
135
+ identifier_1.Identifier.from(['>', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['<', "base" /* PkgName.Base */]),
136
+ identifier_1.Identifier.from(['>=', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['<=', "base" /* PkgName.Base */]),
137
+ identifier_1.Identifier.from(['%%', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['%/%', "base" /* PkgName.Base */]),
138
+ identifier_1.Identifier.from(['%*%', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['%in%', "base" /* PkgName.Base */]),
139
+ identifier_1.Identifier.from([':', "base" /* PkgName.Base */]),
140
+ /* sequences & repetition (base) */
141
+ identifier_1.Identifier.from(['rep', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['seq', "base" /* PkgName.Base */]),
142
+ identifier_1.Identifier.from(['seq_len', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['seq_along', "base" /* PkgName.Base */]),
143
+ identifier_1.Identifier.from(['seq.int', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['order', "base" /* PkgName.Base */]),
144
+ /* string (base) */
145
+ identifier_1.Identifier.from(['gsub', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['paste', "base" /* PkgName.Base */]),
146
+ identifier_1.Identifier.from(['paste0', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['nchar', "base" /* PkgName.Base */]),
147
+ /* numeric math (base) */
148
+ identifier_1.Identifier.from(['sqrt', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['abs', "base" /* PkgName.Base */]),
149
+ identifier_1.Identifier.from(['round', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['floor', "base" /* PkgName.Base */]),
150
+ identifier_1.Identifier.from(['ceiling', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['signif', "base" /* PkgName.Base */]),
151
+ identifier_1.Identifier.from(['trunc', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['log', "base" /* PkgName.Base */]),
152
+ identifier_1.Identifier.from(['log10', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['log2', "base" /* PkgName.Base */]),
153
+ identifier_1.Identifier.from(['sum', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['mean', "base" /* PkgName.Base */]),
154
+ identifier_1.Identifier.from(['min', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['max', "base" /* PkgName.Base */]),
155
+ identifier_1.Identifier.from(['jitter', "stats" /* PkgName.Stats */]),
156
+ /* type coercion (base) */
157
+ identifier_1.Identifier.from(['numeric', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['as.character', "base" /* PkgName.Base */]),
158
+ identifier_1.Identifier.from(['as.integer', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['as.logical', "base" /* PkgName.Base */]),
159
+ identifier_1.Identifier.from(['as.numeric', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['as.matrix', "base" /* PkgName.Base */]),
160
+ identifier_1.Identifier.from(['as.data.frame', "base" /* PkgName.Base */]),
161
+ /* collections & data (base) */
162
+ identifier_1.Identifier.from(['unique', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['intersect', "base" /* PkgName.Base */]),
163
+ identifier_1.Identifier.from(['subset', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['match', "base" /* PkgName.Base */]),
164
+ identifier_1.Identifier.from(['which', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['any', "base" /* PkgName.Base */]),
165
+ identifier_1.Identifier.from(['length', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['expression', "base" /* PkgName.Base */]),
166
+ identifier_1.Identifier.from(['factor', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['missing', "base" /* PkgName.Base */]),
167
+ identifier_1.Identifier.from(['data.frame', "base" /* PkgName.Base */]),
168
+ /* matrix / data frame (base) */
169
+ identifier_1.Identifier.from(['matrix', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['cbind', "base" /* PkgName.Base */]),
170
+ identifier_1.Identifier.from(['rbind', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dim', "base" /* PkgName.Base */]),
171
+ identifier_1.Identifier.from(['nrow', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['ncol', "base" /* PkgName.Base */]),
172
+ identifier_1.Identifier.from(['dimnames', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['rownames', "base" /* PkgName.Base */]),
173
+ identifier_1.Identifier.from(['names', "base" /* PkgName.Base */]),
174
+ /* object inspection (base) */
175
+ identifier_1.Identifier.from(['class', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['is.null', "base" /* PkgName.Base */]),
176
+ /* other packages */
177
+ identifier_1.Identifier.from(['read.csv', "utils" /* PkgName.Utils */]), identifier_1.Identifier.from(['na.omit', "stats" /* PkgName.Stats */]),
178
+ /* graphic devices (grDevices) */
179
+ identifier_1.Identifier.from(['pdf', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['jpeg', "grDevices" /* PkgName.GrDevices */]),
180
+ identifier_1.Identifier.from(['png', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['windows', "grDevices" /* PkgName.GrDevices */]),
181
+ identifier_1.Identifier.from(['postscript', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['xfig', "grDevices" /* PkgName.GrDevices */]),
182
+ identifier_1.Identifier.from(['bitmap', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['pictex', "grDevices" /* PkgName.GrDevices */]),
183
+ identifier_1.Identifier.from(['cairo_pdf', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['svg', "grDevices" /* PkgName.GrDevices */]),
184
+ identifier_1.Identifier.from(['bmp', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['tiff', "grDevices" /* PkgName.GrDevices */]),
185
+ identifier_1.Identifier.from(['X11', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['quartz', "grDevices" /* PkgName.GrDevices */]),
186
+ identifier_1.Identifier.from(['dev.new', "grDevices" /* PkgName.GrDevices */]),
187
+ /* graphic devices (third-party) */
188
+ identifier_1.Identifier.from(['trellis.device', "lattice" /* PkgName.Lattice */]),
189
+ identifier_1.Identifier.from(['raster_pdf', "rasterpdf" /* PkgName.RasterPdf */]), identifier_1.Identifier.from(['agg_pdf', "ragg" /* PkgName.Ragg */]),
190
+ identifier_1.Identifier.from(['image_graph', "magick" /* PkgName.Magick */]), identifier_1.Identifier.from(['image_draw', "magick" /* PkgName.Magick */]),
115
191
  ],
116
192
  processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
117
193
  config: {},
118
194
  assumePrimitive: true
119
195
  },
120
- {
121
- type: 'function',
122
- names: [
123
- 't', 'aperm' /* transpose function, permutation generation */
124
- ],
125
- processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
126
- config: {},
127
- assumePrimitive: false
128
- },
129
- { type: 'function', names: ['rm'], processor: built_in_proc_name_1.BuiltInProcName.Rm, config: {}, assumePrimitive: true },
130
- { type: 'function', names: ['options'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: 'all' }, assumePrimitive: false },
131
- { type: 'function', names: ['mapply', 'Mapply'], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
132
- { type: 'function', names: ['lapply', 'sapply', 'vapply'], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
133
- { type: 'function', names: ['Lapply', 'Sapply', 'Vapply'], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false }, /* functool wrappers */
134
- { type: 'function', names: ['apply', 'tapply', 'Tapply'], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 2, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
135
- { type: 'function', names: ['print', 'message', 'warning', 'warn', 'info'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, forceArgs: 'all', hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ } }, assumePrimitive: false },
136
- { type: 'function', names: ['invisible'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, forceArgs: 'all' }, assumePrimitive: true },
196
+ { type: 'function', names: [identifier_1.Identifier.from(['t', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['aperm', "base" /* PkgName.Base */])], /* transpose/permutation */
197
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: {}, assumePrimitive: false },
198
+ { type: 'function', names: [identifier_1.Identifier.from(['rm', "base" /* PkgName.Base */])],
199
+ processor: built_in_proc_name_1.BuiltInProcName.Rm, config: {}, assumePrimitive: true },
200
+ { type: 'function', names: [identifier_1.Identifier.from(['options', "base" /* PkgName.Base */])],
201
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: 'all' }, assumePrimitive: false },
202
+ { type: 'function', names: [identifier_1.Identifier.from(['mapply', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['Mapply', "functools" /* PkgName.Functools */])],
203
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
204
+ { type: 'function', names: [identifier_1.Identifier.from(['lapply', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['sapply', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['vapply', "base" /* PkgName.Base */])],
205
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
206
+ { type: 'function', names: [identifier_1.Identifier.from(['Lapply', "functools" /* PkgName.Functools */]), identifier_1.Identifier.from(['Sapply', "functools" /* PkgName.Functools */]), identifier_1.Identifier.from(['Vapply', "functools" /* PkgName.Functools */])],
207
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
208
+ { type: 'function', names: [identifier_1.Identifier.from(['apply', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['tapply', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['Tapply', "functools" /* PkgName.Functools */])],
209
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 2, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
210
+ { type: 'function', names: [identifier_1.Identifier.from(['print', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['message', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['warning', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['warn', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['warn', "R.utils" /* PkgName.Rutils */]), identifier_1.Identifier.from(['info', "msgr" /* PkgName.Msgr */])],
211
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, forceArgs: 'all', hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ } }, assumePrimitive: false },
212
+ { type: 'function', names: [identifier_1.Identifier.from(['invisible', "base" /* PkgName.Base */])],
213
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, forceArgs: 'all' }, assumePrimitive: true },
137
214
  // graphics base
138
215
  { type: 'function', names: exports.PlotCreate,
139
216
  processor: built_in_proc_name_1.BuiltInProcName.Default,
@@ -207,7 +284,10 @@ exports.DefaultBuiltinConfig = [
207
284
  },
208
285
  {
209
286
  type: 'function',
210
- names: ['image_write', 'image_capture', 'dev.capture', 'dev.off'],
287
+ names: [
288
+ identifier_1.Identifier.from(['image_write', "magick" /* PkgName.Magick */]), identifier_1.Identifier.from(['image_capture', "magick" /* PkgName.Magick */]),
289
+ identifier_1.Identifier.from(['dev.capture', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['dev.off', "grDevices" /* PkgName.GrDevices */])
290
+ ],
211
291
  processor: built_in_proc_name_1.BuiltInProcName.Default,
212
292
  config: {
213
293
  libFn: true,
@@ -218,75 +298,124 @@ exports.DefaultBuiltinConfig = [
218
298
  }
219
299
  }, assumePrimitive: true
220
300
  },
221
- { type: 'function', names: ['('], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0 }, assumePrimitive: true },
222
- { type: 'function', names: ['load', 'load_all', 'setwd', 'set.seed'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: [true] }, assumePrimitive: false },
223
- { type: 'function', names: ['body', 'formals', 'environment'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: [true] }, assumePrimitive: true },
224
- { type: 'function',
225
- names: ['.Call', '.External', '.C', '.Fortran'],
301
+ { type: 'function', names: ['('],
302
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0 }, assumePrimitive: true },
303
+ { type: 'function', names: [identifier_1.Identifier.from(['load_all', "pkgload" /* PkgName.PkgLoad */]), identifier_1.Identifier.from(['load_all', "devtools" /* PkgName.Devtools */]), identifier_1.Identifier.from(['setwd', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['set.seed', "base" /* PkgName.Base */])],
304
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: [true] }, assumePrimitive: false },
305
+ { type: 'function', names: [identifier_1.Identifier.from(['body', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['formals', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['environment', "base" /* PkgName.Base */])],
306
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: [true] }, assumePrimitive: true },
307
+ {
308
+ type: 'function',
309
+ names: [identifier_1.Identifier.from(['.Call', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['.External', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['.C', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['.Fortran', "base" /* PkgName.Base */])],
226
310
  processor: built_in_proc_name_1.BuiltInProcName.Default,
227
- config: { hasUnknownSideEffects: true, forceArgs: [true],
311
+ config: {
312
+ hasUnknownSideEffects: true,
313
+ forceArgs: [true],
228
314
  treatAsFnCall: {
229
315
  '.Call': ['.NAME'],
230
316
  '.External': ['.NAME'],
231
317
  '.C': ['.NAME'],
232
318
  '.Fortran': ['.NAME']
233
319
  }
234
- }, assumePrimitive: true },
235
- { type: 'function', names: ['eval'], processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: false }, assumePrimitive: true },
236
- { type: 'function', names: ['evalText'], processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: true }, assumePrimitive: true },
237
- { type: 'function', names: ['cat'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ } }, assumePrimitive: false },
238
- { type: 'function', names: ['switch'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: [true] }, assumePrimitive: false },
239
- { type: 'function', names: ['return'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, cfg: 1 /* ExitPointType.Return */, useAsProcessor: built_in_proc_name_1.BuiltInProcName.Return }, assumePrimitive: true },
320
+ },
321
+ assumePrimitive: true
322
+ },
323
+ { type: 'function', names: [identifier_1.Identifier.from(['eval', "base" /* PkgName.Base */])],
324
+ processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: false }, assumePrimitive: true },
325
+ { type: 'function', names: [identifier_1.Identifier.from(['evalText', "SoDA" /* PkgName.Soda */])],
326
+ processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: true }, assumePrimitive: true },
327
+ { type: 'function', names: [identifier_1.Identifier.from(['cat', "base" /* PkgName.Base */])],
328
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ } }, assumePrimitive: false },
329
+ { type: 'function', names: [identifier_1.Identifier.from(['switch', "base" /* PkgName.Base */])],
330
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: [true] }, assumePrimitive: false },
331
+ { type: 'function', names: ['return'],
332
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, cfg: 1 /* ExitPointType.Return */, useAsProcessor: built_in_proc_name_1.BuiltInProcName.Return }, assumePrimitive: true },
240
333
  {
241
334
  type: 'function',
242
- names: ['stop', 'abort', 'cli_abort', 'throw', 'stop_bad_type', 'stop_bad_element_type', 'stop_bad_element_length'],
335
+ names: [
336
+ identifier_1.Identifier.from(['stop', "base" /* PkgName.Base */]),
337
+ identifier_1.Identifier.from(['abort', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['cli_abort', "cli" /* PkgName.Cli */]),
338
+ identifier_1.Identifier.from(['throw', "R.methodsS3" /* PkgName.RmethodsS3 */]), identifier_1.Identifier.from(['throw', "R.oo" /* PkgName.Roo */]), /* R.oo re-exports R.methodsS3::throw */
339
+ identifier_1.Identifier.from(['stop_bad_type', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['stop_bad_element_type', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['stop_bad_element_length', "purrr" /* PkgName.Purrr */])
340
+ ],
243
341
  processor: built_in_proc_name_1.BuiltInProcName.Default,
244
342
  config: { useAsProcessor: built_in_proc_name_1.BuiltInProcName.Stop, cfg: 4 /* ExitPointType.Error */, forceArgs: ['all'] },
245
343
  assumePrimitive: false
246
344
  },
247
- { type: 'function', names: ['try'], processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: {} }, assumePrimitive: true },
248
- { type: 'function', names: ['tryCatch', 'tryCatchLog'], processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: { error: 'error', finally: 'finally' } }, assumePrimitive: true },
249
- { type: 'function', names: ['stopifnot', 'assert_that'], processor: built_in_proc_name_1.BuiltInProcName.StopIfNot, config: {}, assumePrimitive: false },
250
- { type: 'function', names: ['break'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { useAsProcessor: built_in_proc_name_1.BuiltInProcName.Break, cfg: 2 /* ExitPointType.Break */ }, assumePrimitive: false },
251
- { type: 'function', names: ['next'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { cfg: 3 /* ExitPointType.Next */ }, assumePrimitive: false },
252
- { type: 'function', names: ['{'], processor: built_in_proc_name_1.BuiltInProcName.ExpressionList, config: {}, assumePrimitive: true },
253
- { type: 'function', names: ['source'], processor: built_in_proc_name_1.BuiltInProcName.Source, config: { includeFunctionCall: true, forceFollow: false }, assumePrimitive: false },
254
- { type: 'function', names: ['[', '[['], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false }, assumePrimitive: true },
255
- { type: 'function', names: ['$', '@'], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: true }, assumePrimitive: true },
256
- { type: 'function', names: ['if'], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: {}, assumePrimitive: true },
257
- { type: 'function', names: ['ifelse', 'fifelse', 'IfElse'], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'test', yes: 'yes', no: 'no' } }, assumePrimitive: true },
258
- { type: 'function', names: ['if_else'], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'condition', yes: 'true', no: 'false' } }, assumePrimitive: true },
259
- { type: 'function', names: ['get'], processor: built_in_proc_name_1.BuiltInProcName.Get, config: {}, assumePrimitive: false },
260
- { type: 'function', names: [identifier_1.Identifier.make('from', 'import'), identifier_1.Identifier.make('library', 'base'), identifier_1.Identifier.make('require', 'base')], processor: built_in_proc_name_1.BuiltInProcName.Library, config: {}, assumePrimitive: false },
261
- { type: 'function', names: ['<-', '='], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { canBeReplacement: true }, assumePrimitive: true },
262
- { type: 'function', names: [':='], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: {}, assumePrimitive: true },
263
- { type: 'function', names: ['assign', 'setValidity'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { targetVariable: true, mayHaveMoreArgs: true, environmentArg: 'envir' }, assumePrimitive: true },
264
- { type: 'function', names: ['setMethod'], processor: built_in_proc_name_1.BuiltInProcName.AssignmentLike, config: { targetVariable: true, canBeReplacement: false, target: { idx: 0, name: 'f' }, source: { idx: 2, name: 'definition' }, modesForFn: ['s4'] }, assumePrimitive: true },
265
- { type: 'function', names: ['delayedAssign'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { quoteSource: true, targetVariable: true }, assumePrimitive: true },
266
- { type: 'function', names: ['<<-'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, canBeReplacement: true }, assumePrimitive: true },
267
- { type: 'function', names: ['->'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { swapSourceAndTarget: true, canBeReplacement: true }, assumePrimitive: true },
268
- { type: 'function', names: ['->>'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, swapSourceAndTarget: true, canBeReplacement: true }, assumePrimitive: true },
269
- { type: 'function', names: ['&&', '&'], processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: true }, assumePrimitive: true },
270
- { type: 'function', names: ['||', '|'], processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: false }, assumePrimitive: true },
271
- { type: 'function', names: ['|>'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '_' }, assumePrimitive: true },
272
- { type: 'function', names: ['%>%', '%!>%'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', rhsMightBeSymbol: true }, assumePrimitive: true },
273
- { type: 'function', names: ['%<>%'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', assignLhs: true, rhsMightBeSymbol: true }, assumePrimitive: true },
274
- { type: 'function', names: ['%T>%'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', returnLhs: true, rhsMightBeSymbol: true }, assumePrimitive: true },
275
- { type: 'function', names: [identifier_1.Identifier.make('map', 'purrr'), identifier_1.Identifier.make('map_lgl', 'purrr'), identifier_1.Identifier.make('map_int', 'purrr'), identifier_1.Identifier.make('map_dbl', 'purrr'), identifier_1.Identifier.make('map_chr', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
345
+ { type: 'function', names: [identifier_1.Identifier.from(['try', "base" /* PkgName.Base */])],
346
+ processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: {} }, assumePrimitive: true },
347
+ { type: 'function', names: [identifier_1.Identifier.from(['tryCatch', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['tryCatchLog', "tryCatchLog" /* PkgName.TryCatchLog */])],
348
+ processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: { error: 'error', finally: 'finally' } }, assumePrimitive: true },
349
+ { type: 'function', names: [identifier_1.Identifier.from(['stopifnot', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['assert_that', "assertthat" /* PkgName.AssertThat */])],
350
+ processor: built_in_proc_name_1.BuiltInProcName.StopIfNot, config: {}, assumePrimitive: false },
351
+ { type: 'function', names: ['break'],
352
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { useAsProcessor: built_in_proc_name_1.BuiltInProcName.Break, cfg: 2 /* ExitPointType.Break */ }, assumePrimitive: false },
353
+ { type: 'function', names: ['next'],
354
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { cfg: 3 /* ExitPointType.Next */ }, assumePrimitive: false },
355
+ { type: 'function', names: ['{'],
356
+ processor: built_in_proc_name_1.BuiltInProcName.ExpressionList, config: {}, assumePrimitive: true },
357
+ { type: 'function', names: [identifier_1.Identifier.from(['source', "base" /* PkgName.Base */])],
358
+ processor: built_in_proc_name_1.BuiltInProcName.Source, config: { includeFunctionCall: true, forceFollow: false }, assumePrimitive: false },
359
+ { type: 'function', names: ['[', '[['],
360
+ processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false }, assumePrimitive: true },
361
+ { type: 'function', names: ['$', '@'],
362
+ processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: true }, assumePrimitive: true },
363
+ { type: 'function', names: ['::'],
364
+ processor: built_in_proc_name_1.BuiltInProcName.NamespaceAccess, config: { internal: false }, assumePrimitive: true },
365
+ { type: 'function', names: [':::'],
366
+ processor: built_in_proc_name_1.BuiltInProcName.NamespaceAccess, config: { internal: true }, assumePrimitive: true },
367
+ { type: 'function', names: ['if'],
368
+ processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: {}, assumePrimitive: true },
369
+ { type: 'function', names: [identifier_1.Identifier.from(['ifelse', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['fifelse', "data.table" /* PkgName.DataTable */]), 'IfElse'],
370
+ processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'test', yes: 'yes', no: 'no' } }, assumePrimitive: true },
371
+ { type: 'function', names: [identifier_1.Identifier.from(['if_else', "dplyr" /* PkgName.Dplyr */])],
372
+ processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'condition', yes: 'true', no: 'false' } }, assumePrimitive: true },
373
+ { type: 'function', names: [identifier_1.Identifier.from(['get', "base" /* PkgName.Base */])],
374
+ processor: built_in_proc_name_1.BuiltInProcName.Get, config: {}, assumePrimitive: false },
375
+ { type: 'function', names: [identifier_1.Identifier.from(['from', "import" /* PkgName.Import */]), identifier_1.Identifier.from(['library', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['require', "base" /* PkgName.Base */])],
376
+ processor: built_in_proc_name_1.BuiltInProcName.Library, config: {}, assumePrimitive: false },
377
+ { type: 'function', names: ['<-', '='],
378
+ processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { canBeReplacement: true }, assumePrimitive: true },
379
+ { type: 'function', names: [identifier_1.Identifier.from([':=', "data.table" /* PkgName.DataTable */])],
380
+ processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: {}, assumePrimitive: true },
381
+ { type: 'function', names: [identifier_1.Identifier.from(['assign', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['setValidity', "methods" /* PkgName.Methods */])],
382
+ processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { targetVariable: true, mayHaveMoreArgs: true, environmentArg: 'envir' }, assumePrimitive: true },
383
+ { type: 'function', names: [identifier_1.Identifier.from(['setMethod', "methods" /* PkgName.Methods */])],
384
+ processor: built_in_proc_name_1.BuiltInProcName.AssignmentLike,
385
+ config: { targetVariable: true, canBeReplacement: false, target: { idx: 0, name: 'f' }, source: { idx: 2, name: 'definition' }, modesForFn: ['s4'] },
386
+ assumePrimitive: true },
387
+ { type: 'function', names: [identifier_1.Identifier.from(['delayedAssign', "base" /* PkgName.Base */])],
388
+ processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { quoteSource: true, targetVariable: true }, assumePrimitive: true },
389
+ { type: 'function', names: ['<<-'],
390
+ processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, canBeReplacement: true }, assumePrimitive: true },
391
+ { type: 'function', names: ['->'],
392
+ processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { swapSourceAndTarget: true, canBeReplacement: true }, assumePrimitive: true },
393
+ { type: 'function', names: ['->>'],
394
+ processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, swapSourceAndTarget: true, canBeReplacement: true }, assumePrimitive: true },
395
+ { type: 'function', names: [identifier_1.Identifier.from(['&&', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['&', "base" /* PkgName.Base */])],
396
+ processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: true }, assumePrimitive: true },
397
+ { type: 'function', names: [identifier_1.Identifier.from(['||', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['|', "base" /* PkgName.Base */])],
398
+ processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: false }, assumePrimitive: true },
399
+ { type: 'function', names: ['|>'],
400
+ processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '_' }, assumePrimitive: true },
401
+ { type: 'function', names: [identifier_1.Identifier.from(['%>%', "magrittr" /* PkgName.Magrittr */]), '%!>%'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', rhsMightBeSymbol: true }, assumePrimitive: true },
402
+ { type: 'function', names: [identifier_1.Identifier.from(['%<>%', "magrittr" /* PkgName.Magrittr */])], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', assignLhs: true, rhsMightBeSymbol: true }, assumePrimitive: true },
403
+ { type: 'function', names: [identifier_1.Identifier.from(['%T>%', "magrittr" /* PkgName.Magrittr */])], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', returnLhs: true, rhsMightBeSymbol: true }, assumePrimitive: true },
404
+ { type: 'function', names: [identifier_1.Identifier.from(['map', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['map_lgl', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['map_int', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['map_dbl', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['map_chr', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
276
405
  args: {
277
406
  '.x': { index: 0, name: '.x' }
278
407
  },
279
408
  '.f': { index: 1, name: '.f' },
280
409
  ignore: ['.progress']
281
410
  } },
282
- { type: 'function', names: [identifier_1.Identifier.make('pmap', 'purrr'), identifier_1.Identifier.make('pmap_lgl', 'purrr'), identifier_1.Identifier.make('pmap_int', 'purrr'), identifier_1.Identifier.make('pmap_dbl', 'purrr'), identifier_1.Identifier.make('pmap_chr', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
411
+ { type: 'function', names: [identifier_1.Identifier.from(['pmap', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['pmap_lgl', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['pmap_int', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['pmap_dbl', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['pmap_chr', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
283
412
  args: {
284
413
  '.l': { index: 0, name: '.l' }
285
414
  },
286
415
  '.f': { index: 1, name: '.f' },
287
416
  ignore: ['.progress']
288
417
  } },
289
- { type: 'function', names: [identifier_1.Identifier.make('map2', 'purrr'), identifier_1.Identifier.make('map2_lgl', 'purrr'), identifier_1.Identifier.make('map2_int', 'purrr'), identifier_1.Identifier.make('map2_dbl', 'purrr'), identifier_1.Identifier.make('map2_chr', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
418
+ { type: 'function', names: [identifier_1.Identifier.from(['map2', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['map2_lgl', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['map2_int', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['map2_dbl', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['map2_chr', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
290
419
  args: {
291
420
  '.x': { index: 0, name: '.x' },
292
421
  '.y': { index: 1, name: '.y' },
@@ -294,14 +423,14 @@ exports.DefaultBuiltinConfig = [
294
423
  '.f': { index: 2, name: '.f' },
295
424
  ignore: ['.progress']
296
425
  } },
297
- { type: 'function', names: [identifier_1.Identifier.make('modify', 'purrr'), identifier_1.Identifier.make('imodify', 'purrr'), identifier_1.Identifier.make('imap', 'purrr'), identifier_1.Identifier.make('imap_lgl', 'purrr'), identifier_1.Identifier.make('imap_int', 'purrr'), identifier_1.Identifier.make('imap_dbl', 'purrr'), identifier_1.Identifier.make('imap_chr', 'purrr'), identifier_1.Identifier.make('imap_vec', 'purrr'), identifier_1.Identifier.make('lmap', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
426
+ { type: 'function', names: [identifier_1.Identifier.from(['modify', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['imodify', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['imap', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['imap_lgl', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['imap_int', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['imap_dbl', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['imap_chr', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['imap_vec', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['lmap', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
298
427
  args: {
299
428
  '.x': { index: 0, name: '.x' }
300
429
  },
301
430
  '.f': { index: 1, name: '.f' },
302
431
  ignore: []
303
432
  } },
304
- { type: 'function', names: [identifier_1.Identifier.make('modify2', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
433
+ { type: 'function', names: [identifier_1.Identifier.from(['modify2', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
305
434
  args: {
306
435
  '.x': { index: 0, name: '.x' },
307
436
  '.y': { index: 1, name: '.y' }
@@ -309,7 +438,7 @@ exports.DefaultBuiltinConfig = [
309
438
  '.f': { index: 2, name: '.f' },
310
439
  ignore: []
311
440
  } },
312
- { type: 'function', names: [identifier_1.Identifier.make('map_at', 'purrr'), identifier_1.Identifier.make('modify_at', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
441
+ { type: 'function', names: [identifier_1.Identifier.from(['map_at', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['modify_at', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
313
442
  args: {
314
443
  '.x': { index: 0, name: '.x' },
315
444
  '.at': { index: 1, name: '.at' },
@@ -317,7 +446,7 @@ exports.DefaultBuiltinConfig = [
317
446
  '.f': { index: 2, name: '.f' },
318
447
  ignore: ['.progress']
319
448
  } },
320
- { type: 'function', names: [identifier_1.Identifier.make('lmap_at', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
449
+ { type: 'function', names: [identifier_1.Identifier.from(['lmap_at', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
321
450
  args: {
322
451
  '.x': { index: 0, name: '.x' },
323
452
  '.at': { index: 1, name: '.at' },
@@ -325,7 +454,7 @@ exports.DefaultBuiltinConfig = [
325
454
  '.f': { index: 2, name: '.f' },
326
455
  ignore: []
327
456
  } },
328
- { type: 'function', names: [identifier_1.Identifier.make('map_if', 'purrr'), identifier_1.Identifier.make('modify_if', 'purrr'), identifier_1.Identifier.make('lmap_if', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
457
+ { type: 'function', names: [identifier_1.Identifier.from(['map_if', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['modify_if', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['lmap_if', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
329
458
  args: {
330
459
  '.x': { index: 0, name: '.x' },
331
460
  '.p': { index: 1, name: '.p' },
@@ -333,7 +462,7 @@ exports.DefaultBuiltinConfig = [
333
462
  '.f': { index: 2, name: '.f' },
334
463
  ignore: ['.else']
335
464
  } },
336
- { type: 'function', names: [identifier_1.Identifier.make('walk', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
465
+ { type: 'function', names: [identifier_1.Identifier.from(['walk', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
337
466
  args: {
338
467
  '.x': { index: 0, name: '.x' }
339
468
  },
@@ -341,7 +470,7 @@ exports.DefaultBuiltinConfig = [
341
470
  ignore: ['.progress'],
342
471
  returnArg: '.x'
343
472
  } },
344
- { type: 'function', names: [identifier_1.Identifier.make('iwalk', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
473
+ { type: 'function', names: [identifier_1.Identifier.from(['iwalk', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
345
474
  args: {
346
475
  '.x': { index: 0, name: '.x' }
347
476
  },
@@ -349,7 +478,7 @@ exports.DefaultBuiltinConfig = [
349
478
  ignore: [],
350
479
  returnArg: '.x'
351
480
  } },
352
- { type: 'function', names: [identifier_1.Identifier.make('pwalk', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
481
+ { type: 'function', names: [identifier_1.Identifier.from(['pwalk', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
353
482
  args: {
354
483
  '.l': { index: 0, name: '.l' }
355
484
  },
@@ -357,7 +486,7 @@ exports.DefaultBuiltinConfig = [
357
486
  ignore: ['.progress'],
358
487
  returnArg: '.l'
359
488
  } },
360
- { type: 'function', names: [identifier_1.Identifier.make('walk2', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
489
+ { type: 'function', names: [identifier_1.Identifier.from(['walk2', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
361
490
  args: {
362
491
  '.x': { index: 0, name: '.x' },
363
492
  '.y': { index: 1, name: '.y' }
@@ -366,21 +495,21 @@ exports.DefaultBuiltinConfig = [
366
495
  ignore: ['.progress'],
367
496
  returnArg: '.x'
368
497
  } },
369
- { type: 'function', names: [identifier_1.Identifier.make('map_vec', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
498
+ { type: 'function', names: [identifier_1.Identifier.from(['map_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
370
499
  args: {
371
500
  '.x': { index: 0, name: '.x' }
372
501
  },
373
502
  '.f': { index: 1, name: '.f' },
374
503
  ignore: ['.progress', '.ptype']
375
504
  } },
376
- { type: 'function', names: [identifier_1.Identifier.make('pmap_vec', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
505
+ { type: 'function', names: [identifier_1.Identifier.from(['pmap_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
377
506
  args: {
378
507
  '.l': { index: 0, name: '.l' }
379
508
  },
380
509
  '.f': { index: 1, name: '.f' },
381
510
  ignore: ['.progress', '.ptype']
382
511
  } },
383
- { type: 'function', names: [identifier_1.Identifier.make('map_depth', 'purrr'), identifier_1.Identifier.make('modify_depth', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
512
+ { type: 'function', names: [identifier_1.Identifier.from(['map_depth', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['modify_depth', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
384
513
  args: {
385
514
  '.x': { index: 0, name: '.x' },
386
515
  '.depth': { index: 2, name: '.depth' }
@@ -388,7 +517,7 @@ exports.DefaultBuiltinConfig = [
388
517
  '.f': { index: 2, name: '.f' },
389
518
  ignore: ['.ragged', '.is_node']
390
519
  } },
391
- { type: 'function', names: [identifier_1.Identifier.make('map2_vec', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
520
+ { type: 'function', names: [identifier_1.Identifier.from(['map2_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
392
521
  args: {
393
522
  '.x': { index: 0, name: '.x' },
394
523
  '.y': { index: 1, name: '.y' }
@@ -396,61 +525,93 @@ exports.DefaultBuiltinConfig = [
396
525
  '.f': { index: 2, name: '.f' },
397
526
  ignore: ['.progress', '.ptype']
398
527
  } },
399
- { type: 'function', names: [identifier_1.Identifier.make('across', 'dplyr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
528
+ { type: 'function', names: [identifier_1.Identifier.from(['across', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
400
529
  args: {
401
530
  '.x': { index: 0, name: '.cols' },
402
531
  },
403
532
  '.f': { index: 1, name: '.fns' },
404
533
  ignore: ['.names', '.unpack']
405
534
  } },
406
- { type: 'function', names: [identifier_1.Identifier.make('filter', 'dplyr'), identifier_1.Identifier.make('filter_out', 'dplyr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
535
+ { type: 'function', names: [identifier_1.Identifier.from(['filter', "dplyr" /* PkgName.Dplyr */]), identifier_1.Identifier.from(['filter_out', "janitor" /* PkgName.Janitor */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
407
536
  args: {
408
537
  '.x': { index: 0, name: '.data' },
409
538
  },
410
539
  '.f': { index: 1, name: '...' },
411
540
  ignore: ['.by', '.preserve']
412
541
  } },
413
- { type: 'function', names: [identifier_1.Identifier.make('rename_with', 'dplyr')], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
542
+ { type: 'function', names: [identifier_1.Identifier.from(['rename_with', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
414
543
  args: {
415
544
  '.x': { index: 0, name: '.data' },
416
545
  },
417
546
  '.f': { index: 1, name: '.fn' },
418
547
  ignore: ['.cols']
419
548
  } },
420
- { type: 'function', names: ['function', '\\'], processor: built_in_proc_name_1.BuiltInProcName.FunctionDefinition, config: {}, assumePrimitive: true },
421
- { type: 'function', names: ['quote', 'bquote'], processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0 }, assumePrimitive: true },
422
- { type: 'function', names: ['substitute'], processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, envArgIndex: 1 }, assumePrimitive: true },
423
- { type: 'function', names: [identifier_1.Identifier.make('enquo', 'rlang'), identifier_1.Identifier.make('enquos', 'rlang'), identifier_1.Identifier.make('quo', 'rlang'), identifier_1.Identifier.make('quos', 'rlang'), identifier_1.Identifier.make('sym', 'rlang'), identifier_1.Identifier.make('syms', 'rlang'), identifier_1.Identifier.make('ensym', 'rlang'), identifier_1.Identifier.make('ensyms', 'rlang'), identifier_1.Identifier.make('expr', 'rlang'), identifier_1.Identifier.make('exprs', 'rlang'), identifier_1.Identifier.make('quo_name', 'rlang'), identifier_1.Identifier.make('as_name', 'rlang'), identifier_1.Identifier.make('as_label', 'rlang'), identifier_1.Identifier.make('as_string', 'rlang')], processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, libFn: true }, assumePrimitive: true },
424
- { type: 'function', names: [identifier_1.Identifier.make('call2', 'rlang'), identifier_1.Identifier.make('exec', 'rlang'), identifier_1.Identifier.make('invoke', 'purrr'), identifier_1.Identifier.make('invoke_map', 'purrr')], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: true, unquoteFunction: true }, assumePrimitive: false },
425
- { type: 'function', names: ['local'], processor: built_in_proc_name_1.BuiltInProcName.Local, config: { args: { env: 'envir', expr: 'expr' } }, assumePrimitive: false },
426
- { type: 'function', names: ['with', 'within'], processor: built_in_proc_name_1.BuiltInProcName.With, config: {}, assumePrimitive: false },
427
- { type: 'function', names: ['new.env', identifier_1.Identifier.make('new_environment', 'rlang')], processor: built_in_proc_name_1.BuiltInProcName.NewEnv, config: {}, assumePrimitive: true },
428
- { type: 'function', names: ['globalenv', 'baseenv', 'emptyenv', 'parent.env', 'parent.frame', 'environmentName', 'as.environment', 'pos.to.env', 'sys.frame', 'sys.frames', 'topenv'],
429
- processor: built_in_proc_name_1.BuiltInProcName.Default, config: {}, assumePrimitive: true },
430
- { type: 'function', names: ['load', 'load_image'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true }, assumePrimitive: false },
549
+ { type: 'function', names: ['function', '\\'],
550
+ processor: built_in_proc_name_1.BuiltInProcName.FunctionDefinition, config: {}, assumePrimitive: true },
551
+ { type: 'function', names: [identifier_1.Identifier.from(['quote', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['bquote', "base" /* PkgName.Base */])],
552
+ processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0 }, assumePrimitive: true },
553
+ { type: 'function', names: [identifier_1.Identifier.from(['substitute', "base" /* PkgName.Base */])],
554
+ processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, envArgIndex: 1 }, assumePrimitive: true },
555
+ { type: 'function', names: [identifier_1.Identifier.from(['enquo', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['enquos', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['quo', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['quos', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['sym', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['syms', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['ensym', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['ensyms', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['expr', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['exprs', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['quo_name', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['as_name', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['as_label', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['as_string', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, libFn: true }, assumePrimitive: true },
556
+ { type: 'function', names: [identifier_1.Identifier.from(['call2', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['exec', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['invoke', "purrr" /* PkgName.Purrr */]), identifier_1.Identifier.from(['invoke_map', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: true, unquoteFunction: true }, assumePrimitive: false },
557
+ { type: 'function', names: [identifier_1.Identifier.from(['local', "base" /* PkgName.Base */])],
558
+ processor: built_in_proc_name_1.BuiltInProcName.Local, config: { args: { env: 'envir', expr: 'expr' } }, assumePrimitive: false },
559
+ { type: 'function', names: [identifier_1.Identifier.from(['with', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['within', "base" /* PkgName.Base */])],
560
+ processor: built_in_proc_name_1.BuiltInProcName.With, config: {}, assumePrimitive: false },
561
+ { type: 'function', names: [identifier_1.Identifier.from(['new.env', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['new_environment', "rlang" /* PkgName.Rlang */])],
562
+ processor: built_in_proc_name_1.BuiltInProcName.NewEnv, config: {}, assumePrimitive: true },
563
+ { type: 'function', names: [
564
+ identifier_1.Identifier.from(['globalenv', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['baseenv', "base" /* PkgName.Base */]),
565
+ identifier_1.Identifier.from(['emptyenv', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['parent.env', "base" /* PkgName.Base */]),
566
+ identifier_1.Identifier.from(['parent.frame', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['environmentName', "base" /* PkgName.Base */]),
567
+ identifier_1.Identifier.from(['as.environment', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['pos.to.env', "base" /* PkgName.Base */]),
568
+ identifier_1.Identifier.from(['sys.frame', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['sys.frames', "base" /* PkgName.Base */]),
569
+ identifier_1.Identifier.from(['topenv', "base" /* PkgName.Base */]),
570
+ ], processor: built_in_proc_name_1.BuiltInProcName.Default, config: {}, assumePrimitive: true },
571
+ { type: 'function', names: [identifier_1.Identifier.from(['load', "base" /* PkgName.Base */]), 'load_image'],
572
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true }, assumePrimitive: false },
431
573
  /* attach injects an environment's contents into the search path; detach reverses it (treated as unknown side effect) */
432
- { type: 'function', names: ['attach'], processor: built_in_proc_name_1.BuiltInProcName.Attach, config: {}, assumePrimitive: false },
574
+ { type: 'function', names: [identifier_1.Identifier.from(['attach', "base" /* PkgName.Base */])],
575
+ processor: built_in_proc_name_1.BuiltInProcName.Attach, config: {}, assumePrimitive: false },
433
576
  { type: 'function', names: ['for'], processor: built_in_proc_name_1.BuiltInProcName.ForLoop, config: {}, assumePrimitive: true },
434
577
  { type: 'function', names: ['repeat'], processor: built_in_proc_name_1.BuiltInProcName.RepeatLoop, config: {}, assumePrimitive: true },
435
578
  { type: 'function', names: ['while'], processor: built_in_proc_name_1.BuiltInProcName.WhileLoop, config: {}, assumePrimitive: true },
436
- { type: 'function', names: ['do.call'], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, unquoteFunction: true }, assumePrimitive: true },
437
- { type: 'function', names: ['UseMethod'], processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' } }, assumePrimitive: true },
438
- { type: 'function', names: ['NextMethod'], processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' }, inferFromClosure: true }, assumePrimitive: true },
439
- { type: 'function', names: ['new_generic'], processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: 'dispatch_args', fun: 'fun' } }, assumePrimitive: true },
440
- { type: 'function', names: ['setGeneric'], processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: undefined, fun: 'fun' } }, assumePrimitive: true },
441
- { type: 'function', names: ['S7_dispatch'], processor: built_in_proc_name_1.BuiltInProcName.S7Dispatch, config: { libFn: true }, assumePrimitive: true },
442
- { type: 'function', names: ['.Primitive', '.Internal'], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, unquoteFunction: true, resolveInEnvironment: 'global' }, assumePrimitive: true },
443
- { type: 'function', names: ['interference'], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { unquoteFunction: true, nameOfFunctionArgument: 'propensity_integrand', libFn: true }, assumePrimitive: false },
444
- { type: 'function', names: ['ddply'], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { unquoteFunction: true, indexOfFunction: 2, nameOfFunctionArgument: '.fun', libFn: true }, assumePrimitive: false },
445
- { type: 'function', names: ['list'], processor: built_in_proc_name_1.BuiltInProcName.List, config: {}, assumePrimitive: true },
446
- { type: 'function', names: ['Recall'], processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true }, assumePrimitive: false },
447
- { type: 'function', names: ['sys.function'], processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true, unknownOnNonZeroArg: true }, assumePrimitive: false },
448
- { type: 'function', names: ['c'], processor: built_in_proc_name_1.BuiltInProcName.Vector, config: {}, assumePrimitive: true, evalHandler: 'built-in:c' },
449
- { type: 'function', names: [identifier_1.Identifier.make('cmpfun', 'compiler'), identifier_1.Identifier.make('compile', 'compiler')], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0 } },
450
- { type: 'function', names: [identifier_1.Identifier.make('loadcmp', 'compiler')], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true } },
579
+ { type: 'function', names: [identifier_1.Identifier.from(['do.call', "base" /* PkgName.Base */])],
580
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, unquoteFunction: true }, assumePrimitive: true },
581
+ { type: 'function', names: [identifier_1.Identifier.from(['UseMethod', "base" /* PkgName.Base */])],
582
+ processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' } }, assumePrimitive: true },
583
+ { type: 'function', names: [identifier_1.Identifier.from(['NextMethod', "base" /* PkgName.Base */])],
584
+ processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' }, inferFromClosure: true }, assumePrimitive: true },
585
+ { type: 'function', names: [identifier_1.Identifier.from(['new_generic', "S7" /* PkgName.S7 */])],
586
+ processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: 'dispatch_args', fun: 'fun' } }, assumePrimitive: true },
587
+ { type: 'function', names: [identifier_1.Identifier.from(['setGeneric', "methods" /* PkgName.Methods */])],
588
+ processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: undefined, fun: 'fun' } }, assumePrimitive: true },
589
+ { type: 'function', names: [identifier_1.Identifier.from(['S7_dispatch', "S7" /* PkgName.S7 */])],
590
+ processor: built_in_proc_name_1.BuiltInProcName.S7Dispatch, config: { libFn: true }, assumePrimitive: true },
591
+ { type: 'function', names: [identifier_1.Identifier.from(['.Primitive', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['.Internal', "base" /* PkgName.Base */])],
592
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, unquoteFunction: true, resolveInEnvironment: 'global' }, assumePrimitive: true },
593
+ { type: 'function', names: [identifier_1.Identifier.from(['interference', "inferference" /* PkgName.Inferference */])],
594
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { unquoteFunction: true, nameOfFunctionArgument: 'propensity_integrand', libFn: true }, assumePrimitive: false },
595
+ { type: 'function', names: [identifier_1.Identifier.from(['ddply', "plyr" /* PkgName.Plyr */])],
596
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { unquoteFunction: true, indexOfFunction: 2, nameOfFunctionArgument: '.fun', libFn: true }, assumePrimitive: false },
597
+ { type: 'function', names: [identifier_1.Identifier.from(['list', "base" /* PkgName.Base */])],
598
+ processor: built_in_proc_name_1.BuiltInProcName.List, config: {}, assumePrimitive: true },
599
+ { type: 'function', names: [identifier_1.Identifier.from(['Recall', "base" /* PkgName.Base */])],
600
+ processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true }, assumePrimitive: false },
601
+ { type: 'function', names: [identifier_1.Identifier.from(['sys.function', "base" /* PkgName.Base */])],
602
+ processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true, unknownOnNonZeroArg: true }, assumePrimitive: false },
603
+ { type: 'function', names: [identifier_1.Identifier.from(['c', "base" /* PkgName.Base */])],
604
+ processor: built_in_proc_name_1.BuiltInProcName.Vector, config: {}, assumePrimitive: true, evalHandler: 'built-in:c' },
605
+ { type: 'function', names: [identifier_1.Identifier.from(['cmpfun', "compiler" /* PkgName.Compiler */]), identifier_1.Identifier.from(['compile', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0 } },
606
+ { type: 'function', names: [identifier_1.Identifier.from(['loadcmp', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true } },
451
607
  {
452
608
  type: 'function',
453
- names: ['setnames', 'setNames', 'setkey', 'setkeyv', 'setindex', 'setindexv', 'setattr'],
609
+ names: [
610
+ identifier_1.Identifier.from(['setnames', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['setNames', "base" /* PkgName.Base */]),
611
+ identifier_1.Identifier.from(['setkey', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['setkeyv', "data.table" /* PkgName.DataTable */]),
612
+ identifier_1.Identifier.from(['setindex', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['setindexv', "data.table" /* PkgName.DataTable */]),
613
+ identifier_1.Identifier.from(['setattr', "data.table" /* PkgName.DataTable */])
614
+ ],
454
615
  processor: built_in_proc_name_1.BuiltInProcName.Assignment,
455
616
  config: {
456
617
  canBeReplacement: false,
@@ -462,14 +623,20 @@ exports.DefaultBuiltinConfig = [
462
623
  {
463
624
  type: 'function',
464
625
  names: [
465
- 'sys.on.exit', 'par', 'tpar', 'sink',
626
+ identifier_1.Identifier.from(['sys.on.exit', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['par', "graphics" /* PkgName.Graphics */]),
627
+ identifier_1.Identifier.from(['tpar', "tinyplot" /* PkgName.TinyPlot */]), identifier_1.Identifier.from(['sink', "base" /* PkgName.Base */]),
466
628
  /* library and require is handled above */
467
- 'requireNamespace', 'loadNamespace', 'attachNamespace', 'asNamespace',
468
- identifier_1.Identifier.make('use', 'base'),
469
- /* weird env attachments */
470
- 'unname', 'data',
471
- /* file creation/removal */
472
- 'dir.create', 'dir_create', 'Sys.chmod', 'unlink', 'file.remove', 'file.rename', 'file.copy', 'file.link', 'file.append', 'Sys.junction'
629
+ identifier_1.Identifier.from(['requireNamespace', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['loadNamespace', "base" /* PkgName.Base */]),
630
+ identifier_1.Identifier.from(['attachNamespace', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['asNamespace', "base" /* PkgName.Base */]),
631
+ identifier_1.Identifier.from(['use', "base" /* PkgName.Base */]),
632
+ /* env attachment */
633
+ identifier_1.Identifier.from(['unname', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['data', "utils" /* PkgName.Utils */]),
634
+ /* file creation/removal (base) */
635
+ identifier_1.Identifier.from(['dir.create', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dir_create', "fs" /* PkgName.Fs */]),
636
+ identifier_1.Identifier.from(['Sys.chmod', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['unlink', "base" /* PkgName.Base */]),
637
+ identifier_1.Identifier.from(['file.remove', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['file.rename', "base" /* PkgName.Base */]),
638
+ identifier_1.Identifier.from(['file.copy', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['file.link', "base" /* PkgName.Base */]),
639
+ identifier_1.Identifier.from(['file.append', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['Sys.junction', "base" /* PkgName.Base */]),
473
640
  ],
474
641
  processor: built_in_proc_name_1.BuiltInProcName.Default,
475
642
  config: { hasUnknownSideEffects: true },
@@ -478,10 +645,21 @@ exports.DefaultBuiltinConfig = [
478
645
  {
479
646
  type: 'function',
480
647
  names: [
481
- 'tinytheme', 'theme_set',
482
- identifier_1.Identifier.make('context', 'testthat'),
483
- /* downloader and installer functions (R, devtools, BiocManager) */
484
- 'library.dynam', 'install.packages', 'install', 'install_github', 'install_gitlab', 'install_bitbucket', 'install_url', 'install_git', 'install_svn', 'install_local', 'install_version', 'update_packages',
648
+ identifier_1.Identifier.from(['tinytheme', "tinyplot" /* PkgName.TinyPlot */]), identifier_1.Identifier.from(['theme_set', "ggplot2" /* PkgName.GgPlot2 */]),
649
+ identifier_1.Identifier.from(['context', "testthat" /* PkgName.Testthat */]),
650
+ /* installers (utils / devtools / remotes; devtools re-exports the entire remotes install API) */
651
+ identifier_1.Identifier.from(['library.dynam', "base" /* PkgName.Base */]),
652
+ identifier_1.Identifier.from(['install.packages', "utils" /* PkgName.Utils */]),
653
+ identifier_1.Identifier.from(['install', "devtools" /* PkgName.Devtools */]),
654
+ identifier_1.Identifier.from(['install_github', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_github', "devtools" /* PkgName.Devtools */]),
655
+ identifier_1.Identifier.from(['install_gitlab', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_gitlab', "devtools" /* PkgName.Devtools */]),
656
+ identifier_1.Identifier.from(['install_bitbucket', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_bitbucket', "devtools" /* PkgName.Devtools */]),
657
+ identifier_1.Identifier.from(['install_url', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_url', "devtools" /* PkgName.Devtools */]),
658
+ identifier_1.Identifier.from(['install_git', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_git', "devtools" /* PkgName.Devtools */]),
659
+ identifier_1.Identifier.from(['install_svn', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_svn', "devtools" /* PkgName.Devtools */]),
660
+ identifier_1.Identifier.from(['install_local', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_local', "devtools" /* PkgName.Devtools */]),
661
+ identifier_1.Identifier.from(['install_version', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_version', "devtools" /* PkgName.Devtools */]),
662
+ identifier_1.Identifier.from(['update_packages', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['update_packages', "devtools" /* PkgName.Devtools */]),
485
663
  ],
486
664
  processor: built_in_proc_name_1.BuiltInProcName.Default,
487
665
  config: { hasUnknownSideEffects: true, libFn: true },
@@ -489,7 +667,7 @@ exports.DefaultBuiltinConfig = [
489
667
  },
490
668
  {
491
669
  type: 'function',
492
- names: ['on.exit'],
670
+ names: [identifier_1.Identifier.from(['on.exit', "base" /* PkgName.Base */])],
493
671
  processor: built_in_proc_name_1.BuiltInProcName.RegisterHook,
494
672
  config: {
495
673
  hook: hooks_1.KnownHooks.OnFnExit,
@@ -505,27 +683,28 @@ exports.DefaultBuiltinConfig = [
505
683
  {
506
684
  type: 'replacement',
507
685
  suffixes: ['<-', '<<-'],
508
- names: ['[', '[[', 'names', 'dimnames', 'attributes', 'attr', 'class', 'levels', 'rownames', 'colnames', 'body', 'environment', 'formals'],
509
- config: {
510
- readIndices: true
511
- }
686
+ names: [
687
+ '[', '[[',
688
+ identifier_1.Identifier.from(['names', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dimnames', "base" /* PkgName.Base */]),
689
+ identifier_1.Identifier.from(['attributes', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['attr', "base" /* PkgName.Base */]),
690
+ identifier_1.Identifier.from(['class', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['levels', "base" /* PkgName.Base */]),
691
+ identifier_1.Identifier.from(['rownames', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['colnames', "base" /* PkgName.Base */]),
692
+ identifier_1.Identifier.from(['body', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['environment', "base" /* PkgName.Base */]),
693
+ identifier_1.Identifier.from(['formals', "base" /* PkgName.Base */]),
694
+ ],
695
+ config: { readIndices: true }
512
696
  },
513
697
  {
514
698
  type: 'replacement',
515
699
  suffixes: ['<-', '<<-'],
516
- names: ['method'],
517
- config: {
518
- readIndices: true,
519
- constructName: 's7'
520
- }
700
+ names: [identifier_1.Identifier.from(['method', "S7" /* PkgName.S7 */])],
701
+ config: { readIndices: true, constructName: 's7' }
521
702
  },
522
703
  {
523
704
  type: 'replacement',
524
705
  suffixes: ['<-', '<<-'],
525
706
  names: ['$', '@'],
526
- config: {
527
- readIndices: false
528
- }
707
+ config: { readIndices: false }
529
708
  },
530
709
  ];
531
710
  /**
@@ -535,8 +714,8 @@ function getDefaultProcessor(name) {
535
714
  if (name.startsWith(unnamed_call_handling_1.UnnamedFunctionCallPrefix)) {
536
715
  return built_in_proc_name_1.BuiltInProcName.Unnamed;
537
716
  }
538
- const fn = exports.DefaultBuiltinConfig.find(def => (def.names.includes(name) && def.type !== 'constant')
539
- || (def.type === 'replacement' && def.suffixes.flatMap(d => def.names.map(n => `${n}${d}`)).includes(name)));
717
+ const fn = exports.DefaultBuiltinConfig.find(def => (def.names.some(n => identifier_1.Identifier.getName(n) === name) && def.type !== 'constant')
718
+ || (def.type === 'replacement' && def.suffixes.flatMap(d => def.names.map(n => `${identifier_1.Identifier.getName(n)}${d}`)).includes(name)));
540
719
  if (fn?.type === 'replacement') {
541
720
  return built_in_proc_name_1.BuiltInProcName.Replacement;
542
721
  }