@eagleoutice/flowr 2.13.3 → 2.13.5

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 (176) hide show
  1. package/README.md +32 -32
  2. package/abstract-interpretation/absint-visitor.js +2 -2
  3. package/abstract-interpretation/data-frame/mappers/arguments.js +2 -2
  4. package/abstract-interpretation/data-frame/mappers/replacement-mapper.js +1 -1
  5. package/abstract-interpretation/unsupported-functions.js +1 -1
  6. package/cli/repl/core.js +10 -2
  7. package/config.d.ts +4 -1
  8. package/config.js +10 -1
  9. package/control-flow/cfg-dead-code.js +91 -15
  10. package/control-flow/extract-cfg.js +93 -8
  11. package/control-flow/semantic-cfg-guided-visitor.js +2 -0
  12. package/dataflow/environments/built-in-config.d.ts +6 -3
  13. package/dataflow/environments/built-in-eval-name.d.ts +20 -0
  14. package/dataflow/environments/built-in-eval-name.js +25 -0
  15. package/dataflow/environments/built-in-proc-name.d.ts +4 -0
  16. package/dataflow/environments/built-in-proc-name.js +4 -0
  17. package/dataflow/environments/built-in-props.d.ts +175 -0
  18. package/dataflow/environments/built-in-props.js +207 -0
  19. package/dataflow/environments/built-in.d.ts +28 -20
  20. package/dataflow/environments/built-in.js +39 -8
  21. package/dataflow/environments/default-builtin-config.d.ts +1094 -86
  22. package/dataflow/environments/default-builtin-config.js +496 -212
  23. package/dataflow/environments/identifier.d.ts +25 -1
  24. package/dataflow/environments/identifier.js +24 -2
  25. package/dataflow/environments/query-fn-props.d.ts +102 -0
  26. package/dataflow/environments/query-fn-props.js +188 -0
  27. package/dataflow/eval/resolve/alias-tracking.d.ts +2 -0
  28. package/dataflow/eval/resolve/alias-tracking.js +12 -2
  29. package/dataflow/eval/resolve/match-arguments.d.ts +15 -0
  30. package/dataflow/eval/resolve/match-arguments.js +77 -0
  31. package/dataflow/eval/resolve/resolve-numbers.d.ts +202 -0
  32. package/dataflow/eval/resolve/resolve-numbers.js +163 -0
  33. package/dataflow/eval/resolve/resolve-operators.d.ts +60 -0
  34. package/dataflow/eval/resolve/resolve-operators.js +115 -0
  35. package/dataflow/eval/resolve/resolve-strings.d.ts +98 -0
  36. package/dataflow/eval/resolve/resolve-strings.js +116 -0
  37. package/dataflow/eval/resolve/resolve.d.ts +5 -23
  38. package/dataflow/eval/resolve/resolve.js +56 -87
  39. package/dataflow/fn/higher-order-function.js +3 -3
  40. package/dataflow/fn/recursive-function.js +1 -1
  41. package/dataflow/graph/df-helper.js +1 -1
  42. package/dataflow/graph/vertex.d.ts +32 -25
  43. package/dataflow/graph/vertex.js +40 -36
  44. package/dataflow/internal/process/functions/call/built-in/built-in-access.d.ts +1 -0
  45. package/dataflow/internal/process/functions/call/built-in/built-in-access.js +7 -4
  46. package/dataflow/internal/process/functions/call/built-in/built-in-apply.d.ts +14 -0
  47. package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +28 -29
  48. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +41 -48
  49. package/dataflow/internal/process/functions/call/built-in/built-in-class-generator.d.ts +14 -0
  50. package/dataflow/internal/process/functions/call/built-in/built-in-class-generator.js +45 -0
  51. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +7 -1
  52. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +30 -0
  53. package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +62 -2
  54. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +63 -16
  55. package/dataflow/internal/process/functions/call/built-in/built-in-get.js +29 -9
  56. package/dataflow/internal/process/functions/call/built-in/built-in-list.d.ts +5 -1
  57. package/dataflow/internal/process/functions/call/built-in/built-in-list.js +35 -0
  58. package/dataflow/internal/process/functions/call/built-in/built-in-new-env.js +2 -2
  59. package/dataflow/internal/process/functions/call/built-in/built-in-recall.js +1 -1
  60. package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.d.ts +2 -0
  61. package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.js +46 -0
  62. package/dataflow/internal/process/functions/call/built-in/built-in-source.js +1 -1
  63. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +3 -1
  64. package/dataflow/internal/process/functions/call/known-call-handling.d.ts +2 -1
  65. package/dataflow/internal/process/functions/call/known-call-handling.js +2 -1
  66. package/dataflow/internal/process/functions/call/unnamed-call-handling.js +24 -0
  67. package/dataflow/internal/process/functions/process-parameter.js +2 -1
  68. package/documentation/data/faq/faqs.js +11 -0
  69. package/documentation/doc-util/doc-types.js +1 -1
  70. package/documentation/wiki-analyzer.js +75 -0
  71. package/documentation/wiki-core.js +65 -16
  72. package/documentation/wiki-interface.js +3 -0
  73. package/linter/linter-rules.d.ts +10 -11
  74. package/linter/rules/absolute-path.js +1 -1
  75. package/linter/rules/deprecated-functions.js +5 -3
  76. package/linter/rules/function-finder-util.d.ts +2 -2
  77. package/linter/rules/function-finder-util.js +11 -4
  78. package/linter/rules/network-functions.d.ts +25 -5
  79. package/linter/rules/network-functions.js +51 -11
  80. package/linter/rules/no-leaked-credentials.js +1 -1
  81. package/linter/rules/problematic-inputs.d.ts +1 -1
  82. package/linter/rules/problematic-inputs.js +7 -1
  83. package/linter/rules/seeded-randomness.d.ts +5 -8
  84. package/linter/rules/seeded-randomness.js +17 -9
  85. package/linter/rules/undefined-symbol.js +1 -1
  86. package/linter/rules/unused-definition.js +15 -10
  87. package/linter/rules/useless-loop.js +1 -1
  88. package/package.json +3 -2
  89. package/project/cache/flowr-analyzer-cache.d.ts +4 -3
  90. package/project/cache/flowr-analyzer-cache.js +32 -13
  91. package/project/cache/flowr-cache.d.ts +39 -12
  92. package/project/cache/flowr-cache.js +5 -3
  93. package/project/context/flowr-analyzer-context.d.ts +8 -1
  94. package/project/context/flowr-analyzer-context.js +11 -1
  95. package/project/context/flowr-analyzer-dependencies-context.d.ts +4 -2
  96. package/project/context/flowr-analyzer-dependencies-context.js +15 -1
  97. package/project/context/flowr-analyzer-files-context.d.ts +8 -4
  98. package/project/context/flowr-analyzer-files-context.js +20 -1
  99. package/project/context/flowr-analyzer-incremental-analysis-context.d.ts +33 -0
  100. package/project/context/flowr-analyzer-incremental-analysis-context.js +63 -0
  101. package/project/context/flowr-analyzer-meta-context.d.ts +3 -1
  102. package/project/context/flowr-analyzer-meta-context.js +14 -0
  103. package/project/context/flowr-file.d.ts +25 -3
  104. package/project/context/flowr-file.js +24 -2
  105. package/project/dependency-version-space.d.ts +37 -0
  106. package/project/dependency-version-space.js +118 -26
  107. package/project/flowr-analyzer.d.ts +6 -0
  108. package/project/flowr-analyzer.js +6 -2
  109. package/project/incremental/incremental-parse/edit-computation.d.ts +7 -0
  110. package/project/incremental/incremental-parse/edit-computation.js +61 -0
  111. package/project/incremental/incremental-parse/incremental-parse.d.ts +12 -0
  112. package/project/incremental/incremental-parse/incremental-parse.js +37 -0
  113. package/project/plugins/file-plugins/files/flowr-jupyter-file.d.ts +1 -1
  114. package/project/plugins/file-plugins/files/flowr-manifest-files.d.ts +57 -0
  115. package/project/plugins/file-plugins/files/flowr-manifest-files.js +121 -0
  116. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +2 -2
  117. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +2 -2
  118. package/project/plugins/file-plugins/files/flowr-sweave-file.d.ts +1 -1
  119. package/project/plugins/file-plugins/flowr-analyzer-manifest-file-plugin.d.ts +33 -0
  120. package/project/plugins/file-plugins/flowr-analyzer-manifest-file-plugin.js +53 -0
  121. package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.d.ts +1 -1
  122. package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.js +3 -3
  123. package/project/plugins/package-version-plugins/flowr-analyzer-meta-manifest-file-plugin.d.ts +27 -0
  124. package/project/plugins/package-version-plugins/flowr-analyzer-meta-manifest-file-plugin.js +47 -0
  125. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.d.ts +7 -0
  126. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +31 -3
  127. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.d.ts +10 -4
  128. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +17 -4
  129. package/project/plugins/plugin-registry.d.ts +4 -4
  130. package/project/plugins/plugin-registry.js +7 -4
  131. package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +4 -4
  132. package/project/sigdb/reader.d.ts +7 -0
  133. package/project/sigdb/reader.js +12 -0
  134. package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +1 -1
  135. package/queries/catalog/call-context-query/identify-link-to-nested-call-relation.js +1 -1
  136. package/queries/catalog/dependencies-query/function-info/derived-functions.d.ts +10 -0
  137. package/queries/catalog/dependencies-query/function-info/derived-functions.js +41 -0
  138. package/queries/catalog/dependencies-query/function-info/read-functions.js +14 -13
  139. package/queries/catalog/dependencies-query/function-info/write-functions.js +28 -36
  140. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.js +33 -3
  141. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.d.ts +31 -0
  142. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.js +9 -2
  143. package/queries/catalog/input-sources-query/input-source-functions.d.ts +9 -10
  144. package/queries/catalog/input-sources-query/input-source-functions.js +23 -394
  145. package/queries/catalog/input-sources-query/input-sources-query-executor.js +11 -6
  146. package/queries/catalog/input-sources-query/input-sources-query-format.d.ts +7 -0
  147. package/queries/catalog/input-sources-query/input-sources-query-format.js +28 -10
  148. package/queries/catalog/input-sources-query/simple-input-classifier.d.ts +14 -1
  149. package/queries/catalog/input-sources-query/simple-input-classifier.js +24 -0
  150. package/queries/catalog/signature-query/signature-query-executor.d.ts +2 -1
  151. package/queries/catalog/signature-query/signature-query-executor.js +79 -3
  152. package/queries/catalog/signature-query/signature-query-format.d.ts +27 -0
  153. package/queries/catalog/signature-query/signature-query-render.js +21 -3
  154. package/r-bridge/data/data.d.ts +2 -2
  155. package/r-bridge/data/data.js +2 -2
  156. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.d.ts +6 -2
  157. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +21 -2
  158. package/r-bridge/parser.d.ts +11 -1
  159. package/r-bridge/parser.js +7 -4
  160. package/r-bridge/shell-executor.d.ts +1 -0
  161. package/r-bridge/shell-executor.js +1 -0
  162. package/r-bridge/shell.d.ts +1 -0
  163. package/r-bridge/shell.js +1 -0
  164. package/reconstruct/inline/source-inline-map.js +1 -1
  165. package/search/flowr-search-filters.d.ts +1 -6
  166. package/search/flowr-search-filters.js +1 -8
  167. package/search/search-executor/search-enrichers.d.ts +2 -0
  168. package/search/search-executor/search-enrichers.js +29 -12
  169. package/util/mermaid/dfg.js +1 -1
  170. package/util/version.js +1 -1
  171. package/project/plugins/file-plugins/files/flowr-rproject-file.d.ts +0 -31
  172. package/project/plugins/file-plugins/files/flowr-rproject-file.js +0 -66
  173. package/project/plugins/file-plugins/flowr-analyzer-rproject-file-plugin.d.ts +0 -22
  174. package/project/plugins/file-plugins/flowr-analyzer-rproject-file-plugin.js +0 -36
  175. package/project/plugins/package-version-plugins/flowr-analyzer-meta-rproject-file-plugin.d.ts +0 -13
  176. package/project/plugins/package-version-plugins/flowr-analyzer-meta-rproject-file-plugin.js +0 -32
