@eagleoutice/flowr 2.17.4 → 2.17.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -89
- package/abstract-interpretation/absint-inference.d.ts +4 -4
- package/abstract-interpretation/absint-inference.js +12 -13
- package/abstract-interpretation/abstract-semantics.d.ts +2 -1
- package/abstract-interpretation/branch-paths-interpreter.js +60 -0
- package/abstract-interpretation/branch-paths.d.ts +60 -0
- package/abstract-interpretation/branch-paths.js +120 -0
- 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.d.ts +6 -1
- package/abstract-interpretation/data-frame/dataframe-semantics.js +67 -16
- 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 +18 -16
- package/abstract-interpretation/domains/bounded-set-domain.d.ts +1 -1
- 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/core.js +51 -0
- 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/cfg-dead-code.js +12 -7
- 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/packed.d.ts +10 -0
- package/data/packed.js +33 -0
- package/data/r-base-guards.generated.d.ts +7 -0
- package/data/r-base-guards.generated.js +12 -0
- package/data/r-base-primitives.generated.d.ts +2 -1
- package/data/r-datasets.generated.d.ts +4 -0
- package/data/r-datasets.generated.js +10 -0
- package/data/r-formals.generated.d.ts +4 -0
- package/data/r-formals.generated.js +10 -0
- package/data/r-group-method-guards.generated.d.ts +3 -0
- package/data/r-group-method-guards.generated.js +8 -0
- package/dataflow/cluster.js +1 -2
- package/dataflow/environments/ambient-effect.d.ts +1000 -0
- package/dataflow/environments/ambient-effect.js +234 -0
- package/dataflow/environments/ambient-state-name.d.ts +59 -24
- package/dataflow/environments/ambient-state-name.js +65 -21
- package/dataflow/environments/apply-kill.d.ts +9 -20
- package/dataflow/environments/apply-kill.js +62 -29
- 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 +69 -0
- package/dataflow/environments/built-in-kinds.js +39 -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 +75 -176
- package/dataflow/environments/built-in-props.js +53 -157
- package/dataflow/environments/built-in.d.ts +42 -73
- package/dataflow/environments/built-in.js +49 -93
- 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 +397 -0
- package/dataflow/environments/default-builtin-config/base-language.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/base-language.js +69 -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 +83 -0
- package/dataflow/environments/default-builtin-config/graphics-devices.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/graphics-devices.js +67 -0
- package/dataflow/environments/default-builtin-config/guard-builders.d.ts +16 -0
- package/dataflow/environments/default-builtin-config/guard-builders.js +29 -0
- package/dataflow/environments/default-builtin-config/guards-primitive-lang.d.ts +15 -0
- package/dataflow/environments/default-builtin-config/guards-primitive-lang.js +228 -0
- package/dataflow/environments/default-builtin-config/guards-primitive-ops.d.ts +11 -0
- package/dataflow/environments/default-builtin-config/guards-primitive-ops.js +154 -0
- package/dataflow/environments/default-builtin-config/guards.d.ts +9 -0
- package/dataflow/environments/default-builtin-config/guards.js +211 -0
- package/dataflow/environments/default-builtin-config/index.d.ts +18 -0
- package/dataflow/environments/default-builtin-config/index.js +129 -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 +33 -0
- package/dataflow/environments/default-builtin-config/package-tidyverse.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/package-tidyverse.js +97 -0
- package/dataflow/environments/default-builtin-config/package-utils.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/package-utils.js +38 -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 +33 -0
- package/dataflow/environments/default-builtin-config/r-formals.d.ts +13 -0
- package/dataflow/environments/default-builtin-config/r-formals.js +110 -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 +328 -0
- package/dataflow/environments/default-builtin-config/shared-configs.js +447 -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 +35 -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/diff.js +5 -2
- package/dataflow/environments/environment.d.ts +48 -52
- package/dataflow/environments/environment.js +62 -74
- package/dataflow/environments/group-generics.d.ts +16 -19
- package/dataflow/environments/group-generics.js +28 -15
- package/dataflow/environments/guard-facts.d.ts +169 -0
- package/dataflow/environments/guard-facts.js +26 -0
- package/dataflow/environments/identifier.d.ts +81 -428
- package/dataflow/environments/identifier.js +39 -145
- package/dataflow/environments/pkg-name.d.ts +198 -0
- package/dataflow/environments/pkg-name.js +3 -0
- package/dataflow/environments/query-fn-props.d.ts +28 -79
- package/dataflow/environments/query-fn-props.js +77 -115
- package/dataflow/environments/removal-marker.d.ts +2 -0
- package/dataflow/environments/removal-marker.js +5 -0
- 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 +25 -30
- package/dataflow/eval/resolve/resolve-field.d.ts +10 -0
- package/dataflow/eval/resolve/resolve-field.js +127 -0
- 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 +4 -7
- package/dataflow/eval/resolve/resolve-strings.js +2 -2
- 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 +111 -48
- 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 +4 -1
- package/dataflow/fn/condition-handlers.js +3 -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 +5 -5
- package/dataflow/fn/frame-reflection.js +24 -16
- package/dataflow/fn/function-props.d.ts +2 -5
- package/dataflow/fn/function-props.js +30 -46
- package/dataflow/fn/function-semantics.d.ts +44 -26
- package/dataflow/fn/function-semantics.js +19 -18
- package/dataflow/fn/guards/built-in-guards.d.ts +112 -0
- package/dataflow/fn/guards/built-in-guards.js +199 -0
- package/dataflow/fn/guards/call-contracts.d.ts +97 -0
- package/dataflow/fn/guards/call-contracts.js +331 -0
- package/dataflow/fn/guards/condition-grouping.d.ts +20 -0
- package/dataflow/fn/guards/condition-grouping.js +135 -0
- package/dataflow/fn/guards/function-guards.d.ts +112 -0
- package/dataflow/fn/guards/function-guards.js +1549 -0
- package/dataflow/fn/guards/group-method-guards.d.ts +28 -0
- package/dataflow/fn/guards/group-method-guards.js +56 -0
- package/dataflow/fn/guards/guard-claims.d.ts +125 -0
- package/dataflow/fn/guards/guard-claims.js +678 -0
- package/dataflow/fn/guards/guard-knowledge.d.ts +41 -0
- package/dataflow/fn/guards/guard-knowledge.js +180 -0
- package/dataflow/fn/guards/guard-term-syntax.d.ts +9 -0
- package/dataflow/fn/guards/guard-term-syntax.js +210 -0
- package/dataflow/fn/guards/guard-term.d.ts +136 -0
- package/dataflow/fn/guards/guard-term.js +550 -0
- package/dataflow/fn/guards/stated-guards.d.ts +13 -0
- package/dataflow/fn/guards/stated-guards.js +35 -0
- package/dataflow/fn/higher-order-function.d.ts +2 -0
- package/dataflow/fn/higher-order-function.js +3 -4
- package/dataflow/fn/strict-function.d.ts +14 -35
- package/dataflow/fn/strict-function.js +183 -146
- package/dataflow/graph/ambient-access.d.ts +54 -0
- package/dataflow/graph/ambient-access.js +86 -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 +54 -188
- package/dataflow/graph/df-helper.js +122 -208
- 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 +50 -97
- package/dataflow/graph/graph.js +72 -75
- 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 +4 -18
- package/dataflow/info.js +3 -1
- package/dataflow/internal/dispatch-linking.d.ts +73 -0
- package/dataflow/internal/dispatch-linking.js +333 -0
- package/dataflow/internal/linker.d.ts +50 -50
- package/dataflow/internal/linker.js +566 -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 +18 -47
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-keys.d.ts +12 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-keys.js +12 -10
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.d.ts +38 -128
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +681 -339
- 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 +78 -45
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.d.ts +17 -19
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +185 -78
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.d.ts +5 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +26 -5
- 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 +438 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-env-contents.js +4 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +40 -57
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +214 -117
- 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 +74 -17
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.d.ts +20 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +420 -115
- 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 +6 -14
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.d.ts +8 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +530 -140
- package/dataflow/internal/process/functions/call/built-in/built-in-get.d.ts +20 -10
- package/dataflow/internal/process/functions/call/built-in/built-in-get.js +98 -13
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.d.ts +2 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +9 -16
- package/dataflow/internal/process/functions/call/built-in/built-in-library.d.ts +14 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +40 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-load.js +18 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-local.d.ts +8 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-local.js +39 -8
- 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-recall.js +4 -0
- 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 +27 -12
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.d.ts +2 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +74 -38
- 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 +9 -27
- package/dataflow/internal/process/functions/call/built-in/built-in-source.js +42 -45
- package/dataflow/internal/process/functions/call/built-in/built-in-special-bin-op.js +3 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +12 -18
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +72 -21
- package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.d.ts +19 -17
- package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +286 -81
- package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +7 -4
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +44 -30
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +723 -115
- 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 +6 -26
- package/dataflow/internal/process/functions/call/known-call-handling.js +6 -16
- 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.d.ts +2 -9
- package/dataflow/internal/process/functions/call/nse.js +6 -13
- package/dataflow/internal/process/functions/call/quoted.d.ts +6 -15
- package/dataflow/internal/process/functions/call/quoted.js +48 -65
- 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/dataflow/processor.d.ts +2 -0
- package/documentation/data/dfg/doc-ambient.d.ts +4 -0
- package/documentation/data/dfg/doc-ambient.js +74 -0
- 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 +15 -3
- package/documentation/wiki-interface.js +2 -1
- package/documentation/wiki-linter.js +27 -3
- package/documentation/wiki-linting-and-testing.js +15 -2
- package/documentation/wiki-query.js +223 -30
- package/index.d.ts +3 -1
- package/index.js +6 -3
- package/linter/linter-executor.js +1 -1
- package/linter/linter-rules.d.ts +78 -9
- package/linter/linter-rules.js +12 -1
- package/linter/linter-util.d.ts +3 -3
- package/linter/linter-util.js +1 -1
- package/linter/rules/call-contracts.d.ts +40 -0
- package/linter/rules/call-contracts.js +56 -0
- package/linter/rules/cmd-check/bogus-return.d.ts +2 -1
- package/linter/rules/cmd-check/bogus-return.js +1 -1
- package/linter/rules/cmd-check/call-arguments.d.ts +3 -2
- package/linter/rules/cmd-check/call-arguments.js +10 -11
- package/linter/rules/cmd-check/cmd-check-util.d.ts +8 -13
- package/linter/rules/cmd-check/cmd-check-util.js +0 -28
- package/linter/rules/cmd-check/dependency-declaration.d.ts +2 -1
- package/linter/rules/cmd-check/dependency-declaration.js +1 -1
- 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-hooks.js +2 -1
- package/linter/rules/cmd-check/package-runtime.js +2 -2
- 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 +3 -2
- package/linter/rules/code-clones.d.ts +57 -0
- package/linter/rules/code-clones.js +53 -0
- package/linter/rules/deprecated-functions.js +3 -6
- package/linter/rules/file-path-validity.js +6 -4
- package/linter/rules/function-finder-util.d.ts +4 -2
- package/linter/rules/interactive-functions.d.ts +30 -0
- package/linter/rules/interactive-functions.js +87 -0
- 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/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 +2 -2
- package/linter/rules/roxygen-arguments.d.ts +1 -1
- package/linter/rules/secret-exfiltration.js +1 -1
- 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 +4 -3
- package/linter/rules/undefined-symbol-util.js +8 -2
- package/linter/rules/undefined-symbol.d.ts +3 -2
- package/linter/rules/undefined-symbol.js +18 -7
- 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/useless-loop.d.ts +1 -1
- 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/context/flowr-analyzer-dependencies-context.d.ts +12 -12
- package/project/context/flowr-analyzer-dependencies-context.js +2 -1
- 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-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 +36 -3
- package/project/flowr-analyzer.js +8 -2
- package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +15 -14
- 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 -1
- package/project/plugins/package-version-plugins/package.d.ts +6 -5
- package/project/sigdb/build.js +15 -5
- package/project/sigdb/decode.d.ts +11 -7
- package/project/sigdb/decode.js +11 -3
- package/project/sigdb/dict.d.ts +2 -1
- package/project/sigdb/dict.js +2 -2
- package/project/sigdb/guarded-source.d.ts +6 -0
- package/project/sigdb/guarded-source.js +29 -0
- 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 +90 -80
- package/project/sigdb/reader.js +27 -5
- package/project/sigdb/schema.d.ts +33 -10
- package/project/sigdb/signature-db.d.ts +6 -6
- package/queries/catalog/absint-query/absint-query-format.d.ts +6 -3
- package/queries/catalog/absint-query/absint-query-format.js +57 -2
- package/queries/catalog/ambient-access-query/ambient-access-query-format.d.ts +58 -0
- package/queries/catalog/ambient-access-query/ambient-access-query-format.js +90 -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/cluster-query/cluster-query-format.d.ts +5 -2
- package/queries/catalog/cluster-query/cluster-query-format.js +19 -2
- package/queries/catalog/code-clones-query/code-clones-query-format.d.ts +57 -0
- package/queries/catalog/code-clones-query/code-clones-query-format.js +105 -0
- package/queries/catalog/config-query/config-query-format.d.ts +5 -2
- package/queries/catalog/config-query/config-query-format.js +41 -2
- package/queries/catalog/control-flow-query/control-flow-query-format.d.ts +5 -2
- package/queries/catalog/control-flow-query/control-flow-query-format.js +19 -2
- package/queries/catalog/data-columns-query/data-columns-query-format.d.ts +72 -0
- package/queries/catalog/data-columns-query/data-columns-query-format.js +215 -0
- package/queries/catalog/dataflow-lens-query/dataflow-lens-query-format.d.ts +5 -2
- package/queries/catalog/dataflow-lens-query/dataflow-lens-query-format.js +38 -2
- package/queries/catalog/dataflow-query/dataflow-query-format.d.ts +5 -2
- package/queries/catalog/dataflow-query/dataflow-query-format.js +18 -2
- 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 +5 -5
- package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +4 -3
- package/queries/catalog/dependencies-query/dependencies-query-format.js +9 -4
- package/queries/catalog/dependencies-query/function-info/function-info.d.ts +6 -4
- package/queries/catalog/dependencies-query/function-info/other-path-functions.js +1 -1
- package/queries/catalog/dependencies-query/function-info/tagged-functions.d.ts +11 -0
- package/queries/catalog/dependencies-query/function-info/tagged-functions.js +18 -0
- package/queries/catalog/dependencies-query/implicit-echo.js +2 -1
- package/queries/catalog/dice-query/dice-query-format.d.ts +8 -2
- package/queries/catalog/dice-query/dice-query-format.js +35 -2
- package/queries/catalog/does-call-query/does-call-query-format.d.ts +8 -4
- package/queries/catalog/does-call-query/does-call-query-format.js +115 -2
- package/queries/catalog/files-query/files-query-format.d.ts +5 -2
- package/queries/catalog/files-query/files-query-format.js +45 -2
- 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-format.d.ts +11 -7
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.js +303 -2
- package/queries/catalog/happens-before-query/happens-before-query-format.d.ts +9 -4
- package/queries/catalog/happens-before-query/happens-before-query-format.js +38 -2
- package/queries/catalog/id-map-query/id-map-query-format.d.ts +5 -2
- package/queries/catalog/id-map-query/id-map-query-format.js +18 -2
- 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/inspect-exceptions-query/inspect-exception-query-format.d.ts +5 -2
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.js +29 -2
- package/queries/catalog/inspect-fn-guards-query/inspect-fn-guards-query-format.d.ts +37 -0
- package/queries/catalog/inspect-fn-guards-query/inspect-fn-guards-query-format.js +125 -0
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.d.ts +3 -2
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.js +54 -2
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.d.ts +6 -2
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.js +23 -2
- package/queries/catalog/inspect-recursion-query/inspect-recursion-query-format.d.ts +6 -2
- package/queries/catalog/inspect-recursion-query/inspect-recursion-query-format.js +15 -2
- package/queries/catalog/linter-query/linter-query-format.d.ts +8 -2
- package/queries/catalog/linter-query/linter-query-format.js +72 -6
- package/queries/catalog/location-map-query/location-map-query-format.d.ts +7 -3
- package/queries/catalog/location-map-query/location-map-query-format.js +70 -2
- package/queries/catalog/normalized-ast-query/normalized-ast-query-format.d.ts +5 -2
- package/queries/catalog/normalized-ast-query/normalized-ast-query-format.js +18 -2
- package/queries/catalog/origin-query/origin-query-format.d.ts +7 -3
- package/queries/catalog/origin-query/origin-query-format.js +30 -2
- package/queries/catalog/project-query/project-query-format.d.ts +8 -4
- package/queries/catalog/project-query/project-query-format.js +98 -2
- package/queries/catalog/provenance-query/provenance-query-format.d.ts +7 -3
- package/queries/catalog/provenance-query/provenance-query-format.js +31 -2
- package/queries/catalog/resolve-value-query/resolve-value-query-format.d.ts +10 -2
- package/queries/catalog/resolve-value-query/resolve-value-query-format.js +39 -2
- package/queries/catalog/search-query/search-query-format.d.ts +5 -2
- package/queries/catalog/search-query/search-query-format.js +23 -2
- package/queries/catalog/signature-query/signature-query-executor.d.ts +9 -6
- package/queries/catalog/signature-query/signature-query-executor.js +17 -16
- package/queries/catalog/signature-query/signature-query-format.d.ts +24 -20
- package/queries/catalog/signature-query/signature-query-render.js +24 -1
- package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +22 -7
- package/queries/catalog/static-slice-query/static-slice-query-format.js +56 -2
- package/queries/catalog/taint-query/taint-query-format.d.ts +6 -3
- package/queries/catalog/taint-query/taint-query-format.js +28 -2
- package/queries/query-function-filter.d.ts +1 -1
- package/queries/query.d.ts +104 -32
- package/queries/query.js +61 -37
- package/r-bridge/data/data.d.ts +39 -28
- package/r-bridge/data/data.js +37 -28
- 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 +9 -2
- package/r-bridge/lang-4.x/ast/model/processing/node-id.js +18 -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 +10 -4
- package/reconstruct/auto-select/magic-comments.js +1 -1
- package/reconstruct/reconstruct.d.ts +0 -5
- package/reconstruct/reconstruct.js +24 -8
- 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 +8 -9
- 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 -2
- package/search/search-executor/search-generators.js +13 -8
- 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/slicing/criterion/parse.d.ts +2 -1
- package/slicing/criterion/parse.js +2 -1
- package/slicing/static/removal-slice.js +6 -4
- package/slicing/static/slice-call.d.ts +41 -4
- package/slicing/static/slice-call.js +117 -11
- package/slicing/static/slicer-types.d.ts +2 -1
- package/slicing/static/static-slicer.d.ts +2 -0
- package/slicing/static/static-slicer.js +199 -28
- package/slicing/static/visiting-queue.d.ts +4 -0
- package/slicing/static/visiting-queue.js +8 -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/objects.d.ts +2 -0
- package/util/objects.js +5 -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-datasets.d.ts +27 -0
- package/util/r-datasets.js +45 -0
- 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/playground-link.d.ts +2 -0
- package/util/text/playground-link.js +2 -0
- 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 -8874
- package/dataflow/environments/default-builtin-config.js +0 -1737
- package/queries/catalog/absint-query/absint-query-executor.d.ts +0 -6
- package/queries/catalog/absint-query/absint-query-executor.js +0 -61
- package/queries/catalog/cluster-query/cluster-query-executor.d.ts +0 -6
- package/queries/catalog/cluster-query/cluster-query-executor.js +0 -21
- package/queries/catalog/config-query/config-query-executor.d.ts +0 -6
- package/queries/catalog/config-query/config-query-executor.js +0 -45
- package/queries/catalog/control-flow-query/control-flow-query-executor.d.ts +0 -6
- package/queries/catalog/control-flow-query/control-flow-query-executor.js +0 -21
- package/queries/catalog/dataflow-lens-query/dataflow-lens-query-executor.d.ts +0 -6
- package/queries/catalog/dataflow-lens-query/dataflow-lens-query-executor.js +0 -40
- package/queries/catalog/dataflow-query/dataflow-query-executor.d.ts +0 -6
- package/queries/catalog/dataflow-query/dataflow-query-executor.js +0 -20
- package/queries/catalog/dependencies-query/function-info/statistics-functions.d.ts +0 -9
- package/queries/catalog/dependencies-query/function-info/statistics-functions.js +0 -18
- package/queries/catalog/dice-query/dice-query-executor.d.ts +0 -8
- package/queries/catalog/dice-query/dice-query-executor.js +0 -37
- package/queries/catalog/does-call-query/does-call-query-executor.d.ts +0 -6
- package/queries/catalog/does-call-query/does-call-query-executor.js +0 -117
- package/queries/catalog/files-query/files-query-executor.d.ts +0 -6
- package/queries/catalog/files-query/files-query-executor.js +0 -47
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.d.ts +0 -6
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.js +0 -307
- package/queries/catalog/happens-before-query/happens-before-query-executor.d.ts +0 -7
- package/queries/catalog/happens-before-query/happens-before-query-executor.js +0 -40
- package/queries/catalog/id-map-query/id-map-query-executor.d.ts +0 -6
- package/queries/catalog/id-map-query/id-map-query-executor.js +0 -20
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-executor.d.ts +0 -6
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-executor.js +0 -31
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-executor.d.ts +0 -4
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-executor.js +0 -58
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-executor.d.ts +0 -7
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-executor.js +0 -25
- package/queries/catalog/inspect-recursion-query/inspect-recursion-query-executor.d.ts +0 -7
- package/queries/catalog/inspect-recursion-query/inspect-recursion-query-executor.js +0 -17
- package/queries/catalog/linter-query/linter-query-executor.d.ts +0 -9
- package/queries/catalog/linter-query/linter-query-executor.js +0 -59
- package/queries/catalog/location-map-query/location-map-query-executor.d.ts +0 -7
- package/queries/catalog/location-map-query/location-map-query-executor.js +0 -73
- package/queries/catalog/normalized-ast-query/normalized-ast-query-executor.d.ts +0 -6
- package/queries/catalog/normalized-ast-query/normalized-ast-query-executor.js +0 -20
- package/queries/catalog/origin-query/origin-query-executor.d.ts +0 -6
- package/queries/catalog/origin-query/origin-query-executor.js +0 -31
- package/queries/catalog/project-query/project-query-executor.d.ts +0 -6
- package/queries/catalog/project-query/project-query-executor.js +0 -103
- package/queries/catalog/provenance-query/provenance-query-executor.d.ts +0 -6
- package/queries/catalog/provenance-query/provenance-query-executor.js +0 -33
- package/queries/catalog/resolve-value-query/resolve-value-query-executor.d.ts +0 -10
- package/queries/catalog/resolve-value-query/resolve-value-query-executor.js +0 -40
- package/queries/catalog/search-query/search-query-executor.d.ts +0 -6
- package/queries/catalog/search-query/search-query-executor.js +0 -25
- package/queries/catalog/static-slice-query/static-slice-query-executor.d.ts +0 -14
- package/queries/catalog/static-slice-query/static-slice-query-executor.js +0 -59
- package/queries/catalog/taint-query/taint-query-executor.d.ts +0 -7
- package/queries/catalog/taint-query/taint-query-executor.js +0 -30
- 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.js +0 -124
- package/taint-analysis/eval/instrumentation.d.ts +0 -59
- package/taint-analysis/eval/instrumentation.js +0 -124
- /package/{taint-analysis/eval/eval.d.ts → abstract-interpretation/branch-paths-interpreter.d.ts} +0 -0
|
@@ -0,0 +1,397 @@
|
|
|
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 ambient_effect_1 = require("../ambient-effect");
|
|
7
|
+
const identifier_1 = require("../identifier");
|
|
8
|
+
const built_in_proc_name_1 = require("../built-in-proc-name");
|
|
9
|
+
const built_in_eval_name_1 = require("../built-in-eval-name");
|
|
10
|
+
const nse_kind_1 = require("../../internal/process/functions/call/nse-kind");
|
|
11
|
+
const built_in_props_1 = require("../built-in-props");
|
|
12
|
+
const ambient_state_name_1 = require("../ambient-state-name");
|
|
13
|
+
const shared_signatures_1 = require("./shared-signatures");
|
|
14
|
+
const shared_configs_1 = require("./shared-configs");
|
|
15
|
+
const SinkSig = (0, shared_signatures_1.sig)({ file: built_in_props_1.ArgProp.Resource });
|
|
16
|
+
/** `sink(file)` diverts the output of the `type`, `sink()` ends the diversion */
|
|
17
|
+
const SinkArg = (arg, is) => ({ arg, formals: ['file', 'append', 'type', 'split'], is });
|
|
18
|
+
const SinkStack = (family, types, others) => [{ ...family.opens, when: SinkArg('type', types), unless: SinkArg('file', [null]) }, { ...family.closes, when: SinkArg('file', [null]), unless: SinkArg('type', others) }];
|
|
19
|
+
/** a kind among the arguments (`set.seed(1, "Wichmann-Hill")`) reseeds the generator from its current state, which changes the stream as well */
|
|
20
|
+
const SetsRngKind = (formals) => [{ ...ambient_effect_1.Ambient.rng.adds, when: { besides: formals } }, { ...ambient_effect_1.Ambient.rngKind.writes, when: { besides: formals } }];
|
|
21
|
+
/* closing a connection flushes what was written through it, so the file it leaves holds those writes */
|
|
22
|
+
const ClosesConnection = [ambient_effect_1.Ambient.files.reads, ambient_effect_1.Ambient.files.writes];
|
|
23
|
+
/* removing a file tells whether it was there, and the path may name a directory */
|
|
24
|
+
const RemovesFiles = (removed) => ({ ambient: [ambient_effect_1.Ambient.directories.adds, { ...ambient_effect_1.Ambient.files.reads, sig: removed }], tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: removed });
|
|
25
|
+
/** what signaling or reporting a condition asks of it, any method of them may run */
|
|
26
|
+
const ConditionAccessors = ['conditionMessage', 'conditionCall', 'as.character', 'as.vector'];
|
|
27
|
+
/** what signals a message or a warning, handing on what it is given */
|
|
28
|
+
const Signals = {
|
|
29
|
+
keepArgumentOut: true,
|
|
30
|
+
props: built_in_props_1.CallProp.Invisible,
|
|
31
|
+
tags: [built_in_props_1.SemanticCallTag.Prints],
|
|
32
|
+
ambient: ambient_effect_1.Ambient.messageSink.adds,
|
|
33
|
+
sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced }),
|
|
34
|
+
dispatches: ConditionAccessors
|
|
35
|
+
};
|
|
36
|
+
/** what muffles the conditions its code signals */
|
|
37
|
+
const Suppresses = { 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 }) };
|
|
38
|
+
/** the restarts a signal establishes for its handlers, invoking them resumes the signaling call */
|
|
39
|
+
const MuffleRestarts = ['muffleWarning', 'muffleMessage'];
|
|
40
|
+
/** what signals an error */
|
|
41
|
+
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 }), dispatches: ConditionAccessors };
|
|
42
|
+
/** The built-in definitions of the base package. */
|
|
43
|
+
exports.BaseDefinitions = [
|
|
44
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('NULL'), null, define_helpers_1.Primitive),
|
|
45
|
+
/* 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 */
|
|
46
|
+
(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),
|
|
47
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('NaN'), NaN, define_helpers_1.Primitive),
|
|
48
|
+
/* an environment is no more `NULL` than an `NA` is; which one it stands for is what the stack-env handling answers */
|
|
49
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('.GlobalEnv', '.BaseNamespaceEnv', '.BaseEnv'), built_in_kinds_1.Top, define_helpers_1.Primitive),
|
|
50
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('TRUE', 'T'), true, define_helpers_1.Primitive),
|
|
51
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('FALSE', 'F'), false, define_helpers_1.Primitive),
|
|
52
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('Inf'), Infinity, define_helpers_1.Primitive),
|
|
53
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('-Inf'), -Infinity, define_helpers_1.Primitive),
|
|
54
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('pi'), Math.PI, define_helpers_1.Primitive),
|
|
55
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('LETTERS'), Array.from({ length: 26 }, (_, i) => String.fromCharCode(65 + i)), define_helpers_1.Primitive),
|
|
56
|
+
(0, define_helpers_1.constant)((0, define_helpers_1.base)('letters'), Array.from({ length: 26 }, (_, i) => String.fromCharCode(97 + i)), define_helpers_1.Primitive),
|
|
57
|
+
(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),
|
|
58
|
+
(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),
|
|
59
|
+
(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),
|
|
60
|
+
/* an {@link BuiltInEvalName} marks what the value solver folds; a test checks the names against the handler tables */
|
|
61
|
+
/* the result follows from how large the argument is, not from what is in it, so it is bounded (`Narrows`) */
|
|
62
|
+
/* their bodies ask `dim(x)` and `length(x)`, which dispatch on the class of `x` */
|
|
63
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('nrow', 'ncol', 'NROW', 'NCOL'), 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, dispatches: ['dim', 'length'] }, define_helpers_1.Primitive),
|
|
64
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('length', 'lengths', '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),
|
|
65
|
+
/* the names and the class are read off the argument, so whatever it carries can show up in the result */
|
|
66
|
+
(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),
|
|
67
|
+
(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 }) }),
|
|
68
|
+
(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 }),
|
|
69
|
+
(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),
|
|
70
|
+
/* they fold everything they are handed into one result */
|
|
71
|
+
(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),
|
|
72
|
+
(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, dispatches: ['as.data.frame', 'as.character', 'as.vector', 'length', 'names', 'unique'] }, define_helpers_1.Primitive),
|
|
73
|
+
(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),
|
|
74
|
+
/* the separator sits behind the `...`, so R (and the {@link FnSig}) only ever matches it by its full name */
|
|
75
|
+
(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, ambient: shared_configs_1.ReadsNumberFormat, sig: (0, shared_signatures_1.sig)({ '...': shared_signatures_1.Forced.Value, sep: shared_signatures_1.Forced.Value }), dispatches: ['as.character', 'as.vector'] }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn }),
|
|
76
|
+
(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, ambient: shared_configs_1.ReadsNumberFormat, sig: (0, shared_signatures_1.sig)({ '...': shared_signatures_1.Forced.Value, fsep: shared_signatures_1.Forced.Value }), dispatches: ['as.character', 'as.vector'] }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn }),
|
|
77
|
+
/* `x` carries the data, whatever follows only tunes the result */
|
|
78
|
+
(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',
|
|
79
|
+
/* coercion */ '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),
|
|
80
|
+
/* a number or a logical carries none of the text it was converted from */
|
|
81
|
+
(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),
|
|
82
|
+
/* they read the values but answer only with a logical, so nothing those values carry reaches the result */
|
|
83
|
+
(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),
|
|
84
|
+
/* the numeric functions the value solver folds; each one is an entry of `NumericFns`, which states its parameters */
|
|
85
|
+
(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 }),
|
|
86
|
+
(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 }),
|
|
87
|
+
(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 }),
|
|
88
|
+
(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 }),
|
|
89
|
+
(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 }),
|
|
90
|
+
(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),
|
|
91
|
+
/* the vector constructors take the length of the result, not its contents */
|
|
92
|
+
(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),
|
|
93
|
+
(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),
|
|
94
|
+
(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),
|
|
95
|
+
(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),
|
|
96
|
+
(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),
|
|
97
|
+
/* two data arguments, under the names R gives them */
|
|
98
|
+
(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),
|
|
99
|
+
/* they answer with a position or a logical, never with what they matched */
|
|
100
|
+
(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),
|
|
101
|
+
(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),
|
|
102
|
+
/* the result is one of the `choices`, so what flows in is bounded by that argument */
|
|
103
|
+
(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),
|
|
104
|
+
(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 }),
|
|
105
|
+
(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 }),
|
|
106
|
+
(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 }),
|
|
107
|
+
(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 }),
|
|
108
|
+
(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),
|
|
109
|
+
(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),
|
|
110
|
+
(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),
|
|
111
|
+
/* the rest of the pure computations, where no single shape fits */
|
|
112
|
+
(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',
|
|
113
|
+
'det', 'eigen', 'aperm', /* string */ 'grep', 'sub', 'gsub', 'substr', 'substring', 'strsplit', 'strrep', 'chartr', 'strtoi', 'shQuote', 'regexpr', 'gregexpr', 'regexec', 'format',
|
|
114
|
+
/* 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),
|
|
115
|
+
/* indices and index sequences: bounded by the shape of what they are handed, never by its contents */
|
|
116
|
+
/* `seq_along(x)` asks `length(x)` and `which.max(x)` asks `xtfrm(x)` */
|
|
117
|
+
(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], dispatches: ['length', 'xtfrm'] }, define_helpers_1.Primitive),
|
|
118
|
+
/* `seq` dispatches, so `...` really is all it declares; the named formals belong to `seq.default`/`seq.int` */
|
|
119
|
+
(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),
|
|
120
|
+
(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 }) }),
|
|
121
|
+
/* 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 */
|
|
122
|
+
(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 }) }),
|
|
123
|
+
/* reading an environment file sets the variables it lists, which we do not know */
|
|
124
|
+
(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 }) }),
|
|
125
|
+
(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 }) }),
|
|
126
|
+
/* the connections and the calls that move data through them, so anything reaching them inherits it */
|
|
127
|
+
(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 }) }),
|
|
128
|
+
(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 }) }),
|
|
129
|
+
(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 }) }),
|
|
130
|
+
(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 }) }),
|
|
131
|
+
(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] }),
|
|
132
|
+
/* how many diversions are on the stack */
|
|
133
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('sink.number'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { ...ambient_effect_1.Ambient.sink.reads, member: 'every' } }),
|
|
134
|
+
/* what was written into a text connection, pushed back lines are read before the rest */
|
|
135
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('textConnectionValue'), 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 }) }),
|
|
136
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('pushBack'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Invisible, ambient: ambient_effect_1.Ambient.files.writes, sig: (0, shared_signatures_1.sig)({ data: shared_signatures_1.Forced.Value, connection: shared_signatures_1.Forced.Handle, newLine: shared_signatures_1.Forced.Flag, encoding: shared_signatures_1.Forced.Flag }) }),
|
|
137
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('textConnection'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { ambient: ambient_effect_1.Ambient.textConnection.opens, tags: [built_in_props_1.SemanticCallTag.Opens], sig: (0, shared_signatures_1.sig)({ object: shared_signatures_1.Forced.Value }) }),
|
|
138
|
+
/* the calls ending what an opener started, each stating the argument holding the handle */
|
|
139
|
+
/* opening a connection decides where it reads and whether a write appends, which later uses of it depend on */
|
|
140
|
+
(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 }) }),
|
|
141
|
+
(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: ClosesConnection, tags: [built_in_props_1.SemanticCallTag.Closes], sig: (0, shared_signatures_1.sig)({ con: shared_signatures_1.Forced.Handle, '...': shared_signatures_1.Forced.Value }) }),
|
|
142
|
+
(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: ClosesConnection, 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 }) }),
|
|
143
|
+
(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: ambient_effect_1.Ambient.files.writes, sig: (0, shared_signatures_1.sig)({ con: shared_signatures_1.Forced.Handle }) }),
|
|
144
|
+
(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] }),
|
|
145
|
+
(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 }) }),
|
|
146
|
+
(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 }) }),
|
|
147
|
+
(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 }) }),
|
|
148
|
+
(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 }) }),
|
|
149
|
+
(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 }) }),
|
|
150
|
+
(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 }) }),
|
|
151
|
+
(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 }) }),
|
|
152
|
+
(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)({ paths: shared_signatures_1.Forced.Resource }) }),
|
|
153
|
+
(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 }) }),
|
|
154
|
+
(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: ambient_effect_1.Ambient.wd.reads, 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 }) }),
|
|
155
|
+
(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 }) }),
|
|
156
|
+
(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, ncolumns: shared_signatures_1.Forced.Value, append: shared_signatures_1.Forced.Flag }) }),
|
|
157
|
+
(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 }) }),
|
|
158
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('jitter'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { ambient: ambient_effect_1.Ambient.rng.adds, 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),
|
|
159
|
+
(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: ambient_effect_1.Ambient.rng.adds, tags: [built_in_props_1.SemanticCallTag.Random] }),
|
|
160
|
+
(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),
|
|
161
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('reg.finalizer'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: ambient_effect_1.Ambient.finalizers.adds, 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 }) }),
|
|
162
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('gc'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: ambient_effect_1.Ambient.finalizers.reads, sig: (0, shared_signatures_1.sig)({ verbose: shared_signatures_1.Forced.Flag, reset: shared_signatures_1.Forced.Flag, full: shared_signatures_1.Forced.Flag }) }),
|
|
163
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('rm', 'remove'), 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),
|
|
164
|
+
/* they read the state they set, so both bits apply */
|
|
165
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('options'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: [{ ...ambient_effect_1.Ambient.option.writes, member: { from: 'argument-names' }, unless: 'query' }, { ...ambient_effect_1.Ambient.option.reads, member: { from: 'unnamed', quoted: true }, when: 'query' }], 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 }) }),
|
|
166
|
+
/* `Sys.putenv` is defunct in current R, older scripts still use it */
|
|
167
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Sys.setenv', 'Sys.putenv'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { ...ambient_effect_1.Ambient.env.writes, member: { 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 }) }),
|
|
168
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Sys.unsetenv'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { ...ambient_effect_1.Ambient.env.kills, member: (0, shared_configs_1.SetsEntryNamedBy)(ambient_state_name_1.KeyedState.Env, ['x'], 'x').member }, 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 }) }),
|
|
169
|
+
(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 }) }),
|
|
170
|
+
/* the language is the environment variable `LANGUAGE`, which the translations of messages follow */
|
|
171
|
+
(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 }) }),
|
|
172
|
+
(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 }) }),
|
|
173
|
+
/* `X` is turned into a list first, by its `as.list` method */
|
|
174
|
+
(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 }), dispatches: ['as.list', 'as.vector', 'length', 'names'] }),
|
|
175
|
+
/* `vapply` takes the shape of the result before its `...`, so naming it keeps the positions honest */
|
|
176
|
+
(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),
|
|
177
|
+
(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 }) }),
|
|
178
|
+
(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 }) }),
|
|
179
|
+
(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 }) }),
|
|
180
|
+
(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 }), dispatches: ['as.list', 'as.vector', '['] }),
|
|
181
|
+
(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 }) }),
|
|
182
|
+
(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 }) }),
|
|
183
|
+
(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 }), dispatches: ['as.list', 'as.vector', 'length'] }),
|
|
184
|
+
(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 }) }),
|
|
185
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('print'), built_in_proc_name_1.BuiltInProcName.Default, { keepArgumentOut: true, 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'] }),
|
|
186
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('message'), built_in_proc_name_1.BuiltInProcName.Default, { ...Signals, signals: ['simpleMessage', 'message', 'condition'] }),
|
|
187
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('warning'), built_in_proc_name_1.BuiltInProcName.Default, { ...Signals, signals: ['simpleWarning', 'warning', 'condition'] }),
|
|
188
|
+
(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),
|
|
189
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('packageStartupMessage'), built_in_proc_name_1.BuiltInProcName.Default, { ...Signals, signals: ['packageStartupMessage', 'simpleMessage', 'message', 'condition'] }),
|
|
190
|
+
(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),
|
|
191
|
+
(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 }) }),
|
|
192
|
+
(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 }) }),
|
|
193
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('suppressWarnings'), built_in_proc_name_1.BuiltInProcName.Default, { ...Suppresses, muffles: ['warning'] }),
|
|
194
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('suppressMessages'), built_in_proc_name_1.BuiltInProcName.Default, { ...Suppresses, muffles: ['message'] }),
|
|
195
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('suppressPackageStartupMessages'), built_in_proc_name_1.BuiltInProcName.Default, { ...Suppresses, muffles: ['packageStartupMessage'] }),
|
|
196
|
+
/* it changes into a directory that has to exist, so it reads the files as well */
|
|
197
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('setwd'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: [ambient_effect_1.Ambient.wd.reads, ambient_effect_1.Ambient.directories.reads, ambient_effect_1.Ambient.wd.writes], 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 }) }),
|
|
198
|
+
/* `Sys.umask()` only reports the mask, a mode sets it and hands back the old one invisibly */
|
|
199
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Sys.umask'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { ...ambient_effect_1.Ambient.umask.writes, unless: 'no-arguments' }, 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 }) }),
|
|
200
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('set.seed'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: [ambient_effect_1.Ambient.rngKind.reads, ambient_effect_1.Ambient.rng.writes, ...SetsRngKind(['seed'])], 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 }) }),
|
|
201
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('RNGversion'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: [ambient_effect_1.Ambient.rngKind.reads, ...SetsRngKind([])], 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 }) }),
|
|
202
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('RNGkind'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: [ambient_effect_1.Ambient.rngKind.reads, ...SetsRngKind([])], 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 }) }),
|
|
203
|
+
(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),
|
|
204
|
+
(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: { ...ambient_effect_1.Ambient.libPaths.writes, unless: 'no-arguments' }, sig: (0, shared_signatures_1.sig)({ new: shared_signatures_1.Forced.Value, 'include.site': shared_signatures_1.Forced.Flag }) }),
|
|
205
|
+
(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 }) }),
|
|
206
|
+
(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 }) }),
|
|
207
|
+
(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 }) }),
|
|
208
|
+
/* `environment()` without an argument is the frame the call sits in, which is how `as.list(environment())` gets at every argument */
|
|
209
|
+
(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),
|
|
210
|
+
(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),
|
|
211
|
+
(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),
|
|
212
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('cat'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: [shared_configs_1.ReadPrintingOptions, { ...ambient_effect_1.Ambient.messageSink.adds, when: { arg: 'file', formals: ['...', 'file'], calls: ['stderr'] } }], 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, sep: shared_signatures_1.Forced.Value, fill: shared_signatures_1.Forced.Value, labels: shared_signatures_1.Forced.Value, append: shared_signatures_1.Forced.Flag }) }),
|
|
213
|
+
(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 }) }),
|
|
214
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('stop'), built_in_proc_name_1.BuiltInProcName.Default, { ...Throws, signals: ['simpleError', 'error', 'condition'] }),
|
|
215
|
+
/* ends the program: nothing after it runs, so it is an exit like a raise for everything that follows (no handler catches it, but treating it as one only keeps more) */
|
|
216
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('quit', 'q'), built_in_proc_name_1.BuiltInProcName.Default, { cfg: 4 /* ExitPointType.Error */, props: built_in_props_1.CallProp.Throws, sig: (0, shared_signatures_1.sig)({ save: shared_signatures_1.Forced.Value, status: shared_signatures_1.Forced.Value, runLast: shared_signatures_1.Forced.Value }) }),
|
|
217
|
+
/* their classes depend on more than the message (`class = `, a glue template evaluated in the caller) */
|
|
218
|
+
(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'),
|
|
219
|
+
/* 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),
|
|
220
|
+
/* the block is evaluated whatever happens, the handlers only when something does, and an error keeps the value from coming back */
|
|
221
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('try'), built_in_proc_name_1.BuiltInProcName.Try, { block: 'expr', handlers: {}, ambient: [{ ...ambient_effect_1.Ambient.messageSink.adds, unless: { flag: 'silent' } }, ambient_effect_1.Ambient.errorMessage.adds], sig: (0, shared_signatures_1.sig)({ expr: shared_signatures_1.Forced.Value }), dispatches: ConditionAccessors }, define_helpers_1.Primitive),
|
|
222
|
+
/* an error it catches may set the last error message */
|
|
223
|
+
(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' }, ambient: ambient_effect_1.Ambient.errorMessage.adds, 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),
|
|
224
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('geterrmessage'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: ambient_effect_1.Ambient.errorMessage.reads, props: built_in_props_1.CallProp.Ambient }),
|
|
225
|
+
(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),
|
|
226
|
+
/* its handlers run on what the session signals from then on */
|
|
227
|
+
(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),
|
|
228
|
+
/* invoking a restart leaves the code for the function of that name, one muffling a signal resumes where the signal was raised */
|
|
229
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('withRestarts'), built_in_proc_name_1.BuiltInProcName.Try, { block: 'expr', handlers: { error: 'error' }, sig: (0, shared_signatures_1.sig)({ expr: shared_signatures_1.Forced.Value, '...': built_in_props_1.ArgProp.Callee }) }),
|
|
230
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('invokeRestart'), built_in_proc_name_1.BuiltInProcName.Default, { cfg: 4 /* ExitPointType.Error */, cfgUnless: { arg: 'r', formals: ['r'], is: MuffleRestarts }, props: built_in_props_1.CallProp.Throws, sig: (0, shared_signatures_1.sig)({ r: shared_signatures_1.Forced.Value, '...': shared_signatures_1.Forced.Value }) }, define_helpers_1.Primitive),
|
|
231
|
+
(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 }) }),
|
|
232
|
+
/* it hands back what it evaluated invisibly, so a top-level `source()` prints nothing of its own */
|
|
233
|
+
(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 }) }),
|
|
234
|
+
(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 }) }),
|
|
235
|
+
(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),
|
|
236
|
+
(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 }),
|
|
237
|
+
(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 }),
|
|
238
|
+
(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 }) }),
|
|
239
|
+
(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 }) }),
|
|
240
|
+
(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 }) }),
|
|
241
|
+
(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 }) }),
|
|
242
|
+
(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 }),
|
|
243
|
+
/* what a call does to a package is stated by its tags: loading the namespace, attaching it, answering whether it is there */
|
|
244
|
+
(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 }) }),
|
|
245
|
+
/* `require` attaches like `library`, but answers FALSE instead of failing when the package is missing */
|
|
246
|
+
(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 }) }),
|
|
247
|
+
(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 }) }),
|
|
248
|
+
(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 }) }),
|
|
249
|
+
/* other than `requireNamespace`, it hands back the namespace visibly */
|
|
250
|
+
(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 }) }),
|
|
251
|
+
/* they only look whether a package is installed, nothing is loaded */
|
|
252
|
+
(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 }) }),
|
|
253
|
+
(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),
|
|
254
|
+
(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),
|
|
255
|
+
/* a locked binding makes every later write to it fail, and each of them fails if there is no binding to act on */
|
|
256
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('lockBinding', 'unlockBinding'), built_in_proc_name_1.BuiltInProcName.Get, { returnsValue: false, hasUnknownSideEffects: true, locks: true, props: built_in_props_1.CallProp.Invisible, sig: (0, shared_signatures_1.sig)({ sym: shared_signatures_1.Forced.Value, env: shared_signatures_1.Forced.Value }) }),
|
|
257
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('bindingIsLocked', 'bindingIsActive'), built_in_proc_name_1.BuiltInProcName.Get, { returnsValue: false, props: built_in_props_1.CallProp.Pure, sig: (0, shared_signatures_1.sig)({ sym: shared_signatures_1.Forced.Value, env: shared_signatures_1.Forced.Value }) }),
|
|
258
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('lockEnvironment'), built_in_proc_name_1.BuiltInProcName.Default, { hasUnknownSideEffects: true, locks: true, props: built_in_props_1.CallProp.Invisible, sig: (0, shared_signatures_1.sig)({ env: shared_signatures_1.Forced.Value, bindings: shared_signatures_1.Forced.Flag }) }),
|
|
259
|
+
(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),
|
|
260
|
+
/* registers the method of an S3 class, which the dispatch finds after one bound by its name */
|
|
261
|
+
(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 }) }),
|
|
262
|
+
(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 }) }),
|
|
263
|
+
(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),
|
|
264
|
+
/* `bquote` evaluates the operand of `.()` */
|
|
265
|
+
(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),
|
|
266
|
+
(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),
|
|
267
|
+
/* `local(expr)` evaluates `expr` in a frame of its own and hands its value back */
|
|
268
|
+
(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 }) }),
|
|
269
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('with'), built_in_proc_name_1.BuiltInProcName.With, { sig: shared_configs_1.WithSig }),
|
|
270
|
+
(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 }),
|
|
271
|
+
(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),
|
|
272
|
+
/* env-returning builtins pointing into the current search-path stack (`e <- globalenv(); e$x`) */
|
|
273
|
+
(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),
|
|
274
|
+
(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),
|
|
275
|
+
(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),
|
|
276
|
+
/* `sys.frame(sys.nframe())` is the own frame written the long way round, and its values are there to be read */
|
|
277
|
+
(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),
|
|
278
|
+
(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 }) }),
|
|
279
|
+
(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 }) }),
|
|
280
|
+
(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 }) }),
|
|
281
|
+
(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 }) }),
|
|
282
|
+
(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),
|
|
283
|
+
(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),
|
|
284
|
+
/* evaluates the arguments of the generic it is in to dispatch on their classes */
|
|
285
|
+
(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),
|
|
286
|
+
(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),
|
|
287
|
+
(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),
|
|
288
|
+
(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),
|
|
289
|
+
(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),
|
|
290
|
+
(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 }),
|
|
291
|
+
(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 }) }),
|
|
292
|
+
(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 }) }),
|
|
293
|
+
(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 }),
|
|
294
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('sys.on.exit', 'asNamespace', 'unname'), built_in_proc_name_1.BuiltInProcName.Default, { hasUnknownSideEffects: true }),
|
|
295
|
+
/* they create, move, or delete files, and as we do not know which paths are directories, the directories as well */
|
|
296
|
+
(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, ambient: ambient_effect_1.Ambient.directories.adds, 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 }) }),
|
|
297
|
+
(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, ...RemovesFiles((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 })) }),
|
|
298
|
+
(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 }) }),
|
|
299
|
+
(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 }) }),
|
|
300
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('file.remove'), built_in_proc_name_1.BuiltInProcName.Default, { hasUnknownSideEffects: true, ...RemovesFiles((0, shared_signatures_1.sig)({ '...': shared_signatures_1.Forced.Resource })) }),
|
|
301
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.pkg)("fs" /* PkgName.Fs */, 'file_delete', 'dir_delete', 'link_delete'), built_in_proc_name_1.BuiltInProcName.Default, { hasUnknownSideEffects: true, ...RemovesFiles((0, shared_signatures_1.sig)({ path: shared_signatures_1.Forced.Resource })) }),
|
|
302
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Sys.junction'), built_in_proc_name_1.BuiltInProcName.Default, { hasUnknownSideEffects: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes] }),
|
|
303
|
+
(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 }) }),
|
|
304
|
+
/* a moved file is gone from where it was */
|
|
305
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('file.rename'), built_in_proc_name_1.BuiltInProcName.Default, { hasUnknownSideEffects: true, ambient: ambient_effect_1.Ambient.directories.adds, 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 }) }),
|
|
306
|
+
(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 }) }),
|
|
307
|
+
/* `sink` diverts the output, `par`/`tpar` set (or query) the parameters of the current device */
|
|
308
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('sink'), built_in_proc_name_1.BuiltInProcName.Default,
|
|
309
|
+
/* `append = TRUE` keeps what the file held, so a diversion reads it */
|
|
310
|
+
{ ambient: [{ ...ambient_effect_1.Ambient.files.reads, sig: SinkSig }, ...SinkStack(ambient_effect_1.Ambient.sink, ['output', null], ['message']), ...SinkStack(ambient_effect_1.Ambient.messageSink, ['message'], ['output', null])], props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: SinkSig }),
|
|
311
|
+
(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),
|
|
312
|
+
/* `parse(text=)` turns text into an expression, with `file=` it reads that file */
|
|
313
|
+
(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 }) }),
|
|
314
|
+
/* they answer with whatever is on disk when they run */
|
|
315
|
+
(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 }) }),
|
|
316
|
+
(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 }) }),
|
|
317
|
+
/* language objects */
|
|
318
|
+
(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 }) }),
|
|
319
|
+
/* they hand back the call they sit in, so the function around them reads its arguments as written, unevaluated */
|
|
320
|
+
(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 }) }),
|
|
321
|
+
/* `nargs()` counts what the call supplied, so it sees no argument, only whether there was one */
|
|
322
|
+
(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 }) }),
|
|
323
|
+
/* they read the dots of the function they are called in, `...elt(2)` its second element */
|
|
324
|
+
(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 }) }),
|
|
325
|
+
/* `alist` keeps its arguments unevaluated */
|
|
326
|
+
(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 }) }),
|
|
327
|
+
/* `evalq(expr, envir)` is `local(expr, envir)` that runs in the calling frame without `envir` */
|
|
328
|
+
(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 }) }),
|
|
329
|
+
(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 }) }),
|
|
330
|
+
/* native code */
|
|
331
|
+
(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 }) }),
|
|
332
|
+
(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 }) }),
|
|
333
|
+
/* ambient state: options, environment variables, the clock, the session itself */
|
|
334
|
+
(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: { ...ambient_effect_1.Ambient.env.reads, member: { from: 'parameter', signature: ['x', 'unset', 'names', 'allowEmpty'], names: ['x'] }, handsBack: true }, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
335
|
+
/* turning a number into text reads `scipen` and `OutDec` */
|
|
336
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('as.character', 'toString', 'formatC'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, ambient: shared_configs_1.ReadsNumberFormat, sig: shared_signatures_1.SigXDots }, define_helpers_1.Primitive),
|
|
337
|
+
/* it formats each number with `format`, applied to `x` as a list */
|
|
338
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('prettyNum'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, ambient: shared_configs_1.PrintDispatched, sig: shared_signatures_1.SigXDots, dispatches: ['as.list', 'as.vector'] }, define_helpers_1.Primitive),
|
|
339
|
+
/* the local date and time zone follow `TZ` */
|
|
340
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Sys.Date', 'Sys.timezone', 'date'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { ...ambient_effect_1.Ambient.env.reads, member: { from: 'constant', keys: ['TZ'] } }, props: built_in_props_1.CallProp.Ambient, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
341
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Sys.getlocale'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { ...ambient_effect_1.Ambient.locale.reads, member: { from: 'parameter', signature: ['category'], names: ['category'], fallback: 'LC_ALL' } }, sig: (0, shared_signatures_1.sig)({ category: built_in_props_1.ArgProp.Forced }) }),
|
|
342
|
+
/* a numeric color is an index into the palette */
|
|
343
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.pkg)("grDevices" /* PkgName.GrDevices */, 'col2rgb', 'adjustcolor', 'colorRampPalette', 'colorRamp'), built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, { props: built_in_props_1.CallProp.Pure, ambient: ambient_effect_1.Ambient.palette.reads, sig: shared_signatures_1.SigXDots }),
|
|
344
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('Sys.info', 'Sys.getpid', 'getRversion', 'R.Version', 'Sys.time', '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 }) }),
|
|
345
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('getwd'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: ambient_effect_1.Ambient.wd.reads, props: built_in_props_1.CallProp.Ambient, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
346
|
+
(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: ambient_effect_1.Ambient.searchPath.reads, props: built_in_props_1.CallProp.Ambient, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
347
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.base)('getOption'), built_in_proc_name_1.BuiltInProcName.Default, { ambient: { ...ambient_effect_1.Ambient.option.reads, member: { from: 'parameter', signature: ['x', 'default'], names: ['x'] }, handsBack: true }, props: built_in_props_1.CallProp.Ambient, sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
348
|
+
(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 }) }),
|
|
349
|
+
/* system commands */
|
|
350
|
+
(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 }) }),
|
|
351
|
+
(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 }) }),
|
|
352
|
+
(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 }) }),
|
|
353
|
+
(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 }) }),
|
|
354
|
+
(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 }) }),
|
|
355
|
+
/* whatever the user types, picks, or sends along with a request */
|
|
356
|
+
(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 }) }),
|
|
357
|
+
/* what opens a viewer, an editor, or the debugger, which only an interactive session has: `View(df)` left in a script does nothing under `Rscript` */
|
|
358
|
+
(0, define_helpers_1.fn)((0, define_helpers_1.utils)('View'), built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Interactive], sig: (0, shared_signatures_1.sig)({ x: shared_signatures_1.Forced.Value, title: shared_signatures_1.Forced.Value }) }),
|
|
359
|
+
/* `edit` and `data.entry` hand back what was edited, the others return invisibly */
|
|
360
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.utils)('edit', 'de', 'data.entry')], built_in_proc_name_1.BuiltInProcName.Default, { tags: [built_in_props_1.SemanticCallTag.Interactive], sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
361
|
+
(0, define_helpers_1.fn)([...(0, define_helpers_1.utils)('fix', 'file.edit', 'page', 'recover'), ...(0, define_helpers_1.base)('browser', 'debug', 'debugonce', 'undebug')], built_in_proc_name_1.BuiltInProcName.Default, { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Interactive], sig: (0, shared_signatures_1.sig)({ '...': built_in_props_1.ArgProp.Forced }) }),
|
|
362
|
+
/* they only make up a path, they do not go near the file system, so `File` would be wrong here */
|
|
363
|
+
(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 }) }),
|
|
364
|
+
/* they are all mapped to `<-` but we separate super assignments */
|
|
365
|
+
/* R dispatches these on the class of the target, to the `names<-.<class>` methods the code writes */
|
|
366
|
+
(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 }),
|
|
367
|
+
(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 }),
|
|
368
|
+
(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 }) }),
|
|
369
|
+
/* 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) */
|
|
370
|
+
(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', 'as.vector'] }, { assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn }),
|
|
371
|
+
(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 }),
|
|
372
|
+
(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 }),
|
|
373
|
+
(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 }),
|
|
374
|
+
(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 }),
|
|
375
|
+
(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 }),
|
|
376
|
+
(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 }),
|
|
377
|
+
(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 }),
|
|
378
|
+
(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 }),
|
|
379
|
+
(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 }),
|
|
380
|
+
(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 }),
|
|
381
|
+
(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),
|
|
382
|
+
/* 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 */
|
|
383
|
+
(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 }),
|
|
384
|
+
(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 }),
|
|
385
|
+
(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 }),
|
|
386
|
+
(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 }),
|
|
387
|
+
/* the ones the earlier list left short where a reader would notice */
|
|
388
|
+
(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 }),
|
|
389
|
+
(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 }),
|
|
390
|
+
(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 }),
|
|
391
|
+
(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 }),
|
|
392
|
+
(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),
|
|
393
|
+
(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),
|
|
394
|
+
/* deprecated and defunct functions of base R */
|
|
395
|
+
(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),
|
|
396
|
+
];
|
|
397
|
+
//# 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.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>];
|