@eagleoutice/flowr 2.15.5 → 2.15.9
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 +39 -280
- package/abstract-interpretation/absint-inference.d.ts +5 -5
- package/abstract-interpretation/absint-inference.js +12 -12
- 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 -2
- package/benchmark/slicer.js +4 -4
- 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 +17 -1
- 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 +54 -5
- package/config.js +44 -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 -2
- 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 +42 -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 +43 -8
- package/dataflow/environments/built-in-config.d.ts +7 -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 +23 -7
- package/dataflow/environments/built-in-props.js +27 -10
- package/dataflow/environments/built-in.d.ts +5 -6
- package/dataflow/environments/built-in.js +12 -16
- package/dataflow/environments/data-masking-functions.js +1 -1
- package/dataflow/environments/default-builtin-config.d.ts +278 -32
- package/dataflow/environments/default-builtin-config.js +139 -85
- package/dataflow/environments/environment.d.ts +16 -19
- package/dataflow/environments/environment.js +54 -48
- package/dataflow/environments/frame-memory.d.ts +54 -69
- package/dataflow/environments/frame-memory.js +146 -190
- package/dataflow/environments/identifier.d.ts +69 -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 +176 -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 +8 -30
- package/dataflow/fn/class-declaration.js +12 -37
- 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 +8 -16
- package/dataflow/fn/higher-order-function.js +17 -28
- package/dataflow/fn/recursive-function.js +1 -1
- package/dataflow/fn/strict-function.d.ts +8 -20
- package/dataflow/fn/strict-function.js +20 -38
- 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 +42 -7
- package/dataflow/graph/graph.js +43 -9
- package/dataflow/graph/match-args.d.ts +16 -12
- package/dataflow/graph/match-args.js +68 -26
- package/dataflow/graph/vertex.d.ts +38 -57
- 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 +24 -15
- package/dataflow/internal/linker.js +115 -33
- package/dataflow/internal/process/functions/call/argument/make-argument.d.ts +1 -1
- package/dataflow/internal/process/functions/call/argument/make-argument.js +17 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-access.js +6 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +8 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.d.ts +17 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +112 -39
- 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 +56 -13
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +179 -45
- 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 +46 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +49 -13
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +119 -22
- 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 +7 -2
- 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 +13 -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 +7 -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.js +1 -1
- 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 +12 -14
- package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.js +2 -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-string-template.js +12 -0
- 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-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 +28 -35
- package/dataflow/internal/process/functions/call/common.d.ts +7 -1
- package/dataflow/internal/process/functions/call/common.js +17 -7
- package/dataflow/internal/process/functions/call/deferred.d.ts +1 -3
- package/dataflow/internal/process/functions/call/deferred.js +20 -10
- package/dataflow/internal/process/functions/call/known-call-handling.d.ts +4 -4
- package/dataflow/internal/process/functions/call/known-call-handling.js +17 -8
- package/dataflow/internal/process/functions/call/named-call-handling.d.ts +1 -1
- package/dataflow/internal/process/functions/call/named-call-handling.js +5 -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 +96 -42
- 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-named-call.d.ts +2 -2
- package/dataflow/internal/process/process-named-call.js +3 -3
- 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 +12 -3
- package/documentation/data/server/doc-data-server-messages.d.ts +2 -1
- package/documentation/data/server/doc-data-server-messages.js +2 -1
- package/documentation/doc-capabilities.d.ts +13 -7
- package/documentation/doc-capabilities.js +445 -126
- 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 -1
- package/documentation/doc-util/doc-query.js +4 -3
- 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-core.js +3 -0
- package/documentation/wiki-create-linting-rules.js +1 -1
- package/documentation/wiki-dataflow-graph.js +19 -20
- 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-linter.js +154 -16
- package/documentation/wiki-linting-and-testing.js +99 -6
- 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-query.js +44 -0
- package/documentation/wiki-setup.js +28 -3
- package/documentation/wiki-signature-database.js +7 -3
- 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 -5
- package/linter/rules/deprecated-functions.js +8 -8
- 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 +9 -5
- package/project/context/flowr-analyzer-files-context.js +56 -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 +3 -3
- package/project/flowr-analyzer.js +1 -3
- 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.js +8 -6
- 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/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 +4 -51
- package/project/sigdb/codec.d.ts +0 -4
- package/project/sigdb/codec.js +1 -8
- package/project/sigdb/decode.d.ts +5 -4
- package/project/sigdb/decode.js +13 -18
- package/project/sigdb/dict.d.ts +35 -0
- package/project/sigdb/dict.js +97 -0
- package/project/sigdb/hash.d.ts +7 -2
- package/project/sigdb/manifest.d.ts +0 -2
- package/project/sigdb/manifest.js +2 -6
- package/project/sigdb/memory-source.js +2 -1
- package/project/sigdb/reader.d.ts +5 -4
- package/project/sigdb/reader.js +34 -26
- package/project/sigdb/schema.d.ts +0 -2
- package/project/sigdb/schema.js +1 -7
- 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/identify-link-to-last-call-relation.js +2 -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 +2 -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/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 +13 -2
- package/queries/query.js +4 -1
- package/r-bridge/data/data.d.ts +1435 -450
- package/r-bridge/data/data.js +1063 -478
- 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 +2 -2
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +2 -2
- 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/fingerprint.js +6 -12
- 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 +20 -34
- package/util/files.js +36 -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 +1 -0
- 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 +17 -28
- package/util/text/playground-link.js +42 -18
- 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,6 +6,7 @@ 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");
|
|
11
12
|
const cascade_action_1 = require("../../queries/catalog/call-context-query/cascade-action");
|
|
@@ -19,6 +20,7 @@ const nse_1 = require("../internal/process/functions/call/nse");
|
|
|
19
20
|
const data_masking_functions_1 = require("./data-masking-functions");
|
|
20
21
|
const built_in_props_1 = require("./built-in-props");
|
|
21
22
|
const r_base_packages_1 = require("../../util/r-base-packages");
|
|
23
|
+
const r_base_primitives_generated_1 = require("../../data/r-base-primitives.generated");
|
|
22
24
|
const r_base_packages_generated_1 = require("../../data/r-base-packages.generated");
|
|
23
25
|
const r_value_1 = require("../eval/values/r-value");
|
|
24
26
|
/** Which stack environment an env-returning/-transforming builtin denotes (see {@link StackEnvBuiltins}). */
|
|
@@ -263,7 +265,7 @@ exports.GgPlotAddons = [
|
|
|
263
265
|
const PlotAddons = exports.GraphicsPlotAddons.concat(exports.GgPlotImplicitAddons, ...exports.PlotFunctionsWithAddParam);
|
|
264
266
|
/** The packages exporting magrittr's `%>%`: the tidyverse and friends re-export the very same function. */
|
|
265
267
|
const MagrittrPipePackages = ["magrittr" /* PkgName.Magrittr */, "dplyr" /* PkgName.Dplyr */, "purrr" /* PkgName.Purrr */, "stringr" /* PkgName.Stringr */, "tibble" /* PkgName.Tibble */,
|
|
266
|
-
"tidyr" /* PkgName.TidyR */, "
|
|
268
|
+
"tidyr" /* PkgName.TidyR */, "testthat" /* PkgName.Testthat */, "magick" /* PkgName.Magick */, "promises" /* PkgName.Promises */];
|
|
267
269
|
/** The packages re-exporting rlang's tidy-evaluation helpers unchanged. */
|
|
268
270
|
const TidyEvalPackages = ["rlang" /* PkgName.Rlang */, "dplyr" /* PkgName.Dplyr */, "ggplot2" /* PkgName.GgPlot2 */];
|
|
269
271
|
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 +344,8 @@ function statedSignatures(definitions = exports.DefaultBuiltinConfig) {
|
|
|
342
344
|
const entry = {
|
|
343
345
|
pkg,
|
|
344
346
|
params: declared.length > 0 ? declared.map(([param]) => param).join(', ') : undefined,
|
|
345
|
-
props:
|
|
346
|
-
args: declared.length > 0 ? declared.map(([param, props]) => [param,
|
|
347
|
+
props: function_semantics_1.FunctionSemantics.call.props.labels(info),
|
|
348
|
+
args: declared.length > 0 ? declared.map(([param, props]) => [param, function_semantics_1.FunctionSemantics.call.argument.words(props)]) : undefined
|
|
347
349
|
};
|
|
348
350
|
const known = stated.get(name) ?? [];
|
|
349
351
|
/* the last definition for a package is the one that resolves, so it is the one stated */
|
|
@@ -414,6 +416,40 @@ function markGenerics(definitions) {
|
|
|
414
416
|
}
|
|
415
417
|
return out;
|
|
416
418
|
}
|
|
419
|
+
/**
|
|
420
|
+
* Label every name the R language itself provides {@link CallProp.Primitive}, splitting an entry that mixes
|
|
421
|
+
* them with names R does not (one definition covers `base::stopifnot` and `assertthat::assert_that`, and only
|
|
422
|
+
* the first is R's). {@link RBasePrimitives} is read out of a real R, so this states what that R has.
|
|
423
|
+
*/
|
|
424
|
+
function markPrimitives(definitions) {
|
|
425
|
+
const out = [];
|
|
426
|
+
for (const def of definitions) {
|
|
427
|
+
if (def.type !== 'function') {
|
|
428
|
+
out.push(def);
|
|
429
|
+
continue;
|
|
430
|
+
}
|
|
431
|
+
let primitives = undefined;
|
|
432
|
+
let rest = undefined;
|
|
433
|
+
for (const name of def.names) {
|
|
434
|
+
/* the set is base's own, so a name of another namespace is not the one R provides */
|
|
435
|
+
if (r_base_primitives_generated_1.RBasePrimitives.has(identifier_1.Identifier.getName(name)) && (identifier_1.Identifier.getNamespace(name) ?? "base" /* PkgName.Base */) === "base" /* PkgName.Base */) {
|
|
436
|
+
(primitives ??= []).push(name);
|
|
437
|
+
}
|
|
438
|
+
else {
|
|
439
|
+
(rest ??= []).push(name);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
if (primitives === undefined) {
|
|
443
|
+
out.push(def);
|
|
444
|
+
continue;
|
|
445
|
+
}
|
|
446
|
+
out.push({ ...def, names: primitives, config: { ...def.config, props: (def.config?.props ?? 0) | built_in_props_1.CallProp.Primitive } });
|
|
447
|
+
if (rest !== undefined) {
|
|
448
|
+
out.push({ ...def, names: rest });
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
return out;
|
|
452
|
+
}
|
|
417
453
|
/**
|
|
418
454
|
* Whether the call names a plot function that can append to an existing plot, and if so whether its `add`
|
|
419
455
|
* argument says so; `undefined` for a call that has no such argument at all.
|
|
@@ -476,7 +512,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
476
512
|
{ 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
513
|
{ 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
514
|
/* 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 },
|
|
515
|
+
{ 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
516
|
/* cohortBuilder has a `filter` too, and built-ins go by name, so dplyr's entry below wins in the environment
|
|
481
517
|
while this one still states what cohortBuilder's does */
|
|
482
518
|
{ 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 +532,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
496
532
|
{ type: 'function', names: [identifier_1.Identifier.from(['?', "utils" /* PkgName.Utils */])], /* shows the help page of what it is given */
|
|
497
533
|
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
534
|
/* 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 },
|
|
535
|
+
{ 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
536
|
/* the names and the class are read off the argument, so whatever it carries can show up in the result */
|
|
501
537
|
{ 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
538
|
{ 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 +557,8 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
521
557
|
'cumsum', 'cumprod', 'cummax', 'cummin', 'diff', 'sort', 'rev', 'unique', 'duplicated', 't',
|
|
522
558
|
/* coercion */
|
|
523
559
|
'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'
|
|
560
|
+
'as.factor', 'as.raw', 'as.list', 'as.array', 'as.double', 'as.complex', 'factor',
|
|
561
|
+
'as.single', 'as.ordered'
|
|
525
562
|
]),
|
|
526
563
|
...identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['head', 'tail']),
|
|
527
564
|
...identifier_1.Identifier.fromAll("stats" /* PkgName.Stats */, ['var', 'sd', 'median', 'quantile']),
|
|
@@ -540,7 +577,11 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
540
577
|
{ 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
578
|
{ 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
579
|
/* 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 },
|
|
580
|
+
{ 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 },
|
|
581
|
+
{ 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 },
|
|
582
|
+
{ 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 },
|
|
583
|
+
{ 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 },
|
|
584
|
+
{ 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
585
|
{ 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
586
|
/* two data arguments, under the names R gives them */
|
|
546
587
|
{ 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 +602,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
561
602
|
type: 'function',
|
|
562
603
|
names: [
|
|
563
604
|
...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, [
|
|
564
|
-
'rep', 'rep.int', 'seq
|
|
605
|
+
'rep', 'rep.int', 'seq.int', 'append', 'complex',
|
|
565
606
|
'matrix', 'array', 'table', 'prop.table', 'colSums', 'rowSums', 'colMeans', 'rowMeans',
|
|
566
607
|
'solve', 'det', 'eigen', 'aperm',
|
|
567
608
|
/* string */
|
|
@@ -580,6 +621,8 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
580
621
|
{ 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
622
|
/* indices and index sequences: bounded by the shape of what they are handed, never by its contents */
|
|
582
623
|
{ 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 },
|
|
624
|
+
/* `seq` dispatches, so `...` really is all it declares; the named formals belong to `seq.default`/`seq.int` */
|
|
625
|
+
{ 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
626
|
/* they open a device that writes the plot to the file they are given, under the name each of them uses */
|
|
584
627
|
{ 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
628
|
{ 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 },
|
|
@@ -797,14 +840,14 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
797
840
|
{ 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
841
|
{ 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
842
|
{ 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:
|
|
843
|
+
{ 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
844
|
/* `html_nodes`/`html_text` take a document, but rvest lets that be an address it fetches first */
|
|
802
845
|
{ 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
846
|
{ 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
847
|
{ 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
848
|
{ 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
849
|
{ 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(['
|
|
850
|
+
{ 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
851
|
{ 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
852
|
{ 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
853
|
{ 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 },
|
|
@@ -834,10 +877,10 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
834
877
|
{ 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
878
|
{ 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
879
|
{ 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 },
|
|
880
|
+
{ 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
881
|
{ 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 },
|
|
882
|
+
{ 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 },
|
|
883
|
+
{ 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
884
|
/* they read the state they set, so both bits apply */
|
|
842
885
|
{ type: 'function', names: [identifier_1.Identifier.from(['options', "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: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
843
886
|
/* `Sys.putenv` is defunct in current R, older scripts still use it */
|
|
@@ -857,21 +900,20 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
857
900
|
{ 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
901
|
{ 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
902
|
{ 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
903
|
{ 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
904
|
{ 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
905
|
{ 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
906
|
/* `vapply` takes the shape of the result before its `...`, so naming it keeps the positions honest */
|
|
865
907
|
{ 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
908
|
{ 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 },
|
|
909
|
+
{ 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
910
|
{ 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
911
|
{ 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
912
|
{ 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
913
|
{ 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 },
|
|
914
|
+
{ 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 },
|
|
873
915
|
{ 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(['
|
|
916
|
+
{ 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
917
|
{ 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
918
|
{ 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
919
|
// graphics base
|
|
@@ -890,7 +932,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
890
932
|
/* they put what the device holds on disk */
|
|
891
933
|
{ 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
934
|
{ type: 'function', names: identifier_1.Identifier.fromAll("grDevices" /* PkgName.GrDevices */, ['dev.off', 'graphics.off']), 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.Closes, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
893
|
-
{ 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.Alias]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.Group },
|
|
935
|
+
{ 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
936
|
{ 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
937
|
{ 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
938
|
{ 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 },
|
|
@@ -920,7 +962,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
920
962
|
{ 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
963
|
{ 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 },
|
|
922
964
|
{ 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 },
|
|
965
|
+
{ 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
966
|
{
|
|
925
967
|
type: 'function',
|
|
926
968
|
names: [
|
|
@@ -935,35 +977,40 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
935
977
|
},
|
|
936
978
|
/* the block is evaluated whatever happens, the handlers only when something does, and an error keeps the value from coming back */
|
|
937
979
|
{ 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(['
|
|
980
|
+
{ 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 },
|
|
981
|
+
{ 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 },
|
|
982
|
+
{ 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
983
|
{ 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
984
|
{ 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 },
|
|
985
|
+
{ 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
986
|
{ type: 'function', names: [identifier_1.Identifier.from(['source', "base" /* PkgName.Base */])],
|
|
944
987
|
/* it hands back what it evaluated invisibly, so a top-level `source()` prints nothing of its own */
|
|
945
988
|
processor: built_in_proc_name_1.BuiltInProcName.Source,
|
|
946
989
|
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
990
|
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
991
|
{ 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 },
|
|
992
|
+
{ 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 },
|
|
993
|
+
{ 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
994
|
/* 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 },
|
|
995
|
+
{ 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 },
|
|
996
|
+
{ 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 },
|
|
997
|
+
{ 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 },
|
|
998
|
+
{ 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 },
|
|
999
|
+
{ 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
1000
|
{ 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.
|
|
1001
|
+
{ 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 },
|
|
1002
|
+
{ 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 },
|
|
1003
|
+
{ 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 },
|
|
1004
|
+
{ 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 },
|
|
1005
|
+
{ 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 },
|
|
1006
|
+
{ 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 },
|
|
1007
|
+
{ 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 },
|
|
1008
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['library', 'require']), processor: built_in_proc_name_1.BuiltInProcName.Library, config: { props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope, sig: [['package', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
|
|
1009
|
+
{ 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, 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 },
|
|
1010
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['requireNamespace', 'loadNamespace']), 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, sig: [['package', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
|
|
964
1011
|
{ 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 }, assumePrimitive: false },
|
|
965
|
-
{ 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 }, assumePrimitive: false },
|
|
966
|
-
{ 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 }, assumePrimitive: true },
|
|
1012
|
+
{ 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, sig: [['package', built_in_props_1.ArgProp.NoDefault], ['include.only', built_in_props_1.ArgProp.NoDefault]] }, assumePrimitive: false },
|
|
1013
|
+
{ 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
1014
|
{ 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
1015
|
{ 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
1016
|
{ type: 'function', names: [identifier_1.Identifier.from(['setValidity', "methods" /* PkgName.Methods */])],
|
|
@@ -972,14 +1019,14 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
972
1019
|
assignment: { targetVariable: true, mayHaveMoreArgs: true, environmentArg: 'envir' },
|
|
973
1020
|
/* `setValidity(Class, method)` attributes the validator to the class it names, not to a binding */
|
|
974
1021
|
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
|
|
1022
|
+
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
1023
|
}, assumePrimitive: true },
|
|
977
1024
|
{ type: 'function', names: [identifier_1.Identifier.from(['setIs', "methods" /* PkgName.Methods */])],
|
|
978
1025
|
processor: built_in_proc_name_1.BuiltInProcName.ClassRelation,
|
|
979
1026
|
config: {
|
|
980
1027
|
/* `setIs(class1, class2)` states the same is-a relation `contains` does, after the fact */
|
|
981
1028
|
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
|
|
1029
|
+
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
1030
|
}, assumePrimitive: true },
|
|
984
1031
|
{ type: 'function', names: [identifier_1.Identifier.from(['setMethod', "methods" /* PkgName.Methods */])],
|
|
985
1032
|
processor: built_in_proc_name_1.BuiltInProcName.ClassRelation,
|
|
@@ -987,17 +1034,18 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
987
1034
|
assignmentLike: { targetVariable: true, canBeReplacement: false, target: { idx: 0, name: 'f' }, source: { idx: 2, name: 'definition' }, modesForFn: ['s4'] },
|
|
988
1035
|
/* a method answers an existing generic for existing classes, both named by string rather than bound */
|
|
989
1036
|
genericArg: { idx: 0, name: 'f' },
|
|
990
|
-
classArgs: [{ idx: 1, name: 'signature' }]
|
|
1037
|
+
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
1038
|
}, 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: [
|
|
1039
|
+
{ 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 },
|
|
1040
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['delayedAssign', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Assignment, config: { quoteSource: true, targetVariable: true, 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', 0], ['assign.env', 0]] }, assumePrimitive: true },
|
|
1041
|
+
{ 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 },
|
|
1042
|
+
{ 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 },
|
|
1043
|
+
{ 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 },
|
|
1044
|
+
{ 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
1045
|
/* 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 },
|
|
1046
|
+
{ 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 },
|
|
1047
|
+
{ 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 },
|
|
1048
|
+
{ 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
1049
|
/* a pipe hands back what the side it feeds hands back, which `Alias` is what states */
|
|
1002
1050
|
{ 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
1051
|
{ 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 +1069,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1021
1069
|
{ 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
1070
|
{ 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
1071
|
{ 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 },
|
|
1072
|
+
{ 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
1073
|
{ 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
1074
|
/* `bquote` evaluates the operand of `.()` */
|
|
1027
1075
|
{ 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 },
|
|
@@ -1030,15 +1078,19 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1030
1078
|
{ type: 'function', names: [...identifier_1.Identifier.fromAllIn(TidyEvalPackages, ['quo', 'quos', 'expr']), identifier_1.Identifier.from(['exprs', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, unquote: nse_1.Unquote.Rlang, keepEnvironment: true, libFn: true, props: built_in_props_1.CallProp.Lang }, assumePrimitive: true },
|
|
1031
1079
|
{ type: 'function', names: [identifier_1.Identifier.from(['exec', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: '.fn', unquoteFunction: true, hasUnknownSideEffects: true, libFn: true, props: built_in_props_1.CallProp.MayPure, sig: [['.fn', built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1032
1080
|
{ type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['invoke', 'invoke_map']), processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: '.f', unquoteFunction: true, hasUnknownSideEffects: true, libFn: true, props: built_in_props_1.CallProp.MayPure, tags: [built_in_props_1.SemanticCallTag.Deprecated], sig: [['.f', built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1033
|
-
/* the `{...}` of a template holds R code, evaluated where the call is; `cli_abort` stays with the other
|
|
1034
|
-
* error exits, as terminating a branch matters more than interpolating its message */
|
|
1035
1081
|
{ type: 'function', names: [...identifier_1.Identifier.fromAll("glue" /* PkgName.Glue */, ['glue', 'glue_safe', 'glue_collapse']), identifier_1.Identifier.from(['str_glue', "stringr" /* PkgName.Stringr */])], processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
1036
1082
|
{ type: 'function', names: identifier_1.Identifier.fromAll("cli" /* PkgName.Cli */, ['cli_text', 'cli_alert', 'cli_alert_info', 'cli_alert_success', 'cli_alert_warning', 'cli_alert_danger', 'cli_h1', 'cli_h2', 'cli_h3', 'cli_li', 'cli_bullets', 'cli_inform', 'cli_warn', 'format_inline', 'cli_verbatim']), processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { markup: true, props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
1037
1083
|
{ type: 'function', names: [identifier_1.Identifier.from(['str_interp', "stringr" /* PkgName.Stringr */])], processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { open: '${', props: built_in_props_1.CallProp.MayPure, tags: [built_in_props_1.SemanticCallTag.Deprecated] }, assumePrimitive: false },
|
|
1084
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['gstring', "R.utils" /* PkgName.Rutils */])], processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { open: '${', props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
1085
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("wrapr" /* PkgName.Wrapr */, ['sinterp', 'si']), processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { open: '.(', close: ')', props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
1086
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("stringmagic" /* PkgName.Stringmagic */, ['string_magic', '.string_magic', 'sma']), processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
1087
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['whisker.render', "whisker" /* PkgName.Whisker */])], processor: built_in_proc_name_1.BuiltInProcName.StringTemplate, config: { open: '{{', close: '}}', props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
1088
|
+
{ 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 },
|
|
1089
|
+
{ 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 },
|
|
1038
1090
|
/* `local(expr)` evaluates `expr` in a frame of its own and hands its value back */
|
|
1039
|
-
{ 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 },
|
|
1040
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['with', 'within']), processor: built_in_proc_name_1.BuiltInProcName.With, config: {}, assumePrimitive: false },
|
|
1041
|
-
{ 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 },
|
|
1091
|
+
{ 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 },
|
|
1092
|
+
{ 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 },
|
|
1093
|
+
{ 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 },
|
|
1042
1094
|
{ type: 'function', names: [identifier_1.Identifier.from(['R6Class', "R6" /* PkgName.R6 */])],
|
|
1043
1095
|
processor: built_in_proc_name_1.BuiltInProcName.ClassGenerator,
|
|
1044
1096
|
config: { classDecl: {
|
|
@@ -1052,7 +1104,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1052
1104
|
{ name: 'active', visibility: "active" /* MemberVisibility.Active */ }
|
|
1053
1105
|
]
|
|
1054
1106
|
} }, assumePrimitive: false },
|
|
1055
|
-
{ 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 },
|
|
1107
|
+
{ 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 },
|
|
1056
1108
|
/* env-returning builtins pointing into the current search-path stack (`e <- globalenv(); e$x`) */
|
|
1057
1109
|
{ type: 'function', names: Object.entries(exports.StackEnvBuiltins)
|
|
1058
1110
|
.filter(([n, kind]) => !n.startsWith('.') && (kind === StackEnvKind.Global || kind === StackEnvKind.Base || kind === StackEnvKind.Empty))
|
|
@@ -1063,24 +1115,24 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1063
1115
|
{ 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 },
|
|
1064
1116
|
{ 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 },
|
|
1065
1117
|
/* attach injects an environment's contents into the search path; detach reverses it (treated as unknown side effect) */
|
|
1066
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['attach', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Attach, config: {}, assumePrimitive: false },
|
|
1067
|
-
{ type: 'function', names: ['for'], processor: built_in_proc_name_1.BuiltInProcName.ForLoop, config: {}, assumePrimitive: true },
|
|
1068
|
-
{ type: 'function', names: ['repeat'], processor: built_in_proc_name_1.BuiltInProcName.RepeatLoop, config: {}, assumePrimitive: true },
|
|
1069
|
-
{ type: 'function', names: ['while'], processor: built_in_proc_name_1.BuiltInProcName.WhileLoop, config: {}, assumePrimitive: true },
|
|
1118
|
+
{ 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 },
|
|
1119
|
+
{ 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 },
|
|
1120
|
+
{ 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 },
|
|
1121
|
+
{ 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 },
|
|
1070
1122
|
{ 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 },
|
|
1071
|
-
{ 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 },
|
|
1072
|
-
{ 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 },
|
|
1123
|
+
{ 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 },
|
|
1124
|
+
{ 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 },
|
|
1073
1125
|
{ 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 },
|
|
1074
|
-
{ 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 },
|
|
1126
|
+
{ 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 },
|
|
1075
1127
|
{ 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 },
|
|
1076
1128
|
{ 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 },
|
|
1077
1129
|
/* S4 keeps its classes and generics in string-keyed registries, so a call naming one depends on whatever registered it */
|
|
1078
|
-
{ 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 },
|
|
1130
|
+
{ 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 },
|
|
1079
1131
|
{ 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 },
|
|
1080
|
-
{ 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 },
|
|
1081
|
-
{ 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 },
|
|
1082
|
-
{ 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 },
|
|
1083
|
-
{ 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 },
|
|
1132
|
+
{ 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 },
|
|
1133
|
+
{ 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 },
|
|
1134
|
+
{ 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 },
|
|
1135
|
+
{ 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 },
|
|
1084
1136
|
{ type: 'function', names: [identifier_1.Identifier.from(['setClass', "methods" /* PkgName.Methods */])],
|
|
1085
1137
|
processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor,
|
|
1086
1138
|
config: { mode: ['s4'], classDecl: {
|
|
@@ -1090,7 +1142,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1090
1142
|
/* the modern `slots=` and the historical `representation()` state the same thing */
|
|
1091
1143
|
memberArgs: [{ idx: 1, name: 'representation', typed: true }, { name: 'slots', typed: true }],
|
|
1092
1144
|
prototypeArg: { idx: 2, name: 'prototype' }
|
|
1093
|
-
} }, assumePrimitive: true },
|
|
1145
|
+
}, 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 },
|
|
1094
1146
|
{ type: 'function', names: [identifier_1.Identifier.from(['setClassUnion', "methods" /* PkgName.Methods */])],
|
|
1095
1147
|
processor: built_in_proc_name_1.BuiltInProcName.S7MakeConstructor,
|
|
1096
1148
|
config: { mode: ['s4'], classDecl: {
|
|
@@ -1098,7 +1150,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1098
1150
|
nameArg: { idx: 0, name: 'name' },
|
|
1099
1151
|
/* a union is a virtual class its members become subclasses of */
|
|
1100
1152
|
unionArg: { idx: 1, name: 'members' }
|
|
1101
|
-
} }, assumePrimitive: true },
|
|
1153
|
+
}, sig: [['name', built_in_props_1.ArgProp.NoDefault], ['members', 0], ['where', 0]] }, assumePrimitive: true },
|
|
1102
1154
|
{ 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 },
|
|
1103
1155
|
{ 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 },
|
|
1104
1156
|
{ 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 },
|
|
@@ -1106,13 +1158,14 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1106
1158
|
{ 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 },
|
|
1107
1159
|
{ 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 },
|
|
1108
1160
|
{ 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 },
|
|
1109
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['Recall', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Recall, config: { libFn: true }, assumePrimitive: false },
|
|
1110
|
-
{ 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 },
|
|
1161
|
+
{ 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 },
|
|
1162
|
+
{ 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 },
|
|
1111
1163
|
{ 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 },
|
|
1112
1164
|
{ 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]] } },
|
|
1113
1165
|
{ 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]] } },
|
|
1114
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['loadcmp', "compiler" /* PkgName.Compiler */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true } },
|
|
1115
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['
|
|
1166
|
+
{ 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]] } },
|
|
1167
|
+
{ 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]] } },
|
|
1168
|
+
{ 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]] } },
|
|
1116
1169
|
{
|
|
1117
1170
|
type: 'function',
|
|
1118
1171
|
names: [
|
|
@@ -1129,7 +1182,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1129
1182
|
{ 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 },
|
|
1130
1183
|
/* `sink` diverts the output, `par`/`tpar` set the parameters of the current device */
|
|
1131
1184
|
{ 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 },
|
|
1132
|
-
{ 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: { hasUnknownSideEffects: true, tags: [built_in_props_1.SemanticCallTag.Graphics] }, assumePrimitive: false },
|
|
1185
|
+
{ 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: { hasUnknownSideEffects: true, tags: [built_in_props_1.SemanticCallTag.Graphics], sig: [['...', 0], ['no.readonly', 0]] }, assumePrimitive: false },
|
|
1133
1186
|
{
|
|
1134
1187
|
type: 'function',
|
|
1135
1188
|
names: [
|
|
@@ -1139,7 +1192,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1139
1192
|
identifier_1.Identifier.from(['install_local', "remotes" /* PkgName.Remotes */]), identifier_1.Identifier.from(['install_local', "devtools" /* PkgName.Devtools */]),
|
|
1140
1193
|
],
|
|
1141
1194
|
processor: built_in_proc_name_1.BuiltInProcName.Default,
|
|
1142
|
-
config: { hasUnknownSideEffects: true, libFn: true },
|
|
1195
|
+
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]] },
|
|
1143
1196
|
assumePrimitive: false
|
|
1144
1197
|
},
|
|
1145
1198
|
/* installers fetch the package and put it into the library (devtools re-exports the entire remotes install API) */
|
|
@@ -1155,7 +1208,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1155
1208
|
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] },
|
|
1156
1209
|
assumePrimitive: false
|
|
1157
1210
|
},
|
|
1158
|
-
{ 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 },
|
|
1211
|
+
{ 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 },
|
|
1159
1212
|
{ 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 },
|
|
1160
1213
|
{ 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 },
|
|
1161
1214
|
{ 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 },
|
|
@@ -1165,7 +1218,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1165
1218
|
{ 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 },
|
|
1166
1219
|
{ 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 },
|
|
1167
1220
|
/* language objects */
|
|
1168
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['enquote', 'call', 'as.call', 'as.expression', 'as.name', 'as.symbol', '
|
|
1221
|
+
{ 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 },
|
|
1169
1222
|
/* they hand back the call they sit in, so the function around them reads its arguments as written, unevaluated */
|
|
1170
1223
|
{ 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 },
|
|
1171
1224
|
/* `nargs()` counts what the call supplied, so it sees no argument, only whether there was one */
|
|
@@ -1173,7 +1226,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1173
1226
|
/* `alist` keeps its arguments unevaluated, `evalq` evaluates its first one in another frame */
|
|
1174
1227
|
{ 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 },
|
|
1175
1228
|
{ 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 },
|
|
1176
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['eval.parent', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.
|
|
1229
|
+
{ 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 },
|
|
1177
1230
|
{ 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 },
|
|
1178
1231
|
{ 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 },
|
|
1179
1232
|
{ 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 },
|
|
@@ -1220,13 +1273,14 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1220
1273
|
},
|
|
1221
1274
|
/* they only make up a path, they do not go near the file system, so `File` would be wrong here */
|
|
1222
1275
|
{ 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 },
|
|
1223
|
-
{ type: 'function', names: [...identifier_1.Identifier.fromAll("fs" /* PkgName.Fs */, ['file_temp', 'path_temp'
|
|
1276
|
+
{ 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 },
|
|
1224
1277
|
/* wrappers that run the expression they are handed; `observe`/`render*` are left out, they yield a handle instead */
|
|
1225
1278
|
{ 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 },
|
|
1226
1279
|
/* assembling a cohort keeps the data of its source; `filter` is registered above, dplyr holds that name */
|
|
1227
1280
|
{ 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 },
|
|
1228
1281
|
/* they are all mapped to `<-` but we separate super assignments */
|
|
1229
|
-
{ type: 'replacement', suffixes: ['<-', '<<-'], names: ['[', '[[', ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['names', 'dimnames', 'attributes', 'attr', 'class', 'levels', 'rownames', 'colnames', '
|
|
1282
|
+
{ 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 } },
|
|
1283
|
+
{ 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 } },
|
|
1230
1284
|
{ type: 'replacement', suffixes: ['<-', '<<-'], names: [identifier_1.Identifier.from(['method', "S7" /* PkgName.S7 */])], config: { readIndices: true, constructName: 's7' } },
|
|
1231
1285
|
{ type: 'replacement', suffixes: ['<-', '<<-'], names: ['$', '@'], config: { readIndices: false, props: built_in_props_1.CallProp.Scope } },
|
|
1232
1286
|
/* the string and shape functions R declares formals for, restated one by one: the group above gives them
|
|
@@ -1283,17 +1337,17 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1283
1337
|
{ 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']) },
|
|
1284
1338
|
{ 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 */)] },
|
|
1285
1339
|
/* deprecated, but still data-masking: restating the mask keeps the column names out of the variable resolution */
|
|
1286
|
-
{ 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 */, ['
|
|
1287
|
-
{ 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.
|
|
1340
|
+
{ 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'])] },
|
|
1341
|
+
{ 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_']) },
|
|
1288
1342
|
{ 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']) },
|
|
1289
|
-
{ 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', '
|
|
1343
|
+
{ 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']) },
|
|
1290
1344
|
{ type: 'function', processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.Deprecated] }, names: ['`%@%`'] },
|
|
1291
1345
|
{ 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']) },
|
|
1292
|
-
{ 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'
|
|
1346
|
+
{ 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']) },
|
|
1293
1347
|
{ 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']) },
|
|
1294
1348
|
];
|
|
1295
1349
|
/** Contains the built-in definitions recognized by flowR */
|
|
1296
|
-
exports.DefaultBuiltinConfig = markGenerics(exports.WrittenBuiltinDefinitions);
|
|
1350
|
+
exports.DefaultBuiltinConfig = markPrimitives(markGenerics(exports.WrittenBuiltinDefinitions));
|
|
1297
1351
|
/** Expensive and naive lookup of the default processor for a built-in function name */
|
|
1298
1352
|
function getDefaultProcessor(name) {
|
|
1299
1353
|
if (name.startsWith(unnamed_call_handling_1.UnnamedFunctionCallPrefix)) {
|