@eagleoutice/flowr 2.13.4 → 2.13.6

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