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