@eagleoutice/flowr 2.17.4 → 2.17.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -89
- package/abstract-interpretation/absint-inference.d.ts +4 -4
- package/abstract-interpretation/absint-inference.js +12 -13
- package/abstract-interpretation/abstract-semantics.d.ts +2 -1
- package/abstract-interpretation/branch-paths-interpreter.js +60 -0
- package/abstract-interpretation/branch-paths.d.ts +60 -0
- package/abstract-interpretation/branch-paths.js +120 -0
- package/abstract-interpretation/data-frame/arguments.d.ts +14 -3
- package/abstract-interpretation/data-frame/arguments.js +34 -0
- package/abstract-interpretation/data-frame/dataframe-semantics.d.ts +6 -1
- package/abstract-interpretation/data-frame/dataframe-semantics.js +67 -16
- package/abstract-interpretation/data-frame/resolve-args.d.ts +2 -2
- package/abstract-interpretation/data-frame/semantics.d.ts +8 -1
- package/abstract-interpretation/data-frame/semantics.js +18 -16
- package/abstract-interpretation/domains/bounded-set-domain.d.ts +1 -1
- package/abstract-interpretation/domains/state-abstract-domain.js +28 -18
- package/abstract-interpretation/domains/state-map.d.ts +43 -0
- package/abstract-interpretation/domains/state-map.js +147 -0
- package/benchmark/slicer.d.ts +1 -1
- package/benchmark/slicer.js +8 -7
- package/cli/repl/commands/repl-dataflow.js +5 -5
- package/cli/repl/commands/repl-execute.js +3 -2
- package/cli/repl/commands/repl-parse.js +2 -1
- package/cli/repl/core.js +51 -0
- package/cli/repl/print-version.d.ts +1 -1
- package/cli/repl/print-version.js +2 -1
- package/cli/repl/server/connection.d.ts +1 -1
- package/cli/repl/server/connection.js +7 -9
- package/cli/slicer-app.js +2 -1
- package/clones/algorithms/baxter-ast.d.ts +33 -0
- package/clones/algorithms/baxter-ast.js +70 -0
- package/clones/algorithms/greedy-string-tiling.d.ts +17 -0
- package/clones/algorithms/greedy-string-tiling.js +56 -0
- package/clones/algorithms/winnowing.d.ts +27 -0
- package/clones/algorithms/winnowing.js +66 -0
- package/clones/clone-ast.d.ts +75 -0
- package/clones/clone-ast.js +174 -0
- package/clones/clone-dataflow.d.ts +11 -0
- package/clones/clone-dataflow.js +83 -0
- package/clones/clone-detector.d.ts +116 -0
- package/clones/clone-detector.js +200 -0
- package/clones/clone-index.d.ts +54 -0
- package/clones/clone-index.js +56 -0
- package/config.d.ts +21 -2
- package/config.js +7 -1
- package/control-flow/basic-cfg-guided-visitor.js +1 -2
- package/control-flow/cfg-dead-code.js +12 -7
- package/control-flow/happens-before.d.ts +2 -0
- package/control-flow/happens-before.js +15 -9
- package/control-flow/simple-visitor.js +2 -4
- package/core/steps/all/core/00-parse.js +2 -1
- package/core/steps/all/core/01-parse-tree-sitter.js +2 -1
- package/core/steps/all/core/10-normalize.js +2 -1
- package/core/steps/all/core/11-normalize-tree-sitter.js +2 -1
- package/core/steps/all/static-slicing/00-slice.js +2 -1
- package/core/steps/all/static-slicing/10-reconstruct.js +2 -1
- package/core/steps/pipeline/create-pipeline.js +1 -2
- package/core/steps/pipeline/default-pipelines.d.ts +1 -1
- package/core/steps/pipeline/default-pipelines.js +5 -4
- package/core/steps/pipeline-step.d.ts +3 -1
- package/core/steps/pipeline-step.js +5 -0
- package/data/packed.d.ts +10 -0
- package/data/packed.js +33 -0
- package/data/r-base-guards.generated.d.ts +7 -0
- package/data/r-base-guards.generated.js +12 -0
- package/data/r-base-primitives.generated.d.ts +2 -1
- package/data/r-datasets.generated.d.ts +4 -0
- package/data/r-datasets.generated.js +10 -0
- package/data/r-formals.generated.d.ts +4 -0
- package/data/r-formals.generated.js +10 -0
- package/data/r-group-method-guards.generated.d.ts +3 -0
- package/data/r-group-method-guards.generated.js +8 -0
- package/dataflow/cluster.js +1 -2
- package/dataflow/environments/ambient-effect.d.ts +1000 -0
- package/dataflow/environments/ambient-effect.js +234 -0
- package/dataflow/environments/ambient-state-name.d.ts +59 -24
- package/dataflow/environments/ambient-state-name.js +65 -21
- package/dataflow/environments/apply-kill.d.ts +9 -20
- package/dataflow/environments/apply-kill.js +62 -29
- package/dataflow/environments/built-in-config.d.ts +7 -15
- package/dataflow/environments/built-in-config.js +15 -16
- package/dataflow/environments/built-in-eval-name.d.ts +5 -6
- package/dataflow/environments/built-in-eval-name.js +4 -5
- package/dataflow/environments/built-in-kinds.d.ts +69 -0
- package/dataflow/environments/built-in-kinds.js +39 -0
- package/dataflow/environments/built-in-proc-name.d.ts +4 -0
- package/dataflow/environments/built-in-proc-name.js +11 -0
- package/dataflow/environments/built-in-props.d.ts +75 -176
- package/dataflow/environments/built-in-props.js +53 -157
- package/dataflow/environments/built-in.d.ts +42 -73
- package/dataflow/environments/built-in.js +49 -93
- package/dataflow/environments/data-masking-functions.d.ts +2 -2
- package/dataflow/environments/default-builtin-config/base-functions.d.ts +7 -0
- package/dataflow/environments/default-builtin-config/base-functions.js +397 -0
- package/dataflow/environments/default-builtin-config/base-language.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/base-language.js +69 -0
- package/dataflow/environments/default-builtin-config/base-operators.d.ts +58 -0
- package/dataflow/environments/default-builtin-config/base-operators.js +169 -0
- package/dataflow/environments/default-builtin-config/database-access.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/database-access.js +16 -0
- package/dataflow/environments/default-builtin-config/define-helpers.d.ts +45 -0
- package/dataflow/environments/default-builtin-config/define-helpers.js +50 -0
- package/dataflow/environments/default-builtin-config/dev-tooling.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/dev-tooling.js +63 -0
- package/dataflow/environments/default-builtin-config/file-io.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/file-io.js +83 -0
- package/dataflow/environments/default-builtin-config/graphics-devices.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/graphics-devices.js +67 -0
- package/dataflow/environments/default-builtin-config/guard-builders.d.ts +16 -0
- package/dataflow/environments/default-builtin-config/guard-builders.js +29 -0
- package/dataflow/environments/default-builtin-config/guards-primitive-lang.d.ts +15 -0
- package/dataflow/environments/default-builtin-config/guards-primitive-lang.js +228 -0
- package/dataflow/environments/default-builtin-config/guards-primitive-ops.d.ts +11 -0
- package/dataflow/environments/default-builtin-config/guards-primitive-ops.js +154 -0
- package/dataflow/environments/default-builtin-config/guards.d.ts +9 -0
- package/dataflow/environments/default-builtin-config/guards.js +211 -0
- package/dataflow/environments/default-builtin-config/index.d.ts +18 -0
- package/dataflow/environments/default-builtin-config/index.js +129 -0
- package/dataflow/environments/default-builtin-config/media-formats.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/media-formats.js +41 -0
- package/dataflow/environments/default-builtin-config/misc-packages.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/misc-packages.js +18 -0
- package/dataflow/environments/default-builtin-config/network-access.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/network-access.js +47 -0
- package/dataflow/environments/default-builtin-config/object-systems.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/object-systems.js +39 -0
- package/dataflow/environments/default-builtin-config/package-data-table.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/package-data-table.js +18 -0
- package/dataflow/environments/default-builtin-config/package-spatial.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/package-spatial.js +33 -0
- package/dataflow/environments/default-builtin-config/package-tidyverse.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/package-tidyverse.js +97 -0
- package/dataflow/environments/default-builtin-config/package-utils.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/package-utils.js +38 -0
- package/dataflow/environments/default-builtin-config/package-withr.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/package-withr.js +41 -0
- package/dataflow/environments/default-builtin-config/parallel-execution.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/parallel-execution.js +33 -0
- package/dataflow/environments/default-builtin-config/r-formals.d.ts +13 -0
- package/dataflow/environments/default-builtin-config/r-formals.js +110 -0
- package/dataflow/environments/default-builtin-config/session-interactive.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/session-interactive.js +31 -0
- package/dataflow/environments/default-builtin-config/shared-configs.d.ts +328 -0
- package/dataflow/environments/default-builtin-config/shared-configs.js +447 -0
- package/dataflow/environments/default-builtin-config/shared-signatures.d.ts +21 -0
- package/dataflow/environments/default-builtin-config/shared-signatures.js +32 -0
- package/dataflow/environments/default-builtin-config/statistics.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/statistics.js +35 -0
- package/dataflow/environments/default-builtin-config/unit-testing.d.ts +3 -0
- package/dataflow/environments/default-builtin-config/unit-testing.js +13 -0
- package/dataflow/environments/diff.js +5 -2
- package/dataflow/environments/environment.d.ts +48 -52
- package/dataflow/environments/environment.js +62 -74
- package/dataflow/environments/group-generics.d.ts +16 -19
- package/dataflow/environments/group-generics.js +28 -15
- package/dataflow/environments/guard-facts.d.ts +169 -0
- package/dataflow/environments/guard-facts.js +26 -0
- package/dataflow/environments/identifier.d.ts +81 -428
- package/dataflow/environments/identifier.js +39 -145
- package/dataflow/environments/pkg-name.d.ts +198 -0
- package/dataflow/environments/pkg-name.js +3 -0
- package/dataflow/environments/query-fn-props.d.ts +28 -79
- package/dataflow/environments/query-fn-props.js +77 -115
- package/dataflow/environments/removal-marker.d.ts +2 -0
- package/dataflow/environments/removal-marker.js +5 -0
- package/dataflow/environments/resolve-by-name.d.ts +6 -16
- package/dataflow/environments/resolve-by-name.js +23 -35
- package/dataflow/environments/scoping.d.ts +5 -5
- package/dataflow/environments/scoping.js +13 -5
- package/dataflow/eval/resolve/alias-tracking.d.ts +31 -68
- package/dataflow/eval/resolve/alias-tracking.js +611 -126
- package/dataflow/eval/resolve/match-arguments.d.ts +5 -3
- package/dataflow/eval/resolve/resolve-argument.d.ts +11 -11
- package/dataflow/eval/resolve/resolve-argument.js +25 -30
- package/dataflow/eval/resolve/resolve-field.d.ts +10 -0
- package/dataflow/eval/resolve/resolve-field.js +127 -0
- package/dataflow/eval/resolve/resolve-replacement.d.ts +10 -0
- package/dataflow/eval/resolve/resolve-replacement.js +80 -0
- package/dataflow/eval/resolve/resolve-strings.d.ts +4 -7
- package/dataflow/eval/resolve/resolve-strings.js +2 -2
- package/dataflow/eval/resolve/resolve.d.ts +13 -10
- package/dataflow/eval/resolve/resolve.js +81 -32
- package/dataflow/eval/values/general.d.ts +6 -24
- package/dataflow/eval/values/general.js +12 -29
- package/dataflow/eval/values/lists/list-constants.d.ts +11 -0
- package/dataflow/eval/values/lists/list-constants.js +65 -0
- package/dataflow/eval/values/r-value.d.ts +20 -23
- package/dataflow/eval/values/r-value.js +22 -17
- package/dataflow/extractor.d.ts +2 -10
- package/dataflow/extractor.js +111 -48
- package/dataflow/fn/argument-roles.d.ts +2 -4
- package/dataflow/fn/argument-roles.js +49 -23
- package/dataflow/fn/class-declaration.d.ts +36 -52
- package/dataflow/fn/class-declaration.js +22 -56
- package/dataflow/fn/condition-handlers.d.ts +4 -1
- package/dataflow/fn/condition-handlers.js +3 -1
- package/dataflow/fn/dispatch.d.ts +70 -0
- package/dataflow/fn/dispatch.js +434 -0
- package/dataflow/fn/exceptions-of-function.d.ts +1 -2
- package/dataflow/fn/exceptions-of-function.js +36 -106
- package/dataflow/fn/frame-reflection.d.ts +5 -5
- package/dataflow/fn/frame-reflection.js +24 -16
- package/dataflow/fn/function-props.d.ts +2 -5
- package/dataflow/fn/function-props.js +30 -46
- package/dataflow/fn/function-semantics.d.ts +44 -26
- package/dataflow/fn/function-semantics.js +19 -18
- package/dataflow/fn/guards/built-in-guards.d.ts +112 -0
- package/dataflow/fn/guards/built-in-guards.js +199 -0
- package/dataflow/fn/guards/call-contracts.d.ts +97 -0
- package/dataflow/fn/guards/call-contracts.js +331 -0
- package/dataflow/fn/guards/condition-grouping.d.ts +20 -0
- package/dataflow/fn/guards/condition-grouping.js +135 -0
- package/dataflow/fn/guards/function-guards.d.ts +112 -0
- package/dataflow/fn/guards/function-guards.js +1549 -0
- package/dataflow/fn/guards/group-method-guards.d.ts +28 -0
- package/dataflow/fn/guards/group-method-guards.js +56 -0
- package/dataflow/fn/guards/guard-claims.d.ts +125 -0
- package/dataflow/fn/guards/guard-claims.js +678 -0
- package/dataflow/fn/guards/guard-knowledge.d.ts +41 -0
- package/dataflow/fn/guards/guard-knowledge.js +180 -0
- package/dataflow/fn/guards/guard-term-syntax.d.ts +9 -0
- package/dataflow/fn/guards/guard-term-syntax.js +210 -0
- package/dataflow/fn/guards/guard-term.d.ts +136 -0
- package/dataflow/fn/guards/guard-term.js +550 -0
- package/dataflow/fn/guards/stated-guards.d.ts +13 -0
- package/dataflow/fn/guards/stated-guards.js +35 -0
- package/dataflow/fn/higher-order-function.d.ts +2 -0
- package/dataflow/fn/higher-order-function.js +3 -4
- package/dataflow/fn/strict-function.d.ts +14 -35
- package/dataflow/fn/strict-function.js +183 -146
- package/dataflow/graph/ambient-access.d.ts +54 -0
- package/dataflow/graph/ambient-access.js +86 -0
- package/dataflow/graph/call-graph.d.ts +9 -29
- package/dataflow/graph/call-graph.js +17 -41
- package/dataflow/graph/closure-frames.d.ts +46 -0
- package/dataflow/graph/closure-frames.js +225 -0
- package/dataflow/graph/dataflowgraph-builder.d.ts +25 -96
- package/dataflow/graph/dataflowgraph-builder.js +29 -97
- package/dataflow/graph/df-helper.d.ts +54 -188
- package/dataflow/graph/df-helper.js +122 -208
- package/dataflow/graph/diff-dataflow-graph.d.ts +5 -15
- package/dataflow/graph/diff-dataflow-graph.js +25 -25
- package/dataflow/graph/edge.js +1 -1
- package/dataflow/graph/graph-helper.d.ts +10 -46
- package/dataflow/graph/graph-helper.js +16 -50
- package/dataflow/graph/graph.d.ts +50 -97
- package/dataflow/graph/graph.js +72 -75
- package/dataflow/graph/match-args.d.ts +21 -88
- package/dataflow/graph/match-args.js +284 -97
- package/dataflow/graph/vertex.d.ts +101 -128
- package/dataflow/graph/vertex.js +23 -20
- package/dataflow/hooks.d.ts +7 -14
- package/dataflow/hooks.js +15 -13
- package/dataflow/info.d.ts +4 -18
- package/dataflow/info.js +3 -1
- package/dataflow/internal/dispatch-linking.d.ts +73 -0
- package/dataflow/internal/dispatch-linking.js +333 -0
- package/dataflow/internal/linker.d.ts +50 -50
- package/dataflow/internal/linker.js +566 -155
- package/dataflow/internal/process/functions/call/argument/make-argument.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-access.d.ts +2 -14
- package/dataflow/internal/process/functions/call/built-in/built-in-access.js +18 -47
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-keys.d.ts +12 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-keys.js +12 -10
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.d.ts +38 -128
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +681 -339
- package/dataflow/internal/process/functions/call/built-in/built-in-apply.d.ts +10 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +78 -45
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.d.ts +17 -19
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +185 -78
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.d.ts +5 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +26 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-class-generator.d.ts +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-class-generator.js +3 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-deferred-env-ops.d.ts +15 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-deferred-env-ops.js +438 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-env-contents.js +4 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +40 -57
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +214 -117
- package/dataflow/internal/process/functions/call/built-in/built-in-eval.d.ts +4 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-eval.js +74 -17
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.d.ts +20 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +420 -115
- package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.d.ts +1 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +6 -14
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.d.ts +8 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +530 -140
- package/dataflow/internal/process/functions/call/built-in/built-in-get.d.ts +20 -10
- package/dataflow/internal/process/functions/call/built-in/built-in-get.js +98 -13
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.d.ts +2 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +9 -16
- package/dataflow/internal/process/functions/call/built-in/built-in-library.d.ts +14 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +40 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-load.js +18 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-local.d.ts +8 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-local.js +39 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.d.ts +9 -24
- package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.js +10 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-recall.js +4 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-register-hook.d.ts +5 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-register-hook.js +3 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-replacement.d.ts +1 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-replacement.js +27 -12
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.d.ts +2 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +74 -38
- package/dataflow/internal/process/functions/call/built-in/built-in-s-four.d.ts +17 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-s-four.js +117 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.d.ts +5 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.js +3 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.d.ts +8 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.js +18 -29
- package/dataflow/internal/process/functions/call/built-in/built-in-source.d.ts +9 -27
- package/dataflow/internal/process/functions/call/built-in/built-in-source.js +42 -45
- package/dataflow/internal/process/functions/call/built-in/built-in-special-bin-op.js +3 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +12 -18
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +72 -21
- package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.d.ts +19 -17
- package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +286 -81
- package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +7 -4
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +44 -30
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +723 -115
- package/dataflow/internal/process/functions/call/common.d.ts +8 -24
- package/dataflow/internal/process/functions/call/common.js +24 -24
- package/dataflow/internal/process/functions/call/deferred.d.ts +7 -27
- package/dataflow/internal/process/functions/call/deferred.js +6 -27
- package/dataflow/internal/process/functions/call/known-call-handling.d.ts +6 -26
- package/dataflow/internal/process/functions/call/known-call-handling.js +6 -16
- package/dataflow/internal/process/functions/call/named-call-handling.d.ts +1 -4
- package/dataflow/internal/process/functions/call/named-call-handling.js +14 -35
- package/dataflow/internal/process/functions/call/nse.d.ts +2 -9
- package/dataflow/internal/process/functions/call/nse.js +6 -13
- package/dataflow/internal/process/functions/call/quoted.d.ts +6 -15
- package/dataflow/internal/process/functions/call/quoted.js +48 -65
- package/dataflow/internal/process/functions/call/unnamed-call-handling.d.ts +3 -6
- package/dataflow/internal/process/functions/call/unnamed-call-handling.js +29 -11
- package/dataflow/internal/process/functions/process-parameter.js +1 -1
- package/dataflow/internal/program-order.d.ts +3 -10
- package/dataflow/internal/program-order.js +19 -10
- package/dataflow/origin/dfg-get-origin.js +2 -1
- package/dataflow/processor.d.ts +2 -0
- package/documentation/data/dfg/doc-ambient.d.ts +4 -0
- package/documentation/data/dfg/doc-ambient.js +74 -0
- package/documentation/data/faq/faqs.js +16 -1
- package/documentation/data/interface/doc-writing-code.js +5 -7
- package/documentation/doc-capabilities.js +3 -3
- package/documentation/doc-readme.js +1 -1
- package/documentation/doc-util/doc-code.d.ts +0 -5
- package/documentation/doc-util/doc-code.js +2 -22
- package/documentation/doc-util/doc-query.d.ts +1 -2
- package/documentation/doc-util/doc-query.js +4 -5
- package/documentation/doc-util/doc-search.js +1 -1
- package/documentation/wiki-analyzer.js +4 -3
- package/documentation/wiki-core.js +5 -5
- package/documentation/wiki-dataflow-graph.js +15 -3
- package/documentation/wiki-interface.js +2 -1
- package/documentation/wiki-linter.js +27 -3
- package/documentation/wiki-linting-and-testing.js +15 -2
- package/documentation/wiki-query.js +223 -30
- package/index.d.ts +3 -1
- package/index.js +6 -3
- package/linter/linter-executor.js +1 -1
- package/linter/linter-rules.d.ts +78 -9
- package/linter/linter-rules.js +12 -1
- package/linter/linter-util.d.ts +3 -3
- package/linter/linter-util.js +1 -1
- package/linter/rules/call-contracts.d.ts +40 -0
- package/linter/rules/call-contracts.js +56 -0
- package/linter/rules/cmd-check/bogus-return.d.ts +2 -1
- package/linter/rules/cmd-check/bogus-return.js +1 -1
- package/linter/rules/cmd-check/call-arguments.d.ts +3 -2
- package/linter/rules/cmd-check/call-arguments.js +10 -11
- package/linter/rules/cmd-check/cmd-check-util.d.ts +8 -13
- package/linter/rules/cmd-check/cmd-check-util.js +0 -28
- package/linter/rules/cmd-check/dependency-declaration.d.ts +2 -1
- package/linter/rules/cmd-check/dependency-declaration.js +1 -1
- package/linter/rules/cmd-check/documentation-mismatch.d.ts +3 -2
- package/linter/rules/cmd-check/documentation-mismatch.js +2 -1
- package/linter/rules/cmd-check/file-checks.d.ts +2 -2
- package/linter/rules/cmd-check/foreign-function-calls.d.ts +2 -1
- package/linter/rules/cmd-check/global-environment-modification.d.ts +6 -5
- package/linter/rules/cmd-check/namespace-tampering.d.ts +2 -1
- package/linter/rules/cmd-check/non-ascii-code.js +1 -1
- package/linter/rules/cmd-check/package-files.d.ts +2 -2
- package/linter/rules/cmd-check/package-hooks.d.ts +5 -4
- package/linter/rules/cmd-check/package-hooks.js +2 -1
- package/linter/rules/cmd-check/package-runtime.js +2 -2
- package/linter/rules/cmd-check/rd-files.js +2 -1
- package/linter/rules/cmd-check/s-three-method-consistency.d.ts +3 -2
- package/linter/rules/cmd-check/s-three-method-consistency.js +3 -2
- package/linter/rules/code-clones.d.ts +57 -0
- package/linter/rules/code-clones.js +53 -0
- package/linter/rules/deprecated-functions.js +3 -6
- package/linter/rules/file-path-validity.js +6 -4
- package/linter/rules/function-finder-util.d.ts +4 -2
- package/linter/rules/interactive-functions.d.ts +30 -0
- package/linter/rules/interactive-functions.js +87 -0
- package/linter/rules/naming-convention.d.ts +6 -5
- package/linter/rules/naming-convention.js +2 -3
- package/linter/rules/no-leaked-credentials.d.ts +2 -1
- package/linter/rules/no-leaked-credentials.js +1 -1
- package/linter/rules/overwritten-file.d.ts +2 -1
- package/linter/rules/problematic-inputs.d.ts +2 -1
- package/linter/rules/problematic-inputs.js +3 -3
- package/linter/rules/process-state-in-session.d.ts +7 -6
- package/linter/rules/process-state-in-session.js +2 -2
- package/linter/rules/roxygen-arguments.d.ts +1 -1
- package/linter/rules/secret-exfiltration.js +1 -1
- package/linter/rules/seeded-randomness.d.ts +3 -3
- package/linter/rules/unclosed-connection.js +1 -2
- package/linter/rules/undefined-symbol-util.d.ts +4 -3
- package/linter/rules/undefined-symbol-util.js +8 -2
- package/linter/rules/undefined-symbol.d.ts +3 -2
- package/linter/rules/undefined-symbol.js +18 -7
- package/linter/rules/unescaped-arguments.d.ts +1 -1
- package/linter/rules/unescaped-arguments.js +6 -8
- package/linter/rules/unused-definition.d.ts +4 -3
- package/linter/rules/unused-definition.js +10 -12
- package/linter/rules/unused-import.d.ts +6 -5
- package/linter/rules/useless-loop.d.ts +1 -1
- package/package.json +1 -1
- package/project/attached-packages.d.ts +5 -4
- package/project/cache/flowr-analyzer-cache.d.ts +14 -1
- package/project/cache/flowr-analyzer-cache.js +40 -3
- package/project/context/flowr-analyzer-dependencies-context.d.ts +12 -12
- package/project/context/flowr-analyzer-dependencies-context.js +2 -1
- package/project/context/flowr-analyzer-environment-context.d.ts +3 -3
- package/project/context/flowr-analyzer-environment-context.js +3 -3
- package/project/context/flowr-analyzer-functions-context.d.ts +9 -7
- package/project/context/flowr-analyzer-gas-context.d.ts +25 -0
- package/project/context/flowr-analyzer-gas-context.js +34 -4
- package/project/dependency-version-space.d.ts +30 -29
- package/project/dependency-version-space.js +1 -2
- package/project/flowr-analyzer-builder.d.ts +2 -3
- package/project/flowr-analyzer.d.ts +36 -3
- package/project/flowr-analyzer.js +8 -2
- package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +15 -14
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-on-demand-plugin.d.ts +5 -4
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-on-demand-plugin.js +1 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.d.ts +2 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.d.ts +4 -3
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +2 -1
- package/project/plugins/package-version-plugins/package.d.ts +6 -5
- package/project/sigdb/build.js +15 -5
- package/project/sigdb/decode.d.ts +11 -7
- package/project/sigdb/decode.js +11 -3
- package/project/sigdb/dict.d.ts +2 -1
- package/project/sigdb/dict.js +2 -2
- package/project/sigdb/guarded-source.d.ts +6 -0
- package/project/sigdb/guarded-source.js +29 -0
- package/project/sigdb/index-format.d.ts +2 -1
- package/project/sigdb/manifest.d.ts +1 -1
- package/project/sigdb/memory-source.d.ts +18 -17
- package/project/sigdb/on-demand/package-sources.d.ts +4 -3
- package/project/sigdb/on-demand/recoverer.d.ts +2 -1
- package/project/sigdb/on-demand/remote-sources.d.ts +2 -1
- package/project/sigdb/reader.d.ts +90 -80
- package/project/sigdb/reader.js +27 -5
- package/project/sigdb/schema.d.ts +33 -10
- package/project/sigdb/signature-db.d.ts +6 -6
- package/queries/catalog/absint-query/absint-query-format.d.ts +6 -3
- package/queries/catalog/absint-query/absint-query-format.js +57 -2
- package/queries/catalog/ambient-access-query/ambient-access-query-format.d.ts +58 -0
- package/queries/catalog/ambient-access-query/ambient-access-query-format.js +90 -0
- package/queries/catalog/call-context-query/call-context-query-executor.d.ts +2 -1
- package/queries/catalog/call-context-query/call-context-query-executor.js +2 -2
- package/queries/catalog/call-graph-query/expand-library-internals.d.ts +3 -2
- package/queries/catalog/cluster-query/cluster-query-format.d.ts +5 -2
- package/queries/catalog/cluster-query/cluster-query-format.js +19 -2
- package/queries/catalog/code-clones-query/code-clones-query-format.d.ts +57 -0
- package/queries/catalog/code-clones-query/code-clones-query-format.js +105 -0
- package/queries/catalog/config-query/config-query-format.d.ts +5 -2
- package/queries/catalog/config-query/config-query-format.js +41 -2
- package/queries/catalog/control-flow-query/control-flow-query-format.d.ts +5 -2
- package/queries/catalog/control-flow-query/control-flow-query-format.js +19 -2
- package/queries/catalog/data-columns-query/data-columns-query-format.d.ts +72 -0
- package/queries/catalog/data-columns-query/data-columns-query-format.js +215 -0
- package/queries/catalog/dataflow-lens-query/dataflow-lens-query-format.d.ts +5 -2
- package/queries/catalog/dataflow-lens-query/dataflow-lens-query-format.js +38 -2
- package/queries/catalog/dataflow-query/dataflow-query-format.d.ts +5 -2
- package/queries/catalog/dataflow-query/dataflow-query-format.js +18 -2
- package/queries/catalog/dependencies-query/data-flow.d.ts +5 -4
- package/queries/catalog/dependencies-query/dependencies-query-executor.d.ts +5 -2
- package/queries/catalog/dependencies-query/dependencies-query-executor.js +5 -5
- package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +4 -3
- package/queries/catalog/dependencies-query/dependencies-query-format.js +9 -4
- package/queries/catalog/dependencies-query/function-info/function-info.d.ts +6 -4
- package/queries/catalog/dependencies-query/function-info/other-path-functions.js +1 -1
- package/queries/catalog/dependencies-query/function-info/tagged-functions.d.ts +11 -0
- package/queries/catalog/dependencies-query/function-info/tagged-functions.js +18 -0
- package/queries/catalog/dependencies-query/implicit-echo.js +2 -1
- package/queries/catalog/dice-query/dice-query-format.d.ts +8 -2
- package/queries/catalog/dice-query/dice-query-format.js +35 -2
- package/queries/catalog/does-call-query/does-call-query-format.d.ts +8 -4
- package/queries/catalog/does-call-query/does-call-query-format.js +115 -2
- package/queries/catalog/files-query/files-query-format.d.ts +5 -2
- package/queries/catalog/files-query/files-query-format.js +45 -2
- package/queries/catalog/function-info-query/function-info-query-format.d.ts +2 -1
- package/queries/catalog/function-info-query/function-origin.d.ts +3 -2
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.d.ts +11 -7
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.js +303 -2
- package/queries/catalog/happens-before-query/happens-before-query-format.d.ts +9 -4
- package/queries/catalog/happens-before-query/happens-before-query-format.js +38 -2
- package/queries/catalog/id-map-query/id-map-query-format.d.ts +5 -2
- package/queries/catalog/id-map-query/id-map-query-format.js +18 -2
- package/queries/catalog/input-sources-query/input-sources-query-executor.js +7 -3
- package/queries/catalog/input-sources-query/simple-input-classifier.d.ts +9 -9
- package/queries/catalog/input-sources-query/simple-input-classifier.js +1 -1
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.d.ts +5 -2
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.js +29 -2
- package/queries/catalog/inspect-fn-guards-query/inspect-fn-guards-query-format.d.ts +37 -0
- package/queries/catalog/inspect-fn-guards-query/inspect-fn-guards-query-format.js +125 -0
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.d.ts +3 -2
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.js +54 -2
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.d.ts +6 -2
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.js +23 -2
- package/queries/catalog/inspect-recursion-query/inspect-recursion-query-format.d.ts +6 -2
- package/queries/catalog/inspect-recursion-query/inspect-recursion-query-format.js +15 -2
- package/queries/catalog/linter-query/linter-query-format.d.ts +8 -2
- package/queries/catalog/linter-query/linter-query-format.js +72 -6
- package/queries/catalog/location-map-query/location-map-query-format.d.ts +7 -3
- package/queries/catalog/location-map-query/location-map-query-format.js +70 -2
- package/queries/catalog/normalized-ast-query/normalized-ast-query-format.d.ts +5 -2
- package/queries/catalog/normalized-ast-query/normalized-ast-query-format.js +18 -2
- package/queries/catalog/origin-query/origin-query-format.d.ts +7 -3
- package/queries/catalog/origin-query/origin-query-format.js +30 -2
- package/queries/catalog/project-query/project-query-format.d.ts +8 -4
- package/queries/catalog/project-query/project-query-format.js +98 -2
- package/queries/catalog/provenance-query/provenance-query-format.d.ts +7 -3
- package/queries/catalog/provenance-query/provenance-query-format.js +31 -2
- package/queries/catalog/resolve-value-query/resolve-value-query-format.d.ts +10 -2
- package/queries/catalog/resolve-value-query/resolve-value-query-format.js +39 -2
- package/queries/catalog/search-query/search-query-format.d.ts +5 -2
- package/queries/catalog/search-query/search-query-format.js +23 -2
- package/queries/catalog/signature-query/signature-query-executor.d.ts +9 -6
- package/queries/catalog/signature-query/signature-query-executor.js +17 -16
- package/queries/catalog/signature-query/signature-query-format.d.ts +24 -20
- package/queries/catalog/signature-query/signature-query-render.js +24 -1
- package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +22 -7
- package/queries/catalog/static-slice-query/static-slice-query-format.js +56 -2
- package/queries/catalog/taint-query/taint-query-format.d.ts +6 -3
- package/queries/catalog/taint-query/taint-query-format.js +28 -2
- package/queries/query-function-filter.d.ts +1 -1
- package/queries/query.d.ts +104 -32
- package/queries/query.js +61 -37
- package/r-bridge/data/data.d.ts +39 -28
- package/r-bridge/data/data.js +37 -28
- package/r-bridge/lang-4.x/ast/model/model.d.ts +10 -1
- package/r-bridge/lang-4.x/ast/model/model.js +30 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-access.d.ts +21 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-access.js +25 -2
- package/r-bridge/lang-4.x/ast/model/nodes/r-argument.d.ts +2 -1
- package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.d.ts +3 -2
- package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.js +2 -2
- package/r-bridge/lang-4.x/ast/model/nodes/r-break.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-comment.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.d.ts +4 -3
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-logical.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-next.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-number.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +5 -6
- package/r-bridge/lang-4.x/ast/model/nodes/r-string.js +2 -7
- package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.d.ts +3 -2
- package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.js +2 -2
- package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.d.ts +1 -0
- package/r-bridge/lang-4.x/ast/model/processing/decorate.js +4 -5
- package/r-bridge/lang-4.x/ast/model/processing/node-id.d.ts +9 -2
- package/r-bridge/lang-4.x/ast/model/processing/node-id.js +18 -6
- package/r-bridge/lang-4.x/ast/model/processing/visitor.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/model/processing/visitor.js +2 -2
- package/r-bridge/lang-4.x/ast/model/type.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/model/type.js +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-binary.js +2 -2
- package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-unary.js +2 -2
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.d.ts +2 -2
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +3 -2
- package/r-bridge/parser.d.ts +8 -2
- package/r-bridge/parser.js +6 -0
- package/r-bridge/shell-executor.d.ts +2 -2
- package/r-bridge/shell-executor.js +3 -2
- package/r-bridge/shell.d.ts +2 -2
- package/r-bridge/shell.js +10 -4
- package/reconstruct/auto-select/magic-comments.js +1 -1
- package/reconstruct/reconstruct.d.ts +0 -5
- package/reconstruct/reconstruct.js +24 -8
- package/search/flowr-search-builder.d.ts +14 -0
- package/search/flowr-search-builder.js +7 -0
- package/search/flowr-search-executor.js +2 -2
- package/search/flowr-search-filters.js +8 -9
- package/search/flowr-search.js +1 -1
- package/search/search-executor/search-enrichers.d.ts +2 -0
- package/search/search-executor/search-enrichers.js +6 -1
- package/search/search-executor/search-generators.d.ts +2 -2
- package/search/search-executor/search-generators.js +13 -8
- package/search/search-executor/search-mappers.js +1 -1
- package/search/search-executor/search-transformer.d.ts +2 -2
- package/search/search-executor/search-transformer.js +6 -6
- package/slicing/criterion/parse.d.ts +2 -1
- package/slicing/criterion/parse.js +2 -1
- package/slicing/static/removal-slice.js +6 -4
- package/slicing/static/slice-call.d.ts +41 -4
- package/slicing/static/slice-call.js +117 -11
- package/slicing/static/slicer-types.d.ts +2 -1
- package/slicing/static/static-slicer.d.ts +2 -0
- package/slicing/static/static-slicer.js +199 -28
- package/slicing/static/visiting-queue.d.ts +4 -0
- package/slicing/static/visiting-queue.js +8 -0
- package/taint-analysis/builder/report-template.d.ts +3 -3
- package/util/arg-matching.d.ts +1 -1
- package/util/collections/relation.d.ts +23 -0
- package/util/collections/relation.js +63 -0
- package/util/fixpoint.d.ts +65 -0
- package/util/fixpoint.js +216 -0
- package/util/flowr-version.d.ts +1 -1
- package/util/flowr-version.js +2 -2
- package/util/json.d.ts +4 -0
- package/util/json.js +12 -3
- package/util/mermaid/cfg.js +1 -2
- package/util/mermaid/dfg.d.ts +1 -1
- package/util/mermaid/dfg.js +1 -1
- package/util/mermaid/mermaid.d.ts +2 -1
- package/util/monoid.d.ts +26 -0
- package/util/monoid.js +31 -0
- package/util/objects.d.ts +2 -0
- package/util/objects.js +5 -0
- package/util/prefix.d.ts +1 -1
- package/util/r-base-packages.d.ts +10 -7
- package/util/r-base-packages.js +11 -6
- package/util/r-datasets.d.ts +27 -0
- package/util/r-datasets.js +45 -0
- package/util/r-package-urls.d.ts +10 -9
- package/util/r-value.js +2 -1
- package/util/r-version-order.d.ts +2 -0
- package/util/r-version-order.js +19 -0
- package/util/r-version.d.ts +2 -1
- package/util/r-version.js +2 -14
- package/util/range.d.ts +38 -29
- package/util/range.js +10 -5
- package/util/simple-df/dfg-ascii.js +2 -2
- package/util/text/ansi.d.ts +13 -9
- package/util/text/ansi.js +4 -6
- package/util/text/playground-link.d.ts +2 -0
- package/util/text/playground-link.js +2 -0
- package/util/text/strings.d.ts +10 -3
- package/util/text/strings.js +10 -1
- package/util/version.d.ts +1 -1
- package/util/version.js +2 -1
- package/dataflow/environments/default-builtin-config.d.ts +0 -8874
- package/dataflow/environments/default-builtin-config.js +0 -1737
- package/queries/catalog/absint-query/absint-query-executor.d.ts +0 -6
- package/queries/catalog/absint-query/absint-query-executor.js +0 -61
- package/queries/catalog/cluster-query/cluster-query-executor.d.ts +0 -6
- package/queries/catalog/cluster-query/cluster-query-executor.js +0 -21
- package/queries/catalog/config-query/config-query-executor.d.ts +0 -6
- package/queries/catalog/config-query/config-query-executor.js +0 -45
- package/queries/catalog/control-flow-query/control-flow-query-executor.d.ts +0 -6
- package/queries/catalog/control-flow-query/control-flow-query-executor.js +0 -21
- package/queries/catalog/dataflow-lens-query/dataflow-lens-query-executor.d.ts +0 -6
- package/queries/catalog/dataflow-lens-query/dataflow-lens-query-executor.js +0 -40
- package/queries/catalog/dataflow-query/dataflow-query-executor.d.ts +0 -6
- package/queries/catalog/dataflow-query/dataflow-query-executor.js +0 -20
- package/queries/catalog/dependencies-query/function-info/statistics-functions.d.ts +0 -9
- package/queries/catalog/dependencies-query/function-info/statistics-functions.js +0 -18
- package/queries/catalog/dice-query/dice-query-executor.d.ts +0 -8
- package/queries/catalog/dice-query/dice-query-executor.js +0 -37
- package/queries/catalog/does-call-query/does-call-query-executor.d.ts +0 -6
- package/queries/catalog/does-call-query/does-call-query-executor.js +0 -117
- package/queries/catalog/files-query/files-query-executor.d.ts +0 -6
- package/queries/catalog/files-query/files-query-executor.js +0 -47
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.d.ts +0 -6
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.js +0 -307
- package/queries/catalog/happens-before-query/happens-before-query-executor.d.ts +0 -7
- package/queries/catalog/happens-before-query/happens-before-query-executor.js +0 -40
- package/queries/catalog/id-map-query/id-map-query-executor.d.ts +0 -6
- package/queries/catalog/id-map-query/id-map-query-executor.js +0 -20
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-executor.d.ts +0 -6
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-executor.js +0 -31
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-executor.d.ts +0 -4
- package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-executor.js +0 -58
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-executor.d.ts +0 -7
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-executor.js +0 -25
- package/queries/catalog/inspect-recursion-query/inspect-recursion-query-executor.d.ts +0 -7
- package/queries/catalog/inspect-recursion-query/inspect-recursion-query-executor.js +0 -17
- package/queries/catalog/linter-query/linter-query-executor.d.ts +0 -9
- package/queries/catalog/linter-query/linter-query-executor.js +0 -59
- package/queries/catalog/location-map-query/location-map-query-executor.d.ts +0 -7
- package/queries/catalog/location-map-query/location-map-query-executor.js +0 -73
- package/queries/catalog/normalized-ast-query/normalized-ast-query-executor.d.ts +0 -6
- package/queries/catalog/normalized-ast-query/normalized-ast-query-executor.js +0 -20
- package/queries/catalog/origin-query/origin-query-executor.d.ts +0 -6
- package/queries/catalog/origin-query/origin-query-executor.js +0 -31
- package/queries/catalog/project-query/project-query-executor.d.ts +0 -6
- package/queries/catalog/project-query/project-query-executor.js +0 -103
- package/queries/catalog/provenance-query/provenance-query-executor.d.ts +0 -6
- package/queries/catalog/provenance-query/provenance-query-executor.js +0 -33
- package/queries/catalog/resolve-value-query/resolve-value-query-executor.d.ts +0 -10
- package/queries/catalog/resolve-value-query/resolve-value-query-executor.js +0 -40
- package/queries/catalog/search-query/search-query-executor.d.ts +0 -6
- package/queries/catalog/search-query/search-query-executor.js +0 -25
- package/queries/catalog/static-slice-query/static-slice-query-executor.d.ts +0 -14
- package/queries/catalog/static-slice-query/static-slice-query-executor.js +0 -59
- package/queries/catalog/taint-query/taint-query-executor.d.ts +0 -7
- package/queries/catalog/taint-query/taint-query-executor.js +0 -30
- package/r-bridge/lang-4.x/ast/model/operators.d.ts +0 -33
- package/r-bridge/lang-4.x/ast/model/operators.js +0 -54
- package/taint-analysis/eval/eval.js +0 -124
- package/taint-analysis/eval/instrumentation.d.ts +0 -59
- package/taint-analysis/eval/instrumentation.js +0 -124
- /package/{taint-analysis/eval/eval.d.ts → abstract-interpretation/branch-paths-interpreter.d.ts} +0 -0
|
@@ -54,7 +54,7 @@ export declare function readManifestFile(manifestFile: string): SigDbManifest;
|
|
|
54
54
|
*/
|
|
55
55
|
export declare function readManifestDate(manifestFile: string): string | undefined;
|
|
56
56
|
/** breadth/temporal scope of a bundled sigdb: base R only, `current` (latest CRAN + base R), or the `full` history */
|
|
57
|
-
export type SigDbScope = 'base' |
|
|
57
|
+
export type SigDbScope = 'base' | SigDbTier;
|
|
58
58
|
/** the bundle directories in the cache, the most recently synced first (it takes precedence) */
|
|
59
59
|
export declare function sigDbBundleDirs(watched?: [string, number][]): string[];
|
|
60
60
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BrandedIdentifier, BrandedNamespace } from '../../dataflow/environments/identifier';
|
|
1
2
|
import type { PackageSignatureSource } from './reader';
|
|
2
3
|
import type { VersionRelease } from './sigdb-version';
|
|
3
4
|
import type { LibraryExports } from './schema';
|
|
@@ -10,7 +11,7 @@ import { RVersion } from '../../util/r-version';
|
|
|
10
11
|
*/
|
|
11
12
|
export interface MemoryPackage {
|
|
12
13
|
readonly version?: string;
|
|
13
|
-
readonly exported: readonly
|
|
14
|
+
readonly exported: readonly BrandedIdentifier[];
|
|
14
15
|
readonly deprecated?: readonly string[];
|
|
15
16
|
readonly s3Classes?: readonly string[];
|
|
16
17
|
readonly s4Classes?: readonly string[];
|
|
@@ -32,30 +33,30 @@ export declare class MemorySignatureSource implements PackageSignatureSource {
|
|
|
32
33
|
private readonly packages;
|
|
33
34
|
/** reverse index `class -> owning package`, built on first use (see {@link classOwner}) */
|
|
34
35
|
private classIndex;
|
|
35
|
-
constructor(packages: Readonly<Record<string, MemoryPackage>> | ReadonlyMap<
|
|
36
|
-
has(pkg:
|
|
37
|
-
hasVersion(pkg:
|
|
38
|
-
isCranVersion(pkg:
|
|
36
|
+
constructor(packages: Readonly<Record<string, MemoryPackage>> | ReadonlyMap<BrandedNamespace, MemoryPackage>);
|
|
37
|
+
has(pkg: BrandedNamespace): boolean;
|
|
38
|
+
hasVersion(pkg: BrandedNamespace, version: string): boolean;
|
|
39
|
+
isCranVersion(pkg: BrandedNamespace, version: string): boolean;
|
|
39
40
|
/** an in-memory source states no repository */
|
|
40
41
|
sourceOf(): undefined;
|
|
41
|
-
lookup(pkg:
|
|
42
|
-
packagesExporting(name:
|
|
43
|
-
classOwner(className: string, version?: string):
|
|
42
|
+
lookup(pkg: BrandedNamespace, version?: string): LibraryExports | undefined;
|
|
43
|
+
packagesExporting(name: BrandedIdentifier): readonly BrandedNamespace[];
|
|
44
|
+
classOwner(className: string, version?: string): BrandedNamespace | undefined;
|
|
44
45
|
/** the functions a package was given with, the per-function view stays empty for the others */
|
|
45
|
-
functions(pkg:
|
|
46
|
-
functionByName(pkg:
|
|
46
|
+
functions(pkg: BrandedNamespace, version?: string): DecodedFunction[] | undefined;
|
|
47
|
+
functionByName(pkg: BrandedNamespace, name: BrandedIdentifier, version?: string): DecodedFunction | undefined;
|
|
47
48
|
transitiveCallees(): undefined;
|
|
48
|
-
dependencies(pkg:
|
|
49
|
+
dependencies(pkg: BrandedNamespace, version?: string): ResolvedDependency[] | undefined;
|
|
49
50
|
/** an in-memory package states its exports, never its class relations */
|
|
50
51
|
classes(): undefined;
|
|
51
|
-
packageNames():
|
|
52
|
-
isBaseR(pkg:
|
|
53
|
-
downloads(pkg:
|
|
52
|
+
packageNames(): BrandedNamespace[];
|
|
53
|
+
isBaseR(pkg: BrandedNamespace): boolean;
|
|
54
|
+
downloads(pkg: BrandedNamespace): number;
|
|
54
55
|
/** the R releases a base package shipped with are a property of the database, which this source has none of */
|
|
55
56
|
coreVersions(): undefined;
|
|
56
|
-
releaseDate(pkg:
|
|
57
|
-
releaseDates(pkg:
|
|
58
|
-
latestVersion(pkg:
|
|
57
|
+
releaseDate(pkg: BrandedNamespace): Date | undefined;
|
|
58
|
+
releaseDates(pkg: BrandedNamespace): VersionRelease[];
|
|
59
|
+
latestVersion(pkg: BrandedNamespace): RVersion | undefined;
|
|
59
60
|
/** nothing is held open */
|
|
60
61
|
close(): void;
|
|
61
62
|
/** whether the package answers a lookup for `version`, which an unversioned one always does */
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import type Parser from 'web-tree-sitter';
|
|
2
2
|
import type { DecodedFunction } from '../decode';
|
|
3
|
+
import type { BrandedIdentifier, BrandedNamespace } from '../../../dataflow/environments/identifier';
|
|
3
4
|
/**
|
|
4
5
|
* What flowR recovers of a package from its sources: the exports its `NAMESPACE` states (an `exportPattern`
|
|
5
6
|
* matched against the names the code defines) and the formals of every function its `R/` files define at the
|
|
6
7
|
* top level. This is what an on-demand signature source serves for a package no database knows.
|
|
7
8
|
*/
|
|
8
9
|
export interface RecoveredPackage {
|
|
9
|
-
readonly name:
|
|
10
|
+
readonly name: BrandedNamespace;
|
|
10
11
|
readonly version?: string;
|
|
11
12
|
/** where the sources came from, like `github:masurp/ggmirt` */
|
|
12
13
|
readonly origin: string;
|
|
13
|
-
readonly exported: readonly
|
|
14
|
+
readonly exported: readonly BrandedIdentifier[];
|
|
14
15
|
readonly s4Classes: readonly string[];
|
|
15
16
|
readonly functions: readonly DecodedFunction[];
|
|
16
17
|
}
|
|
@@ -37,4 +38,4 @@ export declare const RecoveredLimits: {
|
|
|
37
38
|
* exports: a package nobody vetted must not take over a call flowR knows to be security relevant, like `system`,
|
|
38
39
|
* which would hide that call from every analysis looking for it. `undefined` for something that is no package.
|
|
39
40
|
*/
|
|
40
|
-
export declare function sanitizeRecovered(value: unknown, shielded?: ReadonlySet<
|
|
41
|
+
export declare function sanitizeRecovered(value: unknown, shielded?: ReadonlySet<BrandedIdentifier>): RecoveredPackage | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type Parser from 'web-tree-sitter';
|
|
2
|
+
import type { BrandedNamespace } from '../../../dataflow/environments/identifier';
|
|
2
3
|
import type { FlowrConfig } from '../../../config';
|
|
3
4
|
import type { FetchBytes, OnDemandSource, PackageRequest } from './remote-sources';
|
|
4
5
|
import { type RecoveredPackage } from './package-sources';
|
|
@@ -27,7 +28,7 @@ export declare class OnDemandRecoverer {
|
|
|
27
28
|
private readEntry;
|
|
28
29
|
private writeEntry;
|
|
29
30
|
/** The package as fetched before, `undefined` if it never was or no source had it. */
|
|
30
|
-
cached(name:
|
|
31
|
+
cached(name: BrandedNamespace): RecoveredPackage | undefined;
|
|
31
32
|
/** whether the cache answers `request`, with the package or with a recent miss */
|
|
32
33
|
private settled;
|
|
33
34
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BrandedNamespace } from '../../../dataflow/environments/identifier';
|
|
1
2
|
/**
|
|
2
3
|
* Where an on-demand signature source looks for the source of a package no database knows: CRAN, Bioconductor,
|
|
3
4
|
* and GitHub repositories, each as an {@link OnDemandSource}. A plugin may hand in sources of its own (an
|
|
@@ -53,7 +54,7 @@ export declare function parseGitHubRemote(remote: string): {
|
|
|
53
54
|
ref?: string;
|
|
54
55
|
} | undefined;
|
|
55
56
|
/** A package name R accepts, which is all that may go into a URL built from one. */
|
|
56
|
-
export declare function isPackageName(name:
|
|
57
|
+
export declare function isPackageName(name: BrandedNamespace): boolean;
|
|
57
58
|
/** The repository a project names for the package, or nothing. */
|
|
58
59
|
export declare const GitHubSource: OnDemandSource;
|
|
59
60
|
/**
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The read path for the `flowr-sigdb` package database: fast partial readers for a single bundle ({@link SigDatabase})
|
|
3
|
+
* and a sharded set ({@link SigDatabaseSet}), the shared-source cache, whole-bundle reading, and the verification gate.
|
|
4
|
+
*/
|
|
5
|
+
import type { BrandedIdentifier, BrandedNamespace } from '../../dataflow/environments/identifier';
|
|
1
6
|
import { RVersion, type VersionString } from '../../util/r-version';
|
|
2
7
|
import { type LibraryExports, type PkgBlob, type SigClassInfo, type SigDb, type SigDbContent } from './schema';
|
|
3
8
|
import { type VersionRelease } from './sigdb-version';
|
|
@@ -13,55 +18,55 @@ export declare function readSignatureDb(file: string): Promise<SigDb>;
|
|
|
13
18
|
*/
|
|
14
19
|
export interface PackageSignatureSource {
|
|
15
20
|
/** whether the source can resolve the package at all */
|
|
16
|
-
has(pkg:
|
|
21
|
+
has(pkg: BrandedNamespace): boolean;
|
|
17
22
|
/** whether the source actually carries the given version of a package (not just the package itself) */
|
|
18
|
-
hasVersion(pkg:
|
|
23
|
+
hasVersion(pkg: BrandedNamespace, version: string): boolean;
|
|
19
24
|
/** whether a version is a current CRAN release (i.e. not in the package's `noncran`/removed set) */
|
|
20
|
-
isCranVersion(pkg:
|
|
25
|
+
isCranVersion(pkg: BrandedNamespace, version: string): boolean;
|
|
21
26
|
/** the repository a version came from, `undefined` in bundles that record none */
|
|
22
|
-
sourceOf(pkg:
|
|
27
|
+
sourceOf(pkg: BrandedNamespace, version: string): string | undefined;
|
|
23
28
|
/** The export view of a package version; `version` defaults to the database's newest if omitted. */
|
|
24
|
-
lookup(pkg:
|
|
29
|
+
lookup(pkg: BrandedNamespace, version?: string): LibraryExports | undefined;
|
|
25
30
|
/**
|
|
26
31
|
* The packages exporting `name`, ordered by downloads (descending, ties by name); answered without a reverse
|
|
27
32
|
* index, since a name the database never stores is rejected outright and only blobs that may hold it are decoded.
|
|
28
33
|
*/
|
|
29
|
-
packagesExporting(name:
|
|
34
|
+
packagesExporting(name: BrandedIdentifier): readonly BrandedNamespace[];
|
|
30
35
|
/**
|
|
31
36
|
* The package OWNING class `className` (S3: {@link LibraryExports.s3Classes}; S4: {@link LibraryExports.s4Classes};
|
|
32
37
|
* S3 wins ties). With a `version`, every candidate package is scanned at it instead of using the cached reverse index.
|
|
33
38
|
*/
|
|
34
|
-
classOwner(className: string, version?: string):
|
|
39
|
+
classOwner(className: string, version?: string): BrandedNamespace | undefined;
|
|
35
40
|
/** Rich per-function view (signatures and call graphs) of a package version; `version` defaults to the newest. */
|
|
36
|
-
functions(pkg:
|
|
41
|
+
functions(pkg: BrandedNamespace, version?: string): DecodedFunction[] | undefined;
|
|
37
42
|
/** The rich view of a single named function, decoding only it (unlike {@link functions}); `version` defaults to the newest. */
|
|
38
|
-
functionByName(pkg:
|
|
43
|
+
functionByName(pkg: BrandedNamespace, name: BrandedIdentifier, version?: string): DecodedFunction | undefined;
|
|
39
44
|
/** Transitive callees of a function within one package version, expanding the stored local call graphs; `version` defaults to the newest. */
|
|
40
|
-
transitiveCallees(pkg:
|
|
45
|
+
transitiveCallees(pkg: BrandedNamespace, name: BrandedIdentifier, version?: string): BrandedIdentifier[] | undefined;
|
|
41
46
|
/** Declared dependencies (Depends, Imports, ...) of a package version, with version qualifiers; `version` defaults to the newest. */
|
|
42
|
-
dependencies(pkg:
|
|
47
|
+
dependencies(pkg: BrandedNamespace, version?: string): ResolvedDependency[] | undefined;
|
|
43
48
|
/**
|
|
44
49
|
* The classes a package version declares and the relations between them (superclasses, slot types, virtual,
|
|
45
50
|
* union) -- {@link LibraryExports.s4Classes}, a flat name list, has nowhere to hang this; `version` defaults to the newest.
|
|
46
51
|
*/
|
|
47
|
-
classes(pkg:
|
|
52
|
+
classes(pkg: BrandedNamespace, version?: string): SigClassInfo[] | undefined;
|
|
48
53
|
/** every package name this source can resolve */
|
|
49
|
-
packageNames():
|
|
54
|
+
packageNames(): BrandedNamespace[];
|
|
50
55
|
/** whether the package is an R-core / base package (its versions are the R releases it shipped with) */
|
|
51
|
-
isBaseR(pkg:
|
|
56
|
+
isBaseR(pkg: BrandedNamespace): boolean;
|
|
52
57
|
/** how often the package was downloaded when the database was built, the popularity {@link SigDbPkgMeta} records */
|
|
53
|
-
downloads(pkg:
|
|
58
|
+
downloads(pkg: BrandedNamespace): number;
|
|
54
59
|
/** for a base package, the R versions it was part of core (ascending); `undefined` otherwise */
|
|
55
|
-
coreVersions(pkg:
|
|
60
|
+
coreVersions(pkg: BrandedNamespace): RVersion[] | undefined;
|
|
56
61
|
/**
|
|
57
62
|
* The release date of a package version, `undefined` if unknown. Omitted, `version` defaults to the newest
|
|
58
63
|
* release *by recorded date* (unlike the queries above, which default to the package's recorded latest).
|
|
59
64
|
*/
|
|
60
|
-
releaseDate(pkg:
|
|
65
|
+
releaseDate(pkg: BrandedNamespace, version?: string): Date | undefined;
|
|
61
66
|
/** every known release of a package (version + date), ascending by R-version order */
|
|
62
|
-
releaseDates(pkg:
|
|
67
|
+
releaseDates(pkg: BrandedNamespace): VersionRelease[];
|
|
63
68
|
/** the newest version of a package by release date (falling back to the recorded latest, then SemVer order) */
|
|
64
|
-
latestVersion(pkg:
|
|
69
|
+
latestVersion(pkg: BrandedNamespace): RVersion | undefined;
|
|
65
70
|
/** release any held file handles */
|
|
66
71
|
close(): void;
|
|
67
72
|
}
|
|
@@ -85,41 +90,41 @@ export interface ShardStatus {
|
|
|
85
90
|
* The versions a source can answer for a package (dated releases, base-R core releases, and the recorded latest),
|
|
86
91
|
* deduplicated and ascending; the single enumeration both the signature query and the version-guessing query build on.
|
|
87
92
|
*/
|
|
88
|
-
export declare function availableVersionEntries(src: PackageSignatureSource, pkg:
|
|
93
|
+
export declare function availableVersionEntries(src: PackageSignatureSource, pkg: BrandedNamespace): AvailableVersion[];
|
|
89
94
|
/**
|
|
90
95
|
* The reverse index `class -> owning package` over `candidates`, at each one's latest version (S3 indexed first, a
|
|
91
96
|
* stronger signal than S4); the targeted counterpart of {@link PackageSignatureSource.classOwner}.
|
|
92
97
|
*/
|
|
93
|
-
export declare function classOwnerIndexFor(src: PackageSignatureSource, candidates: Iterable<
|
|
98
|
+
export declare function classOwnerIndexFor(src: PackageSignatureSource, candidates: Iterable<BrandedNamespace>): Map<string, BrandedNamespace>;
|
|
94
99
|
/** union view over multiple sources for the same package; routes queries to the appropriate source */
|
|
95
100
|
export declare class MergedSignatureSource implements PackageSignatureSource {
|
|
96
101
|
private readonly sources;
|
|
97
102
|
constructor(sources: readonly PackageSignatureSource[]);
|
|
98
103
|
/** source carrying a version, or the one with the newest release when unpinned */
|
|
99
104
|
private pick;
|
|
100
|
-
has(pkg:
|
|
101
|
-
hasVersion(pkg:
|
|
102
|
-
isCranVersion(pkg:
|
|
103
|
-
sourceOf(pkg:
|
|
104
|
-
lookup(pkg:
|
|
105
|
-
packagesExporting(name:
|
|
106
|
-
classOwner(className: string, version?: string):
|
|
107
|
-
functions(pkg:
|
|
108
|
-
functionByName(pkg:
|
|
109
|
-
transitiveCallees(pkg:
|
|
110
|
-
dependencies(pkg:
|
|
111
|
-
classes(pkg:
|
|
112
|
-
packageNames():
|
|
113
|
-
isBaseR(pkg:
|
|
114
|
-
downloads(pkg:
|
|
115
|
-
coreVersions(pkg:
|
|
116
|
-
releaseDate(pkg:
|
|
117
|
-
releaseDates(pkg:
|
|
118
|
-
latestVersion(pkg:
|
|
105
|
+
has(pkg: BrandedNamespace): boolean;
|
|
106
|
+
hasVersion(pkg: BrandedNamespace, version: string): boolean;
|
|
107
|
+
isCranVersion(pkg: BrandedNamespace, version: string): boolean;
|
|
108
|
+
sourceOf(pkg: BrandedNamespace, version: string): string | undefined;
|
|
109
|
+
lookup(pkg: BrandedNamespace, version?: string): LibraryExports | undefined;
|
|
110
|
+
packagesExporting(name: BrandedIdentifier): readonly BrandedNamespace[];
|
|
111
|
+
classOwner(className: string, version?: string): BrandedNamespace | undefined;
|
|
112
|
+
functions(pkg: BrandedNamespace, version?: string): DecodedFunction[] | undefined;
|
|
113
|
+
functionByName(pkg: BrandedNamespace, name: BrandedIdentifier, version?: string): DecodedFunction | undefined;
|
|
114
|
+
transitiveCallees(pkg: BrandedNamespace, name: BrandedIdentifier, version?: string): BrandedIdentifier[] | undefined;
|
|
115
|
+
dependencies(pkg: BrandedNamespace, version?: string): ResolvedDependency[] | undefined;
|
|
116
|
+
classes(pkg: BrandedNamespace, version?: string): SigClassInfo[] | undefined;
|
|
117
|
+
packageNames(): BrandedNamespace[];
|
|
118
|
+
isBaseR(pkg: BrandedNamespace): boolean;
|
|
119
|
+
downloads(pkg: BrandedNamespace): number;
|
|
120
|
+
coreVersions(pkg: BrandedNamespace): RVersion[] | undefined;
|
|
121
|
+
releaseDate(pkg: BrandedNamespace, version?: string): Date | undefined;
|
|
122
|
+
releaseDates(pkg: BrandedNamespace): VersionRelease[];
|
|
123
|
+
latestVersion(pkg: BrandedNamespace): RVersion | undefined;
|
|
119
124
|
close(): void;
|
|
120
125
|
}
|
|
121
126
|
/** source that answers for pkg, merging all sources that carry it; undefined if none do */
|
|
122
|
-
export declare function sourceForPackage(sources: readonly PackageSignatureSource[], pkg:
|
|
127
|
+
export declare function sourceForPackage(sources: readonly PackageSignatureSource[], pkg: BrandedNamespace): PackageSignatureSource | undefined;
|
|
123
128
|
/** options controlling where {@link SigDatabase}/{@link SigDatabaseSet} materialize decompressed caches */
|
|
124
129
|
export interface SigDbOpenOptions {
|
|
125
130
|
/** directory for the decompressed, hash-keyed cache (default: see {@link sigDbCacheDir}) */
|
|
@@ -177,10 +182,10 @@ export declare class SigDatabase implements PackageSignatureSource {
|
|
|
177
182
|
* is compressed. Pass `strings` for a blob-only shard that shares an already-loaded dictionary.
|
|
178
183
|
*/
|
|
179
184
|
static openSyncFrom(source: string, opts: OpenSyncFromOptions): SigDatabase;
|
|
180
|
-
has(pkg:
|
|
181
|
-
packageNames():
|
|
185
|
+
has(pkg: BrandedNamespace): boolean;
|
|
186
|
+
packageNames(): BrandedNamespace[];
|
|
182
187
|
/** load a single package's blob by seeking to its line (undefined if absent); cached by blob index */
|
|
183
|
-
blob(pkg:
|
|
188
|
+
blob(pkg: BrandedNamespace): PkgBlob | undefined;
|
|
184
189
|
/** the dictionary id of `name`, or `-1` if the dictionary does not hold it, so no package can offer it */
|
|
185
190
|
private nameId;
|
|
186
191
|
/**
|
|
@@ -188,6 +193,11 @@ export declare class SigDatabase implements PackageSignatureSource {
|
|
|
188
193
|
* nothing is known about the package yet, so this only ever skips work that would have found nothing.
|
|
189
194
|
*/
|
|
190
195
|
private mayOffer;
|
|
196
|
+
/**
|
|
197
|
+
* Whether `pkg` may offer the name with dictionary id `id`, deciding from the raw bytes of a blob not decoded yet: every `[id,` they hold may
|
|
198
|
+
* start a function record, so their ids are a superset of the names the package has, kept for {@link mayOffer} as {@link nameIdsOfBlob}.
|
|
199
|
+
*/
|
|
200
|
+
private mayHoldNameId;
|
|
191
201
|
/** drop one decoded blob, for the shared budget to reclaim what it costs (see {@link keepBlob}) */
|
|
192
202
|
dropBlob(blobIdx: number): void;
|
|
193
203
|
/** store `value` under `key`, dropping the oldest entry first once the cache sits at `cap` */
|
|
@@ -199,13 +209,13 @@ export declare class SigDatabase implements PackageSignatureSource {
|
|
|
199
209
|
/** recompute this bundle's self-contained content hash from its re-read data (matches {@link writeSignatureDb}) */
|
|
200
210
|
contentHash(blobs?: PkgBlob[]): string;
|
|
201
211
|
/** whether this bundle actually carries the given version of a package (not just the package) */
|
|
202
|
-
hasVersion(pkg:
|
|
203
|
-
isCranVersion(pkg:
|
|
204
|
-
sourceOf(pkg:
|
|
212
|
+
hasVersion(pkg: BrandedNamespace, version: string): boolean;
|
|
213
|
+
isCranVersion(pkg: BrandedNamespace, version: string): boolean;
|
|
214
|
+
sourceOf(pkg: BrandedNamespace, version: string): string | undefined;
|
|
205
215
|
/** `{ blob, meta }` for `pkg` when this bundle carries both, `undefined` otherwise; the shared prologue of most per-package queries below. */
|
|
206
216
|
private blobMeta;
|
|
207
|
-
lookup(pkg:
|
|
208
|
-
packagesExporting(name:
|
|
217
|
+
lookup(pkg: BrandedNamespace, version?: string): LibraryExports | undefined;
|
|
218
|
+
packagesExporting(name: BrandedIdentifier): readonly BrandedNamespace[];
|
|
209
219
|
/**
|
|
210
220
|
* Whether the newest version of `pkg` exports the name with dictionary id `id`. The same answer
|
|
211
221
|
* {@link lookup}'s `exported` gives, off the function records themselves: asking a package at a time is what
|
|
@@ -213,32 +223,32 @@ export declare class SigDatabase implements PackageSignatureSource {
|
|
|
213
223
|
* worth the five arrays and the map it builds.
|
|
214
224
|
*/
|
|
215
225
|
private exportsNameId;
|
|
216
|
-
classOwner(className: string, version?: string):
|
|
226
|
+
classOwner(className: string, version?: string): BrandedNamespace | undefined;
|
|
217
227
|
/**
|
|
218
228
|
* Resolve a package version to its blob and the function records of that version (the shared prologue of
|
|
219
229
|
* {@link functions}/{@link functionByName}). The blob comes from {@link blob} every time rather than out of
|
|
220
230
|
* {@link versionFnCache}: holding one here would keep it decoded past what {@link setBlobCacheBudget|the shared budget} allows.
|
|
221
231
|
*/
|
|
222
232
|
private versionFns;
|
|
223
|
-
functions(pkg:
|
|
224
|
-
functionByName(pkg:
|
|
225
|
-
transitiveCallees(pkg:
|
|
233
|
+
functions(pkg: BrandedNamespace, version?: string): DecodedFunction[] | undefined;
|
|
234
|
+
functionByName(pkg: BrandedNamespace, name: BrandedIdentifier, version?: string): DecodedFunction | undefined;
|
|
235
|
+
transitiveCallees(pkg: BrandedNamespace, name: BrandedIdentifier, version?: string): BrandedIdentifier[] | undefined;
|
|
226
236
|
/** What `decode` reads off the blob for the asked version, `undefined` when this source carries neither. */
|
|
227
237
|
private decodedFor;
|
|
228
|
-
dependencies(pkg:
|
|
229
|
-
classes(pkg:
|
|
238
|
+
dependencies(pkg: BrandedNamespace, version?: string): ResolvedDependency[] | undefined;
|
|
239
|
+
classes(pkg: BrandedNamespace, version?: string): SigClassInfo[] | undefined;
|
|
230
240
|
/** whether this is an R-core / base package (its versions are the R releases it shipped with; see {@link SigDbPkgMeta}) */
|
|
231
|
-
isBaseR(pkg:
|
|
241
|
+
isBaseR(pkg: BrandedNamespace): boolean;
|
|
232
242
|
/** the download count recorded for the package, `0` when this source does not carry it */
|
|
233
|
-
downloads(pkg:
|
|
243
|
+
downloads(pkg: BrandedNamespace): number;
|
|
234
244
|
/** the R versions a base package was part of core, ascending (exactly its stored versions); `undefined` for a non-base package */
|
|
235
|
-
coreVersions(pkg:
|
|
245
|
+
coreVersions(pkg: BrandedNamespace): RVersion[] | undefined;
|
|
236
246
|
/** the release date of a package version (defaulting to the newest release), or `undefined` if unknown */
|
|
237
|
-
releaseDate(pkg:
|
|
247
|
+
releaseDate(pkg: BrandedNamespace, version?: string): Date | undefined;
|
|
238
248
|
/** every known release date of a package, in ascending R-version order (empty when no dates were stored) */
|
|
239
|
-
releaseDates(pkg:
|
|
249
|
+
releaseDates(pkg: BrandedNamespace): VersionRelease[];
|
|
240
250
|
/** the newest version of a package by release date (falling back to the recorded latest, then SemVer order) */
|
|
241
|
-
latestVersion(pkg:
|
|
251
|
+
latestVersion(pkg: BrandedNamespace): RVersion | undefined;
|
|
242
252
|
/** close the underlying file descriptor (idempotent; safe to call more than once) */
|
|
243
253
|
close(): void;
|
|
244
254
|
}
|
|
@@ -302,12 +312,12 @@ export declare class SigDatabaseSet implements PackageSignatureSource {
|
|
|
302
312
|
private route;
|
|
303
313
|
/** read (once) the blob from the shard with the most complete history: a `full` or `history` tier if present */
|
|
304
314
|
private historyBlob;
|
|
305
|
-
has(pkg:
|
|
315
|
+
has(pkg: BrandedNamespace): boolean;
|
|
306
316
|
/** whether any active shard actually carries the given version of a package (not just the package) */
|
|
307
|
-
hasVersion(pkg:
|
|
308
|
-
isCranVersion(pkg:
|
|
309
|
-
sourceOf(pkg:
|
|
310
|
-
packageNames():
|
|
317
|
+
hasVersion(pkg: BrandedNamespace, version: string): boolean;
|
|
318
|
+
isCranVersion(pkg: BrandedNamespace, version: string): boolean;
|
|
319
|
+
sourceOf(pkg: BrandedNamespace, version: string): string | undefined;
|
|
320
|
+
packageNames(): BrandedNamespace[];
|
|
311
321
|
/** the on-demand load state (opened + unpacked) of every shard in this set */
|
|
312
322
|
shardStatus(): ShardStatus[];
|
|
313
323
|
/** open (blocking) and return every shard database with its manifest ref, for whole-set verification */
|
|
@@ -316,23 +326,23 @@ export declare class SigDatabaseSet implements PackageSignatureSource {
|
|
|
316
326
|
sharedDictionary(id: string): SigDict;
|
|
317
327
|
/** the first non-empty result from the shards that can serve `pkg` (in preferred order: current before full) */
|
|
318
328
|
private firstOf;
|
|
319
|
-
lookup(pkg:
|
|
320
|
-
packagesExporting(name:
|
|
321
|
-
classOwner(className: string, version?: string):
|
|
322
|
-
functions(pkg:
|
|
323
|
-
functionByName(pkg:
|
|
324
|
-
transitiveCallees(pkg:
|
|
325
|
-
dependencies(pkg:
|
|
326
|
-
classes(pkg:
|
|
329
|
+
lookup(pkg: BrandedNamespace, version?: string): LibraryExports | undefined;
|
|
330
|
+
packagesExporting(name: BrandedIdentifier): readonly BrandedNamespace[];
|
|
331
|
+
classOwner(className: string, version?: string): BrandedNamespace | undefined;
|
|
332
|
+
functions(pkg: BrandedNamespace, version?: string): DecodedFunction[] | undefined;
|
|
333
|
+
functionByName(pkg: BrandedNamespace, name: BrandedIdentifier, version?: string): DecodedFunction | undefined;
|
|
334
|
+
transitiveCallees(pkg: BrandedNamespace, name: BrandedIdentifier, version?: string): BrandedIdentifier[] | undefined;
|
|
335
|
+
dependencies(pkg: BrandedNamespace, version?: string): ResolvedDependency[] | undefined;
|
|
336
|
+
classes(pkg: BrandedNamespace, version?: string): SigClassInfo[] | undefined;
|
|
327
337
|
/** whether this is an R-core / base package (see {@link SigDatabase.isBaseR}); O(1) via the hoisted metadata */
|
|
328
|
-
isBaseR(pkg:
|
|
338
|
+
isBaseR(pkg: BrandedNamespace): boolean;
|
|
329
339
|
/** the download count of the package; O(1) via the hoisted metadata, so no shard has to be unpacked for it */
|
|
330
|
-
downloads(pkg:
|
|
331
|
-
coreVersions(pkg:
|
|
340
|
+
downloads(pkg: BrandedNamespace): number;
|
|
341
|
+
coreVersions(pkg: BrandedNamespace): RVersion[] | undefined;
|
|
332
342
|
/** every known release of a package (version + date), ascending, read once from the most complete shard */
|
|
333
|
-
releaseDates(pkg:
|
|
334
|
-
releaseDate(pkg:
|
|
335
|
-
latestVersion(pkg:
|
|
343
|
+
releaseDates(pkg: BrandedNamespace): VersionRelease[];
|
|
344
|
+
releaseDate(pkg: BrandedNamespace, version?: string): Date | undefined;
|
|
345
|
+
latestVersion(pkg: BrandedNamespace): RVersion | undefined;
|
|
336
346
|
/**
|
|
337
347
|
* Close every opened shard's file descriptor and drop the in-memory caches (opened shards + shared
|
|
338
348
|
* dictionaries), so the (potentially large) dictionary strings can be reclaimed by the GC. Idempotent.
|
package/project/sigdb/reader.js
CHANGED
|
@@ -12,10 +12,6 @@ exports.setBlobCacheBudget = setBlobCacheBudget;
|
|
|
12
12
|
exports.getSharedSigSourceSync = getSharedSigSourceSync;
|
|
13
13
|
exports.getSharedSigSource = getSharedSigSource;
|
|
14
14
|
exports.verifyShardedDatabase = verifyShardedDatabase;
|
|
15
|
-
/**
|
|
16
|
-
* The read path for the `flowr-sigdb` package database: fast partial readers for a single bundle ({@link SigDatabase})
|
|
17
|
-
* and a sharded set ({@link SigDatabaseSet}), the shared-source cache, whole-bundle reading, and the verification gate.
|
|
18
|
-
*/
|
|
19
15
|
const fs_1 = __importDefault(require("fs"));
|
|
20
16
|
const strings_1 = require("../../util/text/strings");
|
|
21
17
|
const path_1 = __importDefault(require("path"));
|
|
@@ -494,6 +490,32 @@ class SigDatabase {
|
|
|
494
490
|
}
|
|
495
491
|
return false;
|
|
496
492
|
}
|
|
493
|
+
/**
|
|
494
|
+
* Whether `pkg` may offer the name with dictionary id `id`, deciding from the raw bytes of a blob not decoded yet: every `[id,` they hold may
|
|
495
|
+
* start a function record, so their ids are a superset of the names the package has, kept for {@link mayOffer} as {@link nameIdsOfBlob}.
|
|
496
|
+
*/
|
|
497
|
+
mayHoldNameId(pkg, name) {
|
|
498
|
+
const blobIdx = this.index.pkgs[pkg];
|
|
499
|
+
if (blobIdx === undefined || this.fd === NoFile || this.blobCache.has(blobIdx) || this.nameIdsOfBlob.has(blobIdx)) {
|
|
500
|
+
return true;
|
|
501
|
+
}
|
|
502
|
+
const [start, bytes] = this.index.blobs[blobIdx];
|
|
503
|
+
const buf = Buffer.allocUnsafe(bytes);
|
|
504
|
+
fs_1.default.readSync(this.fd, buf, 0, bytes, start);
|
|
505
|
+
const ids = new Set();
|
|
506
|
+
for (let at = buf.indexOf(91); at >= 0; at = buf.indexOf(91, at + 1)) {
|
|
507
|
+
let num = 0;
|
|
508
|
+
let end = at + 1;
|
|
509
|
+
for (; end < bytes && buf[end] >= 48 && buf[end] <= 57; end++) {
|
|
510
|
+
num = num * 10 + buf[end] - 48;
|
|
511
|
+
}
|
|
512
|
+
if (end > at + 1 && buf[end] === 44) {
|
|
513
|
+
ids.add(num);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
this.nameIdsOfBlob.set(blobIdx, Int32Array.from(ids).sort());
|
|
517
|
+
return this.mayOffer(pkg, name);
|
|
518
|
+
}
|
|
497
519
|
/** drop one decoded blob, for the shared budget to reclaim what it costs (see {@link keepBlob}) */
|
|
498
520
|
dropBlob(blobIdx) {
|
|
499
521
|
this.blobCache.delete(blobIdx);
|
|
@@ -560,7 +582,7 @@ class SigDatabase {
|
|
|
560
582
|
}
|
|
561
583
|
const found = [];
|
|
562
584
|
for (const pkg in this.index.pkgs) {
|
|
563
|
-
if (this.mayOffer(pkg, name) && this.exportsNameId(pkg, id)) {
|
|
585
|
+
if (this.mayHoldNameId(pkg, name) && this.mayOffer(pkg, name) && this.exportsNameId(pkg, id)) {
|
|
564
586
|
found.push(pkg);
|
|
565
587
|
}
|
|
566
588
|
}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* operates on these lives in `./sigdb` (which re-exports this module, so `./sigdb` stays the single entry point).
|
|
5
5
|
*/
|
|
6
6
|
import type { ArgProps } from '../../dataflow/environments/built-in-props';
|
|
7
|
+
import type { BrandedIdentifier, BrandedNamespace } from '../../dataflow/environments/identifier';
|
|
8
|
+
import type { StatedGuards } from '../../dataflow/fn/guards/built-in-guards';
|
|
7
9
|
/** The definition location of the binding, with a file path usually relative to the package project root. */
|
|
8
10
|
export interface SigDefinitionLocation {
|
|
9
11
|
readonly file: string;
|
|
@@ -13,10 +15,10 @@ export interface SigDefinitionLocation {
|
|
|
13
15
|
export interface LibraryExports {
|
|
14
16
|
/** R version identifier (see `RVersion.parse`) */
|
|
15
17
|
readonly version: string;
|
|
16
|
-
readonly exported: readonly
|
|
18
|
+
readonly exported: readonly BrandedIdentifier[];
|
|
17
19
|
/** defined-but-not-exported identifiers (only available when internal names are stored, which we usually avoid in the db) */
|
|
18
|
-
readonly internal: readonly
|
|
19
|
-
readonly deprecated: readonly
|
|
20
|
+
readonly internal: readonly BrandedIdentifier[];
|
|
21
|
+
readonly deprecated: readonly BrandedIdentifier[];
|
|
20
22
|
/**
|
|
21
23
|
* S3 classes this package version OWNS: it registers at least one S3 method for the class (its NAMESPACE's
|
|
22
24
|
* `S3method(generic, class)`) AND exports a same-named constructor function. See {@link FnProp.S3Owner}.
|
|
@@ -29,9 +31,9 @@ export interface LibraryExports {
|
|
|
29
31
|
/** package documentation url base in case this package is found at a different endpoint */
|
|
30
32
|
readonly cranUrl?: string;
|
|
31
33
|
/** definition location per identifier, if the database carries them */
|
|
32
|
-
readonly locations?: ReadonlyMap<
|
|
34
|
+
readonly locations?: ReadonlyMap<BrandedIdentifier, SigDefinitionLocation>;
|
|
33
35
|
/** the package each re-exported name comes from (`importFrom(magrittr, "%>%")` plus `export("%>%")`), if the database carries it */
|
|
34
|
-
readonly reexports?: ReadonlyMap<
|
|
36
|
+
readonly reexports?: ReadonlyMap<BrandedIdentifier, BrandedNamespace>;
|
|
35
37
|
}
|
|
36
38
|
export declare const SigDbMagic = "flowr-sigdb";
|
|
37
39
|
export declare const SigDbSchema = 5;
|
|
@@ -43,15 +45,25 @@ export declare const MaxDefaultLength = 10;
|
|
|
43
45
|
export declare const SigDbExt = ".sigs.ndjson";
|
|
44
46
|
/** function-level boolean properties, packed into {@link SigFn}'s bitfield */
|
|
45
47
|
export declare const enum FnProp {
|
|
48
|
+
/** the package exports the name, so a caller reaches it without `:::` */
|
|
46
49
|
Exported = 1,
|
|
50
|
+
/** takes a function as an argument or returns one */
|
|
47
51
|
HigherOrder = 2,
|
|
52
|
+
/** calls itself, directly or through other functions of the package */
|
|
48
53
|
Recursive = 4,
|
|
54
|
+
/** calls something deprecated, so it may stop working once that goes */
|
|
49
55
|
CallsDeprecated = 8,
|
|
56
|
+
/** may raise an error, so a caller cannot count on a value back */
|
|
50
57
|
CanThrow = 16,
|
|
58
|
+
/** marked as deprecated by the package itself */
|
|
51
59
|
Deprecated = 32,
|
|
60
|
+
/** calls into R's internal code, like `.Internal` or `.Call`, which no R source shows */
|
|
52
61
|
CallsInternal = 64,
|
|
62
|
+
/** may answer differently for the same arguments, like random draws or the clock */
|
|
53
63
|
NonDeterministic = 128,
|
|
64
|
+
/** the package has no manual page for the name */
|
|
54
65
|
NoDoc = 256,
|
|
66
|
+
/** an implementation of a generic for one class, like `print.data.frame` */
|
|
55
67
|
S3Method = 512,
|
|
56
68
|
/**
|
|
57
69
|
* An exported function that is also an S3 class this package OWNS: it is a same-named constructor for a
|
|
@@ -168,16 +180,23 @@ export interface PkgBlob {
|
|
|
168
180
|
classes?: SigClass[];
|
|
169
181
|
/** version name to a delta-encoded ascending list of indices into {@link PkgBlob.classes} */
|
|
170
182
|
classesByVersion?: Record<string, number[]>;
|
|
183
|
+
/** pool of unique contracts (shared across a package's versions), absent when the bundle stores none */
|
|
184
|
+
contracts?: StatedGuards[];
|
|
185
|
+
/**
|
|
186
|
+
* Index into {@link PkgBlob.fns} to an index into {@link PkgBlob.contracts}, only for the functions with a contract.
|
|
187
|
+
* A function's contract is part of its pooled record, so two versions only share a slot if their contracts agree.
|
|
188
|
+
*/
|
|
189
|
+
contractOf?: Record<number, number>;
|
|
171
190
|
}
|
|
172
|
-
/** On-disk tuple form of a {@link PkgBlob}, field order, ending `
|
|
173
|
-
export type PkgBlobTuple = [Sig[], number[][], SigFn[], Record<string, number[]>, string[], SigDep[][], Record<string, number>, Record<string, number>?, Record<string, number>?, SigClass[]?, Record<string, number[]>?];
|
|
191
|
+
/** On-disk tuple form of a {@link PkgBlob}, field order, ending `contractOf`; trailing elements are additive. */
|
|
192
|
+
export type PkgBlobTuple = [Sig[], number[][], SigFn[], Record<string, number[]>, string[], SigDep[][], Record<string, number>, Record<string, number>?, Record<string, number>?, SigClass[]?, Record<string, number[]>?, StatedGuards[]?, Record<number, number>?];
|
|
174
193
|
/**
|
|
175
194
|
* Per-package metadata. The optional 4th element marks an **R-core / base package**: for these the version keys
|
|
176
195
|
* are the R releases the package shipped with core R, so the set of versions is exactly its core-R history.
|
|
177
196
|
*/
|
|
178
197
|
export type SigDbPkgMeta = [latest: string, archived: number, downloads: number, core?: number];
|
|
179
198
|
/** Every package the database knows, mapped from its name to its {@link SigDbPkgMeta}. */
|
|
180
|
-
export type SigDbPkgMetaIndex = Record<
|
|
199
|
+
export type SigDbPkgMetaIndex = Record<BrandedNamespace, SigDbPkgMeta>;
|
|
181
200
|
/**
|
|
182
201
|
* Temporal tier of a bundle's packages:
|
|
183
202
|
* - `current` -- only each package's latest version.
|
|
@@ -218,7 +237,7 @@ export interface SigDb {
|
|
|
218
237
|
/** unique per-package blobs */
|
|
219
238
|
blobs: PkgBlob[];
|
|
220
239
|
/** package name to its index into {@link SigDb.blobs} */
|
|
221
|
-
pkgs: Record<
|
|
240
|
+
pkgs: Record<BrandedNamespace, number>;
|
|
222
241
|
/** package name to its {@link SigDbPkgMeta} */
|
|
223
242
|
meta: SigDbPkgMetaIndex;
|
|
224
243
|
}
|
|
@@ -241,6 +260,8 @@ export interface SigFunctionInfo {
|
|
|
241
260
|
readonly topic?: string;
|
|
242
261
|
/** the package this name is re-exported from: the package defines nothing of the name, it imports and exports it */
|
|
243
262
|
readonly reexportOf?: string;
|
|
263
|
+
/** what a call has to fulfill to return normally, as flowR infers it from the definition; absent when nothing sensible is known */
|
|
264
|
+
readonly guards?: StatedGuards;
|
|
244
265
|
}
|
|
245
266
|
/** one declared package dependency, e.g. `{ name: 'testthat', type: Suggests, constraint: '>= 2.1.0' }` */
|
|
246
267
|
export interface SigDependencyInfo {
|
|
@@ -277,7 +298,7 @@ export interface SigClassInfo {
|
|
|
277
298
|
/** the record is a class union, so {@link SigClassInfo.supers} are its members (see {@link ClassProp.Union}) */
|
|
278
299
|
readonly union?: boolean;
|
|
279
300
|
/** The package defining the class, when not the one carrying the record (see {@link ClassProp.Foreign}); absent when self-defined. */
|
|
280
|
-
readonly package?:
|
|
301
|
+
readonly package?: BrandedNamespace;
|
|
281
302
|
}
|
|
282
303
|
/** one declared member of a {@link SigClassInfo}: an S4 slot, an S7 property, an RC field, or an R6 entry */
|
|
283
304
|
export interface SigSlotInfo {
|
|
@@ -300,4 +321,6 @@ export interface SigDbFeatures {
|
|
|
300
321
|
dependencies?: boolean;
|
|
301
322
|
/** per-version class relations (superclasses, slots, unions) -- default true */
|
|
302
323
|
classes?: boolean;
|
|
324
|
+
/** per-function contracts (what a call has to fulfill to return normally, see {@link SigFunctionInfo.guards}) -- default true */
|
|
325
|
+
contracts?: boolean;
|
|
303
326
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Identifier } from '../../dataflow/environments/identifier';
|
|
1
|
+
import { Identifier, type BrandedIdentifier, type BrandedNamespace } from '../../dataflow/environments/identifier';
|
|
2
2
|
import type { DecodedFunction } from './decode';
|
|
3
3
|
import type { PackageSignatureSource } from './reader';
|
|
4
4
|
import type { LibraryExports } from './schema';
|
|
@@ -28,15 +28,15 @@ export interface SignatureDb {
|
|
|
28
28
|
* The version the analysis assumes for `pkg`, `undefined` if flowR could not pin one down. This is what every
|
|
29
29
|
* lookup here uses when no version is given.
|
|
30
30
|
*/
|
|
31
|
-
versionOf(this: void, pkg:
|
|
31
|
+
versionOf(this: void, pkg: BrandedNamespace): string | undefined;
|
|
32
32
|
/** Whether the database can resolve `pkg` at all, at any version. */
|
|
33
|
-
has(this: void, pkg:
|
|
33
|
+
has(this: void, pkg: BrandedNamespace): boolean;
|
|
34
34
|
/**
|
|
35
35
|
* The export view of a package.
|
|
36
36
|
* @param pkg - The package to look up.
|
|
37
37
|
* @param version - The version to answer for, {@link versionOf} if omitted.
|
|
38
38
|
*/
|
|
39
|
-
exportsOf(this: void, pkg:
|
|
39
|
+
exportsOf(this: void, pkg: BrandedNamespace, version?: string): LibraryExports | undefined;
|
|
40
40
|
/**
|
|
41
41
|
* The database entry for a *qualified* call, i.e. a `pkg::fn` {@link Identifier}. Decodes only that one
|
|
42
42
|
* function rather than the whole package.
|
|
@@ -64,9 +64,9 @@ export interface SignatureDb {
|
|
|
64
64
|
* @param id - The qualified identifier of the function.
|
|
65
65
|
* @param version - The version to answer for, {@link versionOf} of its package if omitted.
|
|
66
66
|
*/
|
|
67
|
-
parametersOf(this: void, id: Identifier, version?: string): readonly
|
|
67
|
+
parametersOf(this: void, id: Identifier, version?: string): readonly BrandedIdentifier[] | undefined;
|
|
68
68
|
/** The packages exporting `name`, ordered by downloads, see {@link PackageSignatureSource.packagesExporting}. */
|
|
69
|
-
packagesExporting(this: void, name:
|
|
69
|
+
packagesExporting(this: void, name: BrandedIdentifier): readonly BrandedNamespace[];
|
|
70
70
|
/** Every loaded source as one, for the questions this interface does not ask. */
|
|
71
71
|
sources(this: void): PackageSignatureSource;
|
|
72
72
|
}
|