@eagleoutice/flowr 2.17.3 → 2.17.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -52
- package/abstract-interpretation/absint-inference.js +1 -2
- package/abstract-interpretation/data-frame/arguments.d.ts +14 -3
- package/abstract-interpretation/data-frame/arguments.js +34 -0
- package/abstract-interpretation/data-frame/dataframe-semantics.js +7 -15
- package/abstract-interpretation/data-frame/resolve-args.d.ts +2 -2
- package/abstract-interpretation/data-frame/semantics.d.ts +8 -1
- package/abstract-interpretation/data-frame/semantics.js +14 -6
- package/abstract-interpretation/domains/state-abstract-domain.js +28 -18
- package/abstract-interpretation/domains/state-map.d.ts +43 -0
- package/abstract-interpretation/domains/state-map.js +147 -0
- package/benchmark/slicer.d.ts +1 -1
- package/benchmark/slicer.js +8 -7
- package/cli/repl/commands/repl-dataflow.js +5 -5
- package/cli/repl/commands/repl-execute.js +3 -2
- package/cli/repl/commands/repl-parse.js +2 -1
- package/cli/repl/commands/repl-signature.d.ts +1 -1
- package/cli/repl/completion.d.ts +23 -0
- package/cli/repl/completion.js +9 -0
- package/cli/repl/core.d.ts +0 -23
- package/cli/repl/core.js +0 -5
- package/cli/repl/parser/slice-query-parser.d.ts +1 -1
- package/cli/repl/parser/slice-query-parser.js +3 -3
- package/cli/repl/print-version.d.ts +1 -1
- package/cli/repl/print-version.js +2 -1
- package/cli/repl/server/connection.d.ts +1 -1
- package/cli/repl/server/connection.js +7 -9
- package/cli/slicer-app.js +2 -1
- package/clones/algorithms/baxter-ast.d.ts +33 -0
- package/clones/algorithms/baxter-ast.js +70 -0
- package/clones/algorithms/greedy-string-tiling.d.ts +17 -0
- package/clones/algorithms/greedy-string-tiling.js +56 -0
- package/clones/algorithms/winnowing.d.ts +27 -0
- package/clones/algorithms/winnowing.js +66 -0
- package/clones/clone-ast.d.ts +75 -0
- package/clones/clone-ast.js +174 -0
- package/clones/clone-dataflow.d.ts +11 -0
- package/clones/clone-dataflow.js +83 -0
- package/clones/clone-detector.d.ts +116 -0
- package/clones/clone-detector.js +200 -0
- package/clones/clone-index.d.ts +54 -0
- package/clones/clone-index.js +56 -0
- package/config.d.ts +21 -2
- package/config.js +7 -1
- package/control-flow/basic-cfg-guided-visitor.js +1 -2
- package/control-flow/happens-before.d.ts +2 -0
- package/control-flow/happens-before.js +15 -9
- package/control-flow/simple-visitor.js +2 -4
- package/core/steps/all/core/00-parse.js +2 -1
- package/core/steps/all/core/01-parse-tree-sitter.js +2 -1
- package/core/steps/all/core/10-normalize.js +2 -1
- package/core/steps/all/core/11-normalize-tree-sitter.js +2 -1
- package/core/steps/all/static-slicing/00-slice.js +2 -1
- package/core/steps/all/static-slicing/10-reconstruct.js +2 -1
- package/core/steps/pipeline/create-pipeline.js +1 -2
- package/core/steps/pipeline/default-pipelines.d.ts +1 -1
- package/core/steps/pipeline/default-pipelines.js +5 -4
- package/core/steps/pipeline-step.d.ts +3 -1
- package/core/steps/pipeline-step.js +5 -0
- package/data/r-base-primitives.generated.d.ts +2 -1
- package/dataflow/cluster.js +1 -2
- package/dataflow/environments/ambient-state-name.d.ts +14 -22
- package/dataflow/environments/ambient-state-name.js +4 -18
- package/dataflow/environments/apply-kill.d.ts +9 -20
- package/dataflow/environments/apply-kill.js +51 -25
- package/dataflow/environments/built-in-config.d.ts +7 -15
- package/dataflow/environments/built-in-config.js +15 -16
- package/dataflow/environments/built-in-eval-name.d.ts +5 -6
- package/dataflow/environments/built-in-eval-name.js +4 -5
- package/dataflow/environments/built-in-kinds.d.ts +111 -0
- package/dataflow/environments/built-in-kinds.js +35 -0
- package/dataflow/environments/built-in-proc-name.d.ts +4 -0
- package/dataflow/environments/built-in-proc-name.js +11 -0
- package/dataflow/environments/built-in-props.d.ts +66 -172
- package/dataflow/environments/built-in-props.js +47 -151
- package/dataflow/environments/built-in.d.ts +42 -76
- package/dataflow/environments/built-in.js +46 -66
- package/dataflow/environments/data-masking-functions.d.ts +2 -2
- package/dataflow/environments/default-builtin-config/base-functions.d.ts +7 -0
- package/dataflow/environments/default-builtin-config/base-functions.js +339 -0
- package/dataflow/environments/default-builtin-config/base-language.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/base-language.js +66 -0
- package/dataflow/environments/default-builtin-config/base-operators.d.ts +58 -0
- package/dataflow/environments/default-builtin-config/base-operators.js +169 -0
- package/dataflow/environments/default-builtin-config/database-access.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/database-access.js +16 -0
- package/dataflow/environments/default-builtin-config/define-helpers.d.ts +45 -0
- package/dataflow/environments/default-builtin-config/define-helpers.js +50 -0
- package/dataflow/environments/default-builtin-config/dev-tooling.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/dev-tooling.js +63 -0
- package/dataflow/environments/default-builtin-config/file-io.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/file-io.js +81 -0
- package/dataflow/environments/default-builtin-config/graphics-devices.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/graphics-devices.js +57 -0
- package/dataflow/environments/default-builtin-config/index.d.ts +18 -0
- package/dataflow/environments/default-builtin-config/index.js +114 -0
- package/dataflow/environments/default-builtin-config/media-formats.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/media-formats.js +41 -0
- package/dataflow/environments/default-builtin-config/misc-packages.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/misc-packages.js +18 -0
- package/dataflow/environments/default-builtin-config/network-access.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/network-access.js +47 -0
- package/dataflow/environments/default-builtin-config/object-systems.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/object-systems.js +39 -0
- package/dataflow/environments/default-builtin-config/package-data-table.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/package-data-table.js +18 -0
- package/dataflow/environments/default-builtin-config/package-spatial.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/package-spatial.js +32 -0
- package/dataflow/environments/default-builtin-config/package-tidyverse.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/package-tidyverse.js +96 -0
- package/dataflow/environments/default-builtin-config/package-utils.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/package-utils.js +35 -0
- package/dataflow/environments/default-builtin-config/package-withr.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/package-withr.js +41 -0
- package/dataflow/environments/default-builtin-config/parallel-execution.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/parallel-execution.js +31 -0
- package/dataflow/environments/default-builtin-config/session-interactive.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/session-interactive.js +31 -0
- package/dataflow/environments/default-builtin-config/shared-configs.d.ts +267 -0
- package/dataflow/environments/default-builtin-config/shared-configs.js +483 -0
- package/dataflow/environments/default-builtin-config/shared-signatures.d.ts +21 -0
- package/dataflow/environments/default-builtin-config/shared-signatures.js +32 -0
- package/dataflow/environments/default-builtin-config/statistics.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/statistics.js +32 -0
- package/dataflow/environments/default-builtin-config/unit-testing.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/unit-testing.js +13 -0
- package/dataflow/environments/environment.d.ts +28 -52
- package/dataflow/environments/environment.js +24 -71
- package/dataflow/environments/group-generics.d.ts +12 -19
- package/dataflow/environments/group-generics.js +17 -14
- package/dataflow/environments/identifier.d.ts +72 -427
- package/dataflow/environments/identifier.js +34 -145
- package/dataflow/environments/pkg-name.d.ts +197 -0
- package/dataflow/environments/pkg-name.js +3 -0
- package/dataflow/environments/query-fn-props.d.ts +27 -76
- package/dataflow/environments/query-fn-props.js +34 -95
- package/dataflow/environments/resolve-by-name.d.ts +6 -16
- package/dataflow/environments/resolve-by-name.js +23 -35
- package/dataflow/environments/scoping.d.ts +5 -5
- package/dataflow/environments/scoping.js +13 -5
- package/dataflow/eval/resolve/alias-tracking.d.ts +31 -68
- package/dataflow/eval/resolve/alias-tracking.js +611 -126
- package/dataflow/eval/resolve/match-arguments.d.ts +5 -3
- package/dataflow/eval/resolve/resolve-argument.d.ts +11 -11
- package/dataflow/eval/resolve/resolve-argument.js +35 -35
- package/dataflow/eval/resolve/resolve-field.d.ts +10 -0
- package/dataflow/eval/resolve/resolve-field.js +127 -0
- package/dataflow/eval/resolve/resolve-numbers.d.ts +1 -178
- package/dataflow/eval/resolve/resolve-numbers.js +2 -13
- package/dataflow/eval/resolve/resolve-replacement.d.ts +10 -0
- package/dataflow/eval/resolve/resolve-replacement.js +80 -0
- package/dataflow/eval/resolve/resolve-strings.d.ts +3 -95
- package/dataflow/eval/resolve/resolve-strings.js +2 -17
- package/dataflow/eval/resolve/resolve-working-directory.js +3 -4
- package/dataflow/eval/resolve/resolve.d.ts +13 -10
- package/dataflow/eval/resolve/resolve.js +81 -32
- package/dataflow/eval/values/general.d.ts +6 -24
- package/dataflow/eval/values/general.js +12 -29
- package/dataflow/eval/values/lists/list-constants.d.ts +11 -0
- package/dataflow/eval/values/lists/list-constants.js +65 -0
- package/dataflow/eval/values/r-value.d.ts +20 -23
- package/dataflow/eval/values/r-value.js +22 -17
- package/dataflow/extractor.d.ts +2 -10
- package/dataflow/extractor.js +134 -62
- package/dataflow/fn/argument-roles.d.ts +2 -4
- package/dataflow/fn/argument-roles.js +49 -23
- package/dataflow/fn/class-declaration.d.ts +36 -52
- package/dataflow/fn/class-declaration.js +22 -56
- package/dataflow/fn/condition-handlers.d.ts +2 -1
- package/dataflow/fn/dispatch.d.ts +70 -0
- package/dataflow/fn/dispatch.js +434 -0
- package/dataflow/fn/exceptions-of-function.d.ts +1 -2
- package/dataflow/fn/exceptions-of-function.js +36 -106
- package/dataflow/fn/frame-reflection.d.ts +1 -3
- package/dataflow/fn/frame-reflection.js +8 -16
- package/dataflow/fn/function-props.d.ts +2 -5
- package/dataflow/fn/function-props.js +27 -36
- package/dataflow/fn/function-semantics.d.ts +14 -26
- package/dataflow/fn/function-semantics.js +4 -18
- package/dataflow/fn/higher-order-function.js +2 -4
- package/dataflow/fn/strict-function.d.ts +10 -35
- package/dataflow/fn/strict-function.js +126 -138
- package/dataflow/graph/ambient-access.d.ts +51 -0
- package/dataflow/graph/ambient-access.js +80 -0
- package/dataflow/graph/call-graph.d.ts +9 -29
- package/dataflow/graph/call-graph.js +17 -41
- package/dataflow/graph/closure-frames.d.ts +46 -0
- package/dataflow/graph/closure-frames.js +225 -0
- package/dataflow/graph/dataflowgraph-builder.d.ts +25 -96
- package/dataflow/graph/dataflowgraph-builder.js +29 -97
- package/dataflow/graph/df-helper.d.ts +48 -187
- package/dataflow/graph/df-helper.js +107 -207
- package/dataflow/graph/diff-dataflow-graph.d.ts +5 -15
- package/dataflow/graph/diff-dataflow-graph.js +25 -25
- package/dataflow/graph/edge.js +1 -1
- package/dataflow/graph/graph-helper.d.ts +10 -46
- package/dataflow/graph/graph-helper.js +16 -50
- package/dataflow/graph/graph.d.ts +44 -97
- package/dataflow/graph/graph.js +83 -79
- package/dataflow/graph/match-args.d.ts +21 -88
- package/dataflow/graph/match-args.js +284 -97
- package/dataflow/graph/vertex.d.ts +101 -128
- package/dataflow/graph/vertex.js +23 -20
- package/dataflow/hooks.d.ts +7 -14
- package/dataflow/hooks.js +15 -13
- package/dataflow/info.d.ts +2 -17
- package/dataflow/internal/dispatch-linking.d.ts +71 -0
- package/dataflow/internal/dispatch-linking.js +332 -0
- package/dataflow/internal/linker.d.ts +48 -50
- package/dataflow/internal/linker.js +458 -155
- package/dataflow/internal/process/functions/call/argument/make-argument.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-access.d.ts +2 -14
- package/dataflow/internal/process/functions/call/built-in/built-in-access.js +16 -46
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-keys.d.ts +7 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-keys.js +10 -9
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.d.ts +25 -69
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +292 -89
- package/dataflow/internal/process/functions/call/built-in/built-in-apply.d.ts +10 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +66 -45
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.d.ts +15 -19
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +85 -64
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.d.ts +4 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-class-generator.d.ts +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-class-generator.js +3 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-deferred-env-ops.d.ts +15 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-deferred-env-ops.js +416 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +37 -54
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +192 -111
- package/dataflow/internal/process/functions/call/built-in/built-in-eval.d.ts +4 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-eval.js +60 -13
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.d.ts +1 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +80 -76
- package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.d.ts +1 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +4 -13
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.d.ts +4 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +436 -140
- package/dataflow/internal/process/functions/call/built-in/built-in-get.d.ts +18 -10
- package/dataflow/internal/process/functions/call/built-in/built-in-get.js +90 -12
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.d.ts +1 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +5 -14
- package/dataflow/internal/process/functions/call/built-in/built-in-library.d.ts +9 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +12 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-load.js +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-local.d.ts +3 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-local.js +2 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-new-env.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.d.ts +9 -24
- package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.js +10 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-register-hook.d.ts +5 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-register-hook.js +3 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-replacement.d.ts +1 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-replacement.js +8 -11
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.d.ts +1 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +20 -28
- package/dataflow/internal/process/functions/call/built-in/built-in-s-four.d.ts +17 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-s-four.js +117 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.d.ts +5 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.js +3 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.d.ts +8 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.js +18 -29
- package/dataflow/internal/process/functions/call/built-in/built-in-source.d.ts +7 -34
- package/dataflow/internal/process/functions/call/built-in/built-in-source.js +42 -56
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +4 -18
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +16 -22
- package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.d.ts +18 -16
- package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +130 -65
- package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-with.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +39 -21
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +587 -107
- package/dataflow/internal/process/functions/call/common.d.ts +8 -24
- package/dataflow/internal/process/functions/call/common.js +24 -24
- package/dataflow/internal/process/functions/call/deferred.d.ts +7 -27
- package/dataflow/internal/process/functions/call/deferred.js +6 -27
- package/dataflow/internal/process/functions/call/known-call-handling.d.ts +7 -50
- package/dataflow/internal/process/functions/call/known-call-handling.js +14 -50
- package/dataflow/internal/process/functions/call/named-call-handling.d.ts +1 -4
- package/dataflow/internal/process/functions/call/named-call-handling.js +14 -35
- package/dataflow/internal/process/functions/call/nse-kind.d.ts +24 -0
- package/dataflow/internal/process/functions/call/nse-kind.js +30 -0
- package/dataflow/internal/process/functions/call/nse.d.ts +2 -9
- package/dataflow/internal/process/functions/call/nse.js +6 -13
- package/dataflow/internal/process/functions/call/quoted.d.ts +4 -15
- package/dataflow/internal/process/functions/call/quoted.js +26 -62
- package/dataflow/internal/process/functions/call/unnamed-call-handling.d.ts +3 -6
- package/dataflow/internal/process/functions/call/unnamed-call-handling.js +29 -11
- package/dataflow/internal/process/functions/process-parameter.js +1 -1
- package/dataflow/internal/program-order.d.ts +3 -10
- package/dataflow/internal/program-order.js +19 -10
- package/dataflow/origin/dfg-get-origin.js +2 -1
- package/documentation/data/faq/faqs.js +16 -1
- package/documentation/data/interface/doc-writing-code.js +5 -7
- package/documentation/doc-capabilities.js +3 -3
- package/documentation/doc-readme.js +1 -1
- package/documentation/doc-util/doc-code.d.ts +0 -5
- package/documentation/doc-util/doc-code.js +2 -22
- package/documentation/doc-util/doc-query.d.ts +1 -2
- package/documentation/doc-util/doc-query.js +4 -5
- package/documentation/doc-util/doc-search.js +1 -1
- package/documentation/wiki-analyzer.js +4 -3
- package/documentation/wiki-core.js +5 -5
- package/documentation/wiki-dataflow-graph.js +6 -0
- package/documentation/wiki-interface.js +2 -1
- package/documentation/wiki-linter.js +15 -3
- package/documentation/wiki-linting-and-testing.js +15 -2
- package/documentation/wiki-query.js +114 -31
- package/index.d.ts +3 -1
- package/index.js +6 -3
- package/linter/linter-executor.js +1 -1
- package/linter/linter-rules.d.ts +37 -8
- package/linter/linter-rules.js +8 -1
- package/linter/linter-util.d.ts +3 -3
- package/linter/linter-util.js +1 -1
- package/linter/rules/absolute-path.js +5 -5
- package/linter/rules/cmd-check/bogus-return.d.ts +2 -1
- package/linter/rules/cmd-check/call-arguments.d.ts +3 -2
- package/linter/rules/cmd-check/call-arguments.js +5 -5
- package/linter/rules/cmd-check/cmd-check-util.d.ts +9 -8
- package/linter/rules/cmd-check/dependency-declaration.d.ts +2 -1
- package/linter/rules/cmd-check/dependency-declaration.js +3 -3
- package/linter/rules/cmd-check/documentation-mismatch.d.ts +3 -2
- package/linter/rules/cmd-check/documentation-mismatch.js +2 -1
- package/linter/rules/cmd-check/file-checks.d.ts +2 -2
- package/linter/rules/cmd-check/foreign-function-calls.d.ts +2 -1
- package/linter/rules/cmd-check/global-environment-modification.d.ts +6 -5
- package/linter/rules/cmd-check/namespace-tampering.d.ts +2 -1
- package/linter/rules/cmd-check/non-ascii-code.js +1 -1
- package/linter/rules/cmd-check/package-files.d.ts +2 -2
- package/linter/rules/cmd-check/package-hooks.d.ts +5 -4
- package/linter/rules/cmd-check/package-runtime.js +4 -4
- package/linter/rules/cmd-check/rd-files.js +2 -1
- package/linter/rules/cmd-check/s-three-method-consistency.d.ts +3 -2
- package/linter/rules/cmd-check/s-three-method-consistency.js +2 -1
- package/linter/rules/code-clones.d.ts +57 -0
- package/linter/rules/code-clones.js +53 -0
- package/linter/rules/deprecated-functions.js +5 -8
- package/linter/rules/file-path-validity.js +11 -9
- package/linter/rules/function-finder-util.d.ts +4 -2
- package/linter/rules/function-finder-util.js +2 -2
- package/linter/rules/naming-convention.d.ts +6 -5
- package/linter/rules/naming-convention.js +2 -3
- package/linter/rules/no-leaked-credentials.d.ts +2 -1
- package/linter/rules/no-leaked-credentials.js +1 -1
- package/linter/rules/overwritten-file.d.ts +2 -1
- package/linter/rules/overwritten-file.js +2 -4
- package/linter/rules/problematic-inputs.d.ts +2 -1
- package/linter/rules/problematic-inputs.js +3 -3
- package/linter/rules/process-state-in-session.d.ts +7 -6
- package/linter/rules/process-state-in-session.js +1 -1
- package/linter/rules/roxygen-arguments.d.ts +1 -1
- package/linter/rules/secret-exfiltration.d.ts +3 -2
- package/linter/rules/secret-exfiltration.js +9 -4
- package/linter/rules/seeded-randomness.d.ts +3 -3
- package/linter/rules/unclosed-connection.js +1 -2
- package/linter/rules/undefined-symbol-util.d.ts +3 -2
- package/linter/rules/undefined-symbol.d.ts +3 -2
- package/linter/rules/unescaped-arguments.d.ts +1 -1
- package/linter/rules/unescaped-arguments.js +6 -8
- package/linter/rules/unused-definition.d.ts +4 -3
- package/linter/rules/unused-definition.js +10 -12
- package/linter/rules/unused-import.d.ts +6 -5
- package/linter/rules/unused-import.js +20 -6
- package/package.json +1 -1
- package/project/attached-packages.d.ts +5 -4
- package/project/cache/flowr-analyzer-cache.d.ts +14 -1
- package/project/cache/flowr-analyzer-cache.js +40 -3
- package/project/cache/flowr-analyzer-controlflow-cache.d.ts +0 -6
- package/project/cache/flowr-analyzer-controlflow-cache.js +7 -27
- package/project/context/flowr-analyzer-context.d.ts +2 -2
- package/project/context/flowr-analyzer-context.js +2 -2
- package/project/context/flowr-analyzer-dependencies-context.d.ts +12 -12
- package/project/context/flowr-analyzer-environment-context.d.ts +3 -3
- package/project/context/flowr-analyzer-environment-context.js +3 -3
- package/project/context/flowr-analyzer-files-context.d.ts +8 -0
- package/project/context/flowr-analyzer-files-context.js +51 -6
- package/project/context/flowr-analyzer-functions-context.d.ts +9 -7
- package/project/context/flowr-analyzer-gas-context.d.ts +25 -0
- package/project/context/flowr-analyzer-gas-context.js +34 -4
- package/project/dependency-version-space.d.ts +30 -29
- package/project/dependency-version-space.js +1 -2
- package/project/flowr-analyzer-builder.d.ts +2 -3
- package/project/flowr-analyzer.d.ts +35 -12
- package/project/flowr-analyzer.js +18 -33
- package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +15 -17
- package/project/plugins/file-plugins/files/flowr-namespace-file.js +57 -163
- package/project/plugins/file-plugins/flowr-analyzer-file-plugin.d.ts +2 -3
- package/project/plugins/file-plugins/flowr-analyzer-file-plugin.js +2 -3
- package/project/plugins/file-plugins/flowr-analyzer-rprofile-file-plugin.js +3 -3
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +2 -2
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-namespace-file-plugin.js +1 -2
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-on-demand-plugin.d.ts +5 -4
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-on-demand-plugin.js +1 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.d.ts +2 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.d.ts +4 -3
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +2 -2
- package/project/plugins/package-version-plugins/package.d.ts +6 -5
- package/project/plugins/package-version-plugins/package.js +1 -1
- package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +2 -3
- package/project/sigdb/build.js +1 -1
- package/project/sigdb/decode.d.ts +8 -7
- package/project/sigdb/decode.js +1 -2
- package/project/sigdb/dict.d.ts +2 -1
- package/project/sigdb/dict.js +2 -2
- package/project/sigdb/index-format.d.ts +2 -1
- package/project/sigdb/manifest.d.ts +1 -1
- package/project/sigdb/memory-source.d.ts +18 -17
- package/project/sigdb/on-demand/package-sources.d.ts +4 -3
- package/project/sigdb/on-demand/recoverer.d.ts +2 -1
- package/project/sigdb/on-demand/remote-sources.d.ts +2 -1
- package/project/sigdb/reader.d.ts +85 -80
- package/project/sigdb/reader.js +0 -4
- package/project/sigdb/schema.d.ts +9 -8
- package/project/sigdb/signature-db.d.ts +6 -6
- package/queries/catalog/absint-query/absint-query-format.d.ts +1 -1
- package/queries/catalog/ambient-access-query/ambient-access-query-executor.d.ts +6 -0
- package/queries/catalog/ambient-access-query/ambient-access-query-executor.js +50 -0
- package/queries/catalog/ambient-access-query/ambient-access-query-format.d.ts +54 -0
- package/queries/catalog/ambient-access-query/ambient-access-query-format.js +45 -0
- package/queries/catalog/call-context-query/call-context-query-executor.d.ts +2 -1
- package/queries/catalog/call-context-query/call-context-query-executor.js +2 -2
- package/queries/catalog/call-graph-query/expand-library-internals.d.ts +3 -2
- package/queries/catalog/code-clones-query/code-clones-query-executor.d.ts +6 -0
- package/queries/catalog/code-clones-query/code-clones-query-executor.js +38 -0
- package/queries/catalog/code-clones-query/code-clones-query-format.d.ts +54 -0
- package/queries/catalog/code-clones-query/code-clones-query-format.js +73 -0
- package/queries/catalog/config-query/config-query-format.d.ts +1 -1
- package/queries/catalog/config-query/config-query-format.js +4 -4
- package/queries/catalog/dataflow-lens-query/dataflow-lens-query-executor.js +3 -3
- package/queries/catalog/dependencies-query/data-flow.d.ts +5 -4
- package/queries/catalog/dependencies-query/dependencies-query-executor.d.ts +5 -2
- package/queries/catalog/dependencies-query/dependencies-query-executor.js +11 -10
- package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +4 -6
- package/queries/catalog/dependencies-query/dependencies-query-format.js +12 -12
- package/queries/catalog/dependencies-query/dependency-values.d.ts +9 -0
- package/queries/catalog/dependencies-query/dependency-values.js +13 -0
- package/queries/catalog/dependencies-query/function-info/function-info.d.ts +6 -4
- package/queries/catalog/dependencies-query/function-info/remote-functions.js +2 -2
- package/queries/catalog/dependencies-query/function-info/write-functions.js +8 -7
- package/queries/catalog/dependencies-query/implicit-echo.js +4 -2
- package/queries/catalog/dependencies-query/plot-description.d.ts +1 -1
- package/queries/catalog/dependencies-query/plot-description.js +2 -2
- package/queries/catalog/dice-query/dice-query-format.d.ts +2 -1
- package/queries/catalog/dice-query/dice-query-format.js +1 -0
- package/queries/catalog/does-call-query/does-call-query-executor.js +1 -2
- package/queries/catalog/does-call-query/does-call-query-format.d.ts +1 -0
- package/queries/catalog/does-call-query/does-call-query-format.js +1 -0
- package/queries/catalog/files-query/files-query-format.d.ts +1 -1
- package/queries/catalog/function-info-query/function-info-query-format.d.ts +2 -1
- package/queries/catalog/function-info-query/function-origin.d.ts +3 -2
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.js +3 -3
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.d.ts +5 -4
- package/queries/catalog/happens-before-query/happens-before-query-format.d.ts +1 -0
- package/queries/catalog/happens-before-query/happens-before-query-format.js +1 -0
- package/queries/catalog/input-sources-query/input-sources-query-executor.js +7 -3
- package/queries/catalog/input-sources-query/simple-input-classifier.d.ts +9 -9
- package/queries/catalog/input-sources-query/simple-input-classifier.js +1 -1
- package/queries/catalog/linter-query/linter-query-executor.js +4 -1
- package/queries/catalog/linter-query/linter-query-format.d.ts +2 -2
- package/queries/catalog/linter-query/linter-query-format.js +16 -11
- package/queries/catalog/origin-query/origin-query-format.d.ts +1 -0
- package/queries/catalog/origin-query/origin-query-format.js +1 -0
- package/queries/catalog/project-query/project-query-format.d.ts +2 -1
- package/queries/catalog/provenance-query/provenance-query-format.d.ts +1 -0
- package/queries/catalog/provenance-query/provenance-query-format.js +1 -0
- package/queries/catalog/resolve-value-query/resolve-value-query-format.d.ts +1 -0
- package/queries/catalog/resolve-value-query/resolve-value-query-format.js +1 -0
- package/queries/catalog/signature-query/signature-query-executor.d.ts +10 -7
- package/queries/catalog/signature-query/signature-query-executor.js +14 -15
- package/queries/catalog/signature-query/signature-query-format.d.ts +21 -20
- package/queries/catalog/signature-query/signature-query-render.js +1 -1
- 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 +9 -5
- package/queries/catalog/static-slice-query/static-slice-query-format.js +1 -0
- package/queries/catalog/taint-query/taint-query-format.d.ts +1 -1
- package/queries/query.d.ts +61 -10
- package/queries/query.js +59 -37
- package/r-bridge/data/data.d.ts +39 -28
- package/r-bridge/data/data.js +37 -28
- package/r-bridge/init.js +1 -1
- package/r-bridge/lang-4.x/ast/model/model.d.ts +10 -1
- package/r-bridge/lang-4.x/ast/model/model.js +30 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-access.d.ts +21 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-access.js +25 -2
- package/r-bridge/lang-4.x/ast/model/nodes/r-argument.d.ts +2 -1
- package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.d.ts +3 -2
- package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.js +2 -2
- package/r-bridge/lang-4.x/ast/model/nodes/r-break.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-comment.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.d.ts +4 -3
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-logical.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-next.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-number.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +5 -6
- package/r-bridge/lang-4.x/ast/model/nodes/r-string.js +2 -7
- package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.d.ts +3 -2
- package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.js +2 -2
- package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/processing/decorate.js +4 -5
- package/r-bridge/lang-4.x/ast/model/processing/node-id.d.ts +7 -2
- package/r-bridge/lang-4.x/ast/model/processing/node-id.js +14 -6
- package/r-bridge/lang-4.x/ast/model/processing/visitor.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/model/processing/visitor.js +2 -2
- package/r-bridge/lang-4.x/ast/model/type.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/model/type.js +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-binary.js +2 -2
- package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-unary.js +2 -2
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.d.ts +2 -2
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +3 -2
- package/r-bridge/parser.d.ts +8 -2
- package/r-bridge/parser.js +6 -0
- package/r-bridge/shell-executor.d.ts +2 -2
- package/r-bridge/shell-executor.js +3 -2
- package/r-bridge/shell.d.ts +2 -2
- package/r-bridge/shell.js +3 -2
- package/reconstruct/auto-select/magic-comments.js +1 -1
- package/reconstruct/reconstruct.d.ts +0 -5
- package/reconstruct/reconstruct.js +6 -5
- package/search/flowr-search-builder.d.ts +14 -0
- package/search/flowr-search-builder.js +7 -0
- package/search/flowr-search-executor.js +2 -2
- package/search/flowr-search-filters.js +10 -11
- package/search/flowr-search.js +1 -1
- package/search/search-executor/search-enrichers.d.ts +2 -0
- package/search/search-executor/search-enrichers.js +6 -1
- package/search/search-executor/search-generators.d.ts +2 -3
- package/search/search-executor/search-generators.js +18 -14
- package/search/search-executor/search-mappers.js +1 -1
- package/search/search-executor/search-transformer.d.ts +2 -2
- package/search/search-executor/search-transformer.js +6 -6
- package/search/search-logger.d.ts +1 -0
- package/search/search-logger.js +6 -0
- package/slicing/criterion/parse.d.ts +2 -1
- package/slicing/criterion/parse.js +2 -1
- package/slicing/static/removal-slice.js +2 -1
- package/slicing/static/slice-call.d.ts +30 -4
- package/slicing/static/slice-call.js +74 -9
- package/slicing/static/slicer-types.d.ts +2 -1
- package/slicing/static/static-slicer.js +66 -11
- package/slicing/static/visiting-queue.d.ts +2 -0
- package/slicing/static/visiting-queue.js +4 -0
- package/taint-analysis/builder/report-template.d.ts +3 -3
- package/util/arg-matching.d.ts +1 -1
- package/util/collections/relation.d.ts +23 -0
- package/util/collections/relation.js +63 -0
- package/util/fixpoint.d.ts +65 -0
- package/util/fixpoint.js +216 -0
- package/util/flowr-version.d.ts +1 -1
- package/util/flowr-version.js +2 -2
- package/util/json.d.ts +4 -0
- package/util/json.js +12 -3
- package/util/mermaid/cfg.js +1 -2
- package/util/mermaid/dfg.d.ts +1 -1
- package/util/mermaid/dfg.js +1 -1
- package/util/mermaid/mermaid.d.ts +2 -1
- package/util/monoid.d.ts +26 -0
- package/util/monoid.js +31 -0
- package/util/prefix.d.ts +1 -1
- package/util/r-base-packages.d.ts +10 -7
- package/util/r-base-packages.js +11 -6
- package/util/r-package-urls.d.ts +10 -9
- package/util/r-value.js +2 -1
- package/util/r-version-order.d.ts +2 -0
- package/util/r-version-order.js +19 -0
- package/util/r-version.d.ts +2 -1
- package/util/r-version.js +2 -14
- package/util/range.d.ts +38 -29
- package/util/range.js +10 -5
- package/util/simple-df/dfg-ascii.js +2 -2
- package/util/text/ansi.d.ts +13 -9
- package/util/text/ansi.js +4 -6
- package/util/text/strings.d.ts +10 -3
- package/util/text/strings.js +10 -1
- package/util/version.d.ts +1 -1
- package/util/version.js +2 -1
- package/dataflow/environments/default-builtin-config.d.ts +0 -8856
- package/dataflow/environments/default-builtin-config.js +0 -1735
- package/r-bridge/lang-4.x/ast/model/operators.d.ts +0 -33
- package/r-bridge/lang-4.x/ast/model/operators.js +0 -54
- package/taint-analysis/eval/eval.d.ts +0 -1
- package/taint-analysis/eval/eval.js +0 -124
- package/taint-analysis/eval/instrumentation.d.ts +0 -59
- package/taint-analysis/eval/instrumentation.js +0 -124
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseDefinitions = void 0;
|
|
4
|
+
const define_helpers_1 = require("./define-helpers");
|
|
5
|
+
const built_in_kinds_1 = require("../built-in-kinds");
|
|
6
|
+
const identifier_1 = require("../identifier");
|
|
7
|
+
const built_in_proc_name_1 = require("../built-in-proc-name");
|
|
8
|
+
const built_in_eval_name_1 = require("../built-in-eval-name");
|
|
9
|
+
const nse_kind_1 = require("../../internal/process/functions/call/nse-kind");
|
|
10
|
+
const built_in_props_1 = require("../built-in-props");
|
|
11
|
+
const ambient_state_name_1 = require("../ambient-state-name");
|
|
12
|
+
const shared_signatures_1 = require("./shared-signatures");
|
|
13
|
+
const shared_configs_1 = require("./shared-configs");
|
|
14
|
+
/** what signals a message or a warning, handing on what it is given */
|
|
15
|
+
const Signals = {
|
|
16
|
+
keepArgumentOut: true,
|
|
17
|
+
hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ },
|
|
18
|
+
props: built_in_props_1.CallProp.Invisible,
|
|
19
|
+
tags: [built_in_props_1.SemanticCallTag.Prints],
|
|
20
|
+
sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced })
|
|
21
|
+
};
|
|
22
|
+
/** what signals an error */
|
|
23
|
+
const Throws = { useAsProcessor: built_in_proc_name_1.BuiltInProcName.Stop, cfg: 4 /* ExitPointType.Error */, props: built_in_props_1.CallProp.Throws, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) };
|
|
24
|
+
/** The built-in definitions of the base package. */
|
|
25
|
+
exports.BaseDefinitions = [
|
|
26
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('NULL'), null, define_helpers_1.Primitive),
|
|
27
|
+
/* an `NA` is a value R has and flowR has no way to hold, which is not the same as having none: `is.null(NA)` is FALSE */
|
|
28
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('NA', 'NA_integer_', 'NA_real_', 'NA_complex_', 'NA_character_'), built_in_kinds_1.Top, define_helpers_1.Primitive),
|
|
29
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('NaN'), NaN, define_helpers_1.Primitive),
|
|
30
|
+
/* an environment is no more `NULL` than an `NA` is; which one it stands for is what the stack-env handling answers */
|
|
31
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('.GlobalEnv', '.BaseNamespaceEnv', '.BaseEnv'), built_in_kinds_1.Top, define_helpers_1.Primitive),
|
|
32
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('TRUE', 'T'), true, define_helpers_1.Primitive),
|
|
33
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('FALSE', 'F'), false, define_helpers_1.Primitive),
|
|
34
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('Inf'), Infinity, define_helpers_1.Primitive),
|
|
35
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('-Inf'), -Infinity, define_helpers_1.Primitive),
|
|
36
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('pi'), Math.PI, define_helpers_1.Primitive),
|
|
37
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('LETTERS'), Array.from({ length: 26 }, (_, i) => String.fromCharCode(65 + i)), define_helpers_1.Primitive),
|
|
38
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('letters'), Array.from({ length: 26 }, (_, i) => String.fromCharCode(97 + i)), define_helpers_1.Primitive),
|
|
39
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('month.abb'), ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], define_helpers_1.Primitive),
|
|
40
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('month.name'), ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], define_helpers_1.Primitive),
|
|
41
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('t'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Transforms], sig: shared_signatures_1.SigXDots }, define_helpers_1.Primitive),
|
|
42
|
+
/* an {@link BuiltInEvalName} marks what the value solver folds; a test checks the names against the handler tables */
|
|
43
|
+
/* the result follows from how large the argument is, not from what is in it, so it is bounded (`Narrows`) */
|
|
44
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('length', 'lengths', 'nrow', 'ncol', 'NROW', 'NCOL', 'dim', 'is.null', 'is.factor', 'is.vector', 'is.matrix', 'is.data.frame', 'is.numeric', 'is.character', 'is.logical', 'is.function', 'is.list', 'is.double', 'is.integer', 'is.complex', 'is.raw', 'is.single', 'is.ordered'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: shared_signatures_1.SigShape }, define_helpers_1.Primitive),
|
|
45
|
+
/* the names and the class are read off the argument, so whatever it carries can show up in the result */
|
|
46
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('dimnames', 'names', 'rownames', 'colnames', 'class'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: shared_signatures_1.SigShape }, define_helpers_1.Primitive),
|
|
47
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('structure'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ '.Data': shared_signatures_1.Forced.Value, '...': shared_signatures_1.Forced.Value }) }),
|
|
48
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('nchar'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: shared_signatures_1.SigShape }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn }),
|
|
49
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('missing'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ x: built_in_props_1.ArgProp.Presence }) }, define_helpers_1.Primitive),
|
|
50
|
+
/* they fold everything they are handed into one result */
|
|
51
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('sum', 'prod', 'min', 'max', 'range', 'pmin', 'pmax', 'order', 'any'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: shared_signatures_1.SigDots }, define_helpers_1.Primitive),
|
|
52
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('data.frame', 'table'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: shared_signatures_1.SigDotsDeparsed }, define_helpers_1.Primitive),
|
|
53
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('cbind', 'rbind'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Transforms], sig: shared_signatures_1.SigDotsDeparsed }, define_helpers_1.Primitive),
|
|
54
|
+
/* the separator sits behind the `...`, so R (and the {@link FnSig}) only ever matches it by its full name */
|
|
55
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('paste', 'paste0'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ '...': shared_signatures_1.Forced.Value, sep: shared_signatures_1.Forced.Value }), dispatches: ['as.character'] }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn }),
|
|
56
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('file.path'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ '...': shared_signatures_1.Forced.Value, fsep: shared_signatures_1.Forced.Value }), dispatches: ['as.character'] }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn }),
|
|
57
|
+
/* `x` carries the data, whatever follows only tunes the result */
|
|
58
|
+
(0, define_helpers_1.fn)([...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['mean', /* running summaries & reordering */ 'cumsum', 'cumprod', 'cummax', 'cummin', 'diff', 'sort', 'rev', 'unique', 'duplicated',
|
|
59
|
+
/* coercion */ 'as.character', 'as.matrix', 'as.data.frame', 'as.factor', 'as.raw', 'as.list', 'as.array', 'factor', 'as.ordered']), ...(0, define_helpers_1.utils)('head', 'tail'), ...(0, define_helpers_1.stats)('var', 'sd', 'median', 'quantile')], built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: shared_signatures_1.SigXDots }, define_helpers_1.Primitive),
|
|
60
|
+
/* a number or a logical carries none of the text it was converted from */
|
|
61
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('as.integer', 'as.logical', 'as.numeric', 'as.double', 'as.complex', 'as.single'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: shared_signatures_1.SigXDots }, define_helpers_1.Primitive),
|
|
62
|
+
/* they read the values but answer only with a logical, so nothing those values carry reaches the result */
|
|
63
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('is.na', 'nzchar', 'is.finite', 'is.infinite', 'is.nan'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: shared_signatures_1.SigX }, define_helpers_1.Primitive),
|
|
64
|
+
/* the numeric functions the value solver folds; each one is an entry of `NumericFns`, which states its parameters */
|
|
65
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('sqrt', 'abs', 'floor', 'ceiling', 'trunc', 'sign', 'exp', 'expm1', 'log2', 'log10', 'log1p', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'sinh', 'cosh', 'tanh', 'asinh', 'acosh', 'atanh'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: shared_signatures_1.SigX }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Numeric }),
|
|
66
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('round', 'signif'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, digits: shared_signatures_1.Forced.Value }) }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Numeric }),
|
|
67
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('log'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, base: shared_signatures_1.Forced.Value }) }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Numeric }),
|
|
68
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('tolower', 'toupper', 'trimws'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: shared_signatures_1.SigX }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn }),
|
|
69
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('basename', 'dirname'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ path: shared_signatures_1.Forced.Value }) }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn }),
|
|
70
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Re', 'Im', 'Mod', 'Arg', 'Conj'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ z: shared_signatures_1.Forced.Value }) }, define_helpers_1.Primitive),
|
|
71
|
+
/* the vector constructors take the length of the result, not its contents */
|
|
72
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('numeric', 'character', 'logical', 'integer', 'double', 'raw', 'single'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ length: shared_signatures_1.Forced.Value }) }, define_helpers_1.Primitive),
|
|
73
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('vector'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ mode: shared_signatures_1.Forced.Flag, length: shared_signatures_1.Forced.Value }) }, define_helpers_1.Primitive),
|
|
74
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('mat.or.vec'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ nr: shared_signatures_1.Forced.Value, nc: shared_signatures_1.Forced.Value }) }, define_helpers_1.Primitive),
|
|
75
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('as.vector'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, mode: shared_signatures_1.Forced.Flag }) }, define_helpers_1.Primitive),
|
|
76
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('rep_len'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, 'length.out': shared_signatures_1.Forced.Value }) }, define_helpers_1.Primitive),
|
|
77
|
+
/* two data arguments, under the names R gives them */
|
|
78
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('xor', 'crossprod', 'tcrossprod', 'intersect', 'union', 'setdiff'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: shared_signatures_1.SigXY }, define_helpers_1.Primitive),
|
|
79
|
+
/* they answer with a position or a logical, never with what they matched */
|
|
80
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('match', 'pmatch', 'charmatch'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: shared_signatures_1.SigXTable }, define_helpers_1.Primitive),
|
|
81
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('is.element'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: (0, shared_signatures_1.sig)({ el: shared_signatures_1.Forced.Value, set: shared_signatures_1.Forced.Value }) }, define_helpers_1.Primitive),
|
|
82
|
+
/* the result is one of the `choices`, so what flows in is bounded by that argument */
|
|
83
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('match.arg'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: (0, shared_signatures_1.sig)({ arg: shared_signatures_1.Forced.Value, choices: built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Bounds }) }, define_helpers_1.Primitive),
|
|
84
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('atan2'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ y: shared_signatures_1.Forced.Value, x: shared_signatures_1.Forced.Value }) }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Numeric }),
|
|
85
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('bitwAnd', 'bitwOr', 'bitwXor'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ a: shared_signatures_1.Forced.Value, b: shared_signatures_1.Forced.Value }) }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Numeric }),
|
|
86
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('bitwShiftL', 'bitwShiftR'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ a: shared_signatures_1.Forced.Value, n: shared_signatures_1.Forced.Value }) }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Numeric }),
|
|
87
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('bitwNot'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ a: shared_signatures_1.Forced.Value }) }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Numeric }),
|
|
88
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('grepl'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: (0, shared_signatures_1.sig)({ pattern: shared_signatures_1.Forced.Value, x: shared_signatures_1.Forced.Value }) }, define_helpers_1.Primitive),
|
|
89
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('startsWith'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, prefix: shared_signatures_1.Forced.Value }) }, define_helpers_1.Primitive),
|
|
90
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('endsWith'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, suffix: shared_signatures_1.Forced.Value }) }, define_helpers_1.Primitive),
|
|
91
|
+
/* the rest of the pure computations, where no single shape fits */
|
|
92
|
+
(0, define_helpers_1.fn)([...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['rep', 'rep.int', 'seq.int', 'append', 'complex', 'matrix', 'array', 'prop.table', 'colSums', 'rowSums', 'colMeans', 'rowMeans', 'solve',
|
|
93
|
+
'det', 'eigen', 'aperm', /* string */ 'grep', 'sub', 'gsub', 'substr', 'substring', 'strsplit', 'strrep', 'chartr', 'strtoi', 'shQuote', 'regexpr', 'gregexpr', 'regexec', 'format',
|
|
94
|
+
'formatC', /* regmatches yields a substring of its subject, so what flows in flows out */ 'regmatches']), ...(0, define_helpers_1.stats)('cor', 'cov', 'xtabs')], built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure }, define_helpers_1.Primitive),
|
|
95
|
+
/* indices and index sequences: bounded by the shape of what they are handed, never by its contents */
|
|
96
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('which', 'which.max', 'which.min', 'seq_len', 'seq_along'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows] }, define_helpers_1.Primitive),
|
|
97
|
+
/* `seq` dispatches, so `...` really is all it declares; the named formals belong to `seq.default`/`seq.int` */
|
|
98
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('seq'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ '...': shared_signatures_1.Forced.Value }) }, define_helpers_1.Primitive),
|
|
99
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('scan'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.User], sig: (0, shared_signatures_1.sig)({ file: shared_signatures_1.Forced.Resource | built_in_props_1.ArgProp.Optional }) }),
|
|
100
|
+
/* the package functions that read or write a file, each naming the argument that holds the path; the dependency query reads its `read` and `write` categories back from here rather than listing them again */
|
|
101
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('read.dcf'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: (0, shared_signatures_1.sig)({ file: shared_signatures_1.Forced.Resource, '...': shared_signatures_1.Forced.Value }) }),
|
|
102
|
+
/* reading an environment file sets the variables it lists, which we do not know */
|
|
103
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('readRenviron'), built_in_proc_name_1.BuiltInProcName.Default, { readAllArguments: true, hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, ambient: shared_configs_1.SetsAnyEnvVar, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: (0, shared_signatures_1.sig)({ path: shared_signatures_1.Forced.Resource, '...': shared_signatures_1.Forced.Value }) }),
|
|
104
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('dump'), built_in_proc_name_1.BuiltInProcName.Get, { returnsValue: false, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: (0, shared_signatures_1.sig)({ list: shared_signatures_1.Forced.Value, file: shared_signatures_1.Forced.Resource, '...': shared_signatures_1.Forced.Value }) }),
|
|
105
|
+
/* the connections and the calls that move data through them, so anything reaching them inherits it */
|
|
106
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('file', 'gzfile', 'bzfile', 'xzfile', 'unz', 'fifo'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { tags: [built_in_props_1.SemanticCallTag.Opens, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Writes], sig: (0, shared_signatures_1.sig)({ description: shared_signatures_1.Forced.Resource }) }),
|
|
107
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('url'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { tags: [built_in_props_1.SemanticCallTag.Opens, built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: (0, shared_signatures_1.sig)({ description: shared_signatures_1.Forced.Resource }) }),
|
|
108
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('socketConnection', 'serverSocket'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { tags: [built_in_props_1.SemanticCallTag.Opens, built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: (0, shared_signatures_1.sig)({ host: shared_signatures_1.Forced.Resource }) }),
|
|
109
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('rawConnection'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { tags: [built_in_props_1.SemanticCallTag.Opens], sig: (0, shared_signatures_1.sig)({ object: shared_signatures_1.Forced.Value }) }),
|
|
110
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('stdout', 'stderr', 'stdin'), built_in_proc_name_1.BuiltInProcName.Default, { tags: [built_in_props_1.SemanticCallTag.Console] }),
|
|
111
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('textConnection'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { ambient: { type: "open-text-connection" /* AmbientStateAccessType.OpenTextConnection */ }, tags: [built_in_props_1.SemanticCallTag.Opens], sig: (0, shared_signatures_1.sig)({ object: shared_signatures_1.Forced.Value }) }),
|
|
112
|
+
/* the calls ending what an opener started, each stating the argument holding the handle */
|
|
113
|
+
/* opening a connection decides where it reads and whether a write appends, which later uses of it depend on */
|
|
114
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('open', 'open.connection', 'seek'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: (0, shared_signatures_1.sig)({ con: shared_signatures_1.Forced.Resource | built_in_props_1.ArgProp.Handle, '...': shared_signatures_1.Forced.Value }) }),
|
|
115
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('close'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Generic, ambient: { type: "write-files" /* AmbientStateAccessType.WriteFiles */ }, tags: [built_in_props_1.SemanticCallTag.Closes], sig: (0, shared_signatures_1.sig)({ con: shared_signatures_1.Forced.Handle, '...': shared_signatures_1.Forced.Value }) }),
|
|
116
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('close.connection'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Invisible, ambient: { type: "write-files" /* AmbientStateAccessType.WriteFiles */ }, tags: [built_in_props_1.SemanticCallTag.Closes], sig: (0, shared_signatures_1.sig)({ con: shared_signatures_1.Forced.Handle, type: shared_signatures_1.Forced.Flag, '...': shared_signatures_1.Forced.Value }) }),
|
|
117
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('flush'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Generic, ambient: { type: "write-files" /* AmbientStateAccessType.WriteFiles */ }, sig: (0, shared_signatures_1.sig)({ con: shared_signatures_1.Forced.Handle }) }),
|
|
118
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('closeAllConnections'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Closes] }),
|
|
119
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('readLines', 'readBin', 'readChar'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: (0, shared_signatures_1.sig)({ con: shared_signatures_1.Forced.Resource }) }),
|
|
120
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('readRDS', 'dget'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: (0, shared_signatures_1.sig)({ file: shared_signatures_1.Forced.Resource }) }),
|
|
121
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('writeLines'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes, built_in_props_1.SemanticCallTag.Prints], sig: (0, shared_signatures_1.sig)({ text: shared_signatures_1.Forced.Value, con: shared_signatures_1.Forced.Resource | built_in_props_1.ArgProp.Optional }) }),
|
|
122
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('writeBin', 'writeChar'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: (0, shared_signatures_1.sig)({ object: shared_signatures_1.Forced.Value, con: shared_signatures_1.Forced.Resource }) }),
|
|
123
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('saveRDS'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: (0, shared_signatures_1.sig)({ object: shared_signatures_1.Forced.Value, file: shared_signatures_1.Forced.Resource | built_in_props_1.ArgProp.Optional }) }),
|
|
124
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('save'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { namesIn: ['...', 'list'], props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: (0, shared_signatures_1.sig)({ '...': shared_signatures_1.Forced.Value, list: shared_signatures_1.Forced.Value, file: shared_signatures_1.Forced.Resource }) }),
|
|
125
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('save.image'), built_in_proc_name_1.BuiltInProcName.EnvContents, { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: (0, shared_signatures_1.sig)({ file: shared_signatures_1.Forced.Resource }) }),
|
|
126
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('dir.exists'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: (0, shared_signatures_1.sig)({ path: shared_signatures_1.Forced.Resource }) }),
|
|
127
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('file.access'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: (0, shared_signatures_1.sig)({ names: shared_signatures_1.Forced.Resource, mode: shared_signatures_1.Forced.Flag }) }),
|
|
128
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.base)('normalizePath'), ...(0, define_helpers_1.pkg)("fs" /* PkgName.Fs */, 'path_abs', 'path_real')], built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { ambient: { type: "get-working-directory" /* AmbientStateAccessType.GetWorkingDirectory */ }, props: built_in_props_1.CallProp.Ambient, sig: (0, shared_signatures_1.sig)({ path: shared_signatures_1.Forced.Value, winslash: shared_signatures_1.Forced.Flag, mustWork: shared_signatures_1.Forced.Flag }) }),
|
|
129
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('dput'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes, built_in_props_1.SemanticCallTag.Prints], sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, file: shared_signatures_1.Forced.Resource | built_in_props_1.ArgProp.Optional }) }),
|
|
130
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('write'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes, built_in_props_1.SemanticCallTag.Prints], sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, file: shared_signatures_1.Forced.Resource }) }),
|
|
131
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('write.dcf'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, file: shared_signatures_1.Forced.Resource | built_in_props_1.ArgProp.Optional }) }),
|
|
132
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('jitter'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { ambient: { type: "draw-rng" /* AmbientStateAccessType.DrawRng */ }, tags: [built_in_props_1.SemanticCallTag.Random], sig: (0, shared_signatures_1.sig)({ x: built_in_props_1.ArgProp.NoDefault, factor: 0, amount: 0 }) }, define_helpers_1.Primitive),
|
|
133
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.base)('sample', 'sample.int'), ...(0, define_helpers_1.stats)('runif', 'rnorm', 'rbinom', 'rpois', 'rexp', 'rgamma', 'rbeta', 'rcauchy', 'rchisq', 'rgeom', 'rhyper', 'rlnorm', 'rlogis', 'rmultinom', 'rnbinom', 'rsignrank', 'rt', 'rf', 'rweibull', 'rwilcox', 'arima.sim', 'simulate', 'kmeans')], built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { ambient: { type: "draw-rng" /* AmbientStateAccessType.DrawRng */ }, tags: [built_in_props_1.SemanticCallTag.Random] }),
|
|
134
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('expression'), built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Lang, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Nse }) }, define_helpers_1.Primitive),
|
|
135
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('reg.finalizer'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { type: "register-finalizer" /* AmbientStateAccessType.RegisterFinalizer */ }, sig: (0, shared_signatures_1.sig)({ e: built_in_props_1.ArgProp.Forced, f: built_in_props_1.ArgProp.Forced, onexit: shared_signatures_1.Forced.Flag }) }),
|
|
136
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('gc'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { type: "run-finalizers" /* AmbientStateAccessType.RunFinalizers */ }, sig: (0, shared_signatures_1.sig)({ verbose: shared_signatures_1.Forced.Flag, reset: shared_signatures_1.Forced.Flag, full: shared_signatures_1.Forced.Flag }) }),
|
|
137
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('rm'), built_in_proc_name_1.BuiltInProcName.Rm, { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, sig: (0, shared_signatures_1.sig)({ '...': 0, list: built_in_props_1.ArgProp.Forced, pos: 0, envir: built_in_props_1.ArgProp.Forced, inherits: built_in_props_1.ArgProp.Forced }) }, define_helpers_1.Primitive),
|
|
138
|
+
/* they read the state they set, so both bits apply */
|
|
139
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('options'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { type: "set-options" /* AmbientStateAccessType.SetOptions */ }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Ambient | built_in_props_1.CallProp.Configures, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
140
|
+
/* `Sys.putenv` is defunct in current R, older scripts still use it */
|
|
141
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Sys.setenv', 'Sys.putenv'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { type: "set-keyed" /* AmbientStateAccessType.SetKeyed */, state: ambient_state_name_1.KeyedState.Env, keys: { from: 'argument-names' } }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
142
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Sys.unsetenv'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: (0, shared_configs_1.SetsEntryNamedBy)(ambient_state_name_1.KeyedState.Env, ['x'], 'x'), props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
143
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Sys.setlocale'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: (0, shared_configs_1.SetsEntryNamedBy)(ambient_state_name_1.KeyedState.Locale, ['category', 'locale'], 'category', { fallback: 'LC_ALL' }), hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
144
|
+
/* the language is the environment variable `LANGUAGE`, which the translations of messages follow */
|
|
145
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Sys.setLanguage'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: [(0, shared_configs_1.SetsEntry)(ambient_state_name_1.KeyedState.Locale, 'LANGUAGE'), (0, shared_configs_1.SetsEntry)(ambient_state_name_1.KeyedState.Env, 'LANGUAGE')], hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
146
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.base)('mapply'), ...(0, define_helpers_1.pkg)("functools" /* PkgName.Functools */, 'Mapply')], built_in_proc_name_1.BuiltInProcName.Apply, { indexOfFunction: 0, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: (0, shared_signatures_1.sig)({ FUN: built_in_props_1.ArgProp.Callee, '...': built_in_props_1.ArgProp.Value }) }),
|
|
147
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('lapply', 'sapply', 'vapply'), built_in_proc_name_1.BuiltInProcName.Apply, { indexOfFunction: 1, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: (0, shared_signatures_1.sig)({ X: built_in_props_1.ArgProp.Value, FUN: built_in_props_1.ArgProp.Callee, '...': built_in_props_1.ArgProp.Value }) }),
|
|
148
|
+
/* `vapply` takes the shape of the result before its `...`, so naming it keeps the positions honest */
|
|
149
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('vapply'), built_in_proc_name_1.BuiltInProcName.Apply, { indexOfFunction: 1, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: (0, shared_signatures_1.sig)({ X: built_in_props_1.ArgProp.Value, FUN: built_in_props_1.ArgProp.Callee, 'FUN.VALUE': built_in_props_1.ArgProp.Shape, '...': built_in_props_1.ArgProp.Value }) }, define_helpers_1.Overrides),
|
|
150
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.base)('apply', 'tapply'), ...(0, define_helpers_1.pkg)("functools" /* PkgName.Functools */, 'Tapply')], built_in_proc_name_1.BuiltInProcName.Apply, { indexOfFunction: 2, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, tags: [built_in_props_1.SemanticCallTag.Transforms], sig: (0, shared_signatures_1.sig)({ X: built_in_props_1.ArgProp.NoDefault, '...': 0 }) }),
|
|
151
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Map'), built_in_proc_name_1.BuiltInProcName.Apply, { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: (0, shared_signatures_1.sig)({ f: built_in_props_1.ArgProp.Callee, '...': built_in_props_1.ArgProp.Value }) }),
|
|
152
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('outer'), built_in_proc_name_1.BuiltInProcName.Apply, { indexOfFunction: 2, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: (0, shared_signatures_1.sig)({ X: built_in_props_1.ArgProp.Value, Y: built_in_props_1.ArgProp.Value, FUN: built_in_props_1.ArgProp.Callee, '...': built_in_props_1.ArgProp.Value }) }),
|
|
153
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Filter'), built_in_proc_name_1.BuiltInProcName.Apply, { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: (0, shared_signatures_1.sig)({ f: built_in_props_1.ArgProp.Callee, x: built_in_props_1.ArgProp.Value }) }),
|
|
154
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Find', 'Position'), built_in_proc_name_1.BuiltInProcName.Apply, { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: (0, shared_signatures_1.sig)({ f: built_in_props_1.ArgProp.Callee, x: built_in_props_1.ArgProp.Value, right: built_in_props_1.ArgProp.Flag, nomatch: built_in_props_1.ArgProp.Value }) }),
|
|
155
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('replicate'), built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.MayPure, sig: (0, shared_signatures_1.sig)({ n: shared_signatures_1.Forced.Value, expr: built_in_props_1.ArgProp.Value, simplify: built_in_props_1.ArgProp.Flag }) }),
|
|
156
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Reduce'), built_in_proc_name_1.BuiltInProcName.Apply, { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, folds: ['x', 'init'], props: built_in_props_1.CallProp.MayPure, sig: (0, shared_signatures_1.sig)({ f: built_in_props_1.ArgProp.Callee, x: built_in_props_1.ArgProp.Value, init: built_in_props_1.ArgProp.Value, right: built_in_props_1.ArgProp.Flag, accumulate: built_in_props_1.ArgProp.Flag, simplify: built_in_props_1.ArgProp.Flag }) }),
|
|
157
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('rapply'), built_in_proc_name_1.BuiltInProcName.Apply, { indexOfFunction: 1, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: (0, shared_signatures_1.sig)({ object: built_in_props_1.ArgProp.NoDefault, f: built_in_props_1.ArgProp.NoDefault, classes: built_in_props_1.ArgProp.Forced, deflt: built_in_props_1.ArgProp.Forced, how: built_in_props_1.ArgProp.Forced, '...': 0 }) }),
|
|
158
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('print'), built_in_proc_name_1.BuiltInProcName.Default, { keepArgumentOut: true, hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, ambient: shared_configs_1.PrintDispatched, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Generic, tags: [built_in_props_1.SemanticCallTag.Prints], sig: (0, shared_signatures_1.sig)({ x: built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced, '...': shared_signatures_1.Forced.Value }), dispatches: ['show', 'format'] }),
|
|
159
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('message'), built_in_proc_name_1.BuiltInProcName.Default, { ...Signals, signals: ['simpleMessage', 'message', 'condition'] }),
|
|
160
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('warning'), built_in_proc_name_1.BuiltInProcName.Default, { ...Signals, signals: ['simpleWarning', 'warning', 'condition'] }),
|
|
161
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.pkg)("rlang" /* PkgName.Rlang */, 'warn'), ...(0, define_helpers_1.pkg)("msgr" /* PkgName.Msgr */, 'info')], built_in_proc_name_1.BuiltInProcName.Default, Signals),
|
|
162
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('invisible'), built_in_proc_name_1.BuiltInProcName.Default, { keepArgumentOut: true, props: built_in_props_1.CallProp.Pure | built_in_props_1.CallProp.Invisible, sig: (0, shared_signatures_1.sig)({ x: built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced }) }, define_helpers_1.Primitive),
|
|
163
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('force', 'identity'), built_in_proc_name_1.BuiltInProcName.Default, { keepArgumentOut: true, props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ x: built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced }) }),
|
|
164
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('I'), built_in_proc_name_1.BuiltInProcName.Default, { keepArgumentOut: true, props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value }) }),
|
|
165
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('suppressWarnings', 'suppressMessages', 'suppressPackageStartupMessages'), built_in_proc_name_1.BuiltInProcName.Default, { keepArgumentOut: true, sig: (0, shared_signatures_1.sig)({ expr: built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced, classes: built_in_props_1.ArgProp.Value }) }),
|
|
166
|
+
/* it changes into a directory that has to exist, so it reads the files as well */
|
|
167
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('setwd'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { type: "set-working-directory" /* AmbientStateAccessType.SetWorkingDirectory */ }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Ambient | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: (0, shared_signatures_1.sig)({ dir: built_in_props_1.ArgProp.Value | shared_signatures_1.Forced.Resource }) }),
|
|
168
|
+
/* `Sys.umask()` only reports the mask, a mode sets it and hands back the old one invisibly */
|
|
169
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Sys.umask'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { type: "set-state" /* AmbientStateAccessType.SetState */, state: ambient_state_name_1.AmbientStateName.umask, queryWithoutArguments: true }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, sig: (0, shared_signatures_1.sig)({ mode: shared_signatures_1.Forced.Value }) }),
|
|
170
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('set.seed'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { type: "set-rng" /* AmbientStateAccessType.SetRng */ }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.Random], sig: (0, shared_signatures_1.sig)({ seed: shared_signatures_1.Forced.Value, kind: shared_signatures_1.Forced.Value, 'normal.kind': shared_signatures_1.Forced.Value, 'sample.kind': shared_signatures_1.Forced.Value }) }),
|
|
171
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('RNGversion'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { type: "set-rng" /* AmbientStateAccessType.SetRng */, kindFrom: 0 }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.Random], sig: (0, shared_signatures_1.sig)({ vstr: shared_signatures_1.Forced.Value }) }),
|
|
172
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('RNGkind'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { type: "set-rng" /* AmbientStateAccessType.SetRng */, kindFrom: 0 }, props: built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.Random], sig: (0, shared_signatures_1.sig)({ kind: shared_signatures_1.Forced.Value, 'normal.kind': shared_signatures_1.Forced.Value, 'sample.kind': shared_signatures_1.Forced.Value }) }),
|
|
173
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('body', 'formals'), built_in_proc_name_1.BuiltInProcName.Default, { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Lang, sig: (0, shared_signatures_1.sig)({ fun: shared_signatures_1.Forced.Value }) }, define_helpers_1.Primitive),
|
|
174
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('.libPaths'), built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Configures, ambient: { type: "set-state" /* AmbientStateAccessType.SetState */, state: ambient_state_name_1.AmbientStateName.libPaths, queryWithoutArguments: true }, sig: (0, shared_signatures_1.sig)({ new: shared_signatures_1.Forced.Value, 'include.site': shared_signatures_1.Forced.Flag }) }),
|
|
175
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('addTaskCallback'), built_in_proc_name_1.BuiltInProcName.Default, { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Configures, sig: (0, shared_signatures_1.sig)({ f: built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Callee, data: shared_signatures_1.Forced.Value, name: shared_signatures_1.Forced.Value }) }),
|
|
176
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('setHook'), built_in_proc_name_1.BuiltInProcName.Default, { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Configures, sig: (0, shared_signatures_1.sig)({ hookName: shared_signatures_1.Forced.Value, value: built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Callee, action: shared_signatures_1.Forced.Flag }) }),
|
|
177
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('trace'), built_in_proc_name_1.BuiltInProcName.Default, { hasUnknownSideEffects: true, tags: [built_in_props_1.SemanticCallTag.Eval], sig: (0, shared_signatures_1.sig)({ what: built_in_props_1.ArgProp.Value, tracer: built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable, exit: built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable, at: built_in_props_1.ArgProp.Value, print: built_in_props_1.ArgProp.Flag, signature: built_in_props_1.ArgProp.Value, where: built_in_props_1.ArgProp.Value, edit: built_in_props_1.ArgProp.Flag }) }),
|
|
178
|
+
/* `environment()` without an argument is the frame the call sits in, which is how `as.list(environment())` gets at every argument */
|
|
179
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('environment'), built_in_proc_name_1.BuiltInProcName.Default, { hasUnknownSideEffects: true, readsFrame: true, frame: built_in_props_1.ArgProp.Value, tags: [built_in_props_1.SemanticCallTag.Frames], sig: (0, shared_signatures_1.sig)({ fun: shared_signatures_1.Forced.Handle }) }, define_helpers_1.Primitive),
|
|
180
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('.Call', '.External', '.C', '.Fortran', '.External2', '.Call.graphics', '.External.graphics'), built_in_proc_name_1.BuiltInProcName.Default, { hasUnknownSideEffects: true, sig: (0, shared_signatures_1.sig)({ '.NAME': shared_signatures_1.Forced.Value }), markArgsAsMasked: nse_kind_1.NseArguments.First, treatAsFnCall: { '.Call': ['.NAME'], '.External': ['.NAME'], '.C': ['.NAME'], '.Fortran': ['.NAME'], /* the entry points R's graphics engine and internal code call foreign routines through */ '.External2': ['.NAME'], '.Call.graphics': ['.NAME'], '.External.graphics': ['.NAME'] }, props: built_in_props_1.CallProp.Ffi }, define_helpers_1.Primitive),
|
|
181
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('eval'), built_in_proc_name_1.BuiltInProcName.Eval, { includeFunctionCall: true, supportFunctionCall: false, keepEnvironment: true, tags: [built_in_props_1.SemanticCallTag.Eval], sig: (0, shared_signatures_1.sig)({ expr: shared_signatures_1.Forced.Value | built_in_props_1.ArgProp.Injectable, envir: shared_signatures_1.Forced.Value, enclos: shared_signatures_1.Forced.Value }) }, define_helpers_1.Primitive),
|
|
182
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('cat'), built_in_proc_name_1.BuiltInProcName.Default, { hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, ambient: shared_configs_1.ReadPrintingOptions, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes, built_in_props_1.SemanticCallTag.Prints], sig: (0, shared_signatures_1.sig)({ '...': shared_signatures_1.Forced.Value, file: shared_signatures_1.Forced.Resource | built_in_props_1.ArgProp.Optional }) }),
|
|
183
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('switch'), built_in_proc_name_1.BuiltInProcName.Default, { alternativeArgsFrom: 1, useAsProcessor: built_in_proc_name_1.BuiltInProcName.Switch, props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ EXPR: shared_signatures_1.Forced.Value }) }),
|
|
184
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('stop'), built_in_proc_name_1.BuiltInProcName.Default, { ...Throws, signals: ['simpleError', 'error', 'condition'] }),
|
|
185
|
+
/* their classes depend on more than the message (`class = `, a glue template evaluated in the caller) */
|
|
186
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.pkg)("rlang" /* PkgName.Rlang */, 'abort'), ...(0, define_helpers_1.pkg)("cli" /* PkgName.Cli */, 'cli_abort'), ...(0, define_helpers_1.pkg)("R.methodsS3" /* PkgName.RmethodsS3 */, 'throw'), ...(0, define_helpers_1.pkg)("R.oo" /* PkgName.Roo */, 'throw'),
|
|
187
|
+
/* R.oo re-exports R.methodsS3::throw */ ...(0, define_helpers_1.pkg)("purrr" /* PkgName.Purrr */, 'stop_bad_type', 'stop_bad_element_type', 'stop_bad_element_length')], built_in_proc_name_1.BuiltInProcName.Default, Throws),
|
|
188
|
+
/* the block is evaluated whatever happens, the handlers only when something does, and an error keeps the value from coming back */
|
|
189
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('try'), built_in_proc_name_1.BuiltInProcName.Try, { block: 'expr', handlers: {}, sig: (0, shared_signatures_1.sig)({ expr: shared_signatures_1.Forced.Value }) }, define_helpers_1.Primitive),
|
|
190
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.base)('tryCatch'), ...(0, define_helpers_1.pkg)("tryCatchLog" /* PkgName.TryCatchLog */, 'tryCatchLog')], built_in_proc_name_1.BuiltInProcName.Try, { block: 'expr', handlers: { error: 'error', finally: 'finally' }, sig: (0, shared_signatures_1.sig)({ expr: shared_signatures_1.Forced.Value, '...': built_in_props_1.ArgProp.Callee, finally: built_in_props_1.ArgProp.Nse }) }, define_helpers_1.Primitive),
|
|
191
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('withCallingHandlers'), built_in_proc_name_1.BuiltInProcName.Try, { block: 'expr', aborts: false, handlers: {}, sig: (0, shared_signatures_1.sig)({ expr: shared_signatures_1.Forced.Value, '...': built_in_props_1.ArgProp.Callee }) }, define_helpers_1.Primitive),
|
|
192
|
+
/* its handlers run on what the session signals from then on */
|
|
193
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('globalCallingHandlers'), built_in_proc_name_1.BuiltInProcName.Try, { aborts: false, handlers: {}, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Callee }) }, define_helpers_1.Primitive),
|
|
194
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('invokeRestart'), built_in_proc_name_1.BuiltInProcName.Default, { sig: (0, shared_signatures_1.sig)({ r: shared_signatures_1.Forced.Value, '...': shared_signatures_1.Forced.Value }) }, define_helpers_1.Primitive),
|
|
195
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.base)('stopifnot'), ...(0, define_helpers_1.pkg)("assertthat" /* PkgName.AssertThat */, 'assert_that')], built_in_proc_name_1.BuiltInProcName.StopIfNot, { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Throws, sig: (0, shared_signatures_1.sig)({ '...': 0, exprs: built_in_props_1.ArgProp.NoDefault, exprObject: built_in_props_1.ArgProp.NoDefault, local: 0 }) }),
|
|
196
|
+
/* it hands back what it evaluated invisibly, so a top-level `source()` prints nothing of its own */
|
|
197
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('source'), built_in_proc_name_1.BuiltInProcName.Source, { includeFunctionCall: true, forceFollow: false, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Eval], sig: (0, shared_signatures_1.sig)({ file: shared_signatures_1.Forced.Resource | built_in_props_1.ArgProp.Injectable, local: shared_signatures_1.Forced.Flag, echo: shared_signatures_1.Forced.Flag, 'print.eval': built_in_props_1.ArgProp.Flag, exprs: built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable }) }),
|
|
198
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('sys.source'), built_in_proc_name_1.BuiltInProcName.Source, { includeFunctionCall: true, envIn: 'envir', props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Eval], sig: (0, shared_signatures_1.sig)({ file: shared_signatures_1.Forced.Resource | built_in_props_1.ArgProp.Injectable, envir: built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Written }) }),
|
|
199
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.base)('ifelse'), ...(0, define_helpers_1.pkg)("data.table" /* PkgName.DataTable */, 'fifelse'), ...(0, define_helpers_1.pkg)("functools" /* PkgName.Functools */, 'IfElse')], built_in_proc_name_1.BuiltInProcName.IfThenElse, { args: { cond: 'test', yes: 'yes', no: 'no' }, props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ test: built_in_props_1.ArgProp.NoDefault, yes: built_in_props_1.ArgProp.NoDefault, no: built_in_props_1.ArgProp.NoDefault }) }, define_helpers_1.Primitive),
|
|
200
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('get'), built_in_proc_name_1.BuiltInProcName.Get, { keepEnvironment: true, props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value | built_in_props_1.ArgProp.Injectable, pos: built_in_props_1.ArgProp.Flag, envir: shared_signatures_1.Forced.Value, mode: shared_signatures_1.Forced.Flag, inherits: shared_signatures_1.Forced.Flag }) }, { evalHandler: built_in_eval_name_1.BuiltInEvalName.Get }),
|
|
201
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('get0'), built_in_proc_name_1.BuiltInProcName.Get, { keepEnvironment: true, props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value | built_in_props_1.ArgProp.Injectable, envir: shared_signatures_1.Forced.Value, mode: shared_signatures_1.Forced.Flag, inherits: shared_signatures_1.Forced.Flag, ifnotfound: shared_signatures_1.Forced.Value }) }, { evalHandler: built_in_eval_name_1.BuiltInEvalName.Get }),
|
|
202
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('ls', 'objects'), built_in_proc_name_1.BuiltInProcName.EnvContents, { props: built_in_props_1.CallProp.NonDet, sig: (0, shared_signatures_1.sig)({ name: shared_signatures_1.Forced.Value, pos: built_in_props_1.ArgProp.Flag, envir: shared_signatures_1.Forced.Value, 'all.names': built_in_props_1.ArgProp.Flag, pattern: built_in_props_1.ArgProp.Value, sorted: built_in_props_1.ArgProp.Flag }) }),
|
|
203
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('list2env'), built_in_proc_name_1.BuiltInProcName.ListToEnv, { props: built_in_props_1.CallProp.Scope, sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, envir: built_in_props_1.ArgProp.Written }) }),
|
|
204
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('mget'), built_in_proc_name_1.BuiltInProcName.Get, { keepEnvironment: true, props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value | built_in_props_1.ArgProp.Injectable, envir: shared_signatures_1.Forced.Value, mode: shared_signatures_1.Forced.Flag, ifnotfound: shared_signatures_1.Forced.Value, inherits: shared_signatures_1.Forced.Flag }) }),
|
|
205
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('exists'), built_in_proc_name_1.BuiltInProcName.Get, { returnsValue: false, props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value | built_in_props_1.ArgProp.Injectable, where: built_in_props_1.ArgProp.Flag, envir: shared_signatures_1.Forced.Value, frame: built_in_props_1.ArgProp.Flag, mode: shared_signatures_1.Forced.Flag, inherits: shared_signatures_1.Forced.Flag }) }),
|
|
206
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('match.fun'), built_in_proc_name_1.BuiltInProcName.Get, { keepEnvironment: true, props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: (0, shared_signatures_1.sig)({ FUN: shared_signatures_1.Forced.Value | built_in_props_1.ArgProp.Injectable | built_in_props_1.ArgProp.Alias, descend: built_in_props_1.ArgProp.Flag }) }, { evalHandler: built_in_eval_name_1.BuiltInEvalName.Get }),
|
|
207
|
+
/* what a call does to a package is stated by its tags: loading the namespace, attaching it, answering whether it is there */
|
|
208
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('library'), built_in_proc_name_1.BuiltInProcName.Library, { ambient: shared_configs_1.LibrarySearchPath, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage, built_in_props_1.SemanticCallTag.AttachesPackage], sig: (0, shared_signatures_1.sig)({ package: built_in_props_1.ArgProp.NoDefault, '...': 0 }) }),
|
|
209
|
+
/* `require` attaches like `library`, but answers FALSE instead of failing when the package is missing */
|
|
210
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('require'), built_in_proc_name_1.BuiltInProcName.Library, { ambient: shared_configs_1.LibrarySearchPath, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage, built_in_props_1.SemanticCallTag.AttachesPackage, built_in_props_1.SemanticCallTag.ChecksPackage], sig: (0, shared_signatures_1.sig)({ package: built_in_props_1.ArgProp.NoDefault, '...': 0 }) }),
|
|
211
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('attachNamespace'), built_in_proc_name_1.BuiltInProcName.Library, { ambient: (0, shared_configs_1.SetsEntryNamedBy)(ambient_state_name_1.KeyedState.SearchPath, ['ns', 'pos', 'depends', 'exclude', 'include.only'], 'ns'), characterOnly: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage, built_in_props_1.SemanticCallTag.AttachesPackage], sig: (0, shared_signatures_1.sig)({ ns: built_in_props_1.ArgProp.NoDefault, pos: 0, depends: 0, exclude: built_in_props_1.ArgProp.NoDefault, 'include.only': built_in_props_1.ArgProp.NoDefault }) }),
|
|
212
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('requireNamespace'), built_in_proc_name_1.BuiltInProcName.Library, { namespaceOnly: true, characterOnly: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage, built_in_props_1.SemanticCallTag.ChecksPackage], sig: (0, shared_signatures_1.sig)({ package: built_in_props_1.ArgProp.NoDefault, '...': 0 }) }),
|
|
213
|
+
/* other than `requireNamespace`, it hands back the namespace visibly */
|
|
214
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('loadNamespace'), built_in_proc_name_1.BuiltInProcName.Library, { namespaceOnly: true, characterOnly: true, props: built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage], sig: (0, shared_signatures_1.sig)({ package: built_in_props_1.ArgProp.NoDefault, '...': 0 }) }),
|
|
215
|
+
/* they only look whether a package is installed, nothing is loaded */
|
|
216
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.base)('find.package'), ...(0, define_helpers_1.utils)('installed.packages', 'packageVersion', 'packageDescription')], built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Ambient, tags: [built_in_props_1.SemanticCallTag.ChecksPackage], sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
217
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('assign'), built_in_proc_name_1.BuiltInProcName.Assignment, { targetVariable: true, mayHaveMoreArgs: true, environmentArg: 'envir', props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: (0, shared_signatures_1.sig)({ x: built_in_props_1.ArgProp.Value, value: built_in_props_1.ArgProp.Value, pos: built_in_props_1.ArgProp.Flag, envir: built_in_props_1.ArgProp.Written, inherits: built_in_props_1.ArgProp.Flag }) }, define_helpers_1.Primitive),
|
|
218
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('makeActiveBinding'), built_in_proc_name_1.BuiltInProcName.Assignment, { targetVariable: true, mayHaveMoreArgs: true, callsSource: true, environmentArg: 'env', props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: (0, shared_signatures_1.sig)({ sym: built_in_props_1.ArgProp.Value, fun: built_in_props_1.ArgProp.Callee, env: built_in_props_1.ArgProp.Written }) }, define_helpers_1.Primitive),
|
|
219
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('delayedAssign'), built_in_proc_name_1.BuiltInProcName.Assignment, { keepEnvironment: true, quoteSource: true, targetVariable: true, mayHaveMoreArgs: true, environmentArg: 'assign.env', props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, sig: (0, shared_signatures_1.sig)({ x: built_in_props_1.ArgProp.NoDefault, value: built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Nse, 'eval.env': shared_signatures_1.Forced.Value, 'assign.env': built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Written }) }, define_helpers_1.Primitive),
|
|
220
|
+
/* registers the method of an S3 class, which the dispatch finds after one bound by its name */
|
|
221
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('.S3method'), built_in_proc_name_1.BuiltInProcName.AssignmentLike, { targetVariable: true, makeMaybe: true, registers: true, target: { idx: 0, name: 'generic' }, targetClass: { idx: 1, name: 'class' }, source: { idx: 2, name: 'method' }, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: (0, shared_signatures_1.sig)({ generic: built_in_props_1.ArgProp.Value, class: built_in_props_1.ArgProp.Value, method: built_in_props_1.ArgProp.Value }) }),
|
|
222
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('registerS3method'), built_in_proc_name_1.BuiltInProcName.AssignmentLike, { targetVariable: true, makeMaybe: true, registers: true, target: { idx: 0, name: 'genname' }, targetClass: { idx: 1, name: 'class' }, source: { idx: 2, name: 'method' }, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: (0, shared_signatures_1.sig)({ genname: built_in_props_1.ArgProp.Value, class: built_in_props_1.ArgProp.Value, method: built_in_props_1.ArgProp.Value, envir: built_in_props_1.ArgProp.Written }) }),
|
|
223
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('quote'), built_in_proc_name_1.BuiltInProcName.Quote, { quoteArgumentsWithIndex: 0, keepEnvironment: true, props: built_in_props_1.CallProp.Lang, sig: (0, shared_signatures_1.sig)({ expr: built_in_props_1.ArgProp.Nse }) }, define_helpers_1.Primitive),
|
|
224
|
+
/* `bquote` evaluates the operand of `.()` */
|
|
225
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('bquote'), built_in_proc_name_1.BuiltInProcName.Quote, { quoteArgumentsWithIndex: 0, unquote: built_in_kinds_1.Unquote.Bquote, keepEnvironment: true, props: built_in_props_1.CallProp.Lang, sig: (0, shared_signatures_1.sig)({ expr: built_in_props_1.ArgProp.Nse }) }, define_helpers_1.Primitive),
|
|
226
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('substitute'), built_in_proc_name_1.BuiltInProcName.Quote, { quoteArgumentsWithIndex: 0, envArgIndex: 1, keepEnvironment: true, props: built_in_props_1.CallProp.Lang, sig: (0, shared_signatures_1.sig)({ expr: built_in_props_1.ArgProp.Nse, env: built_in_props_1.ArgProp.Value }) }, define_helpers_1.Primitive),
|
|
227
|
+
/* `local(expr)` evaluates `expr` in a frame of its own and hands its value back */
|
|
228
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('local'), built_in_proc_name_1.BuiltInProcName.Local, { args: { env: 'envir', expr: 'expr' }, sig: (0, shared_signatures_1.sig)({ expr: built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced, envir: built_in_props_1.ArgProp.Written }) }),
|
|
229
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('with'), built_in_proc_name_1.BuiltInProcName.With, { sig: shared_configs_1.WithSig }),
|
|
230
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('within'), built_in_proc_name_1.BuiltInProcName.With, { tags: [built_in_props_1.SemanticCallTag.Transforms], sig: shared_configs_1.WithSig }),
|
|
231
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.base)('new.env'), ...(0, define_helpers_1.pkg)("rlang" /* PkgName.Rlang */, 'new_environment')], built_in_proc_name_1.BuiltInProcName.NewEnv, { sig: (0, shared_signatures_1.sig)({ hash: built_in_props_1.ArgProp.Forced, parent: built_in_props_1.ArgProp.Forced, size: built_in_props_1.ArgProp.Forced }) }, define_helpers_1.Primitive),
|
|
232
|
+
/* env-returning builtins pointing into the current search-path stack (`e <- globalenv(); e$x`) */
|
|
233
|
+
(0, define_helpers_1.fn)(Object.entries(shared_configs_1.StackEnvBuiltins).filter(([n, kind]) => !n.startsWith('.') && (kind === shared_configs_1.StackEnvKind.Global || kind === shared_configs_1.StackEnvKind.Base || kind === shared_configs_1.StackEnvKind.Empty)).map(([n]) => identifier_1.Identifier.from([n, "base" /* PkgName.Base */])), built_in_proc_name_1.BuiltInProcName.StackEnv, {}, define_helpers_1.Primitive),
|
|
234
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('parent.env', 'environmentName', 'as.environment', 'pos.to.env'), built_in_proc_name_1.BuiltInProcName.Default, {}, define_helpers_1.Primitive),
|
|
235
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('parent.frame', 'topenv'), built_in_proc_name_1.BuiltInProcName.Default, { tags: [built_in_props_1.SemanticCallTag.Frames] }, define_helpers_1.Primitive),
|
|
236
|
+
/* `sys.frame(sys.nframe())` is the own frame written the long way round, and its values are there to be read */
|
|
237
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('sys.frame', 'sys.frames'), built_in_proc_name_1.BuiltInProcName.Default, { frame: built_in_props_1.ArgProp.Value, tags: [built_in_props_1.SemanticCallTag.Frames] }, define_helpers_1.Primitive),
|
|
238
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('load'), built_in_proc_name_1.BuiltInProcName.Load, { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: (0, shared_signatures_1.sig)({ file: built_in_props_1.ArgProp.Resource }) }),
|
|
239
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('attach'), built_in_proc_name_1.BuiltInProcName.Attach, { ambient: shared_configs_1.AttachSearchPath, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, sig: (0, shared_signatures_1.sig)({ what: built_in_props_1.ArgProp.NoDefault, pos: built_in_props_1.ArgProp.Forced, name: built_in_props_1.ArgProp.Forced, 'warn.conflicts': built_in_props_1.ArgProp.Forced }) }),
|
|
240
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('unloadNamespace'), built_in_proc_name_1.BuiltInProcName.Detach, { ambient: (0, shared_configs_1.SetsEntryNamedBy)(ambient_state_name_1.KeyedState.SearchPath, ['ns'], 'ns'), props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.DetachesPackage], sig: (0, shared_signatures_1.sig)({ ns: built_in_props_1.ArgProp.Forced }) }),
|
|
241
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('detach'), built_in_proc_name_1.BuiltInProcName.Detach, { ambient: shared_configs_1.DetachSearchPath, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.DetachesPackage], sig: (0, shared_signatures_1.sig)({ name: 0, pos: 0, unload: built_in_props_1.ArgProp.Flag, 'character.only': built_in_props_1.ArgProp.Flag, force: built_in_props_1.ArgProp.Flag }) }),
|
|
242
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('do.call'), built_in_proc_name_1.BuiltInProcName.Apply, { indexOfFunction: 0, unquoteFunction: true, isTheCall: true, props: built_in_props_1.CallProp.MayPure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: (0, shared_signatures_1.sig)({ what: built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Callee | built_in_props_1.ArgProp.Injectable, args: shared_signatures_1.Forced.Value }) }, define_helpers_1.Primitive),
|
|
243
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('UseMethod'), built_in_proc_name_1.BuiltInProcName.S3Dispatch, { args: { generic: 'generic', object: 'object' }, props: built_in_props_1.CallProp.Generic, sig: (0, shared_signatures_1.sig)({ generic: built_in_props_1.ArgProp.NoDefault, object: built_in_props_1.ArgProp.NoDefault }) }, define_helpers_1.Primitive),
|
|
244
|
+
/* evaluates the arguments of the generic it is in to dispatch on their classes */
|
|
245
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('standardGeneric'), built_in_proc_name_1.BuiltInProcName.S3Dispatch, { readsFormals: true, props: built_in_props_1.CallProp.Generic, sig: (0, shared_signatures_1.sig)({ f: built_in_props_1.ArgProp.NoDefault, fdef: built_in_props_1.ArgProp.Forced }) }, define_helpers_1.Primitive),
|
|
246
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('NextMethod'), built_in_proc_name_1.BuiltInProcName.S3Dispatch, { next: true, props: built_in_props_1.CallProp.Generic, sig: (0, shared_signatures_1.sig)({ generic: 0, object: 0, '...': 0 }) }, define_helpers_1.Primitive),
|
|
247
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Negate'), built_in_proc_name_1.BuiltInProcName.S7MakeConstructor, { wrapIndex: 0, props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ f: built_in_props_1.ArgProp.Callee }) }, define_helpers_1.Primitive),
|
|
248
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Vectorize'), built_in_proc_name_1.BuiltInProcName.S7MakeConstructor, { wrapIndex: 0, props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ FUN: built_in_props_1.ArgProp.Callee }) }, define_helpers_1.Primitive),
|
|
249
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('.Primitive', '.Internal'), built_in_proc_name_1.BuiltInProcName.Apply, { indexOfFunction: 0, unquoteFunction: true, resolveInEnvironment: 'global' }, define_helpers_1.Primitive),
|
|
250
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('list'), built_in_proc_name_1.BuiltInProcName.List, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Value }) }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.List }),
|
|
251
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Recall'), built_in_proc_name_1.BuiltInProcName.Recall, { libFn: true, sig: (0, shared_signatures_1.sig)({ '...': 0 }) }),
|
|
252
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('sys.function'), built_in_proc_name_1.BuiltInProcName.Recall, { libFn: true, unknownOnNonZeroArg: true, props: built_in_props_1.CallProp.Lang, frame: built_in_props_1.ArgProp.Nse, tags: [built_in_props_1.SemanticCallTag.Frames], sig: (0, shared_signatures_1.sig)({ which: built_in_props_1.ArgProp.Forced }) }),
|
|
253
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('c'), built_in_proc_name_1.BuiltInProcName.Vector, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Value }) }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Vector }),
|
|
254
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('sys.on.exit', 'asNamespace', 'unname'), built_in_proc_name_1.BuiltInProcName.Default, { hasUnknownSideEffects: true }),
|
|
255
|
+
/* they create, move, or delete files */
|
|
256
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.base)('dir.create'), ...(0, define_helpers_1.pkg)("fs" /* PkgName.Fs */, 'dir_create')], built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: (0, shared_signatures_1.sig)({ path: shared_signatures_1.Forced.Resource, '...': built_in_props_1.ArgProp.Flag }) }),
|
|
257
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('unlink'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Resource, recursive: built_in_props_1.ArgProp.Flag, force: built_in_props_1.ArgProp.Flag, expand: built_in_props_1.ArgProp.Flag }) }),
|
|
258
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Sys.chmod'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: (0, shared_signatures_1.sig)({ paths: shared_signatures_1.Forced.Resource, mode: built_in_props_1.ArgProp.Flag, use_umask: built_in_props_1.ArgProp.Flag }) }),
|
|
259
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.base)('file.create'), ...(0, define_helpers_1.pkg)("fs" /* PkgName.Fs */, 'file_create', 'file_touch')], built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: (0, shared_signatures_1.sig)({ '...': shared_signatures_1.Forced.Resource, showWarnings: built_in_props_1.ArgProp.Flag }) }),
|
|
260
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.base)('file.remove', 'Sys.junction'), ...(0, define_helpers_1.pkg)("fs" /* PkgName.Fs */, 'file_delete', 'dir_delete', 'link_delete')], built_in_proc_name_1.BuiltInProcName.Default, { hasUnknownSideEffects: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes] }),
|
|
261
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('file.copy', 'file.link', 'file.symlink'), built_in_proc_name_1.BuiltInProcName.Default, { tags: shared_configs_1.CopiesFiles, sig: (0, shared_signatures_1.sig)({ from: shared_signatures_1.Forced.Resource, to: shared_signatures_1.Forced.Resource | built_in_props_1.ArgProp.Written, overwrite: built_in_props_1.ArgProp.Flag, recursive: built_in_props_1.ArgProp.Flag, 'copy.mode': built_in_props_1.ArgProp.Flag, 'copy.date': built_in_props_1.ArgProp.Flag }) }),
|
|
262
|
+
/* a moved file is gone from where it was */
|
|
263
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('file.rename'), built_in_proc_name_1.BuiltInProcName.Default, { hasUnknownSideEffects: true, tags: shared_configs_1.CopiesFiles, sig: (0, shared_signatures_1.sig)({ from: shared_signatures_1.Forced.Resource, to: shared_signatures_1.Forced.Resource | built_in_props_1.ArgProp.Written }) }),
|
|
264
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('file.append'), built_in_proc_name_1.BuiltInProcName.Default, { tags: shared_configs_1.CopiesFiles, sig: (0, shared_signatures_1.sig)({ file1: shared_signatures_1.Forced.Resource | built_in_props_1.ArgProp.Written, file2: shared_signatures_1.Forced.Resource }) }),
|
|
265
|
+
/* `sink` diverts the output, `par`/`tpar` set (or query) the parameters of the current device */
|
|
266
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('sink'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { type: "set-state" /* AmbientStateAccessType.SetState */, state: ambient_state_name_1.AmbientStateName.sink }, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: (0, shared_signatures_1.sig)({ file: built_in_props_1.ArgProp.Resource }) }),
|
|
267
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('on.exit'), built_in_proc_name_1.BuiltInProcName.RegisterHook, { props: built_in_props_1.CallProp.Invisible, hook: built_in_kinds_1.KnownHooks.OnFnExit, args: { expr: { idx: 0, name: 'expr' }, add: { idx: 1, name: 'add', default: false }, after: { idx: 2, name: 'after', default: true } }, sig: (0, shared_signatures_1.sig)({ expr: built_in_props_1.ArgProp.Nse, add: built_in_props_1.ArgProp.Forced, after: built_in_props_1.ArgProp.Forced }) }, define_helpers_1.Primitive),
|
|
268
|
+
/* `parse(text=)` turns text into an expression, with `file=` it reads that file */
|
|
269
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('parse', 'str2lang', 'str2expression'), built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
270
|
+
/* they answer with whatever is on disk when they run */
|
|
271
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.base)('list.files', 'dir', 'list.dirs'), ...(0, define_helpers_1.pkg)("fs" /* PkgName.Fs */, 'dir_ls')], built_in_proc_name_1.BuiltInProcName.Default, { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Glob], sig: (0, shared_signatures_1.sig)({ path: shared_signatures_1.Forced.Resource }) }),
|
|
272
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Sys.glob'), built_in_proc_name_1.BuiltInProcName.Default, { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Glob], sig: (0, shared_signatures_1.sig)({ paths: shared_signatures_1.Forced.Resource }) }),
|
|
273
|
+
/* language objects */
|
|
274
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('enquote', 'call', 'as.call', 'as.expression', 'as.name', 'as.symbol', 'args', 'deparse', 'deparse1'), built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Lang, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
275
|
+
/* they hand back the call they sit in, so the function around them reads its arguments as written, unevaluated */
|
|
276
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('match.call', 'sys.call', 'sys.calls'), built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Lang | built_in_props_1.CallProp.NonDet, frame: built_in_props_1.ArgProp.Nse, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
277
|
+
/* `nargs()` counts what the call supplied, so it sees no argument, only whether there was one */
|
|
278
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('nargs', 'sys.nframe'), built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Lang | built_in_props_1.CallProp.NonDet, frame: built_in_props_1.ArgProp.Presence, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
279
|
+
/* they read the dots of the function they are called in, `...elt(2)` its second element */
|
|
280
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('...elt', '...length', '...names'), built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Pure, readsDots: true, sig: (0, shared_signatures_1.sig)({ n: built_in_props_1.ArgProp.Value }) }),
|
|
281
|
+
/* `alist` keeps its arguments unevaluated */
|
|
282
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('alist'), built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Lang, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Nse }) }),
|
|
283
|
+
/* `evalq(expr, envir)` is `local(expr, envir)` that runs in the calling frame without `envir` */
|
|
284
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('evalq'), built_in_proc_name_1.BuiltInProcName.Local, { args: { expr: 'expr', env: 'envir' }, inCaller: true, props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: (0, shared_signatures_1.sig)({ expr: built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Injectable, envir: shared_signatures_1.Forced.Value }) }),
|
|
285
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('eval.parent'), built_in_proc_name_1.BuiltInProcName.Eval, { includeFunctionCall: true, supportFunctionCall: false, keepEnvironment: false, parameterNames: ['expr', 'n'], parentFrame: true, props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: (0, shared_signatures_1.sig)({ expr: shared_signatures_1.Forced.Value | built_in_props_1.ArgProp.Injectable, n: shared_signatures_1.Forced.Value }) }),
|
|
286
|
+
/* native code */
|
|
287
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('dyn.load'), built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Ffi | built_in_props_1.CallProp.Invisible, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
288
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('getNativeSymbolInfo'), built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Ffi, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
289
|
+
/* ambient state: options, environment variables, the clock, the session itself */
|
|
290
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Sys.getenv'), built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Ambient, ambient: { type: "read-keyed" /* AmbientStateAccessType.ReadKeyed */, state: ambient_state_name_1.KeyedState.Env, keys: { from: 'parameter', signature: ['x', 'unset', 'names', 'allowEmpty'], names: ['x'] } }, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
291
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Sys.info', 'Sys.getpid', 'getRversion', 'R.Version', 'Sys.time', 'Sys.Date', 'Sys.timezone', 'date', 'proc.time', 'interactive'), built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Ambient, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
292
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('getwd'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { type: "get-working-directory" /* AmbientStateAccessType.GetWorkingDirectory */ }, props: built_in_props_1.CallProp.Ambient, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
293
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.base)('search', 'searchpaths'), ...(0, define_helpers_1.utils)('find', 'apropos')], built_in_proc_name_1.BuiltInProcName.Default, { ambient: { type: "read-state" /* AmbientStateAccessType.ReadState */, state: ambient_state_name_1.AmbientStateName.allOf(ambient_state_name_1.KeyedState.SearchPath) }, props: built_in_props_1.CallProp.Ambient, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
294
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('getOption'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { type: "get-option" /* AmbientStateAccessType.GetOption */ }, props: built_in_props_1.CallProp.Ambient, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
295
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('commandArgs'), built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Ambient, tags: [built_in_props_1.SemanticCallTag.CommandLine], sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
296
|
+
/* system commands */
|
|
297
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('system'), built_in_proc_name_1.BuiltInProcName.Default, { tags: [built_in_props_1.SemanticCallTag.Process], sig: (0, shared_signatures_1.sig)({ command: shared_signatures_1.Forced.Value | built_in_props_1.ArgProp.Injectable, intern: shared_signatures_1.Forced.Flag, 'ignore.stdout': shared_signatures_1.Forced.Flag, 'ignore.stderr': shared_signatures_1.Forced.Flag, wait: shared_signatures_1.Forced.Flag, input: shared_signatures_1.Forced.Value, 'show.output.on.console': built_in_props_1.ArgProp.Flag, minimized: built_in_props_1.ArgProp.Flag, invisible: built_in_props_1.ArgProp.Flag, timeout: shared_signatures_1.Forced.Value }) }),
|
|
298
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('system2'), built_in_proc_name_1.BuiltInProcName.Default, { tags: [built_in_props_1.SemanticCallTag.Process], sig: (0, shared_signatures_1.sig)({ command: shared_signatures_1.Forced.Value | built_in_props_1.ArgProp.Injectable, args: shared_signatures_1.Forced.Value | built_in_props_1.ArgProp.Injectable, stdout: shared_signatures_1.Forced.Value, stderr: shared_signatures_1.Forced.Value, stdin: built_in_props_1.ArgProp.Value, input: shared_signatures_1.Forced.Value, env: shared_signatures_1.Forced.Value | built_in_props_1.ArgProp.Injectable, wait: shared_signatures_1.Forced.Flag, minimized: built_in_props_1.ArgProp.Flag, invisible: built_in_props_1.ArgProp.Flag, timeout: shared_signatures_1.Forced.Value }) }),
|
|
299
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('shell'), built_in_proc_name_1.BuiltInProcName.Default, { tags: [built_in_props_1.SemanticCallTag.Process], sig: (0, shared_signatures_1.sig)({ cmd: shared_signatures_1.Forced.Value | built_in_props_1.ArgProp.Injectable, shell: shared_signatures_1.Forced.Value, flag: shared_signatures_1.Forced.Value, intern: shared_signatures_1.Forced.Flag, wait: shared_signatures_1.Forced.Flag, translate: shared_signatures_1.Forced.Flag, mustWork: built_in_props_1.ArgProp.Flag, '...': shared_signatures_1.Forced.Value }) }),
|
|
300
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('shell.exec'), built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Process], sig: (0, shared_signatures_1.sig)({ file: shared_signatures_1.Forced.Resource | built_in_props_1.ArgProp.Injectable }) }),
|
|
301
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('pipe'), built_in_proc_name_1.BuiltInProcName.Default, { tags: [built_in_props_1.SemanticCallTag.Opens, built_in_props_1.SemanticCallTag.Process], sig: (0, shared_signatures_1.sig)({ description: shared_signatures_1.Forced.Resource | built_in_props_1.ArgProp.Injectable, open: shared_signatures_1.Forced.Flag, encoding: shared_signatures_1.Forced.Value }) }),
|
|
302
|
+
/* whatever the user types, picks, or sends along with a request */
|
|
303
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.base)('readline', 'file.choose'), ...(0, define_helpers_1.utils)('askYesNo', 'choose.files', 'choose.dir', 'menu', 'select.list', 'winDialogString', 'winDialog')], built_in_proc_name_1.BuiltInProcName.Default, { tags: [built_in_props_1.SemanticCallTag.User], sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
304
|
+
/* they only make up a path, they do not go near the file system, so `File` would be wrong here */
|
|
305
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('tempfile', 'tempdir'), built_in_proc_name_1.BuiltInProcName.Default, { tags: [built_in_props_1.SemanticCallTag.TempFile], sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
306
|
+
/* they are all mapped to `<-` but we separate super assignments */
|
|
307
|
+
/* R dispatches these on the class of the target, to the `names<-.<class>` methods the code writes */
|
|
308
|
+
(0, define_helpers_1.replacement)(['[', '[[', ...(0, define_helpers_1.base)('names', 'dimnames', 'levels', 'length', 'dim')], ['<-', '<<-'], { readIndices: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Generic }),
|
|
309
|
+
(0, define_helpers_1.replacement)((0, define_helpers_1.base)('attributes', 'attr', 'class', 'rownames', 'colnames', 'environment'), ['<-', '<<-'], { readIndices: true, props: built_in_props_1.CallProp.Scope }),
|
|
310
|
+
(0, define_helpers_1.replacement)((0, define_helpers_1.base)('body', 'formals'), ['<-', '<<-'], { readIndices: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Lang, sig: (0, shared_signatures_1.sig)({ fun: built_in_props_1.ArgProp.Value, value: built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable }) }),
|
|
311
|
+
/* the string and shape functions R declares formals for, restated one by one: the group above gives them what they do, this gives them the arguments they do it with (the names are R's own) */
|
|
312
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('sprintf'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ fmt: shared_signatures_1.Forced.Value, '...': shared_signatures_1.Forced.Value }), dispatches: ['as.character'] }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn }),
|
|
313
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('format'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { ambient: shared_configs_1.PrintDispatched, props: built_in_props_1.CallProp.Pure, sig: shared_signatures_1.SigXDots }, { overrides: true, assumePrimitive: true }),
|
|
314
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('grep'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ pattern: shared_signatures_1.Forced.Value, x: shared_signatures_1.Forced.Value, 'ignore.case': shared_signatures_1.Forced.Flag, perl: shared_signatures_1.Forced.Flag, value: shared_signatures_1.Forced.Flag, fixed: shared_signatures_1.Forced.Flag, useBytes: shared_signatures_1.Forced.Flag, invert: shared_signatures_1.Forced.Flag }) }, { overrides: true, assumePrimitive: true }),
|
|
315
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('sub', 'gsub'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Edits], sig: (0, shared_signatures_1.sig)({ pattern: shared_signatures_1.Forced.Value, replacement: shared_signatures_1.Forced.Value, x: shared_signatures_1.Forced.Value, 'ignore.case': shared_signatures_1.Forced.Flag, perl: shared_signatures_1.Forced.Flag, fixed: shared_signatures_1.Forced.Flag, useBytes: shared_signatures_1.Forced.Flag }) }, { overrides: true, assumePrimitive: true }),
|
|
316
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('substr'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Edits], sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, start: shared_signatures_1.Forced.Value, stop: shared_signatures_1.Forced.Value }) }, { overrides: true, assumePrimitive: true }),
|
|
317
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('substring'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Edits], sig: (0, shared_signatures_1.sig)({ text: shared_signatures_1.Forced.Value, first: shared_signatures_1.Forced.Value, last: shared_signatures_1.Forced.Value }) }, { overrides: true, assumePrimitive: true }),
|
|
318
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('strsplit'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Edits], sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, split: shared_signatures_1.Forced.Value, fixed: shared_signatures_1.Forced.Flag, perl: shared_signatures_1.Forced.Flag, useBytes: shared_signatures_1.Forced.Flag }) }, { overrides: true, assumePrimitive: true }),
|
|
319
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('trimws'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Edits], sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, which: shared_signatures_1.Forced.Flag, whitespace: shared_signatures_1.Forced.Value }) }, { overrides: true, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn }),
|
|
320
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('chartr', 'regmatches'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Edits] }, { overrides: true, assumePrimitive: true }),
|
|
321
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('strtoi'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, base: shared_signatures_1.Forced.Value }) }, { overrides: true, assumePrimitive: true }),
|
|
322
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('matrix'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ data: shared_signatures_1.Forced.Value, nrow: shared_signatures_1.Forced.Value, ncol: shared_signatures_1.Forced.Value, byrow: shared_signatures_1.Forced.Flag, dimnames: shared_signatures_1.Forced.Value }) }, { overrides: true, assumePrimitive: true }),
|
|
323
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('subset', 'transform'), built_in_proc_name_1.BuiltInProcName.Default, { markArgsAsMasked: nse_kind_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Transforms], sig: (0, shared_signatures_1.sig)({ x: built_in_props_1.ArgProp.Value, '...': built_in_props_1.ArgProp.Value }) }, define_helpers_1.Overrides),
|
|
324
|
+
/* these share the `f(x, ...)` shape above, but R puts one more formal before the `...`: leaving it out would shift every position after it, so each names its own */
|
|
325
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('sort'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Transforms], sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, decreasing: shared_signatures_1.Forced.Flag, '...': shared_signatures_1.Forced.Value }) }, { overrides: true, assumePrimitive: true }),
|
|
326
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('unique'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Transforms], sig: shared_signatures_1.SigUnique }, { overrides: true, assumePrimitive: true }),
|
|
327
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('duplicated'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: shared_signatures_1.SigUnique }, { overrides: true, assumePrimitive: true }),
|
|
328
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('as.data.frame'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, 'row.names': shared_signatures_1.Forced.Value, optional: shared_signatures_1.Forced.Flag, '...': shared_signatures_1.Forced.Value }) }, { overrides: true, assumePrimitive: true }),
|
|
329
|
+
/* the ones the earlier list left short where a reader would notice */
|
|
330
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('nchar'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: (0, shared_signatures_1.sig)({ x: built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Shape, type: shared_signatures_1.Forced.Value, allowNA: shared_signatures_1.Forced.Flag, keepNA: shared_signatures_1.Forced.Flag }) }, { overrides: true, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn }),
|
|
331
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('grepl'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: (0, shared_signatures_1.sig)({ pattern: shared_signatures_1.Forced.Value, x: shared_signatures_1.Forced.Value, 'ignore.case': shared_signatures_1.Forced.Flag, perl: shared_signatures_1.Forced.Flag, fixed: shared_signatures_1.Forced.Flag, useBytes: shared_signatures_1.Forced.Flag }) }, { overrides: true, assumePrimitive: true }),
|
|
332
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('match'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, table: shared_signatures_1.Forced.Value, nomatch: shared_signatures_1.Forced.Value, incomparables: shared_signatures_1.Forced.Value }) }, { overrides: true, assumePrimitive: true }),
|
|
333
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('lengths'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: (0, shared_signatures_1.sig)({ x: built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Shape, 'use.names': shared_signatures_1.Forced.Flag }) }, { overrides: true, assumePrimitive: true }),
|
|
334
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('readLines'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: (0, shared_signatures_1.sig)({ con: shared_signatures_1.Forced.Resource | built_in_props_1.ArgProp.Optional, n: shared_signatures_1.Forced.Value, ok: shared_signatures_1.Forced.Flag, warn: shared_signatures_1.Forced.Flag, encoding: shared_signatures_1.Forced.Value, skipNul: shared_signatures_1.Forced.Flag }) }, define_helpers_1.Overrides),
|
|
335
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('writeLines'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes, built_in_props_1.SemanticCallTag.Prints], sig: (0, shared_signatures_1.sig)({ text: shared_signatures_1.Forced.Value, con: shared_signatures_1.Forced.Resource | built_in_props_1.ArgProp.Optional, sep: shared_signatures_1.Forced.Value, useBytes: shared_signatures_1.Forced.Flag }) }, define_helpers_1.Overrides),
|
|
336
|
+
/* deprecated and defunct functions of base R */
|
|
337
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('plclust', 'La.eigen', 'tetragamma', 'pentagamma', 'package.description', 'gammaCody', 'manglePackageName', '.readRDS', '.saveRDS', 'mem.limits', 'trySilent', 'traceOn', 'traceOff', 'print.coefmat', 'anovalist.lm', 'lm.fit.null', 'lm.wfit.null', 'glm.fit.null', 'tkcmd', 'tkfile.tail', 'tkfile.dir', 'tkopen', 'tkclose', 'tkputs', 'tkread', 'Rd_parse', 'CRAN.packages', 'zip.file.extract', 'real', 'as.real', 'is.real', '.find.package', '.path.package'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, define_helpers_1.Deprecated),
|
|
338
|
+
];
|
|
339
|
+
//# sourceMappingURL=base-functions.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { BuiltInProcName } from '../built-in-proc-name';
|
|
2
|
+
/** The built-in definitions of the language itself: control flow, functions, environments, quoting, and evaluation. */
|
|
3
|
+
export declare const LanguageDefinitions: [import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.DefaultReadAllArgs>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.DefaultReadAllArgs>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.DefaultReadAllArgs>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.ExpressionList>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Access>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Access>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Access>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Access>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.NamespaceAccess>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.NamespaceAccess>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.IfThenElse>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Pipe>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Pipe>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.FunctionDefinition>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.ForLoop>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.RepeatLoop>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.WhileLoop>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.Default>, import("../built-in-config").BuiltInReplacementDefinition, import("../built-in-config").BuiltInFunctionDefinition<BuiltInProcName.DefaultReadAllArgs>];
|