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