@eagleoutice/flowr 2.10.9 → 2.11.0
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 +116 -38
- 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/options.d.ts +2 -108
- package/cli/common/options.js +3 -27
- package/cli/common/script.js +3 -2
- package/cli/common/scripts-info.d.ts +2 -123
- package/cli/common/scripts-info.js +0 -17
- package/cli/flowr-main-options.d.ts +5 -0
- package/cli/flowr-main-options.js +10 -0
- package/cli/flowr.js +48 -11
- 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/print-version.d.ts +3 -1
- package/cli/repl/print-version.js +21 -2
- package/cli/repl/server/connection.d.ts +3 -0
- package/cli/repl/server/connection.js +65 -31
- 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/summarizer-core.js +13 -32
- package/cli/wiki.d.ts +3 -1
- package/cli/wiki.js +6 -1
- package/config.d.ts +22 -10
- package/config.js +33 -7
- package/control-flow/diff-cfg.d.ts +1 -1
- package/control-flow/diff-cfg.js +1 -1
- package/control-flow/semantic-cfg-guided-visitor.js +2 -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/data/pkgdb/pkgdb-latest.json.br +0 -0
- package/data/pkgdb/pkgdb-tiny.json.br +0 -0
- package/dataflow/environments/append.d.ts +2 -2
- package/dataflow/environments/append.js +4 -10
- package/dataflow/environments/apply-kill.d.ts +21 -0
- package/dataflow/environments/apply-kill.js +155 -0
- package/dataflow/environments/built-in-proc-name.d.ts +4 -0
- package/dataflow/environments/built-in-proc-name.js +4 -0
- package/dataflow/environments/built-in.d.ts +4 -0
- package/dataflow/environments/built-in.js +4 -0
- package/dataflow/environments/default-builtin-config.d.ts +183 -67
- package/dataflow/environments/default-builtin-config.js +358 -147
- package/dataflow/environments/environment.d.ts +49 -31
- package/dataflow/environments/environment.js +144 -25
- package/dataflow/environments/identifier.d.ts +65 -2
- package/dataflow/environments/identifier.js +37 -2
- package/dataflow/environments/overwrite.js +2 -10
- 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.d.ts +1 -1
- package/dataflow/environments/resolve-by-name.js +23 -9
- package/dataflow/environments/scoping.d.ts +9 -2
- package/dataflow/environments/scoping.js +15 -2
- package/dataflow/eval/values/general.js +4 -0
- package/dataflow/extractor.js +35 -4
- package/dataflow/graph/df-helper.d.ts +14 -0
- package/dataflow/graph/df-helper.js +41 -0
- package/dataflow/graph/graph.d.ts +4 -1
- package/dataflow/graph/graph.js +6 -2
- package/dataflow/info.d.ts +27 -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-access.js +7 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +19 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.d.ts +1 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +7 -13
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +9 -48
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +30 -47
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +17 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +7 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.d.ts +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +61 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +9 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-library.d.ts +37 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +391 -21
- 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 +3 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +132 -25
- package/dataflow/internal/process/functions/call/built-in/built-in-source.js +9 -10
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +25 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +94 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +11 -4
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +30 -0
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +279 -0
- package/dataflow/internal/process/functions/call/known-call-handling.js +4 -3
- package/dataflow/internal/process/functions/call/named-call-handling.d.ts +1 -1
- package/dataflow/internal/process/functions/call/named-call-handling.js +23 -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 +78 -57
- package/documentation/data/interface/doc-writing-code.js +4 -80
- 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-structure.js +1 -2
- 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 +121 -32
- 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 +112 -77
- 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 +22 -8
- package/documentation/wiki-linter.d.ts +1 -1
- package/documentation/wiki-linter.js +16 -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 +4 -17
- package/documentation/wiki-package-database.d.ts +9 -0
- package/documentation/wiki-package-database.js +63 -0
- package/documentation/wiki-query.js +86 -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 +111 -86
- package/linter/linter-rules.js +9 -1
- package/linter/rules/absolute-path.d.ts +2 -7
- package/linter/rules/absolute-path.js +8 -5
- 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/undefined-symbol.d.ts +39 -0
- package/linter/rules/undefined-symbol.js +80 -0
- 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 +5 -5
- package/project/cache/flowr-analyzer-cache.d.ts +2 -0
- package/project/cache/flowr-analyzer-cache.js +9 -1
- package/project/context/flowr-analyzer-context.d.ts +13 -14
- package/project/context/flowr-analyzer-context.js +4 -0
- package/project/context/flowr-analyzer-dependencies-context.d.ts +16 -8
- package/project/context/flowr-analyzer-dependencies-context.js +36 -4
- package/project/context/flowr-analyzer-environment-context.d.ts +2 -4
- package/project/context/flowr-analyzer-environment-context.js +3 -4
- package/project/context/flowr-analyzer-files-context.d.ts +13 -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/context/flowr-file.d.ts +2 -0
- package/project/context/flowr-file.js +2 -0
- package/project/flowr-analyzer-builder.js +3 -0
- package/project/flowr-analyzer.d.ts +2 -1
- package/project/flowr-analyzer.js +3 -1
- package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +13 -15
- package/project/plugins/file-plugins/files/flowr-namespace-file.js +36 -13
- 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/flowr-analyzer-virtualenv-file-plugin.d.ts +27 -0
- package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.js +41 -0
- 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/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.d.ts +18 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +62 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-pkgdb-plugin.d.ts +63 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-pkgdb-plugin.js +174 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.d.ts +10 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.js +6 -0
- package/project/plugins/package-version-plugins/package.d.ts +3 -0
- package/project/plugins/package-version-plugins/package.js +12 -0
- package/project/plugins/package-version-plugins/pkgdb.d.ts +133 -0
- package/project/plugins/package-version-plugins/pkgdb.js +370 -0
- package/project/plugins/plugin-registry.d.ts +5 -1
- package/project/plugins/plugin-registry.js +10 -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 +62 -8
- package/queries/catalog/call-context-query/call-context-query-format.d.ts +4 -2
- package/queries/catalog/call-context-query/call-context-query-format.js +1 -0
- package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +8 -0
- package/queries/catalog/dependencies-query/dependencies-query-executor.js +31 -3
- package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +3 -1
- package/queries/catalog/dependencies-query/dependencies-query-format.js +3 -2
- package/queries/catalog/dependencies-query/function-info/function-info.d.ts +1 -1
- package/queries/catalog/dependencies-query/function-info/other-path-functions.d.ts +2 -0
- package/queries/catalog/dependencies-query/function-info/other-path-functions.js +27 -0
- package/queries/catalog/dependencies-query/function-info/read-functions.js +5 -4
- 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/dependencies-query/function-info/visualize-functions.js +3 -1
- 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 +8 -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 +7 -2
- package/r-bridge/data/data.js +8 -2
- package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +0 -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-executor.js +13 -4
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +55 -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 +601 -1
- package/search/search-executor/search-enrichers.js +30 -6
- 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/mermaid/mermaid.d.ts +4 -0
- package/util/mermaid/mermaid.js +8 -1
- package/util/objects.d.ts +9 -0
- package/util/objects.js +54 -0
- package/util/proc.d.ts +6 -0
- package/util/proc.js +20 -0
- package/util/version.js +10 -2
- package/cli/common/features.d.ts +0 -9
- package/cli/common/features.js +0 -35
- package/cli/script-core/statistics-core.d.ts +0 -6
- package/cli/script-core/statistics-core.js +0 -103
- package/cli/script-core/statistics-helper-core.d.ts +0 -6
- package/cli/script-core/statistics-helper-core.js +0 -85
- package/cli/statistics-app.d.ts +0 -11
- package/cli/statistics-app.js +0 -16
- package/cli/statistics-helper-app.d.ts +0 -11
- package/cli/statistics-helper-app.js +0 -14
- package/statistics/features/common-syntax-probability.d.ts +0 -38
- package/statistics/features/common-syntax-probability.js +0 -169
- package/statistics/features/feature.d.ts +0 -179
- package/statistics/features/feature.js +0 -38
- package/statistics/features/post-processing.d.ts +0 -18
- package/statistics/features/post-processing.js +0 -26
- package/statistics/features/supported/assignments/assignments.d.ts +0 -12
- package/statistics/features/supported/assignments/assignments.js +0 -56
- package/statistics/features/supported/assignments/post-process.d.ts +0 -6
- package/statistics/features/supported/assignments/post-process.js +0 -126
- package/statistics/features/supported/comments/comments.d.ts +0 -18
- package/statistics/features/supported/comments/comments.js +0 -143
- package/statistics/features/supported/comments/post-process.d.ts +0 -6
- package/statistics/features/supported/comments/post-process.js +0 -51
- package/statistics/features/supported/control-flow/control-flow.d.ts +0 -17
- package/statistics/features/supported/control-flow/control-flow.js +0 -69
- package/statistics/features/supported/control-flow/post-process.d.ts +0 -6
- package/statistics/features/supported/control-flow/post-process.js +0 -66
- package/statistics/features/supported/data-access/data-access.d.ts +0 -15
- package/statistics/features/supported/data-access/data-access.js +0 -122
- package/statistics/features/supported/data-access/post-process.d.ts +0 -6
- package/statistics/features/supported/data-access/post-process.js +0 -108
- package/statistics/features/supported/defined-functions/defined-functions.d.ts +0 -34
- package/statistics/features/supported/defined-functions/defined-functions.js +0 -145
- package/statistics/features/supported/defined-functions/post-process.d.ts +0 -6
- package/statistics/features/supported/defined-functions/post-process.js +0 -168
- package/statistics/features/supported/expression-list/post-process.d.ts +0 -6
- package/statistics/features/supported/expression-list/post-process.js +0 -45
- package/statistics/features/supported/expression-list/statistics-expression-list.d.ts +0 -9
- package/statistics/features/supported/expression-list/statistics-expression-list.js +0 -37
- package/statistics/features/supported/loops/loops.d.ts +0 -20
- package/statistics/features/supported/loops/loops.js +0 -81
- package/statistics/features/supported/loops/post-process.d.ts +0 -6
- package/statistics/features/supported/loops/post-process.js +0 -73
- package/statistics/features/supported/used-functions/post-process.d.ts +0 -6
- package/statistics/features/supported/used-functions/post-process.js +0 -176
- package/statistics/features/supported/used-functions/used-functions.d.ts +0 -24
- package/statistics/features/supported/used-functions/used-functions.js +0 -99
- package/statistics/features/supported/used-packages/post-process.d.ts +0 -6
- package/statistics/features/supported/used-packages/post-process.js +0 -122
- package/statistics/features/supported/used-packages/used-packages.d.ts +0 -16
- package/statistics/features/supported/used-packages/used-packages.js +0 -140
- package/statistics/features/supported/values/post-process.d.ts +0 -6
- package/statistics/features/supported/values/post-process.js +0 -73
- package/statistics/features/supported/values/values.d.ts +0 -14
- package/statistics/features/supported/values/values.js +0 -111
- package/statistics/features/supported/variables/post-process.d.ts +0 -15
- package/statistics/features/supported/variables/post-process.js +0 -126
- package/statistics/features/supported/variables/variables.d.ts +0 -15
- package/statistics/features/supported/variables/variables.js +0 -62
- package/statistics/meta-statistics.d.ts +0 -32
- package/statistics/meta-statistics.js +0 -16
- package/statistics/output/file-provider.d.ts +0 -36
- package/statistics/output/file-provider.js +0 -96
- package/statistics/output/print-stats.d.ts +0 -29
- package/statistics/output/print-stats.js +0 -81
- package/statistics/output/statistics-file.d.ts +0 -36
- package/statistics/output/statistics-file.js +0 -68
- package/statistics/statistics.d.ts +0 -29
- package/statistics/statistics.js +0 -108
- package/statistics/summarizer/auto-detect.d.ts +0 -5
- package/statistics/summarizer/auto-detect.js +0 -34
- package/statistics/summarizer/first-phase/process.d.ts +0 -6
- package/statistics/summarizer/first-phase/process.js +0 -81
- package/statistics/summarizer/post-process/clusterer.d.ts +0 -25
- package/statistics/summarizer/post-process/clusterer.js +0 -40
- package/statistics/summarizer/post-process/file-based-count.d.ts +0 -16
- package/statistics/summarizer/post-process/file-based-count.js +0 -47
- package/statistics/summarizer/post-process/histogram.d.ts +0 -57
- package/statistics/summarizer/post-process/histogram.js +0 -126
- package/statistics/summarizer/post-process/post-process-output.d.ts +0 -14
- package/statistics/summarizer/post-process/post-process-output.js +0 -102
- package/statistics/summarizer/second-phase/process.d.ts +0 -15
- package/statistics/summarizer/second-phase/process.js +0 -118
- package/statistics/summarizer/summarizer.d.ts +0 -34
- package/statistics/summarizer/summarizer.js +0 -141
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DefaultBuiltinConfig = exports.GgPlotAddons = exports.GraphicsPlotAddons = exports.PlotFunctionsWithAddParam = exports.GgPlotImplicitAddons = exports.TinyPlotAddons = exports.PlotCreate = exports.GraphicsPlotCreate = exports.TinyPlotCrate = exports.GgPlotCreate = void 0;
|
|
3
|
+
exports.DefaultBuiltinConfig = exports.GgPlotAddons = exports.GraphicsPlotAddons = exports.PlotFunctionsWithAddParam = exports.GgPlotImplicitAddons = exports.TinyPlotAddons = exports.PlotCreate = exports.GraphicsPlotCreate = exports.TinyPlotCrate = exports.GgPlotCreate = exports.StackEnvBuiltins = exports.StackEnvKind = void 0;
|
|
4
4
|
exports.getDefaultProcessor = getDefaultProcessor;
|
|
5
5
|
const identify_link_to_last_call_relation_1 = require("../../queries/catalog/call-context-query/identify-link-to-last-call-relation");
|
|
6
6
|
const type_1 = require("../../r-bridge/lang-4.x/ast/model/type");
|
|
@@ -9,6 +9,28 @@ 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
|
+
/** Which stack environment an env-returning/-transforming builtin denotes (see {@link StackEnvBuiltins}). */
|
|
13
|
+
var StackEnvKind;
|
|
14
|
+
(function (StackEnvKind) {
|
|
15
|
+
StackEnvKind[StackEnvKind["Global"] = 0] = "Global";
|
|
16
|
+
StackEnvKind[StackEnvKind["Base"] = 1] = "Base";
|
|
17
|
+
StackEnvKind[StackEnvKind["Empty"] = 2] = "Empty";
|
|
18
|
+
StackEnvKind[StackEnvKind["Current"] = 3] = "Current";
|
|
19
|
+
StackEnvKind[StackEnvKind["Parent"] = 4] = "Parent";
|
|
20
|
+
StackEnvKind[StackEnvKind["Named"] = 5] = "Named";
|
|
21
|
+
})(StackEnvKind || (exports.StackEnvKind = StackEnvKind = {}));
|
|
22
|
+
/** Maps the env-returning/-transforming base builtins and constants to the stack environment each denotes. */
|
|
23
|
+
exports.StackEnvBuiltins = {
|
|
24
|
+
globalenv: StackEnvKind.Global,
|
|
25
|
+
baseenv: StackEnvKind.Base,
|
|
26
|
+
emptyenv: StackEnvKind.Empty,
|
|
27
|
+
environment: StackEnvKind.Current,
|
|
28
|
+
'parent.env': StackEnvKind.Parent,
|
|
29
|
+
'as.environment': StackEnvKind.Named,
|
|
30
|
+
'.GlobalEnv': StackEnvKind.Global,
|
|
31
|
+
'.BaseEnv': StackEnvKind.Base,
|
|
32
|
+
'.BaseNamespaceEnv': StackEnvKind.Base
|
|
33
|
+
};
|
|
12
34
|
exports.GgPlotCreate = [
|
|
13
35
|
'ggplot', 'ggplotly', 'ggMarginal', 'ggcorrplot', 'ggseasonplot', 'ggdendrogram', 'qmap', 'qplot', 'quickplot', 'autoplot', 'grid.arrange',
|
|
14
36
|
'fviz_pca_biplot', 'fviz_pca', 'fviz_pca_ind', 'fviz_pca_var', 'fviz_screeplot', 'fviz_mca_biplot', 'fviz_mca', 'fviz_mca_ind', 'fviz_mca_var', 'fviz_cluster', 'fviz_dend',
|
|
@@ -90,50 +112,127 @@ exports.GgPlotAddons = [
|
|
|
90
112
|
];
|
|
91
113
|
const PlotAddons = exports.GraphicsPlotAddons.concat(exports.GgPlotImplicitAddons, ...exports.PlotFunctionsWithAddParam);
|
|
92
114
|
const RegexConvIn = /[-/\\^$*+?.()|[\]{}]/g;
|
|
115
|
+
/** Builds a regex from an array of plain names or namespaced {@link Identifier}s, deduplicating by name. */
|
|
93
116
|
function toRegex(n) {
|
|
94
|
-
return new RegExp(`^(${Array.from(new Set(n), s => s.replaceAll(RegexConvIn, String.raw `\$&`)).filter(s => s.length > 0).join('|')})$`);
|
|
117
|
+
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
118
|
}
|
|
96
119
|
/**
|
|
97
120
|
* Contains the built-in definitions recognized by flowR
|
|
98
121
|
*/
|
|
99
122
|
exports.DefaultBuiltinConfig = [
|
|
100
|
-
{ type: 'constant', names: [
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
123
|
+
{ type: 'constant', names: [
|
|
124
|
+
identifier_1.Identifier.from(['NULL', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['NA', "base" /* PkgName.Base */]),
|
|
125
|
+
identifier_1.Identifier.from(['NA_integer_', "base" /* PkgName.Base */]),
|
|
126
|
+
identifier_1.Identifier.from(['NA_real_', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['NA_complex_', "base" /* PkgName.Base */]),
|
|
127
|
+
identifier_1.Identifier.from(['NA_character_', "base" /* PkgName.Base */])
|
|
128
|
+
], value: null, assumePrimitive: true },
|
|
129
|
+
{ type: 'constant', names: [identifier_1.Identifier.from(['NaN', "base" /* PkgName.Base */])], value: NaN, assumePrimitive: true },
|
|
130
|
+
{ type: 'constant', names: [
|
|
131
|
+
identifier_1.Identifier.from(['.GlobalEnv', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['.BaseNamespaceEnv', "base" /* PkgName.Base */]),
|
|
132
|
+
identifier_1.Identifier.from(['.BaseEnv', "base" /* PkgName.Base */])
|
|
133
|
+
], value: null, assumePrimitive: true },
|
|
134
|
+
{ type: 'constant', names: [identifier_1.Identifier.from(['TRUE', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['T', "base" /* PkgName.Base */])], value: true, assumePrimitive: true },
|
|
135
|
+
{ type: 'constant', names: [identifier_1.Identifier.from(['FALSE', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['F', "base" /* PkgName.Base */])], value: false, assumePrimitive: true },
|
|
136
|
+
{ type: 'constant', names: [identifier_1.Identifier.from(['Inf', "base" /* PkgName.Base */])], value: Infinity, assumePrimitive: true },
|
|
137
|
+
{ type: 'constant', names: [identifier_1.Identifier.from(['-Inf', "base" /* PkgName.Base */])], value: -Infinity, assumePrimitive: true },
|
|
138
|
+
{ type: 'constant', names: [identifier_1.Identifier.from(['pi', "base" /* PkgName.Base */])], value: Math.PI, assumePrimitive: true },
|
|
139
|
+
{ type: 'constant', names: [identifier_1.Identifier.from(['LETTERS', "base" /* PkgName.Base */])],
|
|
140
|
+
value: Array.from({ length: 26 }, (_, i) => String.fromCharCode(65 + i)), assumePrimitive: true },
|
|
141
|
+
{ type: 'constant', names: [identifier_1.Identifier.from(['letters', "base" /* PkgName.Base */])],
|
|
142
|
+
value: Array.from({ length: 26 }, (_, i) => String.fromCharCode(97 + i)), assumePrimitive: true },
|
|
143
|
+
{ type: 'constant', names: [identifier_1.Identifier.from(['month.abb', "base" /* PkgName.Base */])],
|
|
144
|
+
value: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], assumePrimitive: true },
|
|
145
|
+
{ type: 'constant', names: [identifier_1.Identifier.from(['month.name', "base" /* PkgName.Base */])],
|
|
146
|
+
value: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], assumePrimitive: true },
|
|
104
147
|
{
|
|
105
148
|
type: 'function',
|
|
106
149
|
names: [
|
|
107
|
-
|
|
108
|
-
'
|
|
109
|
-
'
|
|
110
|
-
'
|
|
111
|
-
'
|
|
112
|
-
|
|
113
|
-
'
|
|
114
|
-
'
|
|
150
|
+
/* arithmetic & comparison operators (base) */
|
|
151
|
+
identifier_1.Identifier.from(['~', "base" /* PkgName.Base */]),
|
|
152
|
+
identifier_1.Identifier.from(['+', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['-', "base" /* PkgName.Base */]),
|
|
153
|
+
identifier_1.Identifier.from(['*', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['/', "base" /* PkgName.Base */]),
|
|
154
|
+
identifier_1.Identifier.from(['^', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['**', "base" /* PkgName.Base */]),
|
|
155
|
+
identifier_1.Identifier.from(['!', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['?', "utils" /* PkgName.Utils */]),
|
|
156
|
+
identifier_1.Identifier.from(['==', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['!=', "base" /* PkgName.Base */]),
|
|
157
|
+
identifier_1.Identifier.from(['>', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['<', "base" /* PkgName.Base */]),
|
|
158
|
+
identifier_1.Identifier.from(['>=', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['<=', "base" /* PkgName.Base */]),
|
|
159
|
+
identifier_1.Identifier.from(['%%', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['%/%', "base" /* PkgName.Base */]),
|
|
160
|
+
identifier_1.Identifier.from(['%*%', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['%in%', "base" /* PkgName.Base */]),
|
|
161
|
+
identifier_1.Identifier.from([':', "base" /* PkgName.Base */]),
|
|
162
|
+
/* sequences & repetition (base) */
|
|
163
|
+
identifier_1.Identifier.from(['rep', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['seq', "base" /* PkgName.Base */]),
|
|
164
|
+
identifier_1.Identifier.from(['seq_len', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['seq_along', "base" /* PkgName.Base */]),
|
|
165
|
+
identifier_1.Identifier.from(['seq.int', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['order', "base" /* PkgName.Base */]),
|
|
166
|
+
/* string (base) */
|
|
167
|
+
identifier_1.Identifier.from(['gsub', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['paste', "base" /* PkgName.Base */]),
|
|
168
|
+
identifier_1.Identifier.from(['paste0', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['nchar', "base" /* PkgName.Base */]),
|
|
169
|
+
/* numeric math (base) */
|
|
170
|
+
identifier_1.Identifier.from(['sqrt', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['abs', "base" /* PkgName.Base */]),
|
|
171
|
+
identifier_1.Identifier.from(['round', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['floor', "base" /* PkgName.Base */]),
|
|
172
|
+
identifier_1.Identifier.from(['ceiling', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['signif', "base" /* PkgName.Base */]),
|
|
173
|
+
identifier_1.Identifier.from(['trunc', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['log', "base" /* PkgName.Base */]),
|
|
174
|
+
identifier_1.Identifier.from(['log10', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['log2', "base" /* PkgName.Base */]),
|
|
175
|
+
identifier_1.Identifier.from(['sum', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['mean', "base" /* PkgName.Base */]),
|
|
176
|
+
identifier_1.Identifier.from(['min', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['max', "base" /* PkgName.Base */]),
|
|
177
|
+
identifier_1.Identifier.from(['jitter', "stats" /* PkgName.Stats */]),
|
|
178
|
+
/* type coercion (base) */
|
|
179
|
+
identifier_1.Identifier.from(['numeric', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['as.character', "base" /* PkgName.Base */]),
|
|
180
|
+
identifier_1.Identifier.from(['as.integer', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['as.logical', "base" /* PkgName.Base */]),
|
|
181
|
+
identifier_1.Identifier.from(['as.numeric', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['as.matrix', "base" /* PkgName.Base */]),
|
|
182
|
+
identifier_1.Identifier.from(['as.data.frame', "base" /* PkgName.Base */]),
|
|
183
|
+
/* collections & data (base) */
|
|
184
|
+
identifier_1.Identifier.from(['unique', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['intersect', "base" /* PkgName.Base */]),
|
|
185
|
+
identifier_1.Identifier.from(['subset', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['match', "base" /* PkgName.Base */]),
|
|
186
|
+
identifier_1.Identifier.from(['which', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['any', "base" /* PkgName.Base */]),
|
|
187
|
+
identifier_1.Identifier.from(['length', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['expression', "base" /* PkgName.Base */]),
|
|
188
|
+
identifier_1.Identifier.from(['factor', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['missing', "base" /* PkgName.Base */]),
|
|
189
|
+
identifier_1.Identifier.from(['data.frame', "base" /* PkgName.Base */]),
|
|
190
|
+
/* matrix / data frame (base) */
|
|
191
|
+
identifier_1.Identifier.from(['matrix', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['cbind', "base" /* PkgName.Base */]),
|
|
192
|
+
identifier_1.Identifier.from(['rbind', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dim', "base" /* PkgName.Base */]),
|
|
193
|
+
identifier_1.Identifier.from(['nrow', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['ncol', "base" /* PkgName.Base */]),
|
|
194
|
+
identifier_1.Identifier.from(['dimnames', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['rownames', "base" /* PkgName.Base */]),
|
|
195
|
+
identifier_1.Identifier.from(['names', "base" /* PkgName.Base */]),
|
|
196
|
+
/* object inspection (base) */
|
|
197
|
+
identifier_1.Identifier.from(['class', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['is.null', "base" /* PkgName.Base */]),
|
|
198
|
+
/* other packages */
|
|
199
|
+
identifier_1.Identifier.from(['read.csv', "utils" /* PkgName.Utils */]), identifier_1.Identifier.from(['na.omit', "stats" /* PkgName.Stats */]),
|
|
200
|
+
/* graphic devices (grDevices) */
|
|
201
|
+
identifier_1.Identifier.from(['pdf', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['jpeg', "grDevices" /* PkgName.GrDevices */]),
|
|
202
|
+
identifier_1.Identifier.from(['png', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['windows', "grDevices" /* PkgName.GrDevices */]),
|
|
203
|
+
identifier_1.Identifier.from(['postscript', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['xfig', "grDevices" /* PkgName.GrDevices */]),
|
|
204
|
+
identifier_1.Identifier.from(['bitmap', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['pictex', "grDevices" /* PkgName.GrDevices */]),
|
|
205
|
+
identifier_1.Identifier.from(['cairo_pdf', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['svg', "grDevices" /* PkgName.GrDevices */]),
|
|
206
|
+
identifier_1.Identifier.from(['bmp', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['tiff', "grDevices" /* PkgName.GrDevices */]),
|
|
207
|
+
identifier_1.Identifier.from(['X11', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['quartz', "grDevices" /* PkgName.GrDevices */]),
|
|
208
|
+
identifier_1.Identifier.from(['dev.new', "grDevices" /* PkgName.GrDevices */]),
|
|
209
|
+
/* graphic devices (third-party) */
|
|
210
|
+
identifier_1.Identifier.from(['trellis.device', "lattice" /* PkgName.Lattice */]),
|
|
211
|
+
identifier_1.Identifier.from(['raster_pdf', "rasterpdf" /* PkgName.RasterPdf */]), identifier_1.Identifier.from(['agg_pdf', "ragg" /* PkgName.Ragg */]),
|
|
212
|
+
identifier_1.Identifier.from(['image_graph', "magick" /* PkgName.Magick */]), identifier_1.Identifier.from(['image_draw', "magick" /* PkgName.Magick */]),
|
|
115
213
|
],
|
|
116
214
|
processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs,
|
|
117
215
|
config: {},
|
|
118
216
|
assumePrimitive: true
|
|
119
217
|
},
|
|
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'
|
|
218
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['t', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['aperm', "base" /* PkgName.Base */])], /* transpose/permutation */
|
|
219
|
+
processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: {}, assumePrimitive: false },
|
|
220
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['rm', "base" /* PkgName.Base */])],
|
|
221
|
+
processor: built_in_proc_name_1.BuiltInProcName.Rm, config: {}, assumePrimitive: true },
|
|
222
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['options', "base" /* PkgName.Base */])],
|
|
223
|
+
processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: 'all' }, assumePrimitive: false },
|
|
224
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['mapply', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['Mapply', "functools" /* PkgName.Functools */])],
|
|
225
|
+
processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
|
|
226
|
+
{ 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 */])],
|
|
227
|
+
processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
|
|
228
|
+
{ 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 */])],
|
|
229
|
+
processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
|
|
230
|
+
{ 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 */])],
|
|
231
|
+
processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 2, nameOfFunctionArgument: 'FUN' }, assumePrimitive: false },
|
|
232
|
+
{ 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 */])],
|
|
233
|
+
processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, forceArgs: 'all', hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ } }, assumePrimitive: false },
|
|
234
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['invisible', "base" /* PkgName.Base */])],
|
|
235
|
+
processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0, forceArgs: 'all' }, assumePrimitive: true },
|
|
137
236
|
// graphics base
|
|
138
237
|
{ type: 'function', names: exports.PlotCreate,
|
|
139
238
|
processor: built_in_proc_name_1.BuiltInProcName.Default,
|
|
@@ -207,7 +306,10 @@ exports.DefaultBuiltinConfig = [
|
|
|
207
306
|
},
|
|
208
307
|
{
|
|
209
308
|
type: 'function',
|
|
210
|
-
names: [
|
|
309
|
+
names: [
|
|
310
|
+
identifier_1.Identifier.from(['image_write', "magick" /* PkgName.Magick */]), identifier_1.Identifier.from(['image_capture', "magick" /* PkgName.Magick */]),
|
|
311
|
+
identifier_1.Identifier.from(['dev.capture', "grDevices" /* PkgName.GrDevices */]), identifier_1.Identifier.from(['dev.off', "grDevices" /* PkgName.GrDevices */])
|
|
312
|
+
],
|
|
211
313
|
processor: built_in_proc_name_1.BuiltInProcName.Default,
|
|
212
314
|
config: {
|
|
213
315
|
libFn: true,
|
|
@@ -218,75 +320,132 @@ exports.DefaultBuiltinConfig = [
|
|
|
218
320
|
}
|
|
219
321
|
}, assumePrimitive: true
|
|
220
322
|
},
|
|
221
|
-
{ type: 'function', names: ['('],
|
|
222
|
-
|
|
223
|
-
{ type: 'function', names: ['
|
|
224
|
-
|
|
225
|
-
|
|
323
|
+
{ type: 'function', names: ['('],
|
|
324
|
+
processor: built_in_proc_name_1.BuiltInProcName.Default, config: { returnsNthArgument: 0 }, assumePrimitive: true },
|
|
325
|
+
{ 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 */])],
|
|
326
|
+
processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: [true] }, assumePrimitive: false },
|
|
327
|
+
{ 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 */])],
|
|
328
|
+
processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, forceArgs: [true] }, assumePrimitive: true },
|
|
329
|
+
{
|
|
330
|
+
type: 'function',
|
|
331
|
+
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
332
|
processor: built_in_proc_name_1.BuiltInProcName.Default,
|
|
227
|
-
config: {
|
|
333
|
+
config: {
|
|
334
|
+
hasUnknownSideEffects: true,
|
|
335
|
+
forceArgs: [true],
|
|
228
336
|
treatAsFnCall: {
|
|
229
337
|
'.Call': ['.NAME'],
|
|
230
338
|
'.External': ['.NAME'],
|
|
231
339
|
'.C': ['.NAME'],
|
|
232
340
|
'.Fortran': ['.NAME']
|
|
233
341
|
}
|
|
234
|
-
},
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
{ type: 'function', names: [
|
|
238
|
-
|
|
239
|
-
{ type: 'function', names: ['
|
|
342
|
+
},
|
|
343
|
+
assumePrimitive: true
|
|
344
|
+
},
|
|
345
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['eval', "base" /* PkgName.Base */])],
|
|
346
|
+
processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: false }, assumePrimitive: true },
|
|
347
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['evalText', "SoDA" /* PkgName.Soda */])],
|
|
348
|
+
processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: true }, assumePrimitive: true },
|
|
349
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['cat', "base" /* PkgName.Base */])],
|
|
350
|
+
processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: 'all', hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ } }, assumePrimitive: false },
|
|
351
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['switch', "base" /* PkgName.Base */])],
|
|
352
|
+
processor: built_in_proc_name_1.BuiltInProcName.Default, config: { forceArgs: [true] }, assumePrimitive: false },
|
|
353
|
+
{ type: 'function', names: ['return'],
|
|
354
|
+
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
355
|
{
|
|
241
356
|
type: 'function',
|
|
242
|
-
names: [
|
|
357
|
+
names: [
|
|
358
|
+
identifier_1.Identifier.from(['stop', "base" /* PkgName.Base */]),
|
|
359
|
+
identifier_1.Identifier.from(['abort', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['cli_abort', "cli" /* PkgName.Cli */]),
|
|
360
|
+
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 */
|
|
361
|
+
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 */])
|
|
362
|
+
],
|
|
243
363
|
processor: built_in_proc_name_1.BuiltInProcName.Default,
|
|
244
364
|
config: { useAsProcessor: built_in_proc_name_1.BuiltInProcName.Stop, cfg: 4 /* ExitPointType.Error */, forceArgs: ['all'] },
|
|
245
365
|
assumePrimitive: false
|
|
246
366
|
},
|
|
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.
|
|
367
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['try', "base" /* PkgName.Base */])],
|
|
368
|
+
processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: {} }, assumePrimitive: true },
|
|
369
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['tryCatch', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['tryCatchLog', "tryCatchLog" /* PkgName.TryCatchLog */])],
|
|
370
|
+
processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: { error: 'error', finally: 'finally' } }, assumePrimitive: true },
|
|
371
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['stopifnot', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['assert_that', "assertthat" /* PkgName.AssertThat */])],
|
|
372
|
+
processor: built_in_proc_name_1.BuiltInProcName.StopIfNot, config: {}, assumePrimitive: false },
|
|
373
|
+
{ type: 'function', names: ['break'],
|
|
374
|
+
processor: built_in_proc_name_1.BuiltInProcName.Default, config: { useAsProcessor: built_in_proc_name_1.BuiltInProcName.Break, cfg: 2 /* ExitPointType.Break */ }, assumePrimitive: false },
|
|
375
|
+
{ type: 'function', names: ['next'],
|
|
376
|
+
processor: built_in_proc_name_1.BuiltInProcName.Default, config: { cfg: 3 /* ExitPointType.Next */ }, assumePrimitive: false },
|
|
377
|
+
{ type: 'function', names: ['{'],
|
|
378
|
+
processor: built_in_proc_name_1.BuiltInProcName.ExpressionList, config: {}, assumePrimitive: true },
|
|
379
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['source', "base" /* PkgName.Base */])],
|
|
380
|
+
processor: built_in_proc_name_1.BuiltInProcName.Source, config: { includeFunctionCall: true, forceFollow: false }, assumePrimitive: false },
|
|
381
|
+
{ type: 'function', names: ['[', '[['],
|
|
382
|
+
processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false }, assumePrimitive: true },
|
|
383
|
+
{ type: 'function', names: ['$', '@'],
|
|
384
|
+
processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: true }, assumePrimitive: true },
|
|
385
|
+
{ type: 'function', names: ['::'],
|
|
386
|
+
processor: built_in_proc_name_1.BuiltInProcName.NamespaceAccess, config: { internal: false }, assumePrimitive: true },
|
|
387
|
+
{ type: 'function', names: [':::'],
|
|
388
|
+
processor: built_in_proc_name_1.BuiltInProcName.NamespaceAccess, config: { internal: true }, assumePrimitive: true },
|
|
389
|
+
{ type: 'function', names: ['if'],
|
|
390
|
+
processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: {}, assumePrimitive: true },
|
|
391
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['ifelse', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['fifelse', "data.table" /* PkgName.DataTable */]), 'IfElse'],
|
|
392
|
+
processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'test', yes: 'yes', no: 'no' } }, assumePrimitive: true },
|
|
393
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['if_else', "dplyr" /* PkgName.Dplyr */])],
|
|
394
|
+
processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'condition', yes: 'true', no: 'false' } }, assumePrimitive: true },
|
|
395
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['get', "base" /* PkgName.Base */])],
|
|
396
|
+
processor: built_in_proc_name_1.BuiltInProcName.Get, config: {}, assumePrimitive: false },
|
|
397
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['library', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['require', "base" /* PkgName.Base */])],
|
|
398
|
+
processor: built_in_proc_name_1.BuiltInProcName.Library, config: {}, assumePrimitive: false },
|
|
399
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['attachNamespace', "base" /* PkgName.Base */])],
|
|
400
|
+
processor: built_in_proc_name_1.BuiltInProcName.Library, config: { characterOnly: true }, assumePrimitive: false },
|
|
401
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['requireNamespace', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['loadNamespace', "base" /* PkgName.Base */])],
|
|
402
|
+
processor: built_in_proc_name_1.BuiltInProcName.Library, config: { namespaceOnly: true, characterOnly: true }, assumePrimitive: false },
|
|
403
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['from', "import" /* PkgName.Import */])],
|
|
404
|
+
processor: built_in_proc_name_1.BuiltInProcName.Library, config: { fromImports: true }, assumePrimitive: false },
|
|
405
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['use', "box" /* PkgName.Box */]), identifier_1.Identifier.from(['use', "base" /* PkgName.Base */])],
|
|
406
|
+
processor: built_in_proc_name_1.BuiltInProcName.Library, config: { boxUse: true }, assumePrimitive: false },
|
|
407
|
+
{ type: 'function', names: ['<-', '='],
|
|
408
|
+
processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { canBeReplacement: true }, assumePrimitive: true },
|
|
409
|
+
{ type: 'function', names: [identifier_1.Identifier.from([':=', "data.table" /* PkgName.DataTable */])],
|
|
410
|
+
processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: {}, assumePrimitive: true },
|
|
411
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['assign', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['setValidity', "methods" /* PkgName.Methods */])],
|
|
412
|
+
processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { targetVariable: true, mayHaveMoreArgs: true, environmentArg: 'envir' }, assumePrimitive: true },
|
|
413
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['setMethod', "methods" /* PkgName.Methods */])],
|
|
414
|
+
processor: built_in_proc_name_1.BuiltInProcName.AssignmentLike,
|
|
415
|
+
config: { targetVariable: true, canBeReplacement: false, target: { idx: 0, name: 'f' }, source: { idx: 2, name: 'definition' }, modesForFn: ['s4'] },
|
|
416
|
+
assumePrimitive: true },
|
|
417
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['delayedAssign', "base" /* PkgName.Base */])],
|
|
418
|
+
processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { quoteSource: true, targetVariable: true }, assumePrimitive: true },
|
|
419
|
+
{ type: 'function', names: ['<<-'],
|
|
420
|
+
processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, canBeReplacement: true }, assumePrimitive: true },
|
|
421
|
+
{ type: 'function', names: ['->'],
|
|
422
|
+
processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { swapSourceAndTarget: true, canBeReplacement: true }, assumePrimitive: true },
|
|
423
|
+
{ type: 'function', names: ['->>'],
|
|
424
|
+
processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, swapSourceAndTarget: true, canBeReplacement: true }, assumePrimitive: true },
|
|
425
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['&&', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['&', "base" /* PkgName.Base */])],
|
|
426
|
+
processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: true }, assumePrimitive: true },
|
|
427
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['||', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['|', "base" /* PkgName.Base */])],
|
|
428
|
+
processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: false }, assumePrimitive: true },
|
|
429
|
+
{ type: 'function', names: ['|>'],
|
|
430
|
+
processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '_' }, assumePrimitive: true },
|
|
431
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['%>%', "magrittr" /* PkgName.Magrittr */]), '%!>%'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', rhsMightBeSymbol: true }, assumePrimitive: true },
|
|
432
|
+
{ 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 },
|
|
433
|
+
{ 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 },
|
|
434
|
+
{ 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
435
|
args: {
|
|
277
436
|
'.x': { index: 0, name: '.x' }
|
|
278
437
|
},
|
|
279
438
|
'.f': { index: 1, name: '.f' },
|
|
280
439
|
ignore: ['.progress']
|
|
281
440
|
} },
|
|
282
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
441
|
+
{ 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
442
|
args: {
|
|
284
443
|
'.l': { index: 0, name: '.l' }
|
|
285
444
|
},
|
|
286
445
|
'.f': { index: 1, name: '.f' },
|
|
287
446
|
ignore: ['.progress']
|
|
288
447
|
} },
|
|
289
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
448
|
+
{ 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
449
|
args: {
|
|
291
450
|
'.x': { index: 0, name: '.x' },
|
|
292
451
|
'.y': { index: 1, name: '.y' },
|
|
@@ -294,14 +453,14 @@ exports.DefaultBuiltinConfig = [
|
|
|
294
453
|
'.f': { index: 2, name: '.f' },
|
|
295
454
|
ignore: ['.progress']
|
|
296
455
|
} },
|
|
297
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
456
|
+
{ 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
457
|
args: {
|
|
299
458
|
'.x': { index: 0, name: '.x' }
|
|
300
459
|
},
|
|
301
460
|
'.f': { index: 1, name: '.f' },
|
|
302
461
|
ignore: []
|
|
303
462
|
} },
|
|
304
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
463
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['modify2', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
|
|
305
464
|
args: {
|
|
306
465
|
'.x': { index: 0, name: '.x' },
|
|
307
466
|
'.y': { index: 1, name: '.y' }
|
|
@@ -309,7 +468,7 @@ exports.DefaultBuiltinConfig = [
|
|
|
309
468
|
'.f': { index: 2, name: '.f' },
|
|
310
469
|
ignore: []
|
|
311
470
|
} },
|
|
312
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
471
|
+
{ 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
472
|
args: {
|
|
314
473
|
'.x': { index: 0, name: '.x' },
|
|
315
474
|
'.at': { index: 1, name: '.at' },
|
|
@@ -317,7 +476,7 @@ exports.DefaultBuiltinConfig = [
|
|
|
317
476
|
'.f': { index: 2, name: '.f' },
|
|
318
477
|
ignore: ['.progress']
|
|
319
478
|
} },
|
|
320
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
479
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['lmap_at', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
|
|
321
480
|
args: {
|
|
322
481
|
'.x': { index: 0, name: '.x' },
|
|
323
482
|
'.at': { index: 1, name: '.at' },
|
|
@@ -325,7 +484,7 @@ exports.DefaultBuiltinConfig = [
|
|
|
325
484
|
'.f': { index: 2, name: '.f' },
|
|
326
485
|
ignore: []
|
|
327
486
|
} },
|
|
328
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
487
|
+
{ 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
488
|
args: {
|
|
330
489
|
'.x': { index: 0, name: '.x' },
|
|
331
490
|
'.p': { index: 1, name: '.p' },
|
|
@@ -333,7 +492,7 @@ exports.DefaultBuiltinConfig = [
|
|
|
333
492
|
'.f': { index: 2, name: '.f' },
|
|
334
493
|
ignore: ['.else']
|
|
335
494
|
} },
|
|
336
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
495
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['walk', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
|
|
337
496
|
args: {
|
|
338
497
|
'.x': { index: 0, name: '.x' }
|
|
339
498
|
},
|
|
@@ -341,7 +500,7 @@ exports.DefaultBuiltinConfig = [
|
|
|
341
500
|
ignore: ['.progress'],
|
|
342
501
|
returnArg: '.x'
|
|
343
502
|
} },
|
|
344
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
503
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['iwalk', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
|
|
345
504
|
args: {
|
|
346
505
|
'.x': { index: 0, name: '.x' }
|
|
347
506
|
},
|
|
@@ -349,7 +508,7 @@ exports.DefaultBuiltinConfig = [
|
|
|
349
508
|
ignore: [],
|
|
350
509
|
returnArg: '.x'
|
|
351
510
|
} },
|
|
352
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
511
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['pwalk', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
|
|
353
512
|
args: {
|
|
354
513
|
'.l': { index: 0, name: '.l' }
|
|
355
514
|
},
|
|
@@ -357,7 +516,7 @@ exports.DefaultBuiltinConfig = [
|
|
|
357
516
|
ignore: ['.progress'],
|
|
358
517
|
returnArg: '.l'
|
|
359
518
|
} },
|
|
360
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
519
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['walk2', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
|
|
361
520
|
args: {
|
|
362
521
|
'.x': { index: 0, name: '.x' },
|
|
363
522
|
'.y': { index: 1, name: '.y' }
|
|
@@ -366,21 +525,21 @@ exports.DefaultBuiltinConfig = [
|
|
|
366
525
|
ignore: ['.progress'],
|
|
367
526
|
returnArg: '.x'
|
|
368
527
|
} },
|
|
369
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
528
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['map_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
|
|
370
529
|
args: {
|
|
371
530
|
'.x': { index: 0, name: '.x' }
|
|
372
531
|
},
|
|
373
532
|
'.f': { index: 1, name: '.f' },
|
|
374
533
|
ignore: ['.progress', '.ptype']
|
|
375
534
|
} },
|
|
376
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
535
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['pmap_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
|
|
377
536
|
args: {
|
|
378
537
|
'.l': { index: 0, name: '.l' }
|
|
379
538
|
},
|
|
380
539
|
'.f': { index: 1, name: '.f' },
|
|
381
540
|
ignore: ['.progress', '.ptype']
|
|
382
541
|
} },
|
|
383
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
542
|
+
{ 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
543
|
args: {
|
|
385
544
|
'.x': { index: 0, name: '.x' },
|
|
386
545
|
'.depth': { index: 2, name: '.depth' }
|
|
@@ -388,7 +547,7 @@ exports.DefaultBuiltinConfig = [
|
|
|
388
547
|
'.f': { index: 2, name: '.f' },
|
|
389
548
|
ignore: ['.ragged', '.is_node']
|
|
390
549
|
} },
|
|
391
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
550
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['map2_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
|
|
392
551
|
args: {
|
|
393
552
|
'.x': { index: 0, name: '.x' },
|
|
394
553
|
'.y': { index: 1, name: '.y' }
|
|
@@ -396,61 +555,97 @@ exports.DefaultBuiltinConfig = [
|
|
|
396
555
|
'.f': { index: 2, name: '.f' },
|
|
397
556
|
ignore: ['.progress', '.ptype']
|
|
398
557
|
} },
|
|
399
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
558
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['across', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
|
|
400
559
|
args: {
|
|
401
560
|
'.x': { index: 0, name: '.cols' },
|
|
402
561
|
},
|
|
403
562
|
'.f': { index: 1, name: '.fns' },
|
|
404
563
|
ignore: ['.names', '.unpack']
|
|
405
564
|
} },
|
|
406
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
565
|
+
{ 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
566
|
args: {
|
|
408
567
|
'.x': { index: 0, name: '.data' },
|
|
409
568
|
},
|
|
410
569
|
'.f': { index: 1, name: '...' },
|
|
411
570
|
ignore: ['.by', '.preserve']
|
|
412
571
|
} },
|
|
413
|
-
{ type: 'function', names: [identifier_1.Identifier.
|
|
572
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['rename_with', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: {
|
|
414
573
|
args: {
|
|
415
574
|
'.x': { index: 0, name: '.data' },
|
|
416
575
|
},
|
|
417
576
|
'.f': { index: 1, name: '.fn' },
|
|
418
577
|
ignore: ['.cols']
|
|
419
578
|
} },
|
|
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: ['
|
|
579
|
+
{ type: 'function', names: ['function', '\\'],
|
|
580
|
+
processor: built_in_proc_name_1.BuiltInProcName.FunctionDefinition, config: {}, assumePrimitive: true },
|
|
581
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['quote', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['bquote', "base" /* PkgName.Base */])],
|
|
582
|
+
processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0 }, assumePrimitive: true },
|
|
583
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['substitute', "base" /* PkgName.Base */])],
|
|
584
|
+
processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, envArgIndex: 1 }, assumePrimitive: true },
|
|
585
|
+
{ 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 },
|
|
586
|
+
{ 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 },
|
|
587
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['local', "base" /* PkgName.Base */])],
|
|
588
|
+
processor: built_in_proc_name_1.BuiltInProcName.Local, config: { args: { env: 'envir', expr: 'expr' } }, assumePrimitive: false },
|
|
589
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['with', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['within', "base" /* PkgName.Base */])],
|
|
590
|
+
processor: built_in_proc_name_1.BuiltInProcName.With, config: {}, assumePrimitive: false },
|
|
591
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['new.env', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['new_environment', "rlang" /* PkgName.Rlang */])],
|
|
592
|
+
processor: built_in_proc_name_1.BuiltInProcName.NewEnv, config: {}, assumePrimitive: true },
|
|
593
|
+
/* env-returning builtins pointing into the current search-path stack (`e <- globalenv(); e$x`) */
|
|
594
|
+
{ type: 'function', names: Object.entries(exports.StackEnvBuiltins)
|
|
595
|
+
.filter(([n, kind]) => !n.startsWith('.') && (kind === StackEnvKind.Global || kind === StackEnvKind.Base || kind === StackEnvKind.Empty))
|
|
596
|
+
.map(([n]) => identifier_1.Identifier.from([n, "base" /* PkgName.Base */])),
|
|
597
|
+
processor: built_in_proc_name_1.BuiltInProcName.StackEnv, config: {}, assumePrimitive: true },
|
|
598
|
+
{ type: 'function', names: [
|
|
599
|
+
identifier_1.Identifier.from(['parent.env', "base" /* PkgName.Base */]),
|
|
600
|
+
identifier_1.Identifier.from(['parent.frame', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['environmentName', "base" /* PkgName.Base */]),
|
|
601
|
+
identifier_1.Identifier.from(['as.environment', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['pos.to.env', "base" /* PkgName.Base */]),
|
|
602
|
+
identifier_1.Identifier.from(['sys.frame', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['sys.frames', "base" /* PkgName.Base */]),
|
|
603
|
+
identifier_1.Identifier.from(['topenv', "base" /* PkgName.Base */]),
|
|
604
|
+
], processor: built_in_proc_name_1.BuiltInProcName.Default, config: {}, assumePrimitive: true },
|
|
605
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['load', "base" /* PkgName.Base */]), 'load_image'],
|
|
606
|
+
processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true }, assumePrimitive: false },
|
|
431
607
|
/* attach injects an environment's contents into the search path; detach reverses it (treated as unknown side effect) */
|
|
432
|
-
{ type: 'function', names: ['attach'
|
|
608
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['attach', "base" /* PkgName.Base */])],
|
|
609
|
+
processor: built_in_proc_name_1.BuiltInProcName.Attach, config: {}, assumePrimitive: false },
|
|
433
610
|
{ type: 'function', names: ['for'], processor: built_in_proc_name_1.BuiltInProcName.ForLoop, config: {}, assumePrimitive: true },
|
|
434
611
|
{ type: 'function', names: ['repeat'], processor: built_in_proc_name_1.BuiltInProcName.RepeatLoop, config: {}, assumePrimitive: true },
|
|
435
612
|
{ 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.
|
|
613
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['do.call', "base" /* PkgName.Base */])],
|
|
614
|
+
processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, unquoteFunction: true }, assumePrimitive: true },
|
|
615
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['UseMethod', "base" /* PkgName.Base */])],
|
|
616
|
+
processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' } }, assumePrimitive: true },
|
|
617
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['NextMethod', "base" /* PkgName.Base */])],
|
|
618
|
+
processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' }, inferFromClosure: true }, assumePrimitive: true },
|
|
619
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['new_generic', "S7" /* PkgName.S7 */])],
|
|
620
|
+
processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: 'dispatch_args', fun: 'fun' } }, assumePrimitive: true },
|
|
621
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['setGeneric', "methods" /* PkgName.Methods */])],
|
|
622
|
+
processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: undefined, fun: 'fun' } }, assumePrimitive: true },
|
|
623
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['S7_dispatch', "S7" /* PkgName.S7 */])],
|
|
624
|
+
processor: built_in_proc_name_1.BuiltInProcName.S7Dispatch, config: { libFn: true }, assumePrimitive: true },
|
|
625
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['.Primitive', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['.Internal', "base" /* PkgName.Base */])],
|
|
626
|
+
processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, unquoteFunction: true, resolveInEnvironment: 'global' }, assumePrimitive: true },
|
|
627
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['interference', "inferference" /* PkgName.Inferference */])],
|
|
628
|
+
processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { unquoteFunction: true, nameOfFunctionArgument: 'propensity_integrand', libFn: true }, assumePrimitive: false },
|
|
629
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['ddply', "plyr" /* PkgName.Plyr */])],
|
|
630
|
+
processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { unquoteFunction: true, indexOfFunction: 2, nameOfFunctionArgument: '.fun', libFn: true }, assumePrimitive: false },
|
|
631
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['list', "base" /* PkgName.Base */])],
|
|
632
|
+
processor: built_in_proc_name_1.BuiltInProcName.List, config: {}, assumePrimitive: true },
|
|
633
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['Recall', "base" /* PkgName.Base */])],
|
|
634
|
+
processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true }, assumePrimitive: false },
|
|
635
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['sys.function', "base" /* PkgName.Base */])],
|
|
636
|
+
processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true, unknownOnNonZeroArg: true }, assumePrimitive: false },
|
|
637
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['c', "base" /* PkgName.Base */])],
|
|
638
|
+
processor: built_in_proc_name_1.BuiltInProcName.Vector, config: {}, assumePrimitive: true, evalHandler: 'built-in:c' },
|
|
639
|
+
{ 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 } },
|
|
640
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['loadcmp', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true } },
|
|
451
641
|
{
|
|
452
642
|
type: 'function',
|
|
453
|
-
names: [
|
|
643
|
+
names: [
|
|
644
|
+
identifier_1.Identifier.from(['setnames', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['setNames', "base" /* PkgName.Base */]),
|
|
645
|
+
identifier_1.Identifier.from(['setkey', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['setkeyv', "data.table" /* PkgName.DataTable */]),
|
|
646
|
+
identifier_1.Identifier.from(['setindex', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['setindexv', "data.table" /* PkgName.DataTable */]),
|
|
647
|
+
identifier_1.Identifier.from(['setattr', "data.table" /* PkgName.DataTable */])
|
|
648
|
+
],
|
|
454
649
|
processor: built_in_proc_name_1.BuiltInProcName.Assignment,
|
|
455
650
|
config: {
|
|
456
651
|
canBeReplacement: false,
|
|
@@ -462,14 +657,18 @@ exports.DefaultBuiltinConfig = [
|
|
|
462
657
|
{
|
|
463
658
|
type: 'function',
|
|
464
659
|
names: [
|
|
465
|
-
'sys.on.exit',
|
|
466
|
-
/*
|
|
467
|
-
|
|
468
|
-
identifier_1.Identifier.
|
|
469
|
-
/*
|
|
470
|
-
'unname', 'data',
|
|
471
|
-
/* file creation/removal */
|
|
472
|
-
'dir.create',
|
|
660
|
+
identifier_1.Identifier.from(['sys.on.exit', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['par', "graphics" /* PkgName.Graphics */]),
|
|
661
|
+
identifier_1.Identifier.from(['tpar', "tinyplot" /* PkgName.TinyPlot */]), identifier_1.Identifier.from(['sink', "base" /* PkgName.Base */]),
|
|
662
|
+
/* library/require/(require|load|attach)Namespace/use are handled above */
|
|
663
|
+
identifier_1.Identifier.from(['asNamespace', "base" /* PkgName.Base */]),
|
|
664
|
+
/* env attachment */
|
|
665
|
+
identifier_1.Identifier.from(['unname', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['data', "utils" /* PkgName.Utils */]),
|
|
666
|
+
/* file creation/removal (base) */
|
|
667
|
+
identifier_1.Identifier.from(['dir.create', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dir_create', "fs" /* PkgName.Fs */]),
|
|
668
|
+
identifier_1.Identifier.from(['Sys.chmod', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['unlink', "base" /* PkgName.Base */]),
|
|
669
|
+
identifier_1.Identifier.from(['file.remove', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['file.rename', "base" /* PkgName.Base */]),
|
|
670
|
+
identifier_1.Identifier.from(['file.copy', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['file.link', "base" /* PkgName.Base */]),
|
|
671
|
+
identifier_1.Identifier.from(['file.append', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['Sys.junction', "base" /* PkgName.Base */]),
|
|
473
672
|
],
|
|
474
673
|
processor: built_in_proc_name_1.BuiltInProcName.Default,
|
|
475
674
|
config: { hasUnknownSideEffects: true },
|
|
@@ -478,10 +677,21 @@ exports.DefaultBuiltinConfig = [
|
|
|
478
677
|
{
|
|
479
678
|
type: 'function',
|
|
480
679
|
names: [
|
|
481
|
-
'tinytheme', 'theme_set',
|
|
482
|
-
identifier_1.Identifier.
|
|
483
|
-
/*
|
|
484
|
-
'library.dynam',
|
|
680
|
+
identifier_1.Identifier.from(['tinytheme', "tinyplot" /* PkgName.TinyPlot */]), identifier_1.Identifier.from(['theme_set', "ggplot2" /* PkgName.GgPlot2 */]),
|
|
681
|
+
identifier_1.Identifier.from(['context', "testthat" /* PkgName.Testthat */]),
|
|
682
|
+
/* installers (utils / devtools / remotes; devtools re-exports the entire remotes install API) */
|
|
683
|
+
identifier_1.Identifier.from(['library.dynam', "base" /* PkgName.Base */]),
|
|
684
|
+
identifier_1.Identifier.from(['install.packages', "utils" /* PkgName.Utils */]),
|
|
685
|
+
identifier_1.Identifier.from(['install', "devtools" /* PkgName.Devtools */]),
|
|
686
|
+
identifier_1.Identifier.from(['install_github', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_github', "devtools" /* PkgName.Devtools */]),
|
|
687
|
+
identifier_1.Identifier.from(['install_gitlab', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_gitlab', "devtools" /* PkgName.Devtools */]),
|
|
688
|
+
identifier_1.Identifier.from(['install_bitbucket', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_bitbucket', "devtools" /* PkgName.Devtools */]),
|
|
689
|
+
identifier_1.Identifier.from(['install_url', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_url', "devtools" /* PkgName.Devtools */]),
|
|
690
|
+
identifier_1.Identifier.from(['install_git', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_git', "devtools" /* PkgName.Devtools */]),
|
|
691
|
+
identifier_1.Identifier.from(['install_svn', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_svn', "devtools" /* PkgName.Devtools */]),
|
|
692
|
+
identifier_1.Identifier.from(['install_local', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_local', "devtools" /* PkgName.Devtools */]),
|
|
693
|
+
identifier_1.Identifier.from(['install_version', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_version', "devtools" /* PkgName.Devtools */]),
|
|
694
|
+
identifier_1.Identifier.from(['update_packages', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['update_packages', "devtools" /* PkgName.Devtools */]),
|
|
485
695
|
],
|
|
486
696
|
processor: built_in_proc_name_1.BuiltInProcName.Default,
|
|
487
697
|
config: { hasUnknownSideEffects: true, libFn: true },
|
|
@@ -489,7 +699,7 @@ exports.DefaultBuiltinConfig = [
|
|
|
489
699
|
},
|
|
490
700
|
{
|
|
491
701
|
type: 'function',
|
|
492
|
-
names: ['on.exit'],
|
|
702
|
+
names: [identifier_1.Identifier.from(['on.exit', "base" /* PkgName.Base */])],
|
|
493
703
|
processor: built_in_proc_name_1.BuiltInProcName.RegisterHook,
|
|
494
704
|
config: {
|
|
495
705
|
hook: hooks_1.KnownHooks.OnFnExit,
|
|
@@ -505,27 +715,28 @@ exports.DefaultBuiltinConfig = [
|
|
|
505
715
|
{
|
|
506
716
|
type: 'replacement',
|
|
507
717
|
suffixes: ['<-', '<<-'],
|
|
508
|
-
names: [
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
718
|
+
names: [
|
|
719
|
+
'[', '[[',
|
|
720
|
+
identifier_1.Identifier.from(['names', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dimnames', "base" /* PkgName.Base */]),
|
|
721
|
+
identifier_1.Identifier.from(['attributes', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['attr', "base" /* PkgName.Base */]),
|
|
722
|
+
identifier_1.Identifier.from(['class', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['levels', "base" /* PkgName.Base */]),
|
|
723
|
+
identifier_1.Identifier.from(['rownames', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['colnames', "base" /* PkgName.Base */]),
|
|
724
|
+
identifier_1.Identifier.from(['body', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['environment', "base" /* PkgName.Base */]),
|
|
725
|
+
identifier_1.Identifier.from(['formals', "base" /* PkgName.Base */]),
|
|
726
|
+
],
|
|
727
|
+
config: { readIndices: true }
|
|
512
728
|
},
|
|
513
729
|
{
|
|
514
730
|
type: 'replacement',
|
|
515
731
|
suffixes: ['<-', '<<-'],
|
|
516
|
-
names: ['method'],
|
|
517
|
-
config: {
|
|
518
|
-
readIndices: true,
|
|
519
|
-
constructName: 's7'
|
|
520
|
-
}
|
|
732
|
+
names: [identifier_1.Identifier.from(['method', "S7" /* PkgName.S7 */])],
|
|
733
|
+
config: { readIndices: true, constructName: 's7' }
|
|
521
734
|
},
|
|
522
735
|
{
|
|
523
736
|
type: 'replacement',
|
|
524
737
|
suffixes: ['<-', '<<-'],
|
|
525
738
|
names: ['$', '@'],
|
|
526
|
-
config: {
|
|
527
|
-
readIndices: false
|
|
528
|
-
}
|
|
739
|
+
config: { readIndices: false }
|
|
529
740
|
},
|
|
530
741
|
];
|
|
531
742
|
/**
|
|
@@ -535,8 +746,8 @@ function getDefaultProcessor(name) {
|
|
|
535
746
|
if (name.startsWith(unnamed_call_handling_1.UnnamedFunctionCallPrefix)) {
|
|
536
747
|
return built_in_proc_name_1.BuiltInProcName.Unnamed;
|
|
537
748
|
}
|
|
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)));
|
|
749
|
+
const fn = exports.DefaultBuiltinConfig.find(def => (def.names.some(n => identifier_1.Identifier.getName(n) === name) && def.type !== 'constant')
|
|
750
|
+
|| (def.type === 'replacement' && def.suffixes.flatMap(d => def.names.map(n => `${identifier_1.Identifier.getName(n)}${d}`)).includes(name)));
|
|
540
751
|
if (fn?.type === 'replacement') {
|
|
541
752
|
return built_in_proc_name_1.BuiltInProcName.Replacement;
|
|
542
753
|
}
|