@eagleoutice/flowr 2.15.8 → 2.15.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -295
- package/abstract-interpretation/absint-inference.d.ts +7 -7
- package/abstract-interpretation/absint-inference.js +44 -91
- package/abstract-interpretation/abstract-semantics.d.ts +10 -10
- package/abstract-interpretation/data-frame/arguments.d.ts +9 -9
- package/abstract-interpretation/data-frame/arguments.js +11 -11
- package/abstract-interpretation/data-frame/dataframe-semantics.d.ts +1 -1
- package/abstract-interpretation/data-frame/dataframe-semantics.js +14 -14
- package/abstract-interpretation/unsupported-functions.d.ts +0 -1
- package/abstract-interpretation/unsupported-functions.js +1 -2
- package/abstract-interpretation/value-semantics.d.ts +1 -1
- package/abstract-interpretation/value-semantics.js +2 -3
- package/benchmark/calibration.d.ts +0 -2
- package/benchmark/calibration.js +0 -5
- package/benchmark/slicer.d.ts +2 -3
- package/benchmark/slicer.js +5 -6
- package/benchmark/stats/size-of.d.ts +1 -1
- package/benchmark/stats/size-of.js +2 -2
- package/benchmark/summarizer/first-phase/process.d.ts +1 -1
- package/benchmark/summarizer/first-phase/process.js +1 -1
- package/benchmark/summarizer/second-phase/graph.d.ts +1 -1
- package/benchmark/summarizer/second-phase/graph.js +1 -1
- package/cli/benchmark-app.js +3 -3
- package/cli/common/options.d.ts +0 -16
- package/cli/common/options.js +0 -3
- package/cli/common/scripts-info.d.ts +0 -16
- package/cli/compile-cache.d.ts +1 -0
- package/cli/compile-cache.js +19 -0
- package/cli/flowr-main-options.d.ts +5 -0
- package/cli/flowr-main-options.js +6 -0
- package/cli/flowr.d.ts +13 -0
- package/cli/flowr.js +27 -2
- package/cli/repl/commands/repl-clipboard.d.ts +4 -1
- package/cli/repl/commands/repl-clipboard.js +4 -1
- package/cli/repl/commands/repl-main.d.ts +0 -2
- package/cli/repl/commands/repl-main.js +0 -5
- package/cli/repl/commands/repl-normalize.js +3 -0
- package/cli/repl/commands/repl-parse.js +27 -0
- package/cli/repl/commands/repl-signature.js +29 -4
- package/cli/script-core/summarizer-core.js +0 -9
- package/cli/summarizer-app.d.ts +0 -3
- package/cli/wiki.d.ts +2 -2
- package/cli/wiki.js +18 -2
- package/config.d.ts +59 -6
- package/config.js +43 -8
- package/control-flow/cfg-dead-code.js +5 -4
- package/control-flow/cfg-properties.d.ts +2 -2
- package/control-flow/cfg-properties.js +2 -24
- package/control-flow/control-flow-graph.d.ts +32 -10
- package/control-flow/control-flow-graph.js +22 -10
- package/control-flow/diff-cfg.js +3 -2
- package/control-flow/happens-before.d.ts +6 -0
- package/control-flow/happens-before.js +52 -0
- package/control-flow/semantic-cfg-guided-visitor.d.ts +1 -1
- package/control-flow/semantic-cfg-guided-visitor.js +5 -2
- package/control-flow/simple-visitor.d.ts +2 -7
- package/control-flow/simple-visitor.js +2 -6
- package/control-flow/useless-loop.d.ts +2 -2
- package/control-flow/useless-loop.js +11 -8
- package/core/pipeline-executor.d.ts +2 -2
- package/core/pipeline-executor.js +2 -2
- package/core/steps/all/core/20-dataflow.d.ts +2 -2
- package/core/steps/all/static-slicing/00-slice.d.ts +1 -1
- package/core/steps/all/static-slicing/00-slice.js +1 -1
- package/core/steps/all/static-slicing/10-reconstruct.js +1 -1
- package/core/steps/pipeline/default-pipelines.d.ts +16 -16
- package/core/steps/pipeline/pipeline.d.ts +1 -6
- package/data/r-base-packages.generated.d.ts +2 -2
- package/data/r-base-packages.generated.js +4 -4
- package/dataflow/cluster.js +1 -1
- package/dataflow/environments/apply-kill.d.ts +4 -0
- package/dataflow/environments/apply-kill.js +49 -10
- package/dataflow/environments/built-in-config.d.ts +9 -2
- package/dataflow/environments/built-in-config.js +7 -5
- package/dataflow/environments/built-in-eval-name.d.ts +4 -2
- package/dataflow/environments/built-in-eval-name.js +3 -1
- package/dataflow/environments/built-in-proc-name.d.ts +2 -0
- package/dataflow/environments/built-in-proc-name.js +2 -0
- package/dataflow/environments/built-in-props.d.ts +30 -8
- package/dataflow/environments/built-in-props.js +35 -11
- package/dataflow/environments/built-in.d.ts +12 -8
- package/dataflow/environments/built-in.js +23 -21
- package/dataflow/environments/data-masking-functions.js +1 -1
- package/dataflow/environments/default-builtin-config.d.ts +606 -39
- package/dataflow/environments/default-builtin-config.js +211 -99
- package/dataflow/environments/define.d.ts +3 -2
- package/dataflow/environments/define.js +4 -3
- package/dataflow/environments/deprecation-info.d.ts +45 -0
- package/dataflow/environments/deprecation-info.js +13 -0
- package/dataflow/environments/environment.d.ts +6 -1
- package/dataflow/environments/environment.js +44 -15
- package/dataflow/environments/frame-memory.d.ts +41 -2
- package/dataflow/environments/frame-memory.js +143 -12
- package/dataflow/environments/identifier.d.ts +66 -9
- package/dataflow/environments/identifier.js +99 -13
- package/dataflow/environments/query-fn-props.d.ts +8 -2
- package/dataflow/environments/query-fn-props.js +20 -12
- package/dataflow/environments/reference-to-maybe.js +1 -1
- package/dataflow/environments/removal-marker.d.ts +7 -0
- package/dataflow/environments/removal-marker.js +20 -0
- package/dataflow/environments/resolve-by-name.d.ts +8 -8
- package/dataflow/environments/resolve-by-name.js +15 -12
- package/dataflow/environments/resolve-helper.d.ts +26 -4
- package/dataflow/environments/resolve-helper.js +27 -4
- package/dataflow/eval/resolve/alias-tracking.d.ts +17 -17
- package/dataflow/eval/resolve/alias-tracking.js +57 -32
- package/dataflow/eval/resolve/node-value.d.ts +15 -28
- package/dataflow/eval/resolve/node-value.js +26 -45
- package/dataflow/eval/resolve/resolve-argument.js +21 -2
- package/dataflow/eval/resolve/resolve-get.d.ts +28 -0
- package/dataflow/eval/resolve/resolve-get.js +49 -0
- package/dataflow/eval/resolve/resolve-numbers.d.ts +4 -2
- package/dataflow/eval/resolve/resolve-numbers.js +4 -2
- package/dataflow/eval/resolve/resolve-operators.d.ts +4 -1
- package/dataflow/eval/resolve/resolve-operators.js +7 -3
- package/dataflow/eval/resolve/resolve-strings.d.ts +6 -3
- package/dataflow/eval/resolve/resolve-strings.js +29 -5
- package/dataflow/eval/resolve/resolve-working-directory.js +2 -8
- package/dataflow/eval/resolve/resolve.js +27 -15
- package/dataflow/eval/values/general.js +13 -12
- package/dataflow/eval/values/intervals/interval-constants.d.ts +10 -2
- package/dataflow/eval/values/intervals/interval-constants.js +10 -2
- package/dataflow/eval/values/logical/logical-constants.d.ts +1 -8
- package/dataflow/eval/values/logical/logical-constants.js +1 -23
- package/dataflow/eval/values/r-value.d.ts +8 -9
- package/dataflow/eval/values/r-value.js +8 -8
- package/dataflow/eval/values/scalar/scalar-constants.d.ts +1 -12
- package/dataflow/eval/values/scalar/scalar-constants.js +0 -14
- package/dataflow/eval/values/sets/set-constants.d.ts +1 -4
- package/dataflow/eval/values/sets/set-constants.js +0 -11
- package/dataflow/eval/values/string/string-constants.d.ts +4 -18
- package/dataflow/eval/values/string/string-constants.js +3 -18
- package/dataflow/eval/values/vectors/vector-constants.d.ts +1 -1
- package/dataflow/eval/values/vectors/vector-constants.js +1 -1
- package/dataflow/extractor.js +181 -13
- package/dataflow/fn/argument-roles.d.ts +10 -12
- package/dataflow/fn/argument-roles.js +16 -22
- package/dataflow/fn/class-declaration.d.ts +5 -38
- package/dataflow/fn/class-declaration.js +6 -51
- package/dataflow/fn/exceptions-of-function.d.ts +3 -16
- package/dataflow/fn/exceptions-of-function.js +5 -21
- package/dataflow/fn/frame-reflection.d.ts +5 -19
- package/dataflow/fn/frame-reflection.js +14 -29
- package/dataflow/fn/function-props.d.ts +9 -10
- package/dataflow/fn/function-props.js +16 -20
- package/dataflow/fn/function-semantics.d.ts +130 -0
- package/dataflow/fn/function-semantics.js +89 -0
- package/dataflow/fn/higher-order-function.d.ts +16 -16
- package/dataflow/fn/higher-order-function.js +30 -34
- package/dataflow/fn/recursive-function.js +1 -1
- package/dataflow/fn/strict-function.d.ts +8 -20
- package/dataflow/fn/strict-function.js +28 -41
- package/dataflow/graph/call-graph.d.ts +9 -0
- package/dataflow/graph/call-graph.js +15 -14
- package/dataflow/graph/dataflowgraph-builder.d.ts +18 -23
- package/dataflow/graph/dataflowgraph-builder.js +18 -29
- package/dataflow/graph/df-helper.d.ts +22 -109
- package/dataflow/graph/df-helper.js +20 -64
- package/dataflow/graph/diff-dataflow-graph.d.ts +5 -0
- package/dataflow/graph/diff-dataflow-graph.js +12 -7
- package/dataflow/graph/edge.d.ts +1 -0
- package/dataflow/graph/edge.js +1 -0
- package/dataflow/graph/graph-helper.d.ts +26 -1
- package/dataflow/graph/graph-helper.js +53 -2
- package/dataflow/graph/graph.d.ts +49 -7
- package/dataflow/graph/graph.js +60 -9
- package/dataflow/graph/match-args.d.ts +16 -12
- package/dataflow/graph/match-args.js +68 -26
- package/dataflow/graph/vertex.d.ts +39 -58
- package/dataflow/graph/vertex.js +38 -66
- package/dataflow/info.d.ts +5 -2
- package/dataflow/info.js +3 -1
- package/dataflow/internal/control-flow.d.ts +13 -12
- package/dataflow/internal/control-flow.js +13 -12
- package/dataflow/internal/linker.d.ts +27 -15
- package/dataflow/internal/linker.js +180 -37
- package/dataflow/internal/process/functions/call/built-in/built-in-access.js +6 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.d.ts +113 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +506 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +17 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.d.ts +19 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +131 -55
- package/dataflow/internal/process/functions/call/built-in/built-in-class-generator.js +10 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-class-relation.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-env-contents.d.ts +21 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-env-contents.js +99 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +59 -12
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +189 -48
- package/dataflow/internal/process/functions/call/built-in/built-in-eval.d.ts +2 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-eval.js +60 -9
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +71 -15
- package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +2 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +123 -25
- package/dataflow/internal/process/functions/call/built-in/built-in-get.d.ts +5 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-get.js +62 -28
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +25 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-list.d.ts +9 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-list.js +26 -10
- package/dataflow/internal/process/functions/call/built-in/built-in-load.js +3 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-local.js +17 -10
- package/dataflow/internal/process/functions/call/built-in/built-in-new-env.js +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-pipe.js +36 -22
- package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.d.ts +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.js +7 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-quote.js +3 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-recall.js +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-register-hook.js +7 -11
- package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.d.ts +5 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.js +9 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-replacement.d.ts +2 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-replacement.js +28 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +5 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-s-four.d.ts +4 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-s-four.js +4 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-dispatch.js +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.d.ts +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.js +14 -15
- package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.js +10 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-source.js +3 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +8 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +21 -13
- package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.d.ts +1 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +29 -11
- package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +2 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-with.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-with.js +15 -12
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +5 -5
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +23 -16
- package/dataflow/internal/process/functions/call/common.d.ts +10 -2
- package/dataflow/internal/process/functions/call/common.js +38 -10
- package/dataflow/internal/process/functions/call/deferred.d.ts +7 -3
- package/dataflow/internal/process/functions/call/deferred.js +47 -16
- package/dataflow/internal/process/functions/call/known-call-handling.d.ts +4 -4
- package/dataflow/internal/process/functions/call/known-call-handling.js +18 -9
- package/dataflow/internal/process/functions/call/named-call-handling.d.ts +1 -1
- package/dataflow/internal/process/functions/call/named-call-handling.js +20 -4
- package/dataflow/internal/process/functions/call/nse.d.ts +1 -2
- package/dataflow/internal/process/functions/call/nse.js +13 -15
- package/dataflow/internal/process/functions/call/quoted.d.ts +3 -4
- package/dataflow/internal/process/functions/call/quoted.js +229 -62
- package/dataflow/internal/process/functions/call/unnamed-call-handling.js +2 -2
- package/dataflow/internal/process/functions/process-parameter.d.ts +4 -1
- package/dataflow/internal/process/functions/process-parameter.js +4 -1
- package/dataflow/internal/process/process-symbol.js +6 -2
- package/dataflow/origin/dfg-get-origin.d.ts +1 -1
- package/dataflow/origin/dfg-get-origin.js +17 -10
- package/dataflow/origin/dfg-get-symbol-refs.d.ts +2 -2
- package/dataflow/origin/dfg-get-symbol-refs.js +2 -2
- package/dataflow/processor.d.ts +10 -0
- package/documentation/data/dfg/doc-data-dfg-util.d.ts +2 -2
- package/documentation/data/dfg/doc-data-dfg-util.js +2 -2
- package/documentation/data/faq/faqs.d.ts +2 -1
- package/documentation/data/faq/faqs.js +14 -5
- package/documentation/data/interface/doc-writing-code.js +1 -2
- package/documentation/data/server/doc-data-server-messages.d.ts +2 -1
- package/documentation/data/server/doc-data-server-messages.js +9 -8
- package/documentation/doc-capabilities.d.ts +13 -7
- package/documentation/doc-capabilities.js +489 -124
- package/documentation/doc-util/doc-auto-gen.d.ts +4 -2
- package/documentation/doc-util/doc-auto-gen.js +22 -4
- package/documentation/doc-util/doc-cfg.js +2 -2
- package/documentation/doc-util/doc-code.d.ts +8 -2
- package/documentation/doc-util/doc-code.js +36 -7
- package/documentation/doc-util/doc-dfg.d.ts +2 -0
- package/documentation/doc-util/doc-dfg.js +4 -3
- package/documentation/doc-util/doc-env.d.ts +2 -1
- package/documentation/doc-util/doc-env.js +2 -1
- package/documentation/doc-util/doc-escape.d.ts +2 -2
- package/documentation/doc-util/doc-escape.js +2 -2
- package/documentation/doc-util/doc-files.d.ts +0 -2
- package/documentation/doc-util/doc-files.js +2 -3
- package/documentation/doc-util/doc-normalized-ast.js +2 -2
- package/documentation/doc-util/doc-query.d.ts +2 -4
- package/documentation/doc-util/doc-query.js +8 -6
- package/documentation/doc-util/doc-repl.d.ts +1 -1
- package/documentation/doc-util/doc-repl.js +1 -1
- package/documentation/doc-util/doc-search.js +2 -2
- package/documentation/doc-util/doc-server-message.js +2 -2
- package/documentation/doc-util/doc-sigdb.js +1 -1
- package/documentation/doc-util/doc-structure.d.ts +10 -3
- package/documentation/doc-util/doc-structure.js +10 -3
- package/documentation/doc-util/doc-timings.d.ts +19 -0
- package/documentation/doc-util/doc-timings.js +44 -0
- package/documentation/doc-util/doc-types.d.ts +8 -6
- package/documentation/doc-util/doc-types.js +11 -8
- package/documentation/index.d.ts +1 -0
- package/documentation/index.js +1 -0
- package/documentation/wiki-analyzer.js +1 -1
- package/documentation/wiki-cfg.js +5 -6
- package/documentation/wiki-core.js +11 -8
- package/documentation/wiki-create-linting-rules.js +1 -1
- package/documentation/wiki-dataflow-graph.js +29 -31
- package/documentation/wiki-engine.js +13 -2
- package/documentation/wiki-helper-objects.d.ts +9 -0
- package/documentation/wiki-helper-objects.js +102 -0
- package/documentation/wiki-interface.js +2 -2
- package/documentation/wiki-linter.js +154 -16
- package/documentation/wiki-linting-and-testing.js +101 -8
- package/documentation/wiki-mk/doc-context.d.ts +33 -29
- package/documentation/wiki-mk/doc-context.js +1 -0
- package/documentation/wiki-mk/doc-maker.d.ts +1 -1
- package/documentation/wiki-mk/doc-maker.js +18 -2
- package/documentation/wiki-overview.js +6 -6
- package/documentation/wiki-query.js +50 -98
- package/documentation/wiki-signature-database.js +8 -4
- package/gas.d.ts +3 -2
- package/index.d.ts +18 -3
- package/index.js +29 -3
- package/linter/linter-executor.js +2 -2
- package/linter/linter-format.d.ts +9 -3
- package/linter/linter-format.js +2 -0
- package/linter/linter-rules.d.ts +118 -98
- package/linter/linter-rules.js +3 -1
- package/linter/rules/absolute-path.d.ts +10 -10
- package/linter/rules/absolute-path.js +9 -12
- package/linter/rules/dataframe-access-validation.d.ts +2 -2
- package/linter/rules/dataframe-access-validation.js +17 -4
- package/linter/rules/dead-code.d.ts +2 -2
- package/linter/rules/dead-code.js +1 -1
- package/linter/rules/deprecated-functions.d.ts +5 -49
- package/linter/rules/deprecated-functions.js +30 -39
- package/linter/rules/file-path-validity.d.ts +7 -7
- package/linter/rules/file-path-validity.js +4 -4
- package/linter/rules/function-finder-util.d.ts +0 -6
- package/linter/rules/function-finder-util.js +7 -2
- package/linter/rules/namespace-access.d.ts +42 -0
- package/linter/rules/namespace-access.js +78 -0
- package/linter/rules/naming-convention.d.ts +3 -3
- package/linter/rules/naming-convention.js +7 -3
- package/linter/rules/network-functions.d.ts +5 -5
- package/linter/rules/network-functions.js +5 -6
- package/linter/rules/no-leaked-credentials.d.ts +3 -3
- package/linter/rules/no-leaked-credentials.js +4 -5
- package/linter/rules/problematic-inputs.d.ts +5 -5
- package/linter/rules/problematic-inputs.js +13 -21
- package/linter/rules/roxygen-arguments.d.ts +1 -1
- package/linter/rules/roxygen-arguments.js +4 -3
- package/linter/rules/seeded-randomness.d.ts +6 -5
- package/linter/rules/seeded-randomness.js +15 -13
- package/linter/rules/software-has-license.d.ts +2 -2
- package/linter/rules/software-has-license.js +2 -2
- package/linter/rules/software-has-tests.d.ts +3 -3
- package/linter/rules/software-has-tests.js +2 -2
- package/linter/rules/stop-with-call-arg.d.ts +1 -1
- package/linter/rules/stop-with-call-arg.js +16 -3
- package/linter/rules/syntactically-valid.d.ts +3 -3
- package/linter/rules/syntactically-valid.js +2 -2
- package/linter/rules/unclosed-connection.d.ts +3 -3
- package/linter/rules/unclosed-connection.js +23 -12
- package/linter/rules/undefined-symbol-util.d.ts +3 -1
- package/linter/rules/undefined-symbol-util.js +9 -7
- package/linter/rules/undefined-symbol.d.ts +4 -4
- package/linter/rules/undefined-symbol.js +4 -4
- package/linter/rules/unescaped-arguments.d.ts +37 -37
- package/linter/rules/unescaped-arguments.js +20 -21
- package/linter/rules/unused-definition.d.ts +3 -3
- package/linter/rules/unused-definition.js +63 -26
- package/linter/rules/unused-import.d.ts +4 -4
- package/linter/rules/unused-import.js +14 -5
- package/linter/rules/useless-loop.d.ts +3 -3
- package/linter/rules/useless-loop.js +3 -3
- package/package.json +6 -4
- package/project/context/flowr-analyzer-context.d.ts +5 -0
- package/project/context/flowr-analyzer-context.js +5 -0
- package/project/context/flowr-analyzer-dependencies-context.d.ts +3 -3
- package/project/context/flowr-analyzer-environment-context.d.ts +20 -1
- package/project/context/flowr-analyzer-environment-context.js +24 -1
- package/project/context/flowr-analyzer-files-context.d.ts +7 -3
- package/project/context/flowr-analyzer-files-context.js +53 -22
- package/project/context/flowr-analyzer-functions-context.d.ts +1 -6
- package/project/context/flowr-analyzer-functions-context.js +1 -7
- package/project/context/flowr-analyzer-gas-context.d.ts +7 -0
- package/project/context/flowr-analyzer-gas-context.js +6 -1
- package/project/dependency-version-space.d.ts +7 -0
- package/project/dependency-version-space.js +2 -2
- package/project/flowr-analyzer-builder.d.ts +14 -4
- package/project/flowr-analyzer-builder.js +3 -1
- package/project/flowr-analyzer.d.ts +5 -3
- package/project/flowr-analyzer.js +25 -4
- package/project/plugins/file-plugins/files/flowr-description-file.d.ts +1 -1
- package/project/plugins/file-plugins/files/flowr-description-file.js +2 -2
- package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +1 -1
- package/project/plugins/file-plugins/files/flowr-namespace-file.js +1 -1
- package/project/plugins/file-plugins/files/flowr-rda-file.d.ts +0 -2
- package/project/plugins/file-plugins/files/flowr-rda-file.js +18 -61
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +3 -3
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +33 -10
- package/project/plugins/file-plugins/files/flowr-sweave-file.d.ts +2 -2
- package/project/plugins/file-plugins/files/flowr-sweave-file.js +2 -2
- package/project/plugins/file-plugins/files/r-fun-tab.d.ts +4 -67
- package/project/plugins/file-plugins/files/r-fun-tab.js +6 -653
- package/project/plugins/file-plugins/flowr-analyzer-description-file-plugin.d.ts +4 -1
- package/project/plugins/file-plugins/flowr-analyzer-description-file-plugin.js +4 -1
- package/project/plugins/file-plugins/flowr-analyzer-file-plugin.js +2 -1
- package/project/plugins/flowr-analyzer-plugin.d.ts +1 -1
- package/project/plugins/flowr-analyzer-plugin.js +1 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.d.ts +0 -19
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +10 -55
- package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +2 -2
- package/project/sigdb/build.js +4 -0
- package/project/sigdb/codec.d.ts +0 -4
- package/project/sigdb/codec.js +1 -8
- package/project/sigdb/manifest.d.ts +2 -2
- package/project/sigdb/manifest.js +12 -7
- package/project/sigdb/memory-source.js +2 -1
- package/project/sigdb/reader.js +26 -63
- package/project/sigdb/schema.d.ts +0 -2
- package/project/sigdb/schema.js +1 -7
- package/project/sigdb/sigdb-download.d.ts +29 -6
- package/project/sigdb/sigdb-download.js +212 -64
- package/project/sigdb/signature-db.d.ts +9 -1
- package/project/sigdb/signature-db.js +8 -0
- package/queries/catalog/call-context-query/call-context-query-executor.d.ts +1 -1
- package/queries/catalog/call-context-query/call-context-query-executor.js +5 -4
- package/queries/catalog/call-context-query/call-context-query-format.d.ts +1 -1
- package/queries/catalog/call-context-query/cascade-action.d.ts +3 -1
- package/queries/catalog/call-context-query/cascade-action.js +2 -0
- package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +5 -2
- package/queries/catalog/call-context-query/identify-link-to-nested-call-relation.js +1 -1
- package/queries/catalog/dependencies-query/dependencies-query-executor.js +40 -6
- package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +33 -54
- package/queries/catalog/dependencies-query/dependencies-query-format.js +37 -13
- package/queries/catalog/dependencies-query/function-info/derived-functions.d.ts +3 -2
- package/queries/catalog/dependencies-query/function-info/derived-functions.js +5 -5
- package/queries/catalog/dependencies-query/function-info/read-functions.d.ts +6 -1
- package/queries/catalog/dependencies-query/function-info/read-functions.js +12 -9
- package/queries/catalog/dependencies-query/function-info/statistics-functions.d.ts +2 -2
- package/queries/catalog/dependencies-query/function-info/statistics-functions.js +1 -2
- package/queries/catalog/dependencies-query/function-info/write-functions.d.ts +9 -1
- package/queries/catalog/dependencies-query/function-info/write-functions.js +17 -6
- package/queries/catalog/dependencies-query/implicit-echo.js +28 -5
- package/queries/catalog/dependencies-query/link-devices.js +23 -10
- package/queries/catalog/dice-query/dice-query-executor.js +2 -14
- package/queries/catalog/does-call-query/does-call-query-executor.js +1 -2
- package/queries/catalog/files-query/files-query-format.d.ts +1 -1
- package/queries/catalog/function-info-query/function-info-query-executor.d.ts +7 -0
- package/queries/catalog/function-info-query/function-info-query-executor.js +38 -0
- package/queries/catalog/function-info-query/function-info-query-format.d.ts +48 -0
- package/queries/catalog/function-info-query/function-info-query-format.js +54 -0
- package/queries/catalog/function-info-query/function-origin.d.ts +22 -0
- package/queries/catalog/function-info-query/function-origin.js +46 -0
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.js +2 -1
- package/queries/catalog/happens-before-query/happens-before-query-format.d.ts +1 -0
- package/queries/catalog/happens-before-query/happens-before-query-format.js +1 -0
- package/queries/catalog/input-sources-query/input-source-functions.d.ts +2 -2
- package/queries/catalog/input-sources-query/input-source-functions.js +1 -2
- package/queries/catalog/input-sources-query/input-sources-query-executor.js +2 -2
- package/queries/catalog/input-sources-query/input-sources-query-format.d.ts +4 -2
- package/queries/catalog/input-sources-query/input-sources-query-format.js +24 -24
- package/queries/catalog/input-sources-query/input-types.d.ts +2 -2
- package/queries/catalog/input-sources-query/input-types.js +2 -2
- package/queries/catalog/input-sources-query/simple-input-classifier.js +6 -6
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-executor.js +2 -2
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.d.ts +1 -1
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-executor.js +6 -7
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.d.ts +4 -4
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.js +8 -7
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-executor.js +3 -2
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.d.ts +1 -1
- package/queries/catalog/inspect-recursion-query/inspect-recursion-query-format.d.ts +1 -1
- package/queries/catalog/linter-query/linter-query-format.d.ts +1 -1
- package/queries/catalog/origin-query/origin-query-executor.d.ts +1 -1
- package/queries/catalog/origin-query/origin-query-executor.js +2 -2
- package/queries/catalog/origin-query/origin-query-format.d.ts +2 -2
- package/queries/catalog/origin-query/origin-query-format.js +1 -1
- package/queries/catalog/signature-query/signature-query-executor.d.ts +2 -11
- package/queries/catalog/signature-query/signature-query-executor.js +124 -63
- package/queries/catalog/signature-query/signature-query-format.d.ts +21 -0
- package/queries/catalog/signature-query/signature-query-format.js +5 -1
- package/queries/catalog/signature-query/signature-query-render.js +28 -3
- package/queries/catalog/slice-query-options.d.ts +19 -2
- package/queries/catalog/slice-query-options.js +19 -3
- package/queries/catalog/static-slice-query/static-slice-query-executor.d.ts +2 -2
- package/queries/catalog/static-slice-query/static-slice-query-executor.js +4 -17
- package/queries/query-function-filter.d.ts +1 -0
- package/queries/query-function-filter.js +1 -0
- package/queries/query.d.ts +14 -3
- package/queries/query.js +4 -1
- package/r-bridge/data/data.d.ts +1441 -449
- package/r-bridge/data/data.js +1072 -479
- package/r-bridge/data/get.d.ts +1 -6
- package/r-bridge/data/get.js +0 -32
- package/r-bridge/data/types.d.ts +3 -0
- package/r-bridge/init.d.ts +7 -2
- package/r-bridge/init.js +10 -5
- package/r-bridge/lang-4.x/ast/model/model.d.ts +10 -8
- package/r-bridge/lang-4.x/ast/model/model.js +9 -10
- package/r-bridge/lang-4.x/ast/model/nodes/r-access.d.ts +4 -4
- package/r-bridge/lang-4.x/ast/model/nodes/r-argument.d.ts +5 -5
- package/r-bridge/lang-4.x/ast/model/nodes/r-argument.js +1 -1
- package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.d.ts +4 -4
- package/r-bridge/lang-4.x/ast/model/nodes/r-break.d.ts +4 -4
- package/r-bridge/lang-4.x/ast/model/nodes/r-comment.d.ts +4 -4
- package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.d.ts +4 -4
- package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.d.ts +4 -4
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.d.ts +6 -6
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.js +2 -2
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.d.ts +4 -4
- package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.d.ts +4 -4
- package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.d.ts +4 -4
- package/r-bridge/lang-4.x/ast/model/nodes/r-logical.d.ts +4 -4
- package/r-bridge/lang-4.x/ast/model/nodes/r-next.d.ts +4 -4
- package/r-bridge/lang-4.x/ast/model/nodes/r-number.d.ts +4 -4
- package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.d.ts +5 -5
- package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.js +1 -1
- package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.d.ts +6 -4
- package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.js +4 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-project.d.ts +4 -3
- package/r-bridge/lang-4.x/ast/model/nodes/r-project.js +4 -3
- package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.d.ts +4 -4
- package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +5 -5
- package/r-bridge/lang-4.x/ast/model/nodes/r-string.js +1 -1
- package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.d.ts +5 -5
- package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.js +1 -1
- package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.d.ts +4 -4
- package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.d.ts +4 -4
- package/r-bridge/lang-4.x/ast/model/processing/decorate.d.ts +4 -20
- package/r-bridge/lang-4.x/ast/model/processing/decorate.js +4 -43
- package/r-bridge/lang-4.x/ast/model/processing/node-id.d.ts +11 -0
- package/r-bridge/lang-4.x/ast/model/processing/node-id.js +18 -3
- package/r-bridge/lang-4.x/ast/model/processing/role.d.ts +0 -5
- package/r-bridge/lang-4.x/ast/model/processing/role.js +0 -13
- package/r-bridge/lang-4.x/ast/model/versions.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/versions.js +3 -1
- package/r-bridge/lang-4.x/ast/parser/json/parser.js +3 -2
- package/r-bridge/lang-4.x/ast/parser/main/internal/expression/normalize-expression.d.ts +2 -2
- package/r-bridge/lang-4.x/ast/parser/main/internal/expression/normalize-expression.js +2 -2
- package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-argument.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-argument.js +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-call.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-call.js +10 -2
- package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-definition.d.ts +2 -2
- package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-definition.js +2 -2
- package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-parameter.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-parameter.js +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-break.d.ts +3 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-break.js +3 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-for.d.ts +5 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-for.js +5 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-next.d.ts +3 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-next.js +3 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-repeat.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-repeat.js +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/normalize-access.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/normalize-access.js +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-binary.js +39 -2
- package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-unary.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-unary.js +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/structure/normalize-single-node.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/structure/normalize-single-node.js +2 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-symbol.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-symbol.js +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/normalize-meta.d.ts +2 -2
- package/r-bridge/lang-4.x/ast/parser/main/normalize-meta.js +2 -2
- package/r-bridge/lang-4.x/convert-values.d.ts +6 -0
- package/r-bridge/lang-4.x/convert-values.js +6 -0
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.d.ts +4 -4
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +13 -4
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.d.ts +1 -1
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +15 -2
- package/r-bridge/parser.d.ts +1 -1
- package/r-bridge/parser.js +1 -1
- package/r-bridge/retriever.d.ts +0 -21
- package/r-bridge/retriever.js +5 -63
- package/r-bridge/roxygen2/documentation-provider.d.ts +2 -2
- package/r-bridge/roxygen2/documentation-provider.js +2 -2
- package/r-bridge/shell-executor.js +1 -1
- package/r-bridge/shell.d.ts +4 -4
- package/r-bridge/shell.js +58 -35
- package/reconstruct/inline/source-inline-map.d.ts +15 -22
- package/reconstruct/inline/source-inline-map.js +63 -70
- package/reconstruct/reconstruct.d.ts +1 -1
- package/reconstruct/reconstruct.js +5 -2
- package/search/flowr-search-builder.d.ts +17 -16
- package/search/flowr-search-builder.js +9 -8
- package/search/flowr-search-filters.d.ts +1 -13
- package/search/flowr-search-filters.js +4 -13
- package/search/search-executor/search-enrichers.d.ts +2 -2
- package/search/search-executor/search-enrichers.js +3 -3
- package/search/search-executor/search-generators.d.ts +0 -3
- package/search/search-executor/search-transformer.d.ts +0 -3
- package/slicing/criterion/parse.d.ts +24 -20
- package/slicing/criterion/parse.js +34 -24
- package/slicing/static/slice-call.d.ts +1 -1
- package/slicing/static/slice-call.js +28 -9
- package/slicing/static/static-slicer.js +3 -4
- package/slicing/static/visiting-queue.d.ts +3 -1
- package/slicing/static/visiting-queue.js +25 -14
- package/util/accessor.d.ts +22 -0
- package/util/accessor.js +3 -0
- package/util/assert.d.ts +14 -8
- package/util/assert.js +25 -8
- package/util/collections/arrays.d.ts +11 -7
- package/util/collections/arrays.js +14 -14
- package/util/collections/defaultmap.d.ts +5 -0
- package/util/collections/defaultmap.js +14 -0
- package/util/diff-graph.d.ts +1 -2
- package/util/diff-graph.js +0 -1
- package/util/files.d.ts +22 -34
- package/util/files.js +38 -51
- package/util/glob.js +1 -1
- package/util/json.d.ts +0 -7
- package/util/json.js +0 -15
- package/util/logic.d.ts +5 -0
- package/util/logic.js +6 -1
- package/util/mermaid/dfg.d.ts +2 -1
- package/util/mermaid/dfg.js +7 -6
- package/util/mermaid/mermaid.d.ts +1 -0
- package/util/mermaid/mermaid.js +7 -2
- package/util/numbers.d.ts +0 -5
- package/util/numbers.js +0 -9
- package/util/objects.d.ts +3 -3
- package/util/objects.js +3 -3
- package/util/quads.d.ts +2 -2
- package/util/quads.js +1 -1
- package/util/r-base-packages.d.ts +14 -1
- package/util/r-base-packages.js +21 -1
- package/util/r-package-urls.d.ts +33 -0
- package/util/r-package-urls.js +79 -0
- package/util/r-version.d.ts +8 -2
- package/util/r-version.js +8 -2
- package/util/range.d.ts +173 -54
- package/util/range.js +221 -75
- package/util/record.d.ts +7 -6
- package/util/record.js +7 -6
- package/util/simple-df/dfg-ascii.js +6 -6
- package/util/summarizer.d.ts +2 -15
- package/util/summarizer.js +0 -15
- package/util/text/args.d.ts +2 -2
- package/util/text/args.js +2 -2
- package/util/text/playground-link.d.ts +3 -23
- package/util/text/playground-link.js +10 -10
- package/util/text/r-highlight.d.ts +20 -0
- package/util/text/r-highlight.js +171 -0
- package/util/text/strings.d.ts +6 -0
- package/util/text/strings.js +11 -2
- package/util/version.js +2 -2
- package/cli/run-script.d.ts +0 -7
- package/cli/run-script.js +0 -17
- package/project/sigdb/signature-match.d.ts +0 -18
- package/project/sigdb/signature-match.js +0 -32
- package/util/text/text.d.ts +0 -5
- package/util/text/text.js +0 -24
|
@@ -6,8 +6,10 @@ exports.namespacePlotFunctions = namespacePlotFunctions;
|
|
|
6
6
|
exports.statedSignatures = statedSignatures;
|
|
7
7
|
exports.statedSignatureOf = statedSignatureOf;
|
|
8
8
|
exports.getDefaultProcessor = getDefaultProcessor;
|
|
9
|
+
const function_semantics_1 = require("../fn/function-semantics");
|
|
9
10
|
const identify_link_to_last_call_relation_1 = require("../../queries/catalog/call-context-query/identify-link-to-last-call-relation");
|
|
10
11
|
const type_1 = require("../../r-bridge/lang-4.x/ast/model/type");
|
|
12
|
+
const vertex_1 = require("../graph/vertex");
|
|
11
13
|
const cascade_action_1 = require("../../queries/catalog/call-context-query/cascade-action");
|
|
12
14
|
const unnamed_call_handling_1 = require("../internal/process/functions/call/unnamed-call-handling");
|
|
13
15
|
const hooks_1 = require("../hooks");
|
|
@@ -19,8 +21,11 @@ const nse_1 = require("../internal/process/functions/call/nse");
|
|
|
19
21
|
const data_masking_functions_1 = require("./data-masking-functions");
|
|
20
22
|
const built_in_props_1 = require("./built-in-props");
|
|
21
23
|
const r_base_packages_1 = require("../../util/r-base-packages");
|
|
24
|
+
const r_base_primitives_generated_1 = require("../../data/r-base-primitives.generated");
|
|
22
25
|
const r_base_packages_generated_1 = require("../../data/r-base-packages.generated");
|
|
23
26
|
const r_value_1 = require("../eval/values/r-value");
|
|
27
|
+
const deprecation_info_1 = require("./deprecation-info");
|
|
28
|
+
const built_in_ambient_state_1 = require("../internal/process/functions/call/built-in/built-in-ambient-state");
|
|
24
29
|
/** Which stack environment an env-returning/-transforming builtin denotes (see {@link StackEnvBuiltins}). */
|
|
25
30
|
var StackEnvKind;
|
|
26
31
|
(function (StackEnvKind) {
|
|
@@ -263,7 +268,7 @@ exports.GgPlotAddons = [
|
|
|
263
268
|
const PlotAddons = exports.GraphicsPlotAddons.concat(exports.GgPlotImplicitAddons, ...exports.PlotFunctionsWithAddParam);
|
|
264
269
|
/** The packages exporting magrittr's `%>%`: the tidyverse and friends re-export the very same function. */
|
|
265
270
|
const MagrittrPipePackages = ["magrittr" /* PkgName.Magrittr */, "dplyr" /* PkgName.Dplyr */, "purrr" /* PkgName.Purrr */, "stringr" /* PkgName.Stringr */, "tibble" /* PkgName.Tibble */,
|
|
266
|
-
"tidyr" /* PkgName.TidyR */, "
|
|
271
|
+
"tidyr" /* PkgName.TidyR */, "testthat" /* PkgName.Testthat */, "magick" /* PkgName.Magick */, "promises" /* PkgName.Promises */];
|
|
267
272
|
/** The packages re-exporting rlang's tidy-evaluation helpers unchanged. */
|
|
268
273
|
const TidyEvalPackages = ["rlang" /* PkgName.Rlang */, "dplyr" /* PkgName.Dplyr */, "ggplot2" /* PkgName.GgPlot2 */];
|
|
269
274
|
const SigAtomicBinOp = [['e1', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Atomic], ['e2', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Atomic]];
|
|
@@ -342,8 +347,8 @@ function statedSignatures(definitions = exports.DefaultBuiltinConfig) {
|
|
|
342
347
|
const entry = {
|
|
343
348
|
pkg,
|
|
344
349
|
params: declared.length > 0 ? declared.map(([param]) => param).join(', ') : undefined,
|
|
345
|
-
props:
|
|
346
|
-
args: declared.length > 0 ? declared.map(([param, props]) => [param,
|
|
350
|
+
props: function_semantics_1.FunctionSemantics.call.props.labels(info),
|
|
351
|
+
args: declared.length > 0 ? declared.map(([param, props]) => [param, function_semantics_1.FunctionSemantics.call.argument.words(props)]) : undefined
|
|
347
352
|
};
|
|
348
353
|
const known = stated.get(name) ?? [];
|
|
349
354
|
/* the last definition for a package is the one that resolves, so it is the one stated */
|
|
@@ -365,6 +370,15 @@ const RegexConvIn = /[-/\\^$*+?.()|[\]{}]/g;
|
|
|
365
370
|
function toRegex(n) {
|
|
366
371
|
return new RegExp(`^(${Array.from(new Set(n.map(identifier_1.Identifier.getName)), s => s.replaceAll(RegexConvIn, String.raw `\$&`)).filter(s => s.length > 0).join('|')})$`);
|
|
367
372
|
}
|
|
373
|
+
const DeviceClose = ['dev.off', 'graphics.off'];
|
|
374
|
+
/** `dev.off()` closes the active device, `dev.off(which)` maybe another one */
|
|
375
|
+
function closesActiveDevice(target) {
|
|
376
|
+
if (!vertex_1.DfgVertex.isFunctionCall(target)) {
|
|
377
|
+
return false;
|
|
378
|
+
}
|
|
379
|
+
const name = identifier_1.Identifier.getName(target.name);
|
|
380
|
+
return name === 'graphics.off' || (name === 'dev.off' && target.args.length === 0);
|
|
381
|
+
}
|
|
368
382
|
/** what closing or exporting a device links back to: the plot calls that filled it */
|
|
369
383
|
const LinkToLastPlot = {
|
|
370
384
|
type: 'link-to-last-call',
|
|
@@ -414,6 +428,40 @@ function markGenerics(definitions) {
|
|
|
414
428
|
}
|
|
415
429
|
return out;
|
|
416
430
|
}
|
|
431
|
+
/**
|
|
432
|
+
* Label every name the R language itself provides {@link CallProp.Primitive}, splitting an entry that mixes
|
|
433
|
+
* them with names R does not (one definition covers `base::stopifnot` and `assertthat::assert_that`, and only
|
|
434
|
+
* the first is R's). {@link RBasePrimitives} is read out of a real R, so this states what that R has.
|
|
435
|
+
*/
|
|
436
|
+
function markPrimitives(definitions) {
|
|
437
|
+
const out = [];
|
|
438
|
+
for (const def of definitions) {
|
|
439
|
+
if (def.type !== 'function') {
|
|
440
|
+
out.push(def);
|
|
441
|
+
continue;
|
|
442
|
+
}
|
|
443
|
+
let primitives = undefined;
|
|
444
|
+
let rest = undefined;
|
|
445
|
+
for (const name of def.names) {
|
|
446
|
+
/* the set is base's own, so a name of another namespace is not the one R provides */
|
|
447
|
+
if (r_base_primitives_generated_1.RBasePrimitives.has(identifier_1.Identifier.getName(name)) && (identifier_1.Identifier.getNamespace(name) ?? "base" /* PkgName.Base */) === "base" /* PkgName.Base */) {
|
|
448
|
+
(primitives ??= []).push(name);
|
|
449
|
+
}
|
|
450
|
+
else {
|
|
451
|
+
(rest ??= []).push(name);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
if (primitives === undefined) {
|
|
455
|
+
out.push(def);
|
|
456
|
+
continue;
|
|
457
|
+
}
|
|
458
|
+
out.push({ ...def, names: primitives, config: { ...def.config, props: (def.config?.props ?? 0) | built_in_props_1.CallProp.Primitive } });
|
|
459
|
+
if (rest !== undefined) {
|
|
460
|
+
out.push({ ...def, names: rest });
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
return out;
|
|
464
|
+
}
|
|
417
465
|
/**
|
|
418
466
|
* Whether the call names a plot function that can append to an existing plot, and if so whether its `add`
|
|
419
467
|
* argument says so; `undefined` for a call that has no such argument at all.
|
|
@@ -444,12 +492,21 @@ const PlotAddonConfig = {
|
|
|
444
492
|
},
|
|
445
493
|
tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['...', built_in_props_1.ArgProp.Forced]]
|
|
446
494
|
};
|
|
495
|
+
/** the devices withr opens for a scope, as `with_<device>` and `local_<device>` */
|
|
496
|
+
const WithrDevices = ['bmp', 'cairo_pdf', 'cairo_ps', 'jpeg', 'pdf', 'png', 'svg', 'tiff', 'xfig', 'postscript'];
|
|
497
|
+
const ReadGraphicsState = { type: "read-graphics" /* AmbientStateAccessType.ReadGraphics */ };
|
|
498
|
+
const ReadPrintingOptions = { type: "read-options" /* AmbientStateAccessType.ReadOptions */, keys: built_in_ambient_state_1.PrintingOptions };
|
|
499
|
+
/* a method for the printed value may read any option, see {@link AmbientStateAccess} */
|
|
500
|
+
const PrintDispatched = { type: "read-options" /* AmbientStateAccessType.ReadOptions */, keys: built_in_ambient_state_1.PrintingOptions, dispatchOn: 0 };
|
|
501
|
+
const OpenDevice = { type: "open-device" /* AmbientStateAccessType.OpenDevice */ };
|
|
447
502
|
/** what creating a plot does; restated by the deprecated plot creators, which do the same but should not be used */
|
|
448
503
|
const PlotCreateConfig = {
|
|
449
504
|
hasUnknownSideEffects: {
|
|
450
505
|
type: 'link-to-last-call',
|
|
451
506
|
ignoreIf: (source, graph) => appendsToPlot(source, graph) === true,
|
|
452
|
-
callName: toRegex(GraphicDeviceOpen)
|
|
507
|
+
callName: toRegex(GraphicDeviceOpen.concat(DeviceClose)),
|
|
508
|
+
/* a device closed in between is not the one the plot goes to (the graphics state knows which one it is) */
|
|
509
|
+
cascadeIf: (target) => closesActiveDevice(target) ? cascade_action_1.CascadeAction.Block : cascade_action_1.CascadeAction.Stop
|
|
453
510
|
},
|
|
454
511
|
tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['...', built_in_props_1.ArgProp.Forced]]
|
|
455
512
|
};
|
|
@@ -476,7 +533,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
476
533
|
{ type: 'constant', names: [identifier_1.Identifier.from(['month.abb', "base" /* PkgName.Base */])], value: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], assumePrimitive: true },
|
|
477
534
|
{ type: 'constant', names: [identifier_1.Identifier.from(['month.name', "base" /* PkgName.Base */])], value: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], assumePrimitive: true },
|
|
478
535
|
/* formula: operands are model terms/columns, not variables */
|
|
479
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['~', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { markArgsAsMasked: known_call_handling_1.NseArguments.All }, assumePrimitive: false },
|
|
536
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['~', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { markArgsAsMasked: known_call_handling_1.NseArguments.All, sig: [['y', built_in_props_1.ArgProp.Nse], ['model', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Nse]] }, assumePrimitive: false },
|
|
480
537
|
/* cohortBuilder has a `filter` too, and built-ins go by name, so dplyr's entry below wins in the environment
|
|
481
538
|
while this one still states what cohortBuilder's does */
|
|
482
539
|
{ type: 'function', names: [identifier_1.Identifier.from(['filter', "cohortBuilder" /* PkgName.CohortBuilder */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Pure, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
@@ -496,7 +553,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
496
553
|
{ type: 'function', names: [identifier_1.Identifier.from(['?', "utils" /* PkgName.Utils */])], /* shows the help page of what it is given */
|
|
497
554
|
processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { sig: [['e1', built_in_props_1.ArgProp.Nse], ['e2', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
|
|
498
555
|
/* the result follows from how large the argument is, not from what is in it, so it is bounded (`Narrows`) */
|
|
499
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['length', 'lengths', 'nrow', 'ncol', 'NROW', 'NCOL', 'dim', 'is.null', 'is.factor', 'is.vector', 'is.matrix', 'is.data.frame', 'is.numeric', 'is.character', 'is.logical', 'is.function', 'is.list']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: SigShape }, assumePrimitive: true },
|
|
556
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['length', 'lengths', 'nrow', 'ncol', 'NROW', 'NCOL', 'dim', 'is.null', 'is.factor', 'is.vector', 'is.matrix', 'is.data.frame', 'is.numeric', 'is.character', 'is.logical', 'is.function', 'is.list', 'is.double', 'is.integer', 'is.complex', 'is.raw', 'is.single', 'is.ordered']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: SigShape }, assumePrimitive: true },
|
|
500
557
|
/* the names and the class are read off the argument, so whatever it carries can show up in the result */
|
|
501
558
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['dimnames', 'names', 'rownames', 'colnames', 'class']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigShape }, assumePrimitive: true },
|
|
502
559
|
{ type: 'function', names: [identifier_1.Identifier.from(['nchar', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: SigShape }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn },
|
|
@@ -521,7 +578,8 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
521
578
|
'cumsum', 'cumprod', 'cummax', 'cummin', 'diff', 'sort', 'rev', 'unique', 'duplicated', 't',
|
|
522
579
|
/* coercion */
|
|
523
580
|
'as.character', 'as.integer', 'as.logical', 'as.numeric', 'as.matrix', 'as.data.frame',
|
|
524
|
-
'as.factor', 'as.raw', 'as.list', 'as.array', 'as.double', 'as.complex', 'factor'
|
|
581
|
+
'as.factor', 'as.raw', 'as.list', 'as.array', 'as.double', 'as.complex', 'factor',
|
|
582
|
+
'as.single', 'as.ordered'
|
|
525
583
|
]),
|
|
526
584
|
...identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['head', 'tail']),
|
|
527
585
|
...identifier_1.Identifier.fromAll("stats" /* PkgName.Stats */, ['var', 'sd', 'median', 'quantile']),
|
|
@@ -540,7 +598,11 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
540
598
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['basename', 'dirname']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn },
|
|
541
599
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Re', 'Im', 'Mod', 'Arg', 'Conj']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['z', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
542
600
|
/* the vector constructors take the length of the result, not its contents */
|
|
543
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['numeric', 'character', 'logical', 'integer', 'double', 'raw']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['length', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
601
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['numeric', 'character', 'logical', 'integer', 'double', 'raw', 'single']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['length', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
602
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['vector', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['length', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
603
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['mat.or.vec', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['nr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['nc', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
604
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['as.vector', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: true },
|
|
605
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['rep_len', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['length.out', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
544
606
|
{ type: 'function', names: [identifier_1.Identifier.from(['na.omit', "stats" /* PkgName.Stats */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['object', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
545
607
|
/* two data arguments, under the names R gives them */
|
|
546
608
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['xor', 'crossprod', 'tcrossprod', 'intersect', 'union', 'setdiff']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigXY }, assumePrimitive: true },
|
|
@@ -561,7 +623,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
561
623
|
type: 'function',
|
|
562
624
|
names: [
|
|
563
625
|
...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, [
|
|
564
|
-
'rep', 'rep.int', 'seq
|
|
626
|
+
'rep', 'rep.int', 'seq.int', 'append', 'complex',
|
|
565
627
|
'matrix', 'array', 'table', 'prop.table', 'colSums', 'rowSums', 'colMeans', 'rowMeans',
|
|
566
628
|
'solve', 'det', 'eigen', 'aperm',
|
|
567
629
|
/* string */
|
|
@@ -580,11 +642,13 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
580
642
|
{ type: 'function', names: [...identifier_1.Identifier.fromAll("stats" /* PkgName.Stats */, ['anova', 'ansari.test', 'aov', 'bartlett.test', 'binom.test', 'Box.test', 'chisq.test', 'cor.test', 'fisher.test', 'fligner.test', 'friedman.test', 'kruskal.test', 'ks.test', 'manova', 'mantelhaen.test', 'mauchly.test', 'mcnemar.test', 'mood.test', 'oneway.test', 'pairwise.prop.test', 'pairwise.t.test', 'pairwise.wilcox.test', 'poisson.test', 'PP.test', 'prop.test', 'prop.trend.test', 'quade.test', 'shapiro.test', 't.test', 'TukeyHSD', 'var.test', 'wilcox.test']), ...identifier_1.Identifier.fromAll("car" /* PkgName.Car */, ['Anova', 'durbinWatsonTest', 'leveneTest', 'linearHypothesis', 'ncvTest', 'outlierTest']), ...identifier_1.Identifier.fromAll("lmtest" /* PkgName.LmTest */, ['bgtest', 'bptest', 'coeftest', 'dwtest', 'gqtest', 'lrtest', 'raintest', 'resettest', 'waldtest']), ...identifier_1.Identifier.fromAll("nortest" /* PkgName.NorTest */, ['ad.test', 'cvm.test', 'lillie.test', 'pearson.test', 'sf.test']), ...identifier_1.Identifier.fromAll("tseries" /* PkgName.Tseries */, ['adf.test', 'jarque.bera.test', 'kpss.test', 'pp.test', 'runs.test', 'white.test']), ...identifier_1.Identifier.fromAll("rstatix" /* PkgName.Rstatix */, ['anova_test', 'chisq_test', 'cor_test', 'kruskal_test', 'shapiro_test', 't_test', 'wilcox_test']), identifier_1.Identifier.from(['glht', "multcomp" /* PkgName.Multcomp */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Statistics] }, assumePrimitive: false },
|
|
581
643
|
/* indices and index sequences: bounded by the shape of what they are handed, never by its contents */
|
|
582
644
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['which', 'which.max', 'which.min', 'seq_len', 'seq_along']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows] }, assumePrimitive: true },
|
|
645
|
+
/* `seq` dispatches, so `...` really is all it declares; the named formals belong to `seq.default`/`seq.int` */
|
|
646
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['seq', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
583
647
|
/* they open a device that writes the plot to the file they are given, under the name each of them uses */
|
|
584
|
-
{ type: 'function', names: [...identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['png', 'jpeg', 'bmp', 'tiff', 'svg', 'cairo_pdf']), identifier_1.Identifier.from(['raster_pdf', "rasterpdf" /* PkgName.RasterPdf */]), ...identifier_1.Identifier.fromAll("ragg" /* PkgName.Ragg */, ['agg_png', 'agg_jpeg', 'agg_tiff', 'agg_ppm', 'agg_webp'])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['filename', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['width', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['height', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
585
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['pdf', 'postscript', 'xfig', 'bitmap', 'pictex']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['type', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['height', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['width', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
648
|
+
{ type: 'function', names: [...identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['png', 'jpeg', 'bmp', 'tiff', 'svg', 'cairo_pdf']), identifier_1.Identifier.from(['raster_pdf', "rasterpdf" /* PkgName.RasterPdf */]), ...identifier_1.Identifier.fromAll("ragg" /* PkgName.Ragg */, ['agg_png', 'agg_jpeg', 'agg_tiff', 'agg_ppm', 'agg_webp'])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { ambient: OpenDevice, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['filename', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['width', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['height', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
649
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['pdf', 'postscript', 'xfig', 'bitmap', 'pictex']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { ambient: OpenDevice, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['type', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['height', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['width', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
586
650
|
/* devices that draw on the screen or into memory instead */
|
|
587
|
-
{ type: 'function', names: [...identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['X11', 'windows', 'quartz', 'dev.new']), identifier_1.Identifier.from(['trellis.device', "lattice" /* PkgName.Lattice */]), ...identifier_1.Identifier.fromAll("magick" /* PkgName.Magick */, ['image_graph', 'image_draw'])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Graphics] }, assumePrimitive: true },
|
|
651
|
+
{ type: 'function', names: [...identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['X11', 'windows', 'quartz', 'dev.new']), identifier_1.Identifier.from(['trellis.device', "lattice" /* PkgName.Lattice */]), ...identifier_1.Identifier.fromAll("magick" /* PkgName.Magick */, ['image_graph', 'image_draw'])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Configures, ambient: OpenDevice, tags: [built_in_props_1.SemanticCallTag.Graphics] }, assumePrimitive: true },
|
|
588
652
|
{ type: 'function', names: [identifier_1.Identifier.from(['read.csv', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['header', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['sep', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['quote', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['dec', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['fill', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['comment.char', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
589
653
|
{ type: 'function', names: [identifier_1.Identifier.from(['scan', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.User], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
590
654
|
/* the package functions that read or write a file, each naming the argument that holds the path; the
|
|
@@ -797,14 +861,14 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
797
861
|
{ type: 'function', names: [identifier_1.Identifier.from(['new_handle', "curl" /* PkgName.Curl */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Opens, built_in_props_1.SemanticCallTag.Network], sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
798
862
|
{ type: 'function', names: [identifier_1.Identifier.from(['getURL', "RCurl" /* PkgName.Rcurl */]), identifier_1.Identifier.from(['getForm', "rBDAT" /* PkgName.Rbdat */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
799
863
|
{ type: 'function', names: identifier_1.Identifier.fromAll("xml2" /* PkgName.Xml2 */, ['read_html', 'read_xml']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['encoding', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
800
|
-
{ type: 'function', names:
|
|
864
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("xml2" /* PkgName.Xml2 */, ['download_html', 'download_xml']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
801
865
|
/* `html_nodes`/`html_text` take a document, but rvest lets that be an address it fetches first */
|
|
802
866
|
{ type: 'function', names: identifier_1.Identifier.fromAll("rvest" /* PkgName.Rvest */, ['html_nodes', 'html_text']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
803
867
|
{ type: 'function', names: [identifier_1.Identifier.from(['read_html_live', "rvest" /* PkgName.Rvest */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
804
868
|
{ type: 'function', names: identifier_1.Identifier.fromAll("xfun" /* PkgName.Xfun */, ['url_filename', 'url_accessible', 'url_destination']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
805
869
|
{ type: 'function', names: identifier_1.Identifier.fromAll("googledrive" /* PkgName.GoogleDrive */, ['drive_get', 'drive_download', 'shared_drive_get', 'shared_drive_rm']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
806
870
|
{ type: 'function', names: identifier_1.Identifier.fromAll("aws.s3" /* PkgName.AwsS3 */, ['s3read_using', 's3write_using']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['FUN', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['object', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
807
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['
|
|
871
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['gcs_get_object', "googleCloudStorageR" /* PkgName.GoogleCloudStorageR */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['object_name', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['saveToDisk', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
808
872
|
{ type: 'function', names: [identifier_1.Identifier.from(['AnnotationHub', "AnnotationHub" /* PkgName.AnnotationHub */]), identifier_1.Identifier.from(['ExperimentHub', "ExperimentHub" /* PkgName.ExperimentHub */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['hub', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
809
873
|
{ type: 'function', names: identifier_1.Identifier.fromAll("devtools" /* PkgName.Devtools */, ['source_url', 'source_gist']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
810
874
|
{ type: 'function', names: [identifier_1.Identifier.from(['github_pull', "remotes" /* PkgName.Remotes */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['pull', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
@@ -818,6 +882,15 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
818
882
|
{ type: 'function', names: [identifier_1.Identifier.from(['close', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Generic, tags: [built_in_props_1.SemanticCallTag.Closes], sig: [['con', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
819
883
|
{ type: 'function', names: [identifier_1.Identifier.from(['closeAllConnections', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Closes] }, assumePrimitive: false },
|
|
820
884
|
{ type: 'function', names: [identifier_1.Identifier.from(['dbDisconnect', "DBI" /* PkgName.Dbi */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Closes, built_in_props_1.SemanticCallTag.Database], sig: [['conn', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
885
|
+
/* withr and rlang change the options or the graphics state for the code they run, or for the rest of the calling function */
|
|
886
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['with_options', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures, scope: { state: 'options', params: ['new', 'code'], new: 'new', code: 'code' } }, assumePrimitive: false },
|
|
887
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['local_options', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures | built_in_props_1.CallProp.Invisible, scope: { state: 'options', params: ['.new', '...', '.local_envir'], new: '.new' } }, assumePrimitive: false },
|
|
888
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['with_options', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures, scope: { state: 'options', params: ['.expr', '...'], code: '.expr' } }, assumePrimitive: false },
|
|
889
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['local_options', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures | built_in_props_1.CallProp.Invisible, scope: { state: 'options', params: ['...', '.frame'] } }, assumePrimitive: false },
|
|
890
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['with_par', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures, scope: { state: 'graphics', params: ['new', 'code', 'no.readonly'], new: 'new', code: 'code' } }, assumePrimitive: false },
|
|
891
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['local_par', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures | built_in_props_1.CallProp.Invisible, scope: { state: 'graphics', params: ['.new', '...', 'no.readonly', '.local_envir'], new: '.new' } }, assumePrimitive: false },
|
|
892
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("withr" /* PkgName.Withr */, WithrDevices.map(d => `with_${d}`)), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures, scope: { state: 'device', params: ['new', 'code'], code: 'code' } }, assumePrimitive: false },
|
|
893
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("withr" /* PkgName.Withr */, WithrDevices.map(d => `local_${d}`)), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Configures | built_in_props_1.CallProp.Invisible, scope: { state: 'device', params: ['.new', '...', '.local_envir'] } }, assumePrimitive: false },
|
|
821
894
|
/* withr closes the connection it is handed when the scope it is called in ends */
|
|
822
895
|
{ type: 'function', names: [identifier_1.Identifier.from(['local_connection', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Closes], sig: [['con', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['.local_envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Written]] }, assumePrimitive: false },
|
|
823
896
|
{ type: 'function', names: [identifier_1.Identifier.from(['with_connection', "withr" /* PkgName.Withr */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, props: built_in_props_1.CallProp.MayPure, tags: [built_in_props_1.SemanticCallTag.Closes], sig: [['con', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['code', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
@@ -834,12 +907,12 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
834
907
|
{ type: 'function', names: identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['write.csv', 'write.csv2']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
835
908
|
{ type: 'function', names: identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['read.table', 'read.delim', 'read.csv2', 'read.delim2']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
836
909
|
{ type: 'function', names: [identifier_1.Identifier.from(['download.file', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['destfile', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
837
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['jitter', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Random] }, assumePrimitive: true },
|
|
910
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['jitter', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Random], sig: [['x', built_in_props_1.ArgProp.NoDefault], ['factor', 0], ['amount', 0]] }, assumePrimitive: true },
|
|
838
911
|
{ type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['sample', 'sample.int']), ...identifier_1.Identifier.fromAll("stats" /* PkgName.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'])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Random] }, assumePrimitive: false },
|
|
839
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['expression', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Lang }, assumePrimitive: true },
|
|
840
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['rm', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Rm, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope }, assumePrimitive: true },
|
|
912
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['expression', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Lang, sig: [['...', 0]] }, assumePrimitive: true },
|
|
913
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['rm', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Rm, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, sig: [['...', 0], ['list', 0], ['pos', 0], ['envir', 0], ['inherits', 0]] }, assumePrimitive: true },
|
|
841
914
|
/* they read the state they set, so both bits apply */
|
|
842
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['options', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: {
|
|
915
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['options', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "set-options" /* AmbientStateAccessType.SetOptions */ }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Ambient | built_in_props_1.CallProp.Configures, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
843
916
|
/* `Sys.putenv` is defunct in current R, older scripts still use it */
|
|
844
917
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Sys.setenv', 'Sys.unsetenv', 'Sys.setlocale', 'Sys.putenv', 'Sys.setLanguage']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
845
918
|
{ type: 'function', names: [identifier_1.Identifier.from(['future', "future" /* PkgName.Future */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Concurrent, sig: [['expr', built_in_props_1.ArgProp.Nse], ['envir', built_in_props_1.ArgProp.Written], ['substitute', built_in_props_1.ArgProp.Flag], ['globals', built_in_props_1.ArgProp.Value], ['packages', built_in_props_1.ArgProp.Value], ['lazy', built_in_props_1.ArgProp.Flag], ['seed', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
@@ -857,30 +930,32 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
857
930
|
{ type: 'function', names: [identifier_1.Identifier.from(['mirai_map', "mirai" /* PkgName.Mirai */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: '.f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure | built_in_props_1.CallProp.Concurrent, sig: [['.x', built_in_props_1.ArgProp.Value], ['.f', built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
858
931
|
{ type: 'function', names: [identifier_1.Identifier.from(['daemons', "mirai" /* PkgName.Mirai */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures | built_in_props_1.CallProp.Concurrent, tags: [built_in_props_1.SemanticCallTag.Process], sig: [['n', built_in_props_1.ArgProp.Value], ['url', built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
859
932
|
{ type: 'function', names: identifier_1.Identifier.fromAll("callr" /* PkgName.Callr */, ['r_bg', 'rcmd_bg']), processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'func', unquoteFunction: true, props: built_in_props_1.CallProp.Concurrent, tags: [built_in_props_1.SemanticCallTag.Process, built_in_props_1.SemanticCallTag.Opens], sig: [['func', built_in_props_1.ArgProp.Callee], ['args', built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
860
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("RcppParallel" /* PkgName.RcppParallel */, ['parallelFor', 'parallelReduce']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Concurrent | built_in_props_1.CallProp.Ffi, sig: [['begin', built_in_props_1.ArgProp.Value], ['end', built_in_props_1.ArgProp.Value], ['worker', built_in_props_1.ArgProp.Callee], ['grainSize', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
861
933
|
{ type: 'function', names: [identifier_1.Identifier.from(['setThreadOptions', "RcppParallel" /* PkgName.RcppParallel */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures | built_in_props_1.CallProp.Concurrent, sig: [['numThreads', built_in_props_1.ArgProp.Value], ['stackSize', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
862
934
|
{ type: 'function', names: [identifier_1.Identifier.from(['mapply', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['Mapply', "functools" /* PkgName.Functools */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['FUN', built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
863
935
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['lapply', 'sapply', 'vapply']), processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['X', built_in_props_1.ArgProp.Value], ['FUN', built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
864
936
|
/* `vapply` takes the shape of the result before its `...`, so naming it keeps the positions honest */
|
|
865
937
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['vapply', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['X', built_in_props_1.ArgProp.Value], ['FUN', built_in_props_1.ArgProp.Callee], ['FUN.VALUE', built_in_props_1.ArgProp.Shape], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
866
938
|
{ type: 'function', names: identifier_1.Identifier.fromAll("functools" /* PkgName.Functools */, ['Lapply', 'Sapply', 'Vapply']), processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
867
|
-
{ type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['apply', 'tapply']), identifier_1.Identifier.from(['Tapply', "functools" /* PkgName.Functools */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 2, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
939
|
+
{ type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['apply', 'tapply']), identifier_1.Identifier.from(['Tapply', "functools" /* PkgName.Functools */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 2, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['X', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
|
|
868
940
|
{ type: 'function', names: [identifier_1.Identifier.from(['Map', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['f', built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
869
941
|
{ type: 'function', names: [identifier_1.Identifier.from(['Filter', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['f', built_in_props_1.ArgProp.Callee], ['x', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
870
942
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Find', 'Position']), processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['f', built_in_props_1.ArgProp.Callee], ['x', built_in_props_1.ArgProp.Value], ['right', built_in_props_1.ArgProp.Flag], ['nomatch', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
871
943
|
{ type: 'function', names: [identifier_1.Identifier.from(['Reduce', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['f', built_in_props_1.ArgProp.Callee]] }, assumePrimitive: false },
|
|
872
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['rapply', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
873
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['print', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Generic, tags: [built_in_props_1.SemanticCallTag.Prints], sig: [['x', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced], ['...', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
874
|
-
{ type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['message', 'warning']), identifier_1.Identifier.from(['warn', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['
|
|
944
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['rapply', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['object', built_in_props_1.ArgProp.NoDefault], ['f', built_in_props_1.ArgProp.NoDefault], ['classes', 0], ['deflt', 0], ['how', 0], ['...', 0]] }, assumePrimitive: false },
|
|
945
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['print', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, ambient: PrintDispatched, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Generic, tags: [built_in_props_1.SemanticCallTag.Prints], sig: [['x', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced], ['...', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
946
|
+
{ type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['message', 'warning']), identifier_1.Identifier.from(['warn', "rlang" /* PkgName.Rlang */]), identifier_1.Identifier.from(['info', "msgr" /* PkgName.Msgr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Prints], sig: [['...', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
875
947
|
{ type: 'function', names: [identifier_1.Identifier.from(['invisible', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, props: built_in_props_1.CallProp.Pure | built_in_props_1.CallProp.Invisible, sig: [['x', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
876
948
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['force', 'identity']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
877
949
|
// graphics base
|
|
878
|
-
{ type: 'function', names: namespacePlotFunctions(exports.
|
|
950
|
+
{ type: 'function', names: namespacePlotFunctions(exports.GraphicsPlotCreate.concat(exports.TinyPlotCrate)), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ...PlotCreateConfig, ambient: ReadGraphicsState }, assumePrimitive: true },
|
|
951
|
+
/* grid-based plots ignore the base graphics parameters */
|
|
952
|
+
{ type: 'function', names: namespacePlotFunctions(exports.GgPlotCreate), processor: built_in_proc_name_1.BuiltInProcName.Default, config: PlotCreateConfig, assumePrimitive: true },
|
|
879
953
|
/* `qplot` creates a plot like the ones above and is deprecated on top of it; registered after them so this
|
|
880
954
|
definition is the one that sticks */
|
|
881
955
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['qplot', "ggplot2" /* PkgName.GgPlot2 */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ...PlotCreateConfig, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.Deprecated] }, assumePrimitive: true },
|
|
882
956
|
// graphics addons
|
|
883
|
-
{ overrides: true, type: 'function', names: namespacePlotFunctions(
|
|
957
|
+
{ overrides: true, type: 'function', names: namespacePlotFunctions(exports.GraphicsPlotAddons.concat(...exports.PlotFunctionsWithAddParam)), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ...PlotAddonConfig, ambient: ReadGraphicsState }, assumePrimitive: true },
|
|
958
|
+
{ type: 'function', names: namespacePlotFunctions(exports.GgPlotImplicitAddons), processor: built_in_proc_name_1.BuiltInProcName.Default, config: PlotAddonConfig, assumePrimitive: true },
|
|
884
959
|
/* addons ggplot2 deprecated: they still add to a plot, so they keep what the ones above state */
|
|
885
960
|
{ overrides: true, type: 'function', names: identifier_1.Identifier.fromAll("ggplot2" /* PkgName.GgPlot2 */, ['coord_map', 'coord_flip', 'annotation_logticks']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ...PlotAddonConfig, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.Deprecated] }, assumePrimitive: true },
|
|
886
961
|
// plot tags
|
|
@@ -889,8 +964,11 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
889
964
|
{ type: 'function', names: [...identifier_1.Identifier.fromAll("magick" /* PkgName.Magick */, ['image_capture']), ...identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['dev.capture'])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: LinkToLastPlot, tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
890
965
|
/* they put what the device holds on disk */
|
|
891
966
|
{ type: 'function', names: [identifier_1.Identifier.from(['image_write', "magick" /* PkgName.Magick */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, hasUnknownSideEffects: LinkToLastPlot, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['image', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: true },
|
|
892
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['dev.off'
|
|
893
|
-
{ type: 'function', names: ['
|
|
967
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['dev.off']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Configures, libFn: true, ambient: { type: "close-device" /* AmbientStateAccessType.CloseDevice */ }, hasUnknownSideEffects: LinkToLastPlot, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.Closes, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
968
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['graphics.off']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Configures, libFn: true, ambient: { type: "close-device" /* AmbientStateAccessType.CloseDevice */, all: true }, hasUnknownSideEffects: LinkToLastPlot, tags: [built_in_props_1.SemanticCallTag.Graphics, built_in_props_1.SemanticCallTag.Closes, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
969
|
+
/* switching the active device makes its graphics state the one in effect */
|
|
970
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['dev.set', 'dev.next', 'dev.prev']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Configures, libFn: true, ambient: { type: "switch-device" /* AmbientStateAccessType.SwitchDevice */ }, tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['which', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
971
|
+
{ type: 'function', names: ['('], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Group },
|
|
894
972
|
{ type: 'function', names: [identifier_1.Identifier.from(['load_all', "pkgload" /* PkgName.PkgLoad */]), identifier_1.Identifier.from(['load_all', "devtools" /* PkgName.Devtools */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Scope, sig: [['path', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
895
973
|
{ type: 'function', names: [identifier_1.Identifier.from(['setwd', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Ambient | built_in_props_1.CallProp.Configures, sig: [['dir', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
896
974
|
{ type: 'function', names: [identifier_1.Identifier.from(['set.seed', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.Random], sig: [['seed', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
@@ -918,9 +996,9 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
918
996
|
},
|
|
919
997
|
{ type: 'function', names: [identifier_1.Identifier.from(['eval', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: false, keepEnvironment: true, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['enclos', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
920
998
|
{ type: 'function', names: [identifier_1.Identifier.from(['evalText', "SoDA" /* PkgName.Soda */]), identifier_1.Identifier.from(['evalText', "FastUtils" /* PkgName.FastUtils */])], processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { includeFunctionCall: true, supportFunctionCall: true, keepEnvironment: true, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['text', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
921
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['cat', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, 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: [['...', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
999
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['cat', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, ambient: ReadPrintingOptions, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes, built_in_props_1.SemanticCallTag.Prints], sig: [['...', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
922
1000
|
{ type: 'function', names: [identifier_1.Identifier.from(['switch', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { alternativeArgsFrom: 1, useAsProcessor: built_in_proc_name_1.BuiltInProcName.Switch, props: built_in_props_1.CallProp.Pure, sig: [['EXPR', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
923
|
-
{ type: 'function', names: ['return'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { cfg: 1 /* ExitPointType.Return */, keepArgumentOut: true, useAsProcessor: built_in_proc_name_1.BuiltInProcName.Return, props: built_in_props_1.CallProp.Pure, sig: [['value', built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true },
|
|
1001
|
+
{ type: 'function', names: ['return'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { cfg: 1 /* ExitPointType.Return */, keepArgumentOut: true, useAsProcessor: built_in_proc_name_1.BuiltInProcName.Return, props: built_in_props_1.CallProp.Pure, sig: [['value', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true },
|
|
924
1002
|
{
|
|
925
1003
|
type: 'function',
|
|
926
1004
|
names: [
|
|
@@ -935,35 +1013,47 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
935
1013
|
},
|
|
936
1014
|
/* the block is evaluated whatever happens, the handlers only when something does, and an error keeps the value from coming back */
|
|
937
1015
|
{ type: 'function', names: [identifier_1.Identifier.from(['try', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: {}, sig: [['expr', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
938
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['tryCatch', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['tryCatchLog', "tryCatchLog" /* PkgName.TryCatchLog */])], processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: { error: 'error', finally: 'finally' }, sig: [['expr', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['
|
|
939
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['
|
|
1016
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['tryCatch', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['tryCatchLog', "tryCatchLog" /* PkgName.TryCatchLog */])], processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', handlers: { error: 'error', finally: 'finally' }, sig: [['expr', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['...', built_in_props_1.ArgProp.Callee], ['finally', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
|
|
1017
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['withCallingHandlers', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Try, config: { block: 'expr', aborts: false, handlers: {}, sig: [['expr', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['...', built_in_props_1.ArgProp.Callee]] }, assumePrimitive: true },
|
|
1018
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['stopifnot', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['assert_that', "assertthat" /* PkgName.AssertThat */])], processor: built_in_proc_name_1.BuiltInProcName.StopIfNot, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Throws, sig: [['...', 0], ['exprs', built_in_props_1.ArgProp.NoDefault], ['exprObject', built_in_props_1.ArgProp.NoDefault], ['local', 0]] }, assumePrimitive: false },
|
|
940
1019
|
{ type: 'function', names: ['break'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { useAsProcessor: built_in_proc_name_1.BuiltInProcName.Break, cfg: 2 /* ExitPointType.Break */ }, assumePrimitive: false },
|
|
941
1020
|
{ type: 'function', names: ['next'], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { cfg: 3 /* ExitPointType.Next */ }, assumePrimitive: false },
|
|
942
|
-
{ type: 'function', names: ['{'], processor: built_in_proc_name_1.BuiltInProcName.ExpressionList, config: {}, assumePrimitive: true },
|
|
1021
|
+
{ type: 'function', names: ['{'], processor: built_in_proc_name_1.BuiltInProcName.ExpressionList, config: { props: built_in_props_1.CallProp.Pure, sig: [['...', 0]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Group },
|
|
943
1022
|
{ type: 'function', names: [identifier_1.Identifier.from(['source', "base" /* PkgName.Base */])],
|
|
944
1023
|
/* it hands back what it evaluated invisibly, so a top-level `source()` prints nothing of its own */
|
|
945
1024
|
processor: built_in_proc_name_1.BuiltInProcName.Source,
|
|
946
1025
|
config: { includeFunctionCall: true, forceFollow: false, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads],
|
|
947
1026
|
sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['local', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['echo', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
948
1027
|
{ type: 'function', names: [identifier_1.Identifier.from(['sys.source', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Written]] }, assumePrimitive: false },
|
|
949
|
-
{ type: 'function', names: ['['], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
950
|
-
{ type: 'function', names: ['[['], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false, resolveField: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1028
|
+
{ type: 'function', names: ['['], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1029
|
+
{ type: 'function', names: ['[['], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false, resolveField: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
951
1030
|
/* the field is a name rather than a value, so it is never evaluated */
|
|
952
|
-
{ type: 'function', names: ['$', '@'], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: true, resolveField: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Value], ['name', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
|
|
953
|
-
{ type: 'function', names: ['::'], processor: built_in_proc_name_1.BuiltInProcName.NamespaceAccess, config: { internal: false }, assumePrimitive: true },
|
|
954
|
-
{ type: 'function', names: [':::'], processor: built_in_proc_name_1.BuiltInProcName.NamespaceAccess, config: { internal: true }, assumePrimitive: true },
|
|
955
|
-
{ type: 'function', names: ['if'], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: {}, assumePrimitive: true },
|
|
956
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['ifelse', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['fifelse', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['IfElse', "functools" /* PkgName.Functools */])], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'test', yes: 'yes', no: 'no' }, props: built_in_props_1.CallProp.Pure }, assumePrimitive: true },
|
|
1031
|
+
{ type: 'function', names: ['$', '@'], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: true, resolveField: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['name', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
|
|
1032
|
+
{ type: 'function', names: ['::'], processor: built_in_proc_name_1.BuiltInProcName.NamespaceAccess, config: { internal: false, sig: [['pkg', built_in_props_1.ArgProp.NoDefault], ['name', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
|
|
1033
|
+
{ type: 'function', names: [':::'], processor: built_in_proc_name_1.BuiltInProcName.NamespaceAccess, config: { internal: true, sig: [['pkg', built_in_props_1.ArgProp.NoDefault], ['name', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
|
|
1034
|
+
{ type: 'function', names: ['if'], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { sig: [['cond', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Atomic], ['cons.expr', built_in_props_1.ArgProp.NoDefault], ['alt.expr', 0]] }, assumePrimitive: true },
|
|
1035
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['ifelse', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['fifelse', "data.table" /* PkgName.DataTable */]), identifier_1.Identifier.from(['IfElse', "functools" /* PkgName.Functools */])], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'test', yes: 'yes', no: 'no' }, props: built_in_props_1.CallProp.Pure, sig: [['test', built_in_props_1.ArgProp.NoDefault], ['yes', built_in_props_1.ArgProp.NoDefault], ['no', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
|
|
957
1036
|
{ type: 'function', names: [identifier_1.Identifier.from(['if_else', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'condition', yes: 'true', no: 'false' }, props: built_in_props_1.CallProp.Pure }, assumePrimitive: true },
|
|
958
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['get', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['pos', built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
959
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['get0', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['ifnotfound', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
960
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['
|
|
961
|
-
{ type: 'function', names: identifier_1.Identifier.
|
|
962
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['
|
|
963
|
-
{ type: 'function', names: identifier_1.Identifier.
|
|
964
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['
|
|
965
|
-
|
|
966
|
-
{ type: 'function', names: ['
|
|
1037
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['get', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, evalHandler: built_in_eval_name_1.BuiltInEvalName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['pos', built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1038
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['get0', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, evalHandler: built_in_eval_name_1.BuiltInEvalName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['ifnotfound', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1039
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['ls', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['objects', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.EnvContents, config: { props: built_in_props_1.CallProp.Pure, sig: [['name', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['pos', built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['all.names', built_in_props_1.ArgProp.Flag], ['pattern', built_in_props_1.ArgProp.Value], ['sorted', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1040
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['list2env', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.ListToEnv, config: { props: built_in_props_1.CallProp.Scope, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['envir', built_in_props_1.ArgProp.Written]] }, assumePrimitive: false },
|
|
1041
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['mget', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['ifnotfound', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1042
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['exists', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, config: { returnsValue: false, props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['where', built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['frame', built_in_props_1.ArgProp.Flag], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1043
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['match.fun', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, evalHandler: built_in_eval_name_1.BuiltInEvalName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['FUN', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['descend', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1044
|
+
/* what a call does to a package is stated by its tags: loading the namespace, attaching it, answering whether it is there */
|
|
1045
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['library', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { 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: [['package', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
|
|
1046
|
+
/* `require` attaches like `library`, but answers FALSE instead of failing when the package is missing */
|
|
1047
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['require', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { 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: [['package', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
|
|
1048
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['attachNamespace', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { 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: [['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]] }, assumePrimitive: false },
|
|
1049
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['requireNamespace', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { namespaceOnly: true, characterOnly: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage, built_in_props_1.SemanticCallTag.ChecksPackage], sig: [['package', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
|
|
1050
|
+
/* other than `requireNamespace`, it hands back the namespace visibly */
|
|
1051
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['loadNamespace', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { namespaceOnly: true, characterOnly: true, props: built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage], sig: [['package', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
|
|
1052
|
+
/* they only look whether a package is installed, nothing is loaded */
|
|
1053
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['find.package', "base" /* PkgName.Base */]), ...identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['installed.packages', 'packageVersion', 'packageDescription'])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Ambient, tags: [built_in_props_1.SemanticCallTag.ChecksPackage], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1054
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['from', "import" /* PkgName.Import */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { fromImports: true, props: built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage, built_in_props_1.SemanticCallTag.AttachesPackage] }, assumePrimitive: false },
|
|
1055
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['use', "box" /* PkgName.Box */]), identifier_1.Identifier.from(['use', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Library, config: { boxUse: true, props: built_in_props_1.CallProp.Scope, tags: [built_in_props_1.SemanticCallTag.LoadsPackage, built_in_props_1.SemanticCallTag.AttachesPackage], sig: [['package', built_in_props_1.ArgProp.NoDefault], ['include.only', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: false },
|
|
1056
|
+
{ type: 'function', names: ['<-', '='], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { canBeReplacement: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['x', built_in_props_1.ArgProp.NoDefault], ['value', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true },
|
|
967
1057
|
{ type: 'function', names: [identifier_1.Identifier.from([':=', "data.table" /* PkgName.DataTable */])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope }, assumePrimitive: true },
|
|
968
1058
|
{ type: 'function', names: [identifier_1.Identifier.from(['assign', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { targetVariable: true, mayHaveMoreArgs: true, environmentArg: 'envir', props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['x', built_in_props_1.ArgProp.Value], ['value', built_in_props_1.ArgProp.Value], ['pos', built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Written], ['inherits', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: true },
|
|
969
1059
|
{ type: 'function', names: [identifier_1.Identifier.from(['setValidity', "methods" /* PkgName.Methods */])],
|
|
@@ -972,14 +1062,14 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
972
1062
|
assignment: { targetVariable: true, mayHaveMoreArgs: true, environmentArg: 'envir' },
|
|
973
1063
|
/* `setValidity(Class, method)` attributes the validator to the class it names, not to a binding */
|
|
974
1064
|
classDecl: { system: "s4" /* ClassSystem.S4 */, nameArg: { idx: 0, name: 'Class' }, relation: 'validity' },
|
|
975
|
-
props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible
|
|
1065
|
+
props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['Class', built_in_props_1.ArgProp.NoDefault], ['method', built_in_props_1.ArgProp.NoDefault], ['where', 0]]
|
|
976
1066
|
}, assumePrimitive: true },
|
|
977
1067
|
{ type: 'function', names: [identifier_1.Identifier.from(['setIs', "methods" /* PkgName.Methods */])],
|
|
978
1068
|
processor: built_in_proc_name_1.BuiltInProcName.ClassRelation,
|
|
979
1069
|
config: {
|
|
980
1070
|
/* `setIs(class1, class2)` states the same is-a relation `contains` does, after the fact */
|
|
981
1071
|
classDecl: { system: "s4" /* ClassSystem.S4 */, nameArg: { idx: 0, name: 'class1' }, containsArg: { idx: 1, name: 'class2' }, relation: 'is' },
|
|
982
|
-
props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible
|
|
1072
|
+
props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['class1', built_in_props_1.ArgProp.NoDefault], ['class2', built_in_props_1.ArgProp.NoDefault], ['test', 0], ['coerce', 0], ['replace', 0], ['by', 0], ['where', 0], ['classDef', 0], ['extensionObject', 0], ['doComplete', 0]]
|
|
983
1073
|
}, assumePrimitive: true },
|
|
984
1074
|
{ type: 'function', names: [identifier_1.Identifier.from(['setMethod', "methods" /* PkgName.Methods */])],
|
|
985
1075
|
processor: built_in_proc_name_1.BuiltInProcName.ClassRelation,
|
|
@@ -987,17 +1077,25 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
987
1077
|
assignmentLike: { targetVariable: true, canBeReplacement: false, target: { idx: 0, name: 'f' }, source: { idx: 2, name: 'definition' }, modesForFn: ['s4'] },
|
|
988
1078
|
/* a method answers an existing generic for existing classes, both named by string rather than bound */
|
|
989
1079
|
genericArg: { idx: 0, name: 'f' },
|
|
990
|
-
classArgs: [{ idx: 1, name: 'signature' }]
|
|
1080
|
+
classArgs: [{ idx: 1, name: 'signature' }], sig: [['f', built_in_props_1.ArgProp.NoDefault], ['signature', 0], ['definition', built_in_props_1.ArgProp.NoDefault], ['where', 0], ['valueClass', 0], ['sealed', 0]]
|
|
1081
|
+
}, assumePrimitive: true },
|
|
1082
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['setReplaceMethod', "methods" /* PkgName.Methods */])],
|
|
1083
|
+
processor: built_in_proc_name_1.BuiltInProcName.ClassRelation,
|
|
1084
|
+
config: {
|
|
1085
|
+
assignmentLike: { targetVariable: true, canBeReplacement: false, targetSuffix: '<-', target: { idx: 0, name: 'f' }, source: { idx: 2, name: 'definition' }, modesForFn: ['s4'] },
|
|
1086
|
+
genericArg: { idx: 0, name: 'f' }, genericSuffix: '<-',
|
|
1087
|
+
classArgs: [{ idx: 1, name: 'signature' }], sig: [['f', built_in_props_1.ArgProp.NoDefault], ['signature', 0], ['definition', built_in_props_1.ArgProp.NoDefault], ['where', 0], ['valueClass', 0], ['sealed', 0]]
|
|
991
1088
|
}, assumePrimitive: true },
|
|
992
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['
|
|
993
|
-
{ type: 'function', names: ['
|
|
994
|
-
{ type: 'function', names: ['
|
|
995
|
-
{ type: 'function', names: ['
|
|
996
|
-
{ type: 'function', names: [
|
|
1089
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['makeActiveBinding', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { targetVariable: true, mayHaveMoreArgs: true, callsSource: true, environmentArg: 'env', props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['sym', built_in_props_1.ArgProp.Value], ['fun', built_in_props_1.ArgProp.Callee], ['env', built_in_props_1.ArgProp.Written]] }, assumePrimitive: true },
|
|
1090
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['delayedAssign', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { 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: [['x', built_in_props_1.ArgProp.NoDefault], ['value', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Nse], ['eval.env', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['assign.env', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Written]] }, assumePrimitive: true },
|
|
1091
|
+
{ type: 'function', names: ['<<-'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, canBeReplacement: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['x', built_in_props_1.ArgProp.NoDefault], ['value', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true },
|
|
1092
|
+
{ type: 'function', names: ['->'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { swapSourceAndTarget: true, canBeReplacement: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['value', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias], ['x', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
|
|
1093
|
+
{ type: 'function', names: ['->>'], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { superAssignment: true, swapSourceAndTarget: true, canBeReplacement: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Invisible, sig: [['value', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Alias], ['x', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
|
|
1094
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['data', "utils" /* PkgName.Utils */]), identifier_1.Identifier.from(['getHdata', "Hmisc" /* PkgName.Hmisc */])], processor: built_in_proc_name_1.BuiltInProcName.DefineArgument, config: { superAssignment: true, sig: [['...', 0], ['list', 0], ['package', 0], ['lib.loc', 0], ['verbose', 0], ['envir', 0], ['overwrite', 0]] }, assumePrimitive: false },
|
|
997
1095
|
/* only `&&`/`||` short-circuit */
|
|
998
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['&&', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: true, props: built_in_props_1.CallProp.Pure }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Logical },
|
|
999
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['||', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: false, props: built_in_props_1.CallProp.Pure }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Logical },
|
|
1000
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['&', '|']), processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: false, props: built_in_props_1.CallProp.Pure }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Logical },
|
|
1096
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['&&', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Atomic], ['y', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Atomic]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Logical },
|
|
1097
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['||', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: true, evalRhsWhen: false, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Atomic], ['y', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Atomic]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Logical },
|
|
1098
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['&', '|']), processor: built_in_proc_name_1.BuiltInProcName.SpecialBinOp, config: { lazy: false, props: built_in_props_1.CallProp.Pure, sig: [['e1', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Atomic], ['e2', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Atomic]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Logical },
|
|
1001
1099
|
/* a pipe hands back what the side it feeds hands back, which `Alias` is what states */
|
|
1002
1100
|
{ type: 'function', names: ['|>'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '_', assignLhs: false, returnLhs: false, sig: [['lhs', built_in_props_1.ArgProp.Value], ['rhs', built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true },
|
|
1003
1101
|
{ type: 'function', names: [...identifier_1.Identifier.fromAllIn(MagrittrPipePackages, ['%>%']), '%!>%'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', assignLhs: false, returnLhs: false, rhsMightBeSymbol: true, sig: [['lhs', built_in_props_1.ArgProp.Value], ['rhs', built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true },
|
|
@@ -1021,7 +1119,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1021
1119
|
{ type: 'function', names: [identifier_1.Identifier.from(['map2_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.x' }, '.y': { index: 1, name: '.y' } }, '.f': { index: 2, name: '.f' }, ignore: ['.progress', '.ptype'] } },
|
|
1022
1120
|
{ type: 'function', names: [identifier_1.Identifier.from(['across', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.cols' } }, '.f': { index: 1, name: '.fns' }, ignore: ['.names', '.unpack'] } },
|
|
1023
1121
|
{ type: 'function', names: [identifier_1.Identifier.from(['rename_with', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.data' } }, '.f': { index: 1, name: '.fn' }, ignore: ['.cols'] } },
|
|
1024
|
-
{ type: 'function', names: ['function', '\\'], processor: built_in_proc_name_1.BuiltInProcName.FunctionDefinition, config: {}, assumePrimitive: true },
|
|
1122
|
+
{ type: 'function', names: ['function', '\\'], processor: built_in_proc_name_1.BuiltInProcName.FunctionDefinition, config: { sig: [['arglist', built_in_props_1.ArgProp.Nse], ['expr', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
|
|
1025
1123
|
{ type: 'function', names: [identifier_1.Identifier.from(['quote', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, keepEnvironment: true, props: built_in_props_1.CallProp.Lang, sig: [['expr', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
|
|
1026
1124
|
/* `bquote` evaluates the operand of `.()` */
|
|
1027
1125
|
{ type: 'function', names: [identifier_1.Identifier.from(['bquote', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, unquote: nse_1.Unquote.Bquote, keepEnvironment: true, props: built_in_props_1.CallProp.Lang, sig: [['expr', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
|
|
@@ -1040,9 +1138,9 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1040
1138
|
{ type: 'function', names: [identifier_1.Identifier.from(['brew', "brew" /* PkgName.Brew */])], processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { open: '<%=', close: '%>', props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
1041
1139
|
{ type: 'function', names: [identifier_1.Identifier.from(['rprintf', "rprintf" /* PkgName.Rprintf */])], processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { open: '$', close: '', props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
1042
1140
|
/* `local(expr)` evaluates `expr` in a frame of its own and hands its value back */
|
|
1043
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['local', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Local, config: { args: { env: 'envir', expr: 'expr' }, sig: [['expr', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1044
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['with', 'within']), processor: built_in_proc_name_1.BuiltInProcName.With, config: {}, assumePrimitive: false },
|
|
1045
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['new.env', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['new_environment', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.NewEnv, config: {}, assumePrimitive: true },
|
|
1141
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['local', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Local, config: { args: { env: 'envir', expr: 'expr' }, sig: [['expr', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced], ['envir', built_in_props_1.ArgProp.Written]] }, assumePrimitive: false },
|
|
1142
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['with', 'within']), processor: built_in_proc_name_1.BuiltInProcName.With, config: { sig: [['data', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Written], ['expr', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
|
|
1143
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['new.env', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['new_environment', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.NewEnv, config: { sig: [['hash', 0], ['parent', 0], ['size', 0]] }, assumePrimitive: true },
|
|
1046
1144
|
{ type: 'function', names: [identifier_1.Identifier.from(['R6Class', "R6" /* PkgName.R6 */])],
|
|
1047
1145
|
processor: built_in_proc_name_1.BuiltInProcName.ClassGenerator,
|
|
1048
1146
|
config: { classDecl: {
|
|
@@ -1056,7 +1154,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1056
1154
|
{ name: 'active', visibility: "active" /* MemberVisibility.Active */ }
|
|
1057
1155
|
]
|
|
1058
1156
|
} }, assumePrimitive: false },
|
|
1059
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['setRefClass', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.ClassGenerator, config: { classDecl: { system: "rc" /* ClassSystem.RefClass */, nameArg: { idx: 0, name: 'Class' }, containsArg: { idx: 2, name: 'contains' }, memberArgs: [{ idx: 1, name: 'fields', typed: true }, { idx: 3, name: 'methods', methods: true }] } }, assumePrimitive: false },
|
|
1157
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['setRefClass', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.ClassGenerator, config: { classDecl: { system: "rc" /* ClassSystem.RefClass */, nameArg: { idx: 0, name: 'Class' }, containsArg: { idx: 2, name: 'contains' }, memberArgs: [{ idx: 1, name: 'fields', typed: true }, { idx: 3, name: 'methods', methods: true }] }, sig: [['Class', built_in_props_1.ArgProp.NoDefault], ['fields', 0], ['contains', 0], ['methods', 0], ['where', 0], ['inheritPackage', 0], ['...', 0]] }, assumePrimitive: false },
|
|
1060
1158
|
/* env-returning builtins pointing into the current search-path stack (`e <- globalenv(); e$x`) */
|
|
1061
1159
|
{ type: 'function', names: Object.entries(exports.StackEnvBuiltins)
|
|
1062
1160
|
.filter(([n, kind]) => !n.startsWith('.') && (kind === StackEnvKind.Global || kind === StackEnvKind.Base || kind === StackEnvKind.Empty))
|
|
@@ -1067,24 +1165,24 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1067
1165
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['sys.frame', 'sys.frames']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { frame: built_in_props_1.ArgProp.Value }, assumePrimitive: true },
|
|
1068
1166
|
{ type: 'function', names: [identifier_1.Identifier.from(['load', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Load, config: { 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: [['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1069
1167
|
/* attach injects an environment's contents into the search path; detach reverses it (treated as unknown side effect) */
|
|
1070
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['attach', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Attach, config: {}, assumePrimitive: false },
|
|
1071
|
-
{ type: 'function', names: ['for'], processor: built_in_proc_name_1.BuiltInProcName.ForLoop, config: {}, assumePrimitive: true },
|
|
1072
|
-
{ type: 'function', names: ['repeat'], processor: built_in_proc_name_1.BuiltInProcName.RepeatLoop, config: {}, assumePrimitive: true },
|
|
1073
|
-
{ type: 'function', names: ['while'], processor: built_in_proc_name_1.BuiltInProcName.WhileLoop, config: {}, assumePrimitive: true },
|
|
1168
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['attach', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Attach, config: { sig: [['what', built_in_props_1.ArgProp.NoDefault], ['pos', 0], ['name', 0], ['warn.conflicts', 0]] }, assumePrimitive: false },
|
|
1169
|
+
{ type: 'function', names: ['for'], processor: built_in_proc_name_1.BuiltInProcName.ForLoop, config: { sig: [['var', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Nse], ['seq', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced], ['expr', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
|
|
1170
|
+
{ type: 'function', names: ['repeat'], processor: built_in_proc_name_1.BuiltInProcName.RepeatLoop, config: { sig: [['expr', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
1171
|
+
{ type: 'function', names: ['while'], processor: built_in_proc_name_1.BuiltInProcName.WhileLoop, config: { sig: [['cond', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Atomic], ['expr', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
|
|
1074
1172
|
{ type: 'function', names: [identifier_1.Identifier.from(['do.call', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['what', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Callee | built_in_props_1.ArgProp.Injectable], ['args', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1075
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['UseMethod', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' }, props: built_in_props_1.CallProp.Generic }, assumePrimitive: true },
|
|
1076
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['NextMethod', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' }, inferFromClosure: true, props: built_in_props_1.CallProp.Generic }, assumePrimitive: true },
|
|
1173
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['UseMethod', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' }, props: built_in_props_1.CallProp.Generic, sig: [['generic', built_in_props_1.ArgProp.NoDefault], ['object', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
|
|
1174
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['NextMethod', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.S3Dispatch, config: { args: { generic: 'generic', object: 'object' }, inferFromClosure: true, props: built_in_props_1.CallProp.Generic, sig: [['generic', 0], ['object', 0], ['...', 0]] }, assumePrimitive: true },
|
|
1077
1175
|
{ type: 'function', names: [identifier_1.Identifier.from(['new_generic', "S7" /* PkgName.S7 */])], processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: 'dispatch_args', fun: 'fun' } }, assumePrimitive: true },
|
|
1078
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['setGeneric', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: undefined, fun: 'fun' }, binds: true }, assumePrimitive: true },
|
|
1176
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['setGeneric', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S7NewGeneric, config: { args: { name: 'name', dispatchArg: undefined, fun: 'fun' }, binds: true, sig: [['name', built_in_props_1.ArgProp.NoDefault], ['def', 0], ['group', 0], ['valueClass', 0], ['where', 0], ['package', 0], ['signature', 0], ['useAsDefault', 0], ['genericFunction', 0], ['simpleInheritanceOnly', 0]] }, assumePrimitive: true },
|
|
1079
1177
|
{ type: 'function', names: [identifier_1.Identifier.from(['S7_dispatch', "S7" /* PkgName.S7 */])], processor: built_in_proc_name_1.BuiltInProcName.S7Dispatch, config: { libFn: true }, assumePrimitive: true },
|
|
1080
1178
|
{ type: 'function', names: [identifier_1.Identifier.from(['make_constructor', "ggplot2" /* PkgName.GgPlot2 */]), identifier_1.Identifier.from(['new_class', "S7" /* PkgName.S7 */])], processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor, config: { mode: ['s7'], classDecl: { system: "s7" /* ClassSystem.S7 */, nameArg: { idx: 0, name: 'name' }, containsArg: { idx: 1, name: 'parent' }, memberArgs: [{ name: 'properties', typed: true }], virtualArg: { name: 'abstract' } } }, assumePrimitive: true },
|
|
1081
1179
|
/* S4 keeps its classes and generics in string-keyed registries, so a call naming one depends on whatever registered it */
|
|
1082
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['new', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 0, name: 'Class' }] }, assumePrimitive: false },
|
|
1180
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['new', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 0, name: 'Class' }], sig: [['Class', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
|
|
1083
1181
|
{ type: 'function', names: identifier_1.Identifier.fromAll("methods" /* PkgName.Methods */, ['getClass', 'getClassDef', 'getSlots', 'slotNames', 'isVirtualClass', 'removeClass', 'resetClass', 'getValidity']), processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 0, name: 'Class' }] }, assumePrimitive: false },
|
|
1084
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['as', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 1, name: 'Class' }] }, assumePrimitive: false },
|
|
1085
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['is', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 1, name: 'class2' }] }, assumePrimitive: false },
|
|
1086
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['setAs', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 0, name: 'from' }], registersArg: { idx: 1, name: 'to' } }, assumePrimitive: false },
|
|
1087
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("methods" /* PkgName.Methods */, ['existsMethod', 'hasMethod', 'getMethod', 'selectMethod', 'removeMethod']), processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { genericArg: { idx: 0, name: 'f' }, classArgs: [{ idx: 1, name: 'signature' }] }, assumePrimitive: false },
|
|
1182
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['as', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 1, name: 'Class' }], sig: [['object', built_in_props_1.ArgProp.NoDefault], ['Class', built_in_props_1.ArgProp.NoDefault], ['strict', 0], ['ext', 0]] }, assumePrimitive: false },
|
|
1183
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['is', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 1, name: 'class2' }], sig: [['object', built_in_props_1.ArgProp.NoDefault], ['class2', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: false },
|
|
1184
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['setAs', "methods" /* PkgName.Methods */])], processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { classArgs: [{ idx: 0, name: 'from' }], registersArg: { idx: 1, name: 'to' }, sig: [['from', built_in_props_1.ArgProp.NoDefault], ['to', built_in_props_1.ArgProp.NoDefault], ['def', built_in_props_1.ArgProp.NoDefault], ['replace', 0], ['where', 0]] }, assumePrimitive: false },
|
|
1185
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("methods" /* PkgName.Methods */, ['existsMethod', 'hasMethod', 'getMethod', 'selectMethod', 'removeMethod']), processor: built_in_proc_name_1.BuiltInProcName.S4Use, config: { genericArg: { idx: 0, name: 'f' }, classArgs: [{ idx: 1, name: 'signature' }], sig: [['f', built_in_props_1.ArgProp.NoDefault], ['signature', 0], ['...', 0]] }, assumePrimitive: false },
|
|
1088
1186
|
{ type: 'function', names: [identifier_1.Identifier.from(['setClass', "methods" /* PkgName.Methods */])],
|
|
1089
1187
|
processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor,
|
|
1090
1188
|
config: { mode: ['s4'], classDecl: {
|
|
@@ -1094,7 +1192,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1094
1192
|
/* the modern `slots=` and the historical `representation()` state the same thing */
|
|
1095
1193
|
memberArgs: [{ idx: 1, name: 'representation', typed: true }, { name: 'slots', typed: true }],
|
|
1096
1194
|
prototypeArg: { idx: 2, name: 'prototype' }
|
|
1097
|
-
} }, assumePrimitive: true },
|
|
1195
|
+
}, sig: [['Class', built_in_props_1.ArgProp.NoDefault], ['representation', 0], ['prototype', 0], ['contains', 0], ['validity', 0], ['access', 0], ['where', 0], ['version', 0], ['sealed', 0], ['package', 0], ['S3methods', 0], ['slots', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: true },
|
|
1098
1196
|
{ type: 'function', names: [identifier_1.Identifier.from(['setClassUnion', "methods" /* PkgName.Methods */])],
|
|
1099
1197
|
processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor,
|
|
1100
1198
|
config: { mode: ['s4'], classDecl: {
|
|
@@ -1102,7 +1200,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1102
1200
|
nameArg: { idx: 0, name: 'name' },
|
|
1103
1201
|
/* a union is a virtual class its members become subclasses of */
|
|
1104
1202
|
unionArg: { idx: 1, name: 'members' }
|
|
1105
|
-
} }, assumePrimitive: true },
|
|
1203
|
+
}, sig: [['name', built_in_props_1.ArgProp.NoDefault], ['members', 0], ['where', 0]] }, assumePrimitive: true },
|
|
1106
1204
|
{ type: 'function', names: [identifier_1.Identifier.from(['Negate', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor, config: { wrapIndex: 0, props: built_in_props_1.CallProp.Pure, sig: [['f', built_in_props_1.ArgProp.Callee]] }, assumePrimitive: true },
|
|
1107
1205
|
{ type: 'function', names: [identifier_1.Identifier.from(['Vectorize', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor, config: { wrapIndex: 0, props: built_in_props_1.CallProp.Pure, sig: [['FUN', built_in_props_1.ArgProp.Callee]] }, assumePrimitive: true },
|
|
1108
1206
|
{ type: 'function', names: [identifier_1.Identifier.from(['partial', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor, config: { wrapIndex: 0, wrapName: '.f' }, assumePrimitive: true },
|
|
@@ -1110,13 +1208,14 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1110
1208
|
{ type: 'function', names: [identifier_1.Identifier.from(['interference', "inferference" /* PkgName.Inferference */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { unquoteFunction: true, nameOfFunctionArgument: 'propensity_integrand', libFn: true }, assumePrimitive: false },
|
|
1111
1209
|
{ type: 'function', names: [identifier_1.Identifier.from(['ddply', "plyr" /* PkgName.Plyr */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { unquoteFunction: true, indexOfFunction: 2, nameOfFunctionArgument: '.fun', libFn: true }, assumePrimitive: false },
|
|
1112
1210
|
{ type: 'function', names: [identifier_1.Identifier.from(['list', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.List, config: { props: built_in_props_1.CallProp.Pure, sig: [['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1113
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['Recall', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true }, assumePrimitive: false },
|
|
1114
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['sys.function', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true, unknownOnNonZeroArg: true, props: built_in_props_1.CallProp.Lang, frame: built_in_props_1.ArgProp.Nse }, assumePrimitive: false },
|
|
1211
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['Recall', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true, sig: [['...', 0]] }, assumePrimitive: false },
|
|
1212
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['sys.function', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true, unknownOnNonZeroArg: true, props: built_in_props_1.CallProp.Lang, frame: built_in_props_1.ArgProp.Nse, sig: [['which', 0]] }, assumePrimitive: false },
|
|
1115
1213
|
{ type: 'function', names: [identifier_1.Identifier.from(['c', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Vector, config: { props: built_in_props_1.CallProp.Pure, sig: [['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Vector },
|
|
1116
1214
|
{ type: 'function', names: [identifier_1.Identifier.from(['cmpfun', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { sig: [['f', built_in_props_1.ArgProp.Alias]] } },
|
|
1117
1215
|
{ type: 'function', names: [identifier_1.Identifier.from(['compile', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { sig: [['e', built_in_props_1.ArgProp.Alias]] } },
|
|
1118
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['loadcmp', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true } },
|
|
1119
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['
|
|
1216
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['loadcmp', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, sig: [['file', built_in_props_1.ArgProp.NoDefault], ['envir', 0], ['chdir', 0]] } },
|
|
1217
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['setNames', "stats" /* PkgName.Stats */]), identifier_1.Identifier.from(['setNames', "FastUtils" /* PkgName.FastUtils */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Pure, sig: [['object', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['nm', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] } },
|
|
1218
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("data.table" /* PkgName.DataTable */, ['setnames', 'setkey', 'setkeyv', 'setindex', 'setindexv', 'setattr']), processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { canBeReplacement: false, targetVariable: false, makeMaybe: true, mayHaveMoreArgs: true, readTarget: true, props: built_in_props_1.CallProp.Invisible, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Written | built_in_props_1.ArgProp.Alias], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] } },
|
|
1120
1219
|
{
|
|
1121
1220
|
type: 'function',
|
|
1122
1221
|
names: [
|
|
@@ -1131,9 +1230,13 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1131
1230
|
},
|
|
1132
1231
|
/* they create, move, or delete files */
|
|
1133
1232
|
{ type: 'function', names: [identifier_1.Identifier.from(['dir.create', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['dir_create', "fs" /* PkgName.Fs */]), ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Sys.chmod', 'unlink', 'file.remove', 'file.rename', 'file.copy', 'file.link', 'file.append', 'Sys.junction'])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes] }, assumePrimitive: false },
|
|
1134
|
-
/* `sink` diverts the output, `par`/`tpar` set the parameters of the current device */
|
|
1233
|
+
/* `sink` diverts the output, `par`/`tpar` set (or query) the parameters of the current device */
|
|
1135
1234
|
{ type: 'function', names: [identifier_1.Identifier.from(['sink', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['file', built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1136
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['par', "graphics" /* PkgName.Graphics */]), identifier_1.Identifier.from(['tpar', "tinyplot" /* PkgName.TinyPlot */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: {
|
|
1235
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['par', "graphics" /* PkgName.Graphics */]), identifier_1.Identifier.from(['tpar', "tinyplot" /* PkgName.TinyPlot */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Configures, ambient: { type: "set-graphics" /* AmbientStateAccessType.SetGraphics */, queryOnUnnamedStrings: true, queryLinksTo: LinkToLastPlot }, tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['...', 0], ['no.readonly', 0]] }, assumePrimitive: false },
|
|
1236
|
+
/* they arrange the device or change its colors, which every later plot on it picks up */
|
|
1237
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("graphics" /* PkgName.Graphics */, ['layout', 'split.screen', 'screen', 'close.screen']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Configures, ambient: { type: "set-graphics" /* AmbientStateAccessType.SetGraphics */ }, tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1238
|
+
/* the palette, other than the parameters above, is shared by all devices */
|
|
1239
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['palette', "grDevices" /* PkgName.GrDevices */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Configures, ambient: { type: "set-palette" /* AmbientStateAccessType.SetPalette */ }, tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['value', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1137
1240
|
{
|
|
1138
1241
|
type: 'function',
|
|
1139
1242
|
names: [
|
|
@@ -1143,7 +1246,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1143
1246
|
identifier_1.Identifier.from(['install_local', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_local', "devtools" /* PkgName.Devtools */]),
|
|
1144
1247
|
],
|
|
1145
1248
|
processor: built_in_proc_name_1.BuiltInProcName.Default,
|
|
1146
|
-
config: { hasUnknownSideEffects: true, libFn: true },
|
|
1249
|
+
config: { hasUnknownSideEffects: true, libFn: true, sig: [['chname', built_in_props_1.ArgProp.NoDefault], ['package', built_in_props_1.ArgProp.NoDefault], ['lib.loc', built_in_props_1.ArgProp.NoDefault], ['verbose', 0], ['file.ext', 0], ['...', 0]] },
|
|
1147
1250
|
assumePrimitive: false
|
|
1148
1251
|
},
|
|
1149
1252
|
/* installers fetch the package and put it into the library (devtools re-exports the entire remotes install API) */
|
|
@@ -1159,7 +1262,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1159
1262
|
config: { hasUnknownSideEffects: true, libFn: true, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes] },
|
|
1160
1263
|
assumePrimitive: false
|
|
1161
1264
|
},
|
|
1162
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['on.exit', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.RegisterHook, config: { hook: hooks_1.KnownHooks.OnFnExit, args: { expr: { idx: 0, name: 'expr' }, add: { idx: 1, name: 'add', default: false }, after: { idx: 2, name: 'after', default: true } } }, assumePrimitive: true },
|
|
1265
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['on.exit', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.RegisterHook, config: { hook: hooks_1.KnownHooks.OnFnExit, args: { expr: { idx: 0, name: 'expr' }, add: { idx: 1, name: 'add', default: false }, after: { idx: 2, name: 'after', default: true } }, sig: [['expr', 0], ['add', 0], ['after', 0]] }, assumePrimitive: true },
|
|
1163
1266
|
{ type: 'function', names: [identifier_1.Identifier.from(['on_load', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.MayPure, sig: [['expr', built_in_props_1.ArgProp.Forced], ['env', built_in_props_1.ArgProp.Value], ['ns', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1164
1267
|
{ type: 'function', names: [identifier_1.Identifier.from(['on_package_load', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.MayPure, sig: [['pkg', built_in_props_1.ArgProp.Value], ['expr', built_in_props_1.ArgProp.Forced], ['env', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1165
1268
|
{ type: 'function', names: [identifier_1.Identifier.from(['run_on_load', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.MayPure, sig: [['ns', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
@@ -1169,15 +1272,15 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1169
1272
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['list.files', 'dir', 'list.dirs']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Glob], sig: [['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1170
1273
|
{ type: 'function', names: [identifier_1.Identifier.from(['Sys.glob', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Glob], sig: [['paths', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1171
1274
|
/* language objects */
|
|
1172
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['enquote', 'call', 'as.call', 'as.expression', 'as.name', 'as.symbol', '
|
|
1275
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['enquote', 'call', 'as.call', 'as.expression', 'as.name', 'as.symbol', 'args', 'deparse', 'deparse1']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1173
1276
|
/* they hand back the call they sit in, so the function around them reads its arguments as written, unevaluated */
|
|
1174
1277
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['match.call', 'sys.call', 'sys.calls']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, frame: built_in_props_1.ArgProp.Nse, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1175
1278
|
/* `nargs()` counts what the call supplied, so it sees no argument, only whether there was one */
|
|
1176
1279
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['nargs', 'sys.nframe']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, frame: built_in_props_1.ArgProp.Presence, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1177
1280
|
/* `alist` keeps its arguments unevaluated, `evalq` evaluates its first one in another frame */
|
|
1178
1281
|
{ type: 'function', names: [identifier_1.Identifier.from(['alist', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, sig: [['...', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: false },
|
|
1179
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['evalq', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Nse | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1180
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['eval.parent', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.
|
|
1282
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['evalq', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "evaluate-quoted" /* AmbientStateAccessType.EvaluateQuoted */ }, props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Nse | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1283
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['eval.parent', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Eval, config: { 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: [['expr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['n', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1181
1284
|
{ type: 'function', names: [identifier_1.Identifier.from(['eval_tidy', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['data', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['env', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1182
1285
|
{ type: 'function', names: [identifier_1.Identifier.from(['eval_bare', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['env', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1183
1286
|
{ type: 'function', names: [...identifier_1.Identifier.fromAllIn(TidyEvalPackages, ['enexpr', 'enexprs', 'enquo', 'enquos', 'ensym', 'ensyms', 'sym', 'syms', 'quo_name', 'as_label']), ...identifier_1.Identifier.fromAll("rlang" /* PkgName.Rlang */, ['inject', 'enquo0', 'enquos0', 'new_formula', 'f_rhs', 'f_lhs', 'fn_body', 'fn_fmls', 'fn_fmls_names', 'call2', 'as_name', 'as_string'])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Lang, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
@@ -1185,7 +1288,8 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1185
1288
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['dyn.load', 'getNativeSymbolInfo']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Ffi, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1186
1289
|
{ type: 'function', names: [identifier_1.Identifier.from(['sourceCpp', "Rcpp" /* PkgName.Rcpp */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Ffi, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1187
1290
|
/* ambient state: options, environment variables, the clock, the session itself */
|
|
1188
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['
|
|
1291
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Sys.getenv', 'Sys.info', 'Sys.getpid', 'getwd', 'getRversion', 'R.Version', 'Sys.time', 'Sys.Date', 'Sys.timezone', 'date', 'proc.time', 'interactive']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Ambient, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1292
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['getOption', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "get-option" /* AmbientStateAccessType.GetOption */ }, props: built_in_props_1.CallProp.Ambient, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1189
1293
|
{ type: 'function', names: [identifier_1.Identifier.from(['commandArgs', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Ambient, tags: [built_in_props_1.SemanticCallTag.CommandLine], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1190
1294
|
/* system commands */
|
|
1191
1295
|
{ type: 'function', names: [identifier_1.Identifier.from(['system', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.Process], sig: [['command', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['intern', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['ignore.stdout', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['ignore.stderr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['wait', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['input', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.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', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
@@ -1224,19 +1328,20 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1224
1328
|
},
|
|
1225
1329
|
/* they only make up a path, they do not go near the file system, so `File` would be wrong here */
|
|
1226
1330
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['tempfile', 'tempdir']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.TempFile], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1227
|
-
{ type: 'function', names: [...identifier_1.Identifier.fromAll("fs" /* PkgName.Fs */, ['file_temp', 'path_temp'
|
|
1331
|
+
{ type: 'function', names: [...identifier_1.Identifier.fromAll("fs" /* PkgName.Fs */, ['file_temp', 'path_temp']), ...identifier_1.Identifier.fromAll("withr" /* PkgName.Withr */, ['local_tempfile', 'with_tempfile', 'local_tempdir', 'with_tempdir'])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.TempFile], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1228
1332
|
/* wrappers that run the expression they are handed; `observe`/`render*` are left out, they yield a handle instead */
|
|
1229
1333
|
{ type: 'function', names: identifier_1.Identifier.fromAll("shiny" /* PkgName.Shiny */, ['reactive', 'eventReactive', 'bindEvent', 'bindCache', 'isolate', 'req', 'debounce', 'throttle', 'reactiveVal', 'reactiveValues', 'reactiveValuesToList', 'freezeReactiveVal']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.MayPure, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1230
1334
|
/* assembling a cohort keeps the data of its source; `filter` is registered above, dplyr holds that name */
|
|
1231
1335
|
{ type: 'function', names: identifier_1.Identifier.fromAll("cohortBuilder" /* PkgName.CohortBuilder */, ['cohort', 'set_source', 'add_source', 'update_source', 'add_filter', 'update_filter', 'rm_filter', 'bind_key', 'bind_keys', 'as.tblist', 'tblist', 'step', 'add_step', 'rm_step', 'run', 'restore']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Pure, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1232
1336
|
/* they are all mapped to `<-` but we separate super assignments */
|
|
1233
|
-
{ type: 'replacement', suffixes: ['<-', '<<-'], names: ['[', '[[', ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['names', 'dimnames', 'attributes', 'attr', 'class', 'levels', 'rownames', 'colnames', '
|
|
1337
|
+
{ type: 'replacement', suffixes: ['<-', '<<-'], names: ['[', '[[', ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['names', 'dimnames', 'attributes', 'attr', 'class', 'levels', 'rownames', 'colnames', 'environment', 'length', 'dim'])], config: { readIndices: true, props: built_in_props_1.CallProp.Scope } },
|
|
1338
|
+
{ type: 'replacement', suffixes: ['<-', '<<-'], names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['body', 'formals']), config: { readIndices: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Lang } },
|
|
1234
1339
|
{ type: 'replacement', suffixes: ['<-', '<<-'], names: [identifier_1.Identifier.from(['method', "S7" /* PkgName.S7 */])], config: { readIndices: true, constructName: 's7' } },
|
|
1235
1340
|
{ type: 'replacement', suffixes: ['<-', '<<-'], names: ['$', '@'], config: { readIndices: false, props: built_in_props_1.CallProp.Scope } },
|
|
1236
1341
|
/* the string and shape functions R declares formals for, restated one by one: the group above gives them
|
|
1237
1342
|
what they do, this gives them the arguments they do it with (the names are R's own) */
|
|
1238
1343
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['sprintf', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['fmt', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1239
|
-
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['format', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: SigXDots }, assumePrimitive: true },
|
|
1344
|
+
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['format', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { ambient: PrintDispatched, props: built_in_props_1.CallProp.Pure, sig: SigXDots }, assumePrimitive: true },
|
|
1240
1345
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['grep', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['pattern', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['ignore.case', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['perl', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['value', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['fixed', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['useBytes', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['invert', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: true },
|
|
1241
1346
|
{ overrides: true, type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['sub', 'gsub']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['pattern', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['replacement', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['ignore.case', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['perl', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['fixed', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['useBytes', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: true },
|
|
1242
1347
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['substr', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['start', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['stop', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
@@ -1283,21 +1388,28 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1283
1388
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['writeLines', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { 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: [['text', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['con', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['sep', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['useBytes', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1284
1389
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['write.table', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['append', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['quote', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['sep', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1285
1390
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['download.file', "utils" /* PkgName.Utils */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['destfile', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['method', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['quiet', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['cacheOK', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['extra', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['headers', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1286
|
-
/** Deprecated Functions */
|
|
1287
1391
|
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("dplyr" /* PkgName.Dplyr */, ['id', 'top_n', 'sample_n', 'recode', 'progress_estimated', 'group_nest', 'add_rownames', 'tbl_df', 'src_local', 'summarise_each', 'summarize_', 'summarise_', 'slice_', 'select_vars_', 'select_', 'rename_vars_', 'rename_', 'transmute_', 'tally_', 'mutate_', 'group_indices_', 'group_by_', 'funs_', 'filter_', 'do_', 'distinct_', 'count_', 'arrange_', 'add_tally_', 'add_count_', 'funs', 'do', 'combine', 'changes', 'location', 'eval_tbls2', 'eval_tbls', 'compare_tbls2', 'compare_tbls', 'bench_tbls', 'current_vars', 'select_var', 'rename_vars', 'select_vars', 'failwith', 'all_vars', 'vars', 'select_all', 'mutate_all', 'summarise_all', 'group_by_all', 'filter_all', 'all_equal', 'arrange_all', 'distinct_all']) },
|
|
1288
1392
|
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: [identifier_1.Identifier.make('fct_explicit_na', "forcats" /* PkgName.Forecats */)] },
|
|
1289
1393
|
/* deprecated, but still data-masking: restating the mask keeps the column names out of the variable resolution */
|
|
1290
|
-
{ overrides: true, type: 'function', processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: [...identifier_1.Identifier.fromAll("dplyr" /* PkgName.Dplyr */, ['
|
|
1291
|
-
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("ggplot2" /* PkgName.GgPlot2 */, ['gg_dep', 'is.
|
|
1394
|
+
{ overrides: true, type: 'function', processor: built_in_proc_name_1.BuiltInProcName.Default, config: { markArgsAsMasked: known_call_handling_1.NseArguments.AllButFirst, props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: [...identifier_1.Identifier.fromAll("dplyr" /* PkgName.Dplyr */, ['with_groups']), ...identifier_1.Identifier.fromAll("tidyr" /* PkgName.TidyR */, ['spread', 'separate_rows', 'gather', 'extract'])] },
|
|
1395
|
+
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("ggplot2" /* PkgName.GgPlot2 */, ['gg_dep', 'is.ggplot', 'guide_train', 'aes_auto', 'aes_']) },
|
|
1292
1396
|
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("plyr" /* PkgName.Plyr */, ['liply', 'isplit2']) },
|
|
1293
|
-
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['transpose', 'as_vector', 'map_dfr', 'flatten', 'reduce_right', '
|
|
1397
|
+
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['transpose', 'as_vector', 'map_dfr', 'flatten', 'reduce_right', 'map_raw', 'update_list', 'when', 'rdunif', 'rbernoulli', 'splice', 'rerun', 'prepend', 'at_depth', 'cross', 'list_along']) },
|
|
1294
1398
|
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: ['`%@%`'] },
|
|
1295
1399
|
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("readr" /* PkgName.Readr */, ['read_table2', 'melt_table', 'melt_fwf', 'melt_delim']) },
|
|
1296
|
-
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("tibble" /* PkgName.Tibble */, ['repair_names', 'set_tidy_names', 'tidy_names', 'is.tibble', 'trunc_mat', 'frame_data', 'as.tibble', 'as_data_frame', 'lst_', 'data_frame_', 'tibble_', 'data_frame'
|
|
1400
|
+
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("tibble" /* PkgName.Tibble */, ['repair_names', 'set_tidy_names', 'tidy_names', 'is.tibble', 'trunc_mat', 'frame_data', 'as.tibble', 'as_data_frame', 'lst_', 'data_frame_', 'tibble_', 'data_frame']) },
|
|
1297
1401
|
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: identifier_1.Identifier.fromAll("tidyr" /* PkgName.TidyR */, ['nest_legacy', 'unnest_', 'unite_', 'spread_', 'separate_', 'separate_rows_', 'nest_', 'gather_', 'fill_', 'extract_', 'nesting_', 'crossing_', 'expand_', 'drop_na_', 'complete_', 'extract_numeric']) },
|
|
1402
|
+
/* deprecated, but only when when a certain condition is met (e.g. specific argument value)
|
|
1403
|
+
https://tidyverse.org/blog/2025/09/ggplot2-4-0-0/#violin--quantiles
|
|
1404
|
+
the quantiles moved to the stat, and the geom only kept arguments styling them, so neither is a rename of
|
|
1405
|
+
`draw_quantiles = 0.5`: the value is a quantile, not a linetype, and `quantiles` is no formal of the geom */
|
|
1406
|
+
{ overrides: true, type: 'function', processor: built_in_proc_name_1.BuiltInProcName.Default, names: [identifier_1.Identifier.make('geom_violin', "ggplot2" /* PkgName.GgPlot2 */)], config: { ...PlotAddonConfig, deprInfo: { whenArgs: [{ argName: 'draw_quantiles', state: deprecation_info_1.DeprecationState.Deprecated, replacedBy: 'stat_ydensity(quantiles)', sinceVersion: '>= 4.0.0' }] } } },
|
|
1407
|
+
/* `size` names the stroke width of every line-based geom until ggplot2 4.0.0 renamed it: it gained
|
|
1408
|
+
`linewidth` beside it in 3.4.0, and 4.0.0 drops `size`. */
|
|
1409
|
+
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, names: identifier_1.Identifier.fromAll("ggplot2" /* PkgName.GgPlot2 */, ['element_line', 'element_rect']), config: { deprInfo: { whenArgs: [{ argName: 'size', state: deprecation_info_1.DeprecationState.Deprecated, replacedBy: 'linewidth', sinceVersion: '>= 3.4.0' }] } } }
|
|
1298
1410
|
];
|
|
1299
1411
|
/** Contains the built-in definitions recognized by flowR */
|
|
1300
|
-
exports.DefaultBuiltinConfig = markGenerics(exports.WrittenBuiltinDefinitions);
|
|
1412
|
+
exports.DefaultBuiltinConfig = markPrimitives(markGenerics(exports.WrittenBuiltinDefinitions));
|
|
1301
1413
|
/** Expensive and naive lookup of the default processor for a built-in function name */
|
|
1302
1414
|
function getDefaultProcessor(name) {
|
|
1303
1415
|
if (name.startsWith(unnamed_call_handling_1.UnnamedFunctionCallPrefix)) {
|