@@ -9,8 +9,10 @@ const unnamed_call_handling_1 = require("../internal/process/functions/call/unna
9
9
  const hooks_1 = require("../hooks");
10
10
  const identifier_1 = require("./identifier");
11
11
  const built_in_proc_name_1 = require("./built-in-proc-name");
12
+ const built_in_eval_name_1 = require("./built-in-eval-name");
12
13
  const known_call_handling_1 = require("../internal/process/functions/call/known-call-handling");
13
14
  const data_masking_functions_1 = require("./data-masking-functions");
15
+ const built_in_props_1 = require("./built-in-props");
14
16
  /** Which stack environment an env-returning/-transforming builtin denotes (see {@link StackEnvBuiltins}). */
15
17
  var StackEnvKind;
16
18
  (function (StackEnvKind) {
@@ -19,7 +21,9 @@ var StackEnvKind;
19
21
  StackEnvKind[StackEnvKind["Empty"] = 2] = "Empty";
20
22
  StackEnvKind[StackEnvKind["Current"] = 3] = "Current";
21
23
  StackEnvKind[StackEnvKind["Parent"] = 4] = "Parent";
22
- StackEnvKind[StackEnvKind["Named"] = 5] = "Named";
24
+ /** `parent.frame()`: the dynamic caller's frame, over-approximated to the global env (exact at a top-level call). */
25
+ StackEnvKind[StackEnvKind["CallerFrame"] = 5] = "CallerFrame";
26
+ StackEnvKind[StackEnvKind["Named"] = 6] = "Named";
23
27
  })(StackEnvKind || (exports.StackEnvKind = StackEnvKind = {}));
24
28
  /** Maps the env-returning/-transforming base builtins and constants to the stack environment each denotes. */
25
29
  exports.StackEnvBuiltins = {
@@ -28,6 +32,7 @@ exports.StackEnvBuiltins = {
28
32
  emptyenv: StackEnvKind.Empty,
29
33
  environment: StackEnvKind.Current,
30
34
  'parent.env': StackEnvKind.Parent,
35
+ 'parent.frame': StackEnvKind.CallerFrame,
31
36
  'as.environment': StackEnvKind.Named,
32
37
  '.GlobalEnv': StackEnvKind.Global,
33
38
  '.BaseEnv': StackEnvKind.Base,
@@ -90,7 +95,7 @@ exports.GgPlotImplicitAddons = [
90
95
  'coord_trans', 'coord_sf', 'coord_cartesian', 'coord_fixed', 'coord_flip', 'coord_quickmap', 'coord_equal', 'coord_map', 'coord_polar', 'coord_munch', 'coord_radial',
91
96
  'annotate', 'annotation_custom', 'annotation_raster', 'annotation_map', 'annotation_logticks', 'borders', 'ggtitle', 'expansion', 'expand_limits', 'expand_scale', 'guides',
92
97
  'wrap_by',
93
- 'theme_solid', 'theme_hc', 'theme_excel_new', 'theme_few', 'theme_clean', 'theme_wsj', 'theme_calc', 'theme_par', 'theme_tufte', 'theme_igray', 'theme_solarized_2', 'theme_excel',
98
+ 'theme_solid', 'theme_hc', 'theme_excel_new', 'theme_few', 'theme_clean', 'theme_wsj', 'theme_calc', 'theme_par', 'theme_igray', 'theme_solarized_2', 'theme_excel',
94
99
  'theme_economist', 'theme_stata', 'theme_map', 'theme_fivethirtyeight', 'theme_economist_white', 'theme_base', 'theme_foundation', 'theme_gdocs', 'theme_pander', 'theme_solarized',
95
100
  'scale_shape_tableau', 'scale_fill_pander', 'scale_shape_few', 'scale_colour_excel_new', 'scale_colour_hc', 'scale_fill_ptol', 'scale_fill_gradient2_tableau', 'scale_shape_calc', 'scale_fill_stata',
96
101
  'scale_colour_tableau', 'scale_colour_colorblind', 'scale_color_stata', 'scale_colour_economist', 'scale_fill_calc', 'scale_fill_gradient_tableau', 'scale_shape_cleveland', 'scale_color_pander',
@@ -113,28 +118,32 @@ exports.GgPlotAddons = [
113
118
  'ggdraw', 'last_plot'
114
119
  ];
115
120
  const PlotAddons = exports.GraphicsPlotAddons.concat(exports.GgPlotImplicitAddons, ...exports.PlotFunctionsWithAddParam);
121
+ /* the argument shapes that repeat below: what the call computes its result from */
122
+ const SigBinOp = [['e1', built_in_props_1.ArgProp.Value], ['e2', built_in_props_1.ArgProp.Value]];
123
+ const SigXY = [['x', built_in_props_1.ArgProp.Value], ['y', built_in_props_1.ArgProp.Value]];
124
+ const SigX = [['x', built_in_props_1.ArgProp.Value]];
125
+ const SigShape = [['x', built_in_props_1.ArgProp.Shape]];
126
+ const SigXTable = [['x', built_in_props_1.ArgProp.Value], ['table', built_in_props_1.ArgProp.Value]];
127
+ const SigDots = [['...', built_in_props_1.ArgProp.Value]];
116
128
  const RegexConvIn = /[-/\\^$*+?.()|[\]{}]/g;
117
129
  /** Builds a regex from an array of plain names or namespaced {@link Identifier}s, deduplicating by name. */
118
130
  function toRegex(n) {
119
131
  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('|')})$`);
120
132
  }
133
+ /** what closing or exporting a device links back to: the plot calls that filled it */
134
+ const LinkToLastPlot = {
135
+ type: 'link-to-last-call',
136
+ callName: toRegex(GraphicDeviceOpen.concat(exports.PlotCreate, PlotAddons, exports.GgPlotAddons, exports.TinyPlotAddons))
137
+ };
121
138
  /**
122
139
  * Contains the built-in definitions recognized by flowR
123
140
  */
124
141
  exports.DefaultBuiltinConfig = [
125
- { type: 'constant', names: [
126
- identifier_1.Identifier.from(['NULL', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['NA', "base" /* PkgName.Base */]),
127
- identifier_1.Identifier.from(['NA_integer_', "base" /* PkgName.Base */]),
128
- identifier_1.Identifier.from(['NA_real_', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['NA_complex_', "base" /* PkgName.Base */]),
129
- identifier_1.Identifier.from(['NA_character_', "base" /* PkgName.Base */])
130
- ], value: null, assumePrimitive: true },
142
+ { type: 'constant', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['NULL', 'NA', 'NA_integer_', 'NA_real_', 'NA_complex_', 'NA_character_']), value: null, assumePrimitive: true },
131
143
  { type: 'constant', names: [identifier_1.Identifier.from(['NaN', "base" /* PkgName.Base */])], value: NaN, assumePrimitive: true },
132
- { type: 'constant', names: [
133
- identifier_1.Identifier.from(['.GlobalEnv', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['.BaseNamespaceEnv', "base" /* PkgName.Base */]),
134
- identifier_1.Identifier.from(['.BaseEnv', "base" /* PkgName.Base */])
135
- ], value: null, assumePrimitive: true },
136
- { type: 'constant', names: [identifier_1.Identifier.from(['TRUE', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['T', "base" /* PkgName.Base */])], value: true, assumePrimitive: true },
137
- { type: 'constant', names: [identifier_1.Identifier.from(['FALSE', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['F', "base" /* PkgName.Base */])], value: false, assumePrimitive: true },
144
+ { type: 'constant', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['.GlobalEnv', '.BaseNamespaceEnv', '.BaseEnv']), value: null, assumePrimitive: true },
145
+ { type: 'constant', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['TRUE', 'T']), value: true, assumePrimitive: true },
146
+ { type: 'constant', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['FALSE', 'F']), value: false, assumePrimitive: true },
138
147
  { type: 'constant', names: [identifier_1.Identifier.from(['Inf', "base" /* PkgName.Base */])], value: Infinity, assumePrimitive: true },
139
148
  { type: 'constant', names: [identifier_1.Identifier.from(['-Inf', "base" /* PkgName.Base */])], value: -Infinity, assumePrimitive: true },
140
149
  { type: 'constant', names: [identifier_1.Identifier.from(['pi', "base" /* PkgName.Base */])], value: Math.PI, assumePrimitive: true },
@@ -154,112 +163,268 @@ exports.DefaultBuiltinConfig = [
154
163
  config: { markArgsAsNSE: known_call_handling_1.NseArguments.All },
155
164
  assumePrimitive: false
156
165
  },
166
+ /* cohortBuilder has a `filter` too, and built-ins go by name, so dplyr's entry below wins in the environment
167
+ while this one still states what cohortBuilder's does */
168
+ {
169
+ type: 'function',
170
+ names: [identifier_1.Identifier.from(['filter', "cohortBuilder" /* PkgName.CohortBuilder */])],
171
+ processor: built_in_proc_name_1.BuiltInProcName.Default,
172
+ config: { forceArgs: 'all', libFn: true, props: built_in_props_1.CallProp.Pure },
173
+ assumePrimitive: false
174
+ },
157
175
  /* data-masking: the non-data arguments name columns of the (first) data object, not variables (NSE) */
158
176
  {
159
177
  type: 'function',
160
178
  names: data_masking_functions_1.DataMaskingFunctionIdentifiers,
161
179
  processor: built_in_proc_name_1.BuiltInProcName.Default,
162
- config: { markArgsAsNSE: known_call_handling_1.NseArguments.AllButFirst },
180
+ config: { markArgsAsNSE: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure },
181
+ assumePrimitive: false
182
+ },
183
+ /* slice_sample draws rows at random; registered after the block above, so this definition is the one that sticks */
184
+ {
185
+ type: 'function',
186
+ names: [identifier_1.Identifier.from(['slice_sample', "dplyr" /* PkgName.Dplyr */])],
187
+ processor: built_in_proc_name_1.BuiltInProcName.Default,
188
+ config: { markArgsAsNSE: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Random },
163
189
  assumePrimitive: false
164
190
  },
165
191
  /* data-masking without a data argument, e.g. `aes(x, y)` */
166
192
  {
167
193
  type: 'function',
168
- names: [identifier_1.Identifier.from(['aes', "ggplot2" /* PkgName.GgPlot2 */]), identifier_1.Identifier.from(['aes_string', "ggplot2" /* PkgName.GgPlot2 */]), identifier_1.Identifier.from(['vars', "ggplot2" /* PkgName.GgPlot2 */])],
194
+ names: identifier_1.Identifier.fromAll("ggplot2" /* PkgName.GgPlot2 */, ['aes', 'aes_string', 'vars']),
169
195
  processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
170
196
  config: { markArgsAsNSE: known_call_handling_1.NseArguments.All },
171
197
  assumePrimitive: false
172
198
  },
199
+ /* an {@link BuiltInEvalName} marks what the value solver folds; a test checks the names against the handler tables */
200
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['+', '-', '*', '/', '^', '**', '%%', '%/%']),
201
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigBinOp }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Numeric },
202
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['==', '!=', '>', '<', '>=', '<=']),
203
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigBinOp }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Comparison },
204
+ { type: 'function', names: [identifier_1.Identifier.from(['%*%', "base" /* PkgName.Base */])],
205
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigXY }, assumePrimitive: true },
206
+ { type: 'function', names: [identifier_1.Identifier.from(['%in%', "base" /* PkgName.Base */])],
207
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigXTable }, assumePrimitive: true },
208
+ { type: 'function', names: [identifier_1.Identifier.from([':', "base" /* PkgName.Base */])],
209
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['from', built_in_props_1.ArgProp.Value], ['to', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Seq },
210
+ { type: 'function', names: [identifier_1.Identifier.from(['!', "base" /* PkgName.Base */])],
211
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigX }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Logical },
212
+ { type: 'function', names: [identifier_1.Identifier.from(['?', "utils" /* PkgName.Utils */])], /* shows the help page of what it is given */
213
+ 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 },
214
+ /* the result follows from how large the argument is, not from what is in it, so it is bounded (`Narrows`) */
215
+ { 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']),
216
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure | built_in_props_1.CallProp.Narrows, sig: SigShape }, assumePrimitive: true },
217
+ /* the names and the class are read off the argument, so whatever it carries can show up in the result */
218
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['dimnames', 'names', 'rownames', 'colnames', 'class']),
219
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigShape }, assumePrimitive: true },
220
+ { type: 'function', names: [identifier_1.Identifier.from(['nchar', "base" /* PkgName.Base */])],
221
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure | built_in_props_1.CallProp.Narrows, sig: SigShape }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn },
222
+ { type: 'function', names: [identifier_1.Identifier.from(['missing', "base" /* PkgName.Base */])],
223
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Presence]] }, assumePrimitive: true },
224
+ /* they fold everything they are handed into one result */
225
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['sum', 'prod', 'min', 'max', 'range', 'pmin', 'pmax', 'cbind', 'rbind', 'data.frame', 'order', 'any']),
226
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigDots }, assumePrimitive: true },
227
+ /* the separator sits behind the `...`, so R (and the {@link FnSig}) only ever matches it by its full name */
228
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['paste', 'paste0']),
229
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['...', built_in_props_1.ArgProp.Value], ['sep', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn },
230
+ { type: 'function', names: [identifier_1.Identifier.from(['file.path', "base" /* PkgName.Base */])],
231
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['...', built_in_props_1.ArgProp.Value], ['fsep', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn },
232
+ /* `x` carries the data, whatever follows only tunes the result */
233
+ {
234
+ type: 'function',
235
+ names: [
236
+ ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, [
237
+ /* `mean` reduces a vector, so unlike its neighbors below the value solver cannot fold it */
238
+ 'mean',
239
+ /* running summaries & reordering */
240
+ 'cumsum', 'cumprod', 'cummax', 'cummin', 'diff', 'sort', 'rev', 'unique', 'duplicated', 't',
241
+ /* coercion */
242
+ 'as.character', 'as.integer', 'as.logical', 'as.numeric', 'as.matrix', 'as.data.frame',
243
+ 'as.factor', 'as.raw', 'as.list', 'as.array', 'as.double', 'as.complex', 'factor'
244
+ ]),
245
+ ...identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['head', 'tail']),
246
+ ...identifier_1.Identifier.fromAll("stats" /* PkgName.Stats */, ['var', 'sd', 'median', 'quantile']),
247
+ ],
248
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
249
+ config: { props: built_in_props_1.CallProp.Pure, sig: SigX },
250
+ assumePrimitive: true
251
+ },
252
+ /* they read the values but answer only with a logical, so nothing those values carry reaches the result */
253
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['is.na', 'nzchar', 'is.finite', 'is.infinite', 'is.nan']),
254
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure | built_in_props_1.CallProp.Narrows, sig: SigX }, assumePrimitive: true },
255
+ /* the numeric functions the value solver folds; each one is an entry of `NumericFns`, which states its parameters */
256
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['sqrt', 'abs', 'floor', 'ceiling', 'trunc', 'sign', 'exp', 'expm1', 'log2', 'log10', 'log1p',
257
+ 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'sinh', 'cosh', 'tanh', 'asinh', 'acosh', 'atanh']),
258
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigX }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Numeric },
259
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['round', 'signif']),
260
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Value], ['digits', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Numeric },
261
+ { type: 'function', names: [identifier_1.Identifier.from(['log', "base" /* PkgName.Base */])],
262
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Value], ['base', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Numeric },
263
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['tolower', 'toupper', 'trimws']),
264
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigX }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn },
265
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['basename', 'dirname']),
266
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['path', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn },
267
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Re', 'Im', 'Mod', 'Arg', 'Conj']),
268
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['z', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
269
+ /* the vector constructors take the length of the result, not its contents */
270
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['numeric', 'character', 'logical', 'integer', 'double', 'raw']),
271
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['length', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
272
+ { type: 'function', names: [identifier_1.Identifier.from(['na.omit', "stats" /* PkgName.Stats */])],
273
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['object', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
274
+ /* two data arguments, under the names R gives them */
275
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['xor', 'crossprod', 'tcrossprod', 'intersect', 'union', 'setdiff']),
276
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigXY }, assumePrimitive: true },
277
+ /* they answer with a position or a logical, never with what they matched */
278
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['match', 'pmatch', 'charmatch']),
279
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure | built_in_props_1.CallProp.Narrows, sig: SigXTable }, assumePrimitive: true },
280
+ { type: 'function', names: [identifier_1.Identifier.from(['is.element', "base" /* PkgName.Base */])],
281
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure | built_in_props_1.CallProp.Narrows, sig: [['el', built_in_props_1.ArgProp.Value], ['set', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
282
+ /* the result is one of the `choices`, so what flows in is bounded by that argument */
283
+ { type: 'function', names: [identifier_1.Identifier.from(['match.arg', "base" /* PkgName.Base */])],
284
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure | built_in_props_1.CallProp.Narrows, sig: [['arg', built_in_props_1.ArgProp.Value], ['choices', built_in_props_1.ArgProp.Bounds]] }, assumePrimitive: true },
285
+ { type: 'function', names: [identifier_1.Identifier.from(['atan2', "base" /* PkgName.Base */])],
286
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['y', built_in_props_1.ArgProp.Value], ['x', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Numeric },
287
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['bitwAnd', 'bitwOr', 'bitwXor']),
288
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['a', built_in_props_1.ArgProp.Value], ['b', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Numeric },
289
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['bitwShiftL', 'bitwShiftR']),
290
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['a', built_in_props_1.ArgProp.Value], ['n', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Numeric },
291
+ { type: 'function', names: [identifier_1.Identifier.from(['bitwNot', "base" /* PkgName.Base */])],
292
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['a', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Numeric },
293
+ { type: 'function', names: [identifier_1.Identifier.from(['grepl', "base" /* PkgName.Base */])],
294
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure | built_in_props_1.CallProp.Narrows, sig: [['pattern', built_in_props_1.ArgProp.Value], ['x', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
295
+ { type: 'function', names: [identifier_1.Identifier.from(['startsWith', "base" /* PkgName.Base */])],
296
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure | built_in_props_1.CallProp.Narrows, sig: [['x', built_in_props_1.ArgProp.Value], ['prefix', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
297
+ { type: 'function', names: [identifier_1.Identifier.from(['endsWith', "base" /* PkgName.Base */])],
298
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure | built_in_props_1.CallProp.Narrows, sig: [['x', built_in_props_1.ArgProp.Value], ['suffix', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
299
+ /* the rest of the pure computations, where no single shape fits */
173
300
  {
174
301
  type: 'function',
175
302
  names: [
176
- /* arithmetic & comparison operators (base) */
177
- identifier_1.Identifier.from(['+', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['-', "base" /* PkgName.Base */]),
178
- identifier_1.Identifier.from(['*', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['/', "base" /* PkgName.Base */]),
179
- identifier_1.Identifier.from(['^', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['**', "base" /* PkgName.Base */]),
180
- identifier_1.Identifier.from(['!', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['?', "utils" /* PkgName.Utils */]),
181
- identifier_1.Identifier.from(['==', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['!=', "base" /* PkgName.Base */]),
182
- identifier_1.Identifier.from(['>', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['<', "base" /* PkgName.Base */]),
183
- identifier_1.Identifier.from(['>=', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['<=', "base" /* PkgName.Base */]),
184
- identifier_1.Identifier.from(['%%', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['%/%', "base" /* PkgName.Base */]),
185
- identifier_1.Identifier.from(['%*%', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['%in%', "base" /* PkgName.Base */]),
186
- identifier_1.Identifier.from([':', "base" /* PkgName.Base */]),
187
- /* sequences & repetition (base) */
188
- identifier_1.Identifier.from(['rep', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['seq', "base" /* PkgName.Base */]),
189
- identifier_1.Identifier.from(['seq_len', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['seq_along', "base" /* PkgName.Base */]),
190
- identifier_1.Identifier.from(['seq.int', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['order', "base" /* PkgName.Base */]),
191
- /* string (base) */
192
- identifier_1.Identifier.from(['gsub', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['paste', "base" /* PkgName.Base */]),
193
- identifier_1.Identifier.from(['paste0', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['nchar', "base" /* PkgName.Base */]),
194
- /* numeric math (base) */
195
- identifier_1.Identifier.from(['sqrt', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['abs', "base" /* PkgName.Base */]),
196
- identifier_1.Identifier.from(['round', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['floor', "base" /* PkgName.Base */]),
197
- identifier_1.Identifier.from(['ceiling', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['signif', "base" /* PkgName.Base */]),
198
- identifier_1.Identifier.from(['trunc', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['log', "base" /* PkgName.Base */]),
199
- identifier_1.Identifier.from(['log10', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['log2', "base" /* PkgName.Base */]),
200
- identifier_1.Identifier.from(['sum', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['mean', "base" /* PkgName.Base */]),
201
- identifier_1.Identifier.from(['min', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['max', "base" /* PkgName.Base */]),
202
- identifier_1.Identifier.from(['jitter', "stats" /* PkgName.Stats */]),
203
- /* type coercion (base) */
204
- identifier_1.Identifier.from(['numeric', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['as.character', "base" /* PkgName.Base */]),
205
- identifier_1.Identifier.from(['as.integer', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['as.logical', "base" /* PkgName.Base */]),
206
- identifier_1.Identifier.from(['as.numeric', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['as.matrix', "base" /* PkgName.Base */]),
207
- identifier_1.Identifier.from(['as.data.frame', "base" /* PkgName.Base */]),
208
- /* collections & data (base) */
209
- identifier_1.Identifier.from(['unique', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['intersect', "base" /* PkgName.Base */]),
210
- identifier_1.Identifier.from(['match', "base" /* PkgName.Base */]),
211
- identifier_1.Identifier.from(['which', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['any', "base" /* PkgName.Base */]),
212
- identifier_1.Identifier.from(['length', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['expression', "base" /* PkgName.Base */]),
213
- identifier_1.Identifier.from(['factor', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['missing', "base" /* PkgName.Base */]),
214
- identifier_1.Identifier.from(['data.frame', "base" /* PkgName.Base */]),
215
- /* matrix / data frame (base) */
216
- identifier_1.Identifier.from(['matrix', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['cbind', "base" /* PkgName.Base */]),
217
- identifier_1.Identifier.from(['rbind', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dim', "base" /* PkgName.Base */]),
218
- identifier_1.Identifier.from(['nrow', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['ncol', "base" /* PkgName.Base */]),
219
- identifier_1.Identifier.from(['dimnames', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['rownames', "base" /* PkgName.Base */]),
220
- identifier_1.Identifier.from(['names', "base" /* PkgName.Base */]),
221
- /* object inspection (base) */
222
- identifier_1.Identifier.from(['class', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['is.null', "base" /* PkgName.Base */]),
223
- /* other packages */
224
- identifier_1.Identifier.from(['read.csv', "utils" /* PkgName.Utils */]), identifier_1.Identifier.from(['na.omit', "stats" /* PkgName.Stats */]),
225
- /* graphic devices (grDevices) */
226
- identifier_1.Identifier.from(['pdf', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['jpeg', "grDevices" /* PkgName.GrDevices */]),
227
- identifier_1.Identifier.from(['png', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['windows', "grDevices" /* PkgName.GrDevices */]),
228
- identifier_1.Identifier.from(['postscript', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['xfig', "grDevices" /* PkgName.GrDevices */]),
229
- identifier_1.Identifier.from(['bitmap', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['pictex', "grDevices" /* PkgName.GrDevices */]),
230
- identifier_1.Identifier.from(['cairo_pdf', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['svg', "grDevices" /* PkgName.GrDevices */]),
231
- identifier_1.Identifier.from(['bmp', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['tiff', "grDevices" /* PkgName.GrDevices */]),
232
- identifier_1.Identifier.from(['X11', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['quartz', "grDevices" /* PkgName.GrDevices */]),
233
- identifier_1.Identifier.from(['dev.new', "grDevices" /* PkgName.GrDevices */]),
234
- /* graphic devices (third-party) */
235
- identifier_1.Identifier.from(['trellis.device', "lattice" /* PkgName.Lattice */]),
236
- identifier_1.Identifier.from(['raster_pdf', "rasterpdf" /* PkgName.RasterPdf */]), identifier_1.Identifier.from(['agg_pdf', "ragg" /* PkgName.Ragg */]),
237
- identifier_1.Identifier.from(['image_graph', "magick" /* PkgName.Magick */]), identifier_1.Identifier.from(['image_draw', "magick" /* PkgName.Magick */]),
303
+ ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, [
304
+ 'rep', 'rep.int', 'seq', 'seq.int', 'append', 'complex',
305
+ 'matrix', 'array', 'table', 'prop.table', 'colSums', 'rowSums', 'colMeans', 'rowMeans',
306
+ 'solve', 'det', 'eigen', 'aperm',
307
+ /* string */
308
+ 'grep', 'sub', 'gsub', 'substr', 'substring', 'strsplit', 'strrep', 'chartr', 'strtoi',
309
+ 'regexpr', 'gregexpr', 'regexec', 'format', 'sprintf', 'formatC',
310
+ /* regmatches yields a substring of its subject, so what flows in flows out */
311
+ 'regmatches'
312
+ ]),
313
+ ...identifier_1.Identifier.fromAll("stats" /* PkgName.Stats */, ['cor', 'cov', 'xtabs']),
238
314
  ],
239
315
  processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
240
- config: {},
316
+ config: { props: built_in_props_1.CallProp.Pure },
241
317
  assumePrimitive: true
242
318
  },
243
- { type: 'function', names: [identifier_1.Identifier.from(['t', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['aperm', "base" /* PkgName.Base */])], /* transpose/permutation */
244
- processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: {}, assumePrimitive: false },
319
+ /* indices and index sequences: bounded by the shape of what they are handed, never by its contents */
320
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['which', 'which.max', 'which.min', 'seq_len', 'seq_along']),
321
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure | built_in_props_1.CallProp.Narrows }, assumePrimitive: true },
322
+ /* they open a device that writes the plot to the file they are given, under the name each of them uses */
323
+ { 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.from(['agg_pdf', "ragg" /* PkgName.Ragg */])],
324
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
325
+ config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Graphics | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes, sig: [['filename', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: true },
326
+ { type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['pdf', 'postscript', 'xfig', 'bitmap', 'pictex']),
327
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
328
+ config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Graphics | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes, sig: [['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: true },
329
+ /* devices that draw on the screen or into memory instead */
330
+ { type: 'function', names: [...identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['X11', 'windows', 'quartz', 'dev.new']), identifier_1.Identifier.from(['trellis.device', "lattice" /* PkgName.Lattice */]), ...identifier_1.Identifier.fromAll("magick" /* PkgName.Magick */, ['image_graph', 'image_draw'])],
331
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Graphics }, assumePrimitive: true },
332
+ { type: 'function', names: [identifier_1.Identifier.from(['read.csv', "utils" /* PkgName.Utils */])],
333
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
334
+ config: { props: built_in_props_1.CallProp.File | built_in_props_1.CallProp.Reads, sig: [['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: true },
335
+ { type: 'function', names: [identifier_1.Identifier.from(['scan', "base" /* PkgName.Base */])],
336
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
337
+ config: { props: built_in_props_1.CallProp.File | built_in_props_1.CallProp.Reads | built_in_props_1.CallProp.User, sig: [['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
338
+ /* the connections and the calls that move data through them, so anything reaching them inherits it */
339
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['file', 'gzfile', 'bzfile', 'xzfile', 'unz', 'fifo']),
340
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
341
+ config: { props: built_in_props_1.CallProp.File | built_in_props_1.CallProp.Reads | built_in_props_1.CallProp.Writes, sig: [['description', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
342
+ { type: 'function', names: [identifier_1.Identifier.from(['url', "base" /* PkgName.Base */])],
343
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
344
+ config: { props: built_in_props_1.CallProp.Network | built_in_props_1.CallProp.Reads, sig: [['description', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
345
+ { type: 'function', names: [identifier_1.Identifier.from(['socketConnection', "base" /* PkgName.Base */])],
346
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
347
+ config: { props: built_in_props_1.CallProp.Network | built_in_props_1.CallProp.Reads, sig: [['host', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
348
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['readLines', 'readBin', 'readChar']),
349
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
350
+ config: { props: built_in_props_1.CallProp.File | built_in_props_1.CallProp.Reads, sig: [['con', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
351
+ { type: 'function', names: [identifier_1.Identifier.from(['readRDS', "base" /* PkgName.Base */])],
352
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
353
+ config: { props: built_in_props_1.CallProp.File | built_in_props_1.CallProp.Reads, sig: [['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
354
+ { type: 'function', names: [identifier_1.Identifier.from(['writeLines', "base" /* PkgName.Base */])],
355
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
356
+ config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes | built_in_props_1.CallProp.Prints, sig: [['text', built_in_props_1.ArgProp.Value], ['con', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
357
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['writeBin', 'writeChar']),
358
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
359
+ config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes, sig: [['object', built_in_props_1.ArgProp.Value], ['con', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
360
+ { type: 'function', names: [identifier_1.Identifier.from(['saveRDS', "base" /* PkgName.Base */])],
361
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
362
+ config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes, sig: [['object', built_in_props_1.ArgProp.Value], ['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
363
+ { type: 'function', names: [identifier_1.Identifier.from(['save', "base" /* PkgName.Base */])],
364
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
365
+ config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes, sig: [['...', built_in_props_1.ArgProp.Value], ['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
366
+ { type: 'function', names: [identifier_1.Identifier.from(['save.image', "base" /* PkgName.Base */])],
367
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
368
+ config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes, sig: [['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
369
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['dput', 'write']),
370
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
371
+ config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes | built_in_props_1.CallProp.Prints, sig: [['x', built_in_props_1.ArgProp.Value], ['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
372
+ { type: 'function', names: [identifier_1.Identifier.from(['write.table', "utils" /* PkgName.Utils */])],
373
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
374
+ config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes, sig: [['x', built_in_props_1.ArgProp.Value], ['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
375
+ { type: 'function', names: identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['write.csv', 'write.csv2']),
376
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
377
+ config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes }, assumePrimitive: false },
378
+ { type: 'function', names: identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['read.table', 'read.delim', 'read.csv2', 'read.delim2']),
379
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
380
+ config: { props: built_in_props_1.CallProp.File | built_in_props_1.CallProp.Reads, sig: [['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
381
+ { type: 'function', names: [identifier_1.Identifier.from(['download.file', "utils" /* PkgName.Utils */])],
382
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
383
+ config: { props: built_in_props_1.CallProp.Network | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes, sig: [['url', built_in_props_1.ArgProp.Resource], ['destfile', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
384
+ { type: 'function', names: [identifier_1.Identifier.from(['jitter', "stats" /* PkgName.Stats */])],
385
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Random }, assumePrimitive: true },
386
+ {
387
+ type: 'function',
388
+ names: [
389
+ ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['sample', 'sample.int']),
390
+ ...identifier_1.Identifier.fromAll("stats" /* PkgName.Stats */, [
391
+ 'runif', 'rnorm', 'rbinom', 'rpois', 'rexp', 'rgamma', 'rbeta', 'rcauchy', 'rchisq', 'rgeom',
392
+ 'rhyper', 'rlnorm', 'rlogis', 'rmultinom', 'rnbinom', 'rsignrank', 'rt', 'rf', 'rweibull',
393
+ 'rwilcox', 'arima.sim', 'simulate', 'kmeans'
394
+ ])
395
+ ],
396
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
397
+ config: { props: built_in_props_1.CallProp.Random },
398
+ assumePrimitive: false
399
+ },
400
+ { type: 'function', names: [identifier_1.Identifier.from(['expression', "base" /* PkgName.Base */])],
401
+ processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Lang }, assumePrimitive: true },
245
402
  { type: 'function', names: [identifier_1.Identifier.from(['rm', "base" /* PkgName.Base */])],
246
- processor: built_in_proc_name_1.BuiltInProcName.Rm, config: {}, assumePrimitive: true },
403
+ processor: built_in_proc_name_1.BuiltInProcName.Rm, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope }, assumePrimitive: true },
247
404
  { type: 'function', names: [identifier_1.Identifier.from(['options', "base" /* PkgName.Base */])],
248
- processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: 'all' }, assumePrimitive: false },
405
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: 'all', props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Ambient }, assumePrimitive: false },
249
406
  { type: 'function', names: [identifier_1.Identifier.from(['mapply', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['Mapply', "functools" /* PkgName.Functools */])],
250
- processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
251
- { 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 */])],
252
- processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
253
- { 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 */])],
254
- processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
255
- { 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 */])],
256
- processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 2, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
257
- { 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 */])],
258
- processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, forceArgs: 'all', keepArgumentOut: true, hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ } }, assumePrimitive: false },
407
+ 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]] }, assumePrimitive: false },
408
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['lapply', 'sapply', 'vapply']),
409
+ 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]] }, assumePrimitive: false },
410
+ { type: 'function', names: identifier_1.Identifier.fromAll("functools" /* PkgName.Functools */, ['Lapply', 'Sapply', 'Vapply']),
411
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
412
+ { type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['apply', 'tapply']), identifier_1.Identifier.from(['Tapply', "functools" /* PkgName.Functools */])],
413
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 2, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
414
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Map', 'Filter', 'Find', 'Position']),
415
+ 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 },
416
+ { type: 'function', names: [identifier_1.Identifier.from(['Reduce', "base" /* PkgName.Base */])],
417
+ 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 },
418
+ { type: 'function', names: [identifier_1.Identifier.from(['rapply', "base" /* PkgName.Base */])],
419
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
420
+ { type: 'function', names: [identifier_1.Identifier.from(['print', "base" /* PkgName.Base */])],
421
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', keepArgumentOut: true, hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Generic | built_in_props_1.CallProp.Prints, sig: [['x', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
422
+ { 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 */])],
423
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', keepArgumentOut: true, hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Prints, sig: [['...', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
259
424
  { type: 'function', names: [identifier_1.Identifier.from(['invisible', "base" /* PkgName.Base */])],
260
- processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, forceArgs: 'all', keepArgumentOut: true }, assumePrimitive: true },
261
- { type: 'function', names: [identifier_1.Identifier.from(['force', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['identity', "base" /* PkgName.Base */])],
262
- processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, forceArgs: 'all', keepArgumentOut: true }, assumePrimitive: false },
425
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', 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 },
426
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['force', 'identity']),
427
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', 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 },
263
428
  // graphics base
264
429
  { type: 'function', names: exports.PlotCreate,
265
430
  processor: built_in_proc_name_1.BuiltInProcName.Default,
@@ -275,7 +440,8 @@ exports.DefaultBuiltinConfig = [
275
440
  }, [type_1.RType.Logical])?.content === true);
276
441
  },
277
442
  callName: toRegex(GraphicDeviceOpen)
278
- }
443
+ },
444
+ props: built_in_props_1.CallProp.Graphics
279
445
  }, assumePrimitive: true },
280
446
  // graphics addons
281
447
  { type: 'function', names: PlotAddons,
@@ -302,7 +468,8 @@ exports.DefaultBuiltinConfig = [
302
468
  name: 'add'
303
469
  }, [type_1.RType.Logical])?.content === true ? cascade_action_1.CascadeAction.Continue : cascade_action_1.CascadeAction.Stop) : cascade_action_1.CascadeAction.Stop;
304
470
  }
305
- }
471
+ },
472
+ props: built_in_props_1.CallProp.Graphics
306
473
  }, assumePrimitive: true },
307
474
  // plot tags
308
475
  {
@@ -315,7 +482,8 @@ exports.DefaultBuiltinConfig = [
315
482
  hasUnknownSideEffects: {
316
483
  type: 'link-to-last-call',
317
484
  callName: toRegex(exports.GgPlotCreate.concat(exports.GgPlotAddons))
318
- }
485
+ },
486
+ props: built_in_props_1.CallProp.Graphics
319
487
  }, assumePrimitive: true
320
488
  },
321
489
  {
@@ -328,34 +496,44 @@ exports.DefaultBuiltinConfig = [
328
496
  hasUnknownSideEffects: {
329
497
  type: 'link-to-last-call',
330
498
  callName: toRegex([...exports.TinyPlotCrate, ...exports.TinyPlotAddons])
331
- }
499
+ },
500
+ props: built_in_props_1.CallProp.Graphics
332
501
  }, assumePrimitive: true
333
502
  },
334
503
  {
335
504
  type: 'function',
336
505
  names: [
337
- identifier_1.Identifier.from(['image_write', "magick" /* PkgName.Magick */]), identifier_1.Identifier.from(['image_capture', "magick" /* PkgName.Magick */]),
338
- identifier_1.Identifier.from(['dev.capture', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['dev.off', "grDevices" /* PkgName.GrDevices */])
506
+ ...identifier_1.Identifier.fromAll("magick" /* PkgName.Magick */, ['image_capture']),
507
+ ...identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['dev.capture'])
339
508
  ],
340
509
  processor: built_in_proc_name_1.BuiltInProcName.Default,
341
- config: {
342
- libFn: true,
343
- forceArgs: 'all',
344
- hasUnknownSideEffects: {
345
- type: 'link-to-last-call',
346
- callName: toRegex(GraphicDeviceOpen.concat(exports.PlotCreate, PlotAddons, exports.GgPlotAddons, exports.TinyPlotAddons))
347
- }
348
- }, assumePrimitive: true
510
+ config: { libFn: true, forceArgs: 'all', hasUnknownSideEffects: LinkToLastPlot, props: built_in_props_1.CallProp.Graphics },
511
+ assumePrimitive: true
349
512
  },
513
+ /* they put what the device holds on disk */
514
+ { type: 'function', names: [identifier_1.Identifier.from(['image_write', "magick" /* PkgName.Magick */])],
515
+ processor: built_in_proc_name_1.BuiltInProcName.Default,
516
+ config: { libFn: true, forceArgs: 'all', hasUnknownSideEffects: LinkToLastPlot, props: built_in_props_1.CallProp.Graphics | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes, sig: [['image', built_in_props_1.ArgProp.Value], ['path', built_in_props_1.ArgProp.Resource]] },
517
+ assumePrimitive: true },
518
+ { type: 'function', names: [identifier_1.Identifier.from(['dev.off', "grDevices" /* PkgName.GrDevices */])],
519
+ processor: built_in_proc_name_1.BuiltInProcName.Default,
520
+ config: { libFn: true, forceArgs: 'all', hasUnknownSideEffects: LinkToLastPlot, props: built_in_props_1.CallProp.Graphics | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes },
521
+ assumePrimitive: true },
350
522
  { type: 'function', names: ['('],
351
- processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, keepArgumentOut: true }, assumePrimitive: true },
352
- { 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 */])],
353
- processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: [true] }, assumePrimitive: false },
354
- { 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 */])],
523
+ 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 },
524
+ { type: 'function', names: [identifier_1.Identifier.from(['load_all', "pkgload" /* PkgName.PkgLoad */]), identifier_1.Identifier.from(['load_all', "devtools" /* PkgName.Devtools */])],
525
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: [true], props: built_in_props_1.CallProp.Scope }, assumePrimitive: false },
526
+ { type: 'function', names: [identifier_1.Identifier.from(['setwd', "base" /* PkgName.Base */])],
527
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: [true], props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Ambient }, assumePrimitive: false },
528
+ { type: 'function', names: [identifier_1.Identifier.from(['set.seed', "base" /* PkgName.Base */])],
529
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: [true], props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Random }, assumePrimitive: false },
530
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['body', 'formals']),
531
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: [true], props: built_in_props_1.CallProp.Lang }, assumePrimitive: true },
532
+ { type: 'function', names: [identifier_1.Identifier.from(['environment', "base" /* PkgName.Base */])],
355
533
  processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: [true] }, assumePrimitive: true },
356
534
  {
357
535
  type: 'function',
358
- 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 */])],
536
+ names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['.Call', '.External', '.C', '.Fortran']),
359
537
  processor: built_in_proc_name_1.BuiltInProcName.Default,
360
538
  config: {
361
539
  hasUnknownSideEffects: true,
@@ -367,7 +545,8 @@ exports.DefaultBuiltinConfig = [
367
545
  '.External': ['.NAME'],
368
546
  '.C': ['.NAME'],
369
547
  '.Fortran': ['.NAME']
370
- }
548
+ },
549
+ props: built_in_props_1.CallProp.Ffi
371
550
  },
372
551
  assumePrimitive: true
373
552
  },
@@ -376,21 +555,21 @@ exports.DefaultBuiltinConfig = [
376
555
  { type: 'function', names: [identifier_1.Identifier.from(['evalText', "SoDA" /* PkgName.Soda */])],
377
556
  processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: true }, assumePrimitive: true },
378
557
  { type: 'function', names: [identifier_1.Identifier.from(['cat', "base" /* PkgName.Base */])],
379
- processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ } }, assumePrimitive: false },
558
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes | built_in_props_1.CallProp.Prints, sig: [['...', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
380
559
  { type: 'function', names: [identifier_1.Identifier.from(['switch', "base" /* PkgName.Base */])],
381
- processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: [true] }, assumePrimitive: false },
560
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: [true], useAsProcessor: built_in_proc_name_1.BuiltInProcName.Switch, props: built_in_props_1.CallProp.Pure }, assumePrimitive: false },
382
561
  { type: 'function', names: ['return'],
383
- processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, cfg: 1 /* ExitPointType.Return */, keepArgumentOut: true, useAsProcessor: built_in_proc_name_1.BuiltInProcName.Return }, assumePrimitive: true },
562
+ 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 },
384
563
  {
385
564
  type: 'function',
386
565
  names: [
387
566
  identifier_1.Identifier.from(['stop', "base" /* PkgName.Base */]),
388
567
  identifier_1.Identifier.from(['abort', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['cli_abort', "cli" /* PkgName.Cli */]),
389
568
  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 */
390
- 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 */])
569
+ ...identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['stop_bad_type', 'stop_bad_element_type', 'stop_bad_element_length'])
391
570
  ],
392
571
  processor: built_in_proc_name_1.BuiltInProcName.Default,
393
- config: { useAsProcessor: built_in_proc_name_1.BuiltInProcName.Stop, cfg: 4 /* ExitPointType.Error */, forceArgs: ['all'] },
572
+ config: { useAsProcessor: built_in_proc_name_1.BuiltInProcName.Stop, cfg: 4 /* ExitPointType.Error */, forceArgs: ['all'], props: built_in_props_1.CallProp.Throws },
394
573
  assumePrimitive: false
395
574
  },
396
575
  { type: 'function', names: [identifier_1.Identifier.from(['try', "base" /* PkgName.Base */])],
@@ -398,7 +577,7 @@ exports.DefaultBuiltinConfig = [
398
577
  { type: 'function', names: [identifier_1.Identifier.from(['tryCatch', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['tryCatchLog', "tryCatchLog" /* PkgName.TryCatchLog */])],
399
578
  processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: { error: 'error', finally: 'finally' } }, assumePrimitive: true },
400
579
  { type: 'function', names: [identifier_1.Identifier.from(['stopifnot', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['assert_that', "assertthat" /* PkgName.AssertThat */])],
401
- processor: built_in_proc_name_1.BuiltInProcName.StopIfNot, config: {}, assumePrimitive: false },
580
+ processor: built_in_proc_name_1.BuiltInProcName.StopIfNot, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Throws }, assumePrimitive: false },
402
581
  { type: 'function', names: ['break'],
403
582
  processor: built_in_proc_name_1.BuiltInProcName.Default, config: { useAsProcessor: built_in_proc_name_1.BuiltInProcName.Break, cfg: 2 /* ExitPointType.Break */ }, assumePrimitive: false },
404
583
  { type: 'function', names: ['next'],
@@ -407,10 +586,12 @@ exports.DefaultBuiltinConfig = [
407
586
  processor: built_in_proc_name_1.BuiltInProcName.ExpressionList, config: {}, assumePrimitive: true },
408
587
  { type: 'function', names: [identifier_1.Identifier.from(['source', "base" /* PkgName.Base */])],
409
588
  processor: built_in_proc_name_1.BuiltInProcName.Source, config: { includeFunctionCall: true, forceFollow: false }, assumePrimitive: false },
410
- { type: 'function', names: ['[', '[['],
411
- processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false }, assumePrimitive: true },
589
+ { type: 'function', names: ['['],
590
+ processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false, props: built_in_props_1.CallProp.Pure }, assumePrimitive: true },
591
+ { type: 'function', names: ['[['],
592
+ processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false, resolveField: true, props: built_in_props_1.CallProp.Pure }, assumePrimitive: true },
412
593
  { type: 'function', names: ['$', '@'],
413
- processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: true }, assumePrimitive: true },
594
+ processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: true, resolveField: true, props: built_in_props_1.CallProp.Pure }, assumePrimitive: true },
414
595
  { type: 'function', names: ['::'],
415
596
  processor: built_in_proc_name_1.BuiltInProcName.NamespaceAccess, config: { internal: false }, assumePrimitive: true },
416
597
  { type: 'function', names: [':::'],
@@ -418,65 +599,67 @@ exports.DefaultBuiltinConfig = [
418
599
  { type: 'function', names: ['if'],
419
600
  processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: {}, assumePrimitive: true },
420
601
  { type: 'function', names: [identifier_1.Identifier.from(['ifelse', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['fifelse', "data.table" /* PkgName.DataTable */]), 'IfElse'],
421
- processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'test', yes: 'yes', no: 'no' } }, assumePrimitive: true },
602
+ 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 },
422
603
  { type: 'function', names: [identifier_1.Identifier.from(['if_else', "dplyr" /* PkgName.Dplyr */])],
423
- processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'condition', yes: 'true', no: 'false' } }, assumePrimitive: true },
604
+ 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 },
424
605
  { type: 'function', names: [identifier_1.Identifier.from(['get', "base" /* PkgName.Base */])],
425
- processor: built_in_proc_name_1.BuiltInProcName.Get, config: {}, assumePrimitive: false },
426
- { type: 'function', names: [identifier_1.Identifier.from(['library', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['require', "base" /* PkgName.Base */])],
427
- processor: built_in_proc_name_1.BuiltInProcName.Library, config: {}, assumePrimitive: false },
606
+ processor: built_in_proc_name_1.BuiltInProcName.Get, config: { props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Value], ['pos', built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Flag], ['inherits', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
607
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['library', 'require']),
608
+ processor: built_in_proc_name_1.BuiltInProcName.Library, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope }, assumePrimitive: false },
428
609
  { type: 'function', names: [identifier_1.Identifier.from(['attachNamespace', "base" /* PkgName.Base */])],
429
- processor: built_in_proc_name_1.BuiltInProcName.Library, config: { characterOnly: true }, assumePrimitive: false },
430
- { type: 'function', names: [identifier_1.Identifier.from(['requireNamespace', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['loadNamespace', "base" /* PkgName.Base */])],
431
- processor: built_in_proc_name_1.BuiltInProcName.Library, config: { namespaceOnly: true, characterOnly: true }, assumePrimitive: false },
610
+ 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 },
611
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['requireNamespace', 'loadNamespace']),
612
+ 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 },
432
613
  { type: 'function', names: [identifier_1.Identifier.from(['from', "import" /* PkgName.Import */])],
433
- processor: built_in_proc_name_1.BuiltInProcName.Library, config: { fromImports: true }, assumePrimitive: false },
614
+ processor: built_in_proc_name_1.BuiltInProcName.Library, config: { fromImports: true, props: built_in_props_1.CallProp.Scope }, assumePrimitive: false },
434
615
  { type: 'function', names: [identifier_1.Identifier.from(['use', "box" /* PkgName.Box */]), identifier_1.Identifier.from(['use', "base" /* PkgName.Base */])],
435
- processor: built_in_proc_name_1.BuiltInProcName.Library, config: { boxUse: true }, assumePrimitive: false },
616
+ processor: built_in_proc_name_1.BuiltInProcName.Library, config: { boxUse: true, props: built_in_props_1.CallProp.Scope }, assumePrimitive: false },
436
617
  { type: 'function', names: ['<-', '='],
437
- processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { canBeReplacement: true }, assumePrimitive: true },
618
+ 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 },
438
619
  { type: 'function', names: [identifier_1.Identifier.from([':=', "data.table" /* PkgName.DataTable */])],
439
- processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: {}, assumePrimitive: true },
440
- { type: 'function', names: [identifier_1.Identifier.from(['assign', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['setValidity', "methods" /* PkgName.Methods */])],
441
- processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { targetVariable: true, mayHaveMoreArgs: true, environmentArg: 'envir' }, assumePrimitive: true },
620
+ processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope }, assumePrimitive: true },
621
+ { type: 'function', names: [identifier_1.Identifier.from(['assign', "base" /* PkgName.Base */])],
622
+ 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 },
623
+ { type: 'function', names: [identifier_1.Identifier.from(['setValidity', "methods" /* PkgName.Methods */])],
624
+ 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 }, assumePrimitive: true },
442
625
  { type: 'function', names: [identifier_1.Identifier.from(['setMethod', "methods" /* PkgName.Methods */])],
443
626
  processor: built_in_proc_name_1.BuiltInProcName.AssignmentLike,
444
627
  config: { targetVariable: true, canBeReplacement: false, target: { idx: 0, name: 'f' }, source: { idx: 2, name: 'definition' }, modesForFn: ['s4'] },
445
628
  assumePrimitive: true },
446
629
  { type: 'function', names: [identifier_1.Identifier.from(['delayedAssign', "base" /* PkgName.Base */])],
447
- processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { quoteSource: true, targetVariable: true }, assumePrimitive: true },
630
+ 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 },
448
631
  { type: 'function', names: ['<<-'],
449
- processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, canBeReplacement: true }, assumePrimitive: true },
632
+ 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 },
450
633
  { type: 'function', names: ['->'],
451
- processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { swapSourceAndTarget: true, canBeReplacement: true }, assumePrimitive: true },
634
+ 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 },
452
635
  { type: 'function', names: ['->>'],
453
- processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, swapSourceAndTarget: true, canBeReplacement: true }, assumePrimitive: true },
636
+ 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 },
454
637
  { type: 'function', names: [identifier_1.Identifier.from(['data', "utils" /* PkgName.Utils */]), identifier_1.Identifier.from(['getHdata', "Hmisc" /* PkgName.Hmisc */])],
455
638
  processor: built_in_proc_name_1.BuiltInProcName.DefineArgument, config: { superAssignment: true }, assumePrimitive: false },
456
- { type: 'function', names: [identifier_1.Identifier.from(['&&', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['&', "base" /* PkgName.Base */])],
457
- processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: true }, assumePrimitive: true },
458
- { type: 'function', names: [identifier_1.Identifier.from(['||', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['|', "base" /* PkgName.Base */])],
459
- processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: false }, assumePrimitive: true },
639
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['&&', '&']),
640
+ 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 },
641
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['||', '|']),
642
+ 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 },
460
643
  { type: 'function', names: ['|>'],
461
644
  processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '_' }, assumePrimitive: true },
462
645
  { type: 'function', names: [identifier_1.Identifier.from(['%>%', "magrittr" /* PkgName.Magrittr */]), '%!>%'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', rhsMightBeSymbol: true }, assumePrimitive: true },
463
646
  { 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 },
464
647
  { 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 },
465
- { 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: {
648
+ { type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['map', 'map_lgl', 'map_int', 'map_dbl', 'map_chr']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
466
649
  args: {
467
650
  '.x': { index: 0, name: '.x' }
468
651
  },
469
652
  '.f': { index: 1, name: '.f' },
470
653
  ignore: ['.progress']
471
654
  } },
472
- { 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: {
655
+ { type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['pmap', 'pmap_lgl', 'pmap_int', 'pmap_dbl', 'pmap_chr']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
473
656
  args: {
474
657
  '.l': { index: 0, name: '.l' }
475
658
  },
476
659
  '.f': { index: 1, name: '.f' },
477
660
  ignore: ['.progress']
478
661
  } },
479
- { 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: {
662
+ { type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['map2', 'map2_lgl', 'map2_int', 'map2_dbl', 'map2_chr']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
480
663
  args: {
481
664
  '.x': { index: 0, name: '.x' },
482
665
  '.y': { index: 1, name: '.y' },
@@ -484,7 +667,7 @@ exports.DefaultBuiltinConfig = [
484
667
  '.f': { index: 2, name: '.f' },
485
668
  ignore: ['.progress']
486
669
  } },
487
- { 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: {
670
+ { type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['modify', 'imodify', 'imap', 'imap_lgl', 'imap_int', 'imap_dbl', 'imap_chr', 'imap_vec', 'lmap']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
488
671
  args: {
489
672
  '.x': { index: 0, name: '.x' }
490
673
  },
@@ -499,7 +682,7 @@ exports.DefaultBuiltinConfig = [
499
682
  '.f': { index: 2, name: '.f' },
500
683
  ignore: []
501
684
  } },
502
- { 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: {
685
+ { type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['map_at', 'modify_at']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
503
686
  args: {
504
687
  '.x': { index: 0, name: '.x' },
505
688
  '.at': { index: 1, name: '.at' },
@@ -515,7 +698,7 @@ exports.DefaultBuiltinConfig = [
515
698
  '.f': { index: 2, name: '.f' },
516
699
  ignore: []
517
700
  } },
518
- { 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: {
701
+ { type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['map_if', 'modify_if', 'lmap_if']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
519
702
  args: {
520
703
  '.x': { index: 0, name: '.x' },
521
704
  '.p': { index: 1, name: '.p' },
@@ -570,7 +753,7 @@ exports.DefaultBuiltinConfig = [
570
753
  '.f': { index: 1, name: '.f' },
571
754
  ignore: ['.progress', '.ptype']
572
755
  } },
573
- { 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: {
756
+ { type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['map_depth', 'modify_depth']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
574
757
  args: {
575
758
  '.x': { index: 0, name: '.x' },
576
759
  '.depth': { index: 2, name: '.depth' }
@@ -602,32 +785,29 @@ exports.DefaultBuiltinConfig = [
602
785
  } },
603
786
  { type: 'function', names: ['function', '\\'],
604
787
  processor: built_in_proc_name_1.BuiltInProcName.FunctionDefinition, config: {}, assumePrimitive: true },
605
- { type: 'function', names: [identifier_1.Identifier.from(['quote', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['bquote', "base" /* PkgName.Base */])],
606
- processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0 }, assumePrimitive: true },
788
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['quote', 'bquote']),
789
+ processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, props: built_in_props_1.CallProp.Lang, sig: [['expr', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
607
790
  { type: 'function', names: [identifier_1.Identifier.from(['substitute', "base" /* PkgName.Base */])],
608
- processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, envArgIndex: 1 }, assumePrimitive: true },
609
- { 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 },
610
- { 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 },
791
+ processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, envArgIndex: 1, props: built_in_props_1.CallProp.Lang, sig: [['expr', built_in_props_1.ArgProp.Nse], ['env', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
792
+ { type: 'function', names: identifier_1.Identifier.fromAll("rlang" /* PkgName.Rlang */, ['enquo', 'enquos', 'quo', 'quos', 'sym', 'syms', 'ensym', 'ensyms', 'expr', 'exprs', 'quo_name', 'as_name', 'as_label', 'as_string']), processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, libFn: true, props: built_in_props_1.CallProp.Lang }, assumePrimitive: true },
793
+ { type: 'function', names: [...identifier_1.Identifier.fromAll("rlang" /* PkgName.Rlang */, ['call2', 'exec']), ...identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['invoke', 'invoke_map'])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: true, unquoteFunction: true }, assumePrimitive: false },
611
794
  { type: 'function', names: [identifier_1.Identifier.from(['local', "base" /* PkgName.Base */])],
612
795
  processor: built_in_proc_name_1.BuiltInProcName.Local, config: { args: { env: 'envir', expr: 'expr' } }, assumePrimitive: false },
613
- { type: 'function', names: [identifier_1.Identifier.from(['with', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['within', "base" /* PkgName.Base */])],
796
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['with', 'within']),
614
797
  processor: built_in_proc_name_1.BuiltInProcName.With, config: {}, assumePrimitive: false },
615
798
  { type: 'function', names: [identifier_1.Identifier.from(['new.env', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['new_environment', "rlang" /* PkgName.Rlang */])],
616
799
  processor: built_in_proc_name_1.BuiltInProcName.NewEnv, config: {}, assumePrimitive: true },
800
+ { type: 'function', names: [identifier_1.Identifier.from(['R6Class', "R6" /* PkgName.R6 */]), identifier_1.Identifier.from(['setRefClass', "methods" /* PkgName.Methods */])],
801
+ processor: built_in_proc_name_1.BuiltInProcName.ClassGenerator, config: {}, assumePrimitive: false },
617
802
  /* env-returning builtins pointing into the current search-path stack (`e <- globalenv(); e$x`) */
618
803
  { type: 'function', names: Object.entries(exports.StackEnvBuiltins)
619
804
  .filter(([n, kind]) => !n.startsWith('.') && (kind === StackEnvKind.Global || kind === StackEnvKind.Base || kind === StackEnvKind.Empty))
620
805
  .map(([n]) => identifier_1.Identifier.from([n, "base" /* PkgName.Base */])),
621
806
  processor: built_in_proc_name_1.BuiltInProcName.StackEnv, config: {}, assumePrimitive: true },
622
- { type: 'function', names: [
623
- identifier_1.Identifier.from(['parent.env', "base" /* PkgName.Base */]),
624
- identifier_1.Identifier.from(['parent.frame', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['environmentName', "base" /* PkgName.Base */]),
625
- identifier_1.Identifier.from(['as.environment', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['pos.to.env', "base" /* PkgName.Base */]),
626
- identifier_1.Identifier.from(['sys.frame', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['sys.frames', "base" /* PkgName.Base */]),
627
- identifier_1.Identifier.from(['topenv', "base" /* PkgName.Base */]),
628
- ], processor: built_in_proc_name_1.BuiltInProcName.Default, config: {}, assumePrimitive: true },
807
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['parent.env', 'parent.frame', 'environmentName', 'as.environment', 'pos.to.env', 'sys.frame', 'sys.frames', 'topenv']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: {}, assumePrimitive: true },
629
808
  { type: 'function', names: [identifier_1.Identifier.from(['load', "base" /* PkgName.Base */])],
630
- processor: built_in_proc_name_1.BuiltInProcName.Load, config: {}, assumePrimitive: false },
809
+ processor: built_in_proc_name_1.BuiltInProcName.Load,
810
+ config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Reads, sig: [['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
631
811
  /* attach injects an environment's contents into the search path; detach reverses it (treated as unknown side effect) */
632
812
  { type: 'function', names: [identifier_1.Identifier.from(['attach', "base" /* PkgName.Base */])],
633
813
  processor: built_in_proc_name_1.BuiltInProcName.Attach, config: {}, assumePrimitive: false },
@@ -635,11 +815,11 @@ exports.DefaultBuiltinConfig = [
635
815
  { type: 'function', names: ['repeat'], processor: built_in_proc_name_1.BuiltInProcName.RepeatLoop, config: {}, assumePrimitive: true },
636
816
  { type: 'function', names: ['while'], processor: built_in_proc_name_1.BuiltInProcName.WhileLoop, config: {}, assumePrimitive: true },
637
817
  { type: 'function', names: [identifier_1.Identifier.from(['do.call', "base" /* PkgName.Base */])],
638
- processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, unquoteFunction: true }, assumePrimitive: true },
818
+ processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['what', built_in_props_1.ArgProp.Callee], ['args', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
639
819
  { type: 'function', names: [identifier_1.Identifier.from(['UseMethod', "base" /* PkgName.Base */])],
640
- processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' } }, assumePrimitive: true },
820
+ processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' }, props: built_in_props_1.CallProp.Generic }, assumePrimitive: true },
641
821
  { type: 'function', names: [identifier_1.Identifier.from(['NextMethod', "base" /* PkgName.Base */])],
642
- processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' }, inferFromClosure: true }, assumePrimitive: true },
822
+ 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 },
643
823
  { type: 'function', names: [identifier_1.Identifier.from(['new_generic', "S7" /* PkgName.S7 */])],
644
824
  processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: 'dispatch_args', fun: 'fun' } }, assumePrimitive: true },
645
825
  { type: 'function', names: [identifier_1.Identifier.from(['setGeneric', "methods" /* PkgName.Methods */])],
@@ -652,33 +832,32 @@ exports.DefaultBuiltinConfig = [
652
832
  ], processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor, config: { mode: ['s7'] }, assumePrimitive: true },
653
833
  { type: 'function', names: [identifier_1.Identifier.from(['setClass', "methods" /* PkgName.Methods */])],
654
834
  processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor, config: { mode: ['s4'] }, assumePrimitive: true },
655
- { type: 'function', names: [
656
- identifier_1.Identifier.from(['Negate', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['Vectorize', "base" /* PkgName.Base */]),
657
- identifier_1.Identifier.from(['partial', "purrr" /* PkgName.Purrr */])
658
- ], processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor, config: {}, assumePrimitive: true },
659
- { type: 'function', names: [identifier_1.Identifier.from(['.Primitive', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['.Internal', "base" /* PkgName.Base */])],
835
+ { 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 },
836
+ { 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 },
837
+ { type: 'function', names: [identifier_1.Identifier.from(['partial', "purrr" /* PkgName.Purrr */])],
838
+ processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor, config: { wrapIndex: 0, wrapName: '.f' }, assumePrimitive: true },
839
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['.Primitive', '.Internal']),
660
840
  processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, unquoteFunction: true, resolveInEnvironment: 'global' }, assumePrimitive: true },
661
841
  { type: 'function', names: [identifier_1.Identifier.from(['interference', "inferference" /* PkgName.Inferference */])],
662
842
  processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { unquoteFunction: true, nameOfFunctionArgument: 'propensity_integrand', libFn: true }, assumePrimitive: false },
663
843
  { type: 'function', names: [identifier_1.Identifier.from(['ddply', "plyr" /* PkgName.Plyr */])],
664
844
  processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { unquoteFunction: true, indexOfFunction: 2, nameOfFunctionArgument: '.fun', libFn: true }, assumePrimitive: false },
665
845
  { type: 'function', names: [identifier_1.Identifier.from(['list', "base" /* PkgName.Base */])],
666
- processor: built_in_proc_name_1.BuiltInProcName.List, config: {}, assumePrimitive: true },
846
+ 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 },
667
847
  { type: 'function', names: [identifier_1.Identifier.from(['Recall', "base" /* PkgName.Base */])],
668
848
  processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true }, assumePrimitive: false },
669
849
  { type: 'function', names: [identifier_1.Identifier.from(['sys.function', "base" /* PkgName.Base */])],
670
- processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true, unknownOnNonZeroArg: true }, assumePrimitive: false },
850
+ processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true, unknownOnNonZeroArg: true, props: built_in_props_1.CallProp.Lang }, assumePrimitive: false },
671
851
  { type: 'function', names: [identifier_1.Identifier.from(['c', "base" /* PkgName.Base */])],
672
- processor: built_in_proc_name_1.BuiltInProcName.Vector, config: {}, assumePrimitive: true, evalHandler: 'built-in:c' },
673
- { 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 } },
852
+ 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 },
853
+ { 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]] } },
854
+ { 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]] } },
674
855
  { type: 'function', names: [identifier_1.Identifier.from(['loadcmp', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true } },
675
856
  {
676
857
  type: 'function',
677
858
  names: [
678
859
  identifier_1.Identifier.from(['setnames', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['setNames', "base" /* PkgName.Base */]),
679
- identifier_1.Identifier.from(['setkey', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['setkeyv', "data.table" /* PkgName.DataTable */]),
680
- identifier_1.Identifier.from(['setindex', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['setindexv', "data.table" /* PkgName.DataTable */]),
681
- identifier_1.Identifier.from(['setattr', "data.table" /* PkgName.DataTable */])
860
+ ...identifier_1.Identifier.fromAll("data.table" /* PkgName.DataTable */, ['setkey', 'setkeyv', 'setindex', 'setindexv', 'setattr'])
682
861
  ],
683
862
  processor: built_in_proc_name_1.BuiltInProcName.Assignment,
684
863
  config: {
@@ -691,46 +870,55 @@ exports.DefaultBuiltinConfig = [
691
870
  {
692
871
  type: 'function',
693
872
  names: [
694
- identifier_1.Identifier.from(['sys.on.exit', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['par', "graphics" /* PkgName.Graphics */]),
695
- identifier_1.Identifier.from(['tpar', "tinyplot" /* PkgName.TinyPlot */]), identifier_1.Identifier.from(['sink', "base" /* PkgName.Base */]),
873
+ identifier_1.Identifier.from(['sys.on.exit', "base" /* PkgName.Base */]),
696
874
  /* library/require/(require|load|attach)Namespace/use are handled above */
697
875
  identifier_1.Identifier.from(['asNamespace', "base" /* PkgName.Base */]),
698
- /* env attachment */
699
876
  identifier_1.Identifier.from(['unname', "base" /* PkgName.Base */]),
700
- /* file creation/removal (base) */
701
- identifier_1.Identifier.from(['dir.create', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dir_create', "fs" /* PkgName.Fs */]),
702
- identifier_1.Identifier.from(['Sys.chmod', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['unlink', "base" /* PkgName.Base */]),
703
- identifier_1.Identifier.from(['file.remove', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['file.rename', "base" /* PkgName.Base */]),
704
- identifier_1.Identifier.from(['file.copy', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['file.link', "base" /* PkgName.Base */]),
705
- identifier_1.Identifier.from(['file.append', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['Sys.junction', "base" /* PkgName.Base */]),
706
877
  ],
707
878
  processor: built_in_proc_name_1.BuiltInProcName.Default,
708
879
  config: { hasUnknownSideEffects: true },
709
880
  assumePrimitive: false
710
881
  },
882
+ /* they create, move, or delete files */
883
+ {
884
+ type: 'function',
885
+ names: [
886
+ identifier_1.Identifier.from(['dir.create', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dir_create', "fs" /* PkgName.Fs */]),
887
+ ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Sys.chmod', 'unlink', 'file.remove', 'file.rename', 'file.copy', 'file.link', 'file.append', 'Sys.junction']),
888
+ ],
889
+ processor: built_in_proc_name_1.BuiltInProcName.Default,
890
+ config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes },
891
+ assumePrimitive: false
892
+ },
893
+ /* `sink` diverts the output, `par`/`tpar` set the parameters of the current device */
894
+ { type: 'function', names: [identifier_1.Identifier.from(['sink', "base" /* PkgName.Base */])],
895
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes, sig: [['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
896
+ { type: 'function', names: [identifier_1.Identifier.from(['par', "graphics" /* PkgName.Graphics */]), identifier_1.Identifier.from(['tpar', "tinyplot" /* PkgName.TinyPlot */])],
897
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Graphics }, assumePrimitive: false },
711
898
  {
712
899
  type: 'function',
713
900
  names: [
714
901
  identifier_1.Identifier.from(['tinytheme', "tinyplot" /* PkgName.TinyPlot */]), identifier_1.Identifier.from(['theme_set', "ggplot2" /* PkgName.GgPlot2 */]),
715
- identifier_1.Identifier.from(['context', "testthat" /* PkgName.Testthat */]),
716
- /* installers (utils / devtools / remotes; devtools re-exports the entire remotes install API) */
717
- identifier_1.Identifier.from(['library.dynam', "base" /* PkgName.Base */]),
718
- identifier_1.Identifier.from(['install.packages', "utils" /* PkgName.Utils */]),
719
- identifier_1.Identifier.from(['install', "devtools" /* PkgName.Devtools */]),
720
- identifier_1.Identifier.from(['install_github', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_github', "devtools" /* PkgName.Devtools */]),
721
- identifier_1.Identifier.from(['install_gitlab', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_gitlab', "devtools" /* PkgName.Devtools */]),
722
- identifier_1.Identifier.from(['install_bitbucket', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_bitbucket', "devtools" /* PkgName.Devtools */]),
723
- identifier_1.Identifier.from(['install_url', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_url', "devtools" /* PkgName.Devtools */]),
724
- identifier_1.Identifier.from(['install_git', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_git', "devtools" /* PkgName.Devtools */]),
725
- identifier_1.Identifier.from(['install_svn', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_svn', "devtools" /* PkgName.Devtools */]),
902
+ identifier_1.Identifier.from(['context', "testthat" /* PkgName.Testthat */]), identifier_1.Identifier.from(['library.dynam', "base" /* PkgName.Base */]),
903
+ /* installs from a path that is already there */
726
904
  identifier_1.Identifier.from(['install_local', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_local', "devtools" /* PkgName.Devtools */]),
727
- identifier_1.Identifier.from(['install_version', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_version', "devtools" /* PkgName.Devtools */]),
728
- identifier_1.Identifier.from(['update_packages', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['update_packages', "devtools" /* PkgName.Devtools */]),
729
905
  ],
730
906
  processor: built_in_proc_name_1.BuiltInProcName.Default,
731
907
  config: { hasUnknownSideEffects: true, libFn: true },
732
908
  assumePrimitive: false
733
909
  },
910
+ /* installers fetch the package and put it into the library (devtools re-exports the entire remotes install API) */
911
+ {
912
+ type: 'function',
913
+ names: [
914
+ identifier_1.Identifier.from(['install.packages', "utils" /* PkgName.Utils */]), identifier_1.Identifier.from(['install', "devtools" /* PkgName.Devtools */]),
915
+ ...['install_github', 'install_gitlab', 'install_bitbucket', 'install_url', 'install_git', 'install_svn', 'install_version', 'update_packages']
916
+ .flatMap(f => [identifier_1.Identifier.from([f, "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from([f, "devtools" /* PkgName.Devtools */])]),
917
+ ],
918
+ processor: built_in_proc_name_1.BuiltInProcName.Default,
919
+ config: { hasUnknownSideEffects: true, libFn: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Network | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Writes },
920
+ assumePrimitive: false
921
+ },
734
922
  {
735
923
  type: 'function',
736
924
  names: [identifier_1.Identifier.from(['on.exit', "base" /* PkgName.Base */])],
@@ -745,20 +933,116 @@ exports.DefaultBuiltinConfig = [
745
933
  },
746
934
  assumePrimitive: true
747
935
  },
936
+ /* `parse(text=)` turns text into an expression, with `file=` it reads that file */
937
+ { type: 'function', names: [identifier_1.Identifier.from(['parse', "base" /* PkgName.Base */])],
938
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', props: built_in_props_1.CallProp.Pure }, assumePrimitive: false },
939
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['list.files', 'dir']),
940
+ processor: built_in_proc_name_1.BuiltInProcName.Default,
941
+ config: { forceArgs: 'all', props: built_in_props_1.CallProp.File | built_in_props_1.CallProp.Reads, sig: [['path', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
942
+ /* language objects */
943
+ {
944
+ type: 'function',
945
+ names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['enquote', 'call', 'as.call', 'as.expression', 'as.name', 'as.symbol',
946
+ 'as.language', 'match.call', 'sys.call', 'args', 'deparse', 'deparse1']),
947
+ processor: built_in_proc_name_1.BuiltInProcName.Default,
948
+ config: { forceArgs: 'all', props: built_in_props_1.CallProp.Lang },
949
+ assumePrimitive: false
950
+ },
951
+ /* `alist` keeps its arguments unevaluated, `evalq` evaluates its first one in another frame */
952
+ { type: 'function', names: [identifier_1.Identifier.from(['alist', "base" /* PkgName.Base */])],
953
+ 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 },
954
+ { type: 'function', names: [identifier_1.Identifier.from(['evalq', "base" /* PkgName.Base */])],
955
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, sig: [['expr', built_in_props_1.ArgProp.Nse], ['envir', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
956
+ {
957
+ type: 'function',
958
+ names: identifier_1.Identifier.fromAll("rlang" /* PkgName.Rlang */, ['enexpr', 'enexprs', 'inject', 'enquo0', 'enquos0', 'new_formula',
959
+ 'f_rhs', 'f_lhs', 'fn_body', 'fn_fmls', 'fn_fmls_names']),
960
+ processor: built_in_proc_name_1.BuiltInProcName.Default,
961
+ config: { forceArgs: 'all', libFn: true, props: built_in_props_1.CallProp.Lang },
962
+ assumePrimitive: false
963
+ },
964
+ /* native code */
965
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['dyn.load', 'getNativeSymbolInfo']),
966
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', props: built_in_props_1.CallProp.Ffi }, assumePrimitive: false },
967
+ { type: 'function', names: [identifier_1.Identifier.from(['sourceCpp', "Rcpp" /* PkgName.Rcpp */])],
968
+ processor: built_in_proc_name_1.BuiltInProcName.Default,
969
+ config: { forceArgs: 'all', libFn: true, props: built_in_props_1.CallProp.Ffi | built_in_props_1.CallProp.File | built_in_props_1.CallProp.Reads, sig: [['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
970
+ /* ambient state: options, environment variables, the clock, the session itself */
971
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['getOption', 'Sys.getenv', 'Sys.info', 'Sys.getpid', 'getwd', 'getRversion', 'R.Version', 'Sys.time', 'Sys.Date', 'Sys.timezone', 'date', 'proc.time']),
972
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', props: built_in_props_1.CallProp.Ambient }, assumePrimitive: false },
973
+ /* system commands */
974
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['system', 'system2', 'pipe', 'shell', 'shell.exec']),
975
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', props: built_in_props_1.CallProp.Process }, assumePrimitive: false },
976
+ { type: 'function', names: [identifier_1.Identifier.from(['runjs', "shinyjs" /* PkgName.ShinyJs */])],
977
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', libFn: true, props: built_in_props_1.CallProp.Process }, assumePrimitive: false },
978
+ /* whatever the user types, picks, or sends along with a request */
979
+ {
980
+ type: 'function',
981
+ names: [
982
+ ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['readline', 'file.choose']),
983
+ ...identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['askYesNo', 'choose.files', 'choose.dir', 'menu', 'select.list', 'winDialogString', 'winDialog']),
984
+ ],
985
+ processor: built_in_proc_name_1.BuiltInProcName.Default,
986
+ config: { forceArgs: 'all', props: built_in_props_1.CallProp.User },
987
+ assumePrimitive: false
988
+ },
989
+ {
990
+ type: 'function',
991
+ names: [
992
+ ...identifier_1.Identifier.fromAll("rstudioapi" /* PkgName.RstudioApi */, ['showPrompt', 'askForPassword', 'selectDirectory', 'selectFile', 'showQuestion']),
993
+ ...identifier_1.Identifier.fromAll("svDialogs" /* PkgName.SvDialogs */, ['dlgInput', 'dlgOpen', 'dlgList', 'dlgSave', 'dlgDir']),
994
+ ...identifier_1.Identifier.fromAll("tcltk" /* PkgName.Tcltk */, ['tk_choose.files', 'tk_choose.dir']),
995
+ ...identifier_1.Identifier.fromAll("shiny" /* PkgName.Shiny */, ['parseQueryString', 'getQueryString', 'getUrlHash', 'restoreInput']),
996
+ ...identifier_1.Identifier.fromAll("shinyFiles" /* PkgName.ShinyFiles */, ['parseFilePaths', 'parseDirPath', 'parseSavePath', 'shinyFileChoose', 'shinyDirChoose', 'shinyFileSave']),
997
+ /* what comes out of a cohort depends on the filters the user set, and on the gui that sets them */
998
+ ...identifier_1.Identifier.fromAll("cohortBuilder" /* PkgName.CohortBuilder */, ['get_data', 'sum_up', 'attrition', 'get_state', 'code', 'stat']),
999
+ ...identifier_1.Identifier.fromAll("shinyCohortBuilder" /* PkgName.ShinyCohortBuilder */, ['cb_server', 'cb_ui', 'cb_chat_server', 'cb_chat_ui', 'gui', 'demo_app']),
1000
+ ],
1001
+ processor: built_in_proc_name_1.BuiltInProcName.Default,
1002
+ config: { forceArgs: 'all', libFn: true, props: built_in_props_1.CallProp.User },
1003
+ assumePrimitive: false
1004
+ },
1005
+ /* they only make up a path, they do not go near the file system, so `File` would be wrong here */
1006
+ { type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['tempfile', 'tempdir']),
1007
+ processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', props: built_in_props_1.CallProp.TempFile }, assumePrimitive: false },
1008
+ {
1009
+ type: 'function',
1010
+ names: [
1011
+ ...identifier_1.Identifier.fromAll("fs" /* PkgName.Fs */, ['file_temp', 'dir_temp']),
1012
+ ...identifier_1.Identifier.fromAll("withr" /* PkgName.Withr */, ['local_tempfile', 'with_tempfile', 'local_tempdir', 'with_tempdir']),
1013
+ ],
1014
+ processor: built_in_proc_name_1.BuiltInProcName.Default,
1015
+ config: { forceArgs: 'all', libFn: true, props: built_in_props_1.CallProp.TempFile },
1016
+ assumePrimitive: false
1017
+ },
1018
+ /* wrappers that run the expression they are handed; `observe`/`render*` are left out, they yield a handle instead */
1019
+ {
1020
+ type: 'function',
1021
+ names: identifier_1.Identifier.fromAll("shiny" /* PkgName.Shiny */, ['reactive', 'eventReactive', 'bindEvent', 'bindCache', 'isolate', 'req',
1022
+ 'debounce', 'throttle', 'reactiveVal', 'reactiveValues', 'reactiveValuesToList', 'freezeReactiveVal']),
1023
+ processor: built_in_proc_name_1.BuiltInProcName.Default,
1024
+ config: { forceArgs: 'all', libFn: true, props: built_in_props_1.CallProp.MayPure },
1025
+ assumePrimitive: false
1026
+ },
1027
+ /* assembling a cohort keeps the data of its source; `filter` is registered above, dplyr holds that name */
1028
+ {
1029
+ type: 'function',
1030
+ names: identifier_1.Identifier.fromAll("cohortBuilder" /* PkgName.CohortBuilder */, ['cohort', 'set_source', 'add_source', 'update_source', 'add_filter',
1031
+ 'update_filter', 'rm_filter', 'bind_key', 'bind_keys', 'as.tblist', 'tblist',
1032
+ 'step', 'add_step', 'rm_step', 'run', 'restore']),
1033
+ processor: built_in_proc_name_1.BuiltInProcName.Default,
1034
+ config: { forceArgs: 'all', libFn: true, props: built_in_props_1.CallProp.Pure },
1035
+ assumePrimitive: false
1036
+ },
748
1037
  /* they are all mapped to `<-` but we separate super assignments */
749
1038
  {
750
1039
  type: 'replacement',
751
1040
  suffixes: ['<-', '<<-'],
752
1041
  names: [
753
1042
  '[', '[[',
754
- identifier_1.Identifier.from(['names', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dimnames', "base" /* PkgName.Base */]),
755
- identifier_1.Identifier.from(['attributes', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['attr', "base" /* PkgName.Base */]),
756
- identifier_1.Identifier.from(['class', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['levels', "base" /* PkgName.Base */]),
757
- identifier_1.Identifier.from(['rownames', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['colnames', "base" /* PkgName.Base */]),
758
- identifier_1.Identifier.from(['body', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['environment', "base" /* PkgName.Base */]),
759
- identifier_1.Identifier.from(['formals', "base" /* PkgName.Base */]),
1043
+ ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['names', 'dimnames', 'attributes', 'attr', 'class', 'levels', 'rownames', 'colnames', 'body', 'environment', 'formals', 'length', 'dim']),
760
1044
  ],
761
- config: { readIndices: true }
1045
+ config: { readIndices: true, props: built_in_props_1.CallProp.Scope }
762
1046
  },
763
1047
  {
764
1048
  type: 'replacement',
@@ -770,7 +1054,7 @@ exports.DefaultBuiltinConfig = [
770
1054
  type: 'replacement',
771
1055
  suffixes: ['<-', '<<-'],
772
1056
  names: ['$', '@'],
773
- config: { readIndices: false }
1057
+ config: { readIndices: false, props: built_in_props_1.CallProp.Scope }
774
1058
  },
775
1059
  ];
776
1060
  /**