@eagleoutice/flowr 2.17.5 → 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 +13 -51
- package/abstract-interpretation/absint-inference.d.ts +4 -4
- package/abstract-interpretation/absint-inference.js +11 -11
- package/abstract-interpretation/abstract-semantics.d.ts +2 -1
- package/abstract-interpretation/branch-paths-interpreter.d.ts +1 -0
- 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/dataframe-semantics.d.ts +6 -1
- package/abstract-interpretation/data-frame/dataframe-semantics.js +60 -1
- package/abstract-interpretation/data-frame/semantics.js +4 -10
- package/abstract-interpretation/domains/bounded-set-domain.d.ts +1 -1
- package/cli/repl/core.js +51 -0
- package/control-flow/cfg-dead-code.js +12 -7
- 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-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/environments/ambient-effect.d.ts +1000 -0
- package/dataflow/environments/ambient-effect.js +234 -0
- package/dataflow/environments/ambient-state-name.d.ts +45 -2
- package/dataflow/environments/ambient-state-name.js +61 -3
- package/dataflow/environments/apply-kill.js +11 -4
- package/dataflow/environments/built-in-kinds.d.ts +4 -46
- package/dataflow/environments/built-in-kinds.js +6 -2
- package/dataflow/environments/built-in-props.d.ts +16 -4
- package/dataflow/environments/built-in-props.js +11 -3
- package/dataflow/environments/built-in.d.ts +6 -1
- package/dataflow/environments/built-in.js +13 -36
- package/dataflow/environments/default-builtin-config/base-functions.d.ts +1 -1
- package/dataflow/environments/default-builtin-config/base-functions.js +110 -52
- package/dataflow/environments/default-builtin-config/base-language.d.ts +1 -1
- package/dataflow/environments/default-builtin-config/base-language.js +11 -8
- package/dataflow/environments/default-builtin-config/dev-tooling.js +1 -1
- package/dataflow/environments/default-builtin-config/file-io.js +6 -4
- package/dataflow/environments/default-builtin-config/graphics-devices.d.ts +1 -1
- package/dataflow/environments/default-builtin-config/graphics-devices.js +24 -14
- 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 +3 -3
- package/dataflow/environments/default-builtin-config/index.js +22 -7
- package/dataflow/environments/default-builtin-config/media-formats.js +4 -4
- package/dataflow/environments/default-builtin-config/package-spatial.js +2 -1
- package/dataflow/environments/default-builtin-config/package-tidyverse.js +3 -2
- package/dataflow/environments/default-builtin-config/package-utils.d.ts +1 -1
- package/dataflow/environments/default-builtin-config/package-utils.js +5 -2
- package/dataflow/environments/default-builtin-config/parallel-execution.d.ts +1 -1
- package/dataflow/environments/default-builtin-config/parallel-execution.js +3 -1
- 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/shared-configs.d.ts +138 -77
- package/dataflow/environments/default-builtin-config/shared-configs.js +52 -88
- package/dataflow/environments/default-builtin-config/statistics.d.ts +1 -1
- package/dataflow/environments/default-builtin-config/statistics.js +4 -1
- package/dataflow/environments/diff.js +5 -2
- package/dataflow/environments/environment.d.ts +20 -0
- package/dataflow/environments/environment.js +39 -4
- package/dataflow/environments/group-generics.d.ts +5 -1
- package/dataflow/environments/group-generics.js +13 -3
- package/dataflow/environments/guard-facts.d.ts +169 -0
- package/dataflow/environments/guard-facts.js +26 -0
- package/dataflow/environments/identifier.d.ts +9 -1
- package/dataflow/environments/identifier.js +5 -0
- package/dataflow/environments/pkg-name.d.ts +1 -0
- package/dataflow/environments/query-fn-props.d.ts +3 -5
- package/dataflow/environments/query-fn-props.js +44 -21
- package/dataflow/environments/removal-marker.d.ts +2 -0
- package/dataflow/environments/removal-marker.js +5 -0
- package/dataflow/eval/resolve/resolve-strings.d.ts +2 -5
- package/dataflow/eval/resolve/resolve-strings.js +2 -2
- package/dataflow/extractor.js +24 -15
- package/dataflow/fn/condition-handlers.d.ts +2 -0
- package/dataflow/fn/condition-handlers.js +3 -1
- package/dataflow/fn/frame-reflection.d.ts +4 -2
- package/dataflow/fn/frame-reflection.js +16 -0
- package/dataflow/fn/function-props.js +15 -22
- package/dataflow/fn/function-semantics.d.ts +31 -1
- package/dataflow/fn/function-semantics.js +15 -0
- 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 +1 -0
- package/dataflow/fn/strict-function.d.ts +4 -0
- package/dataflow/fn/strict-function.js +66 -17
- package/dataflow/graph/ambient-access.d.ts +4 -1
- package/dataflow/graph/ambient-access.js +8 -2
- package/dataflow/graph/closure-frames.js +1 -1
- package/dataflow/graph/dataflowgraph-builder.d.ts +1 -1
- package/dataflow/graph/dataflowgraph-builder.js +2 -2
- package/dataflow/graph/df-helper.d.ts +6 -0
- package/dataflow/graph/df-helper.js +15 -0
- package/dataflow/graph/graph.d.ts +12 -6
- package/dataflow/graph/graph.js +21 -28
- package/dataflow/info.d.ts +2 -1
- package/dataflow/info.js +3 -1
- package/dataflow/internal/dispatch-linking.d.ts +3 -1
- package/dataflow/internal/dispatch-linking.js +1 -0
- package/dataflow/internal/linker.d.ts +2 -0
- package/dataflow/internal/linker.js +115 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-access.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-keys.d.ts +5 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-keys.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.d.ts +19 -57
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +471 -295
- package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +13 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.d.ts +2 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +106 -19
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +24 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-deferred-env-ops.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-deferred-env-ops.js +33 -11
- 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 +4 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +23 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-eval.js +14 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.d.ts +19 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +347 -46
- package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.d.ts +5 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +110 -16
- package/dataflow/internal/process/functions/call/built-in/built-in-get.d.ts +2 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-get.js +9 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +4 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-library.d.ts +5 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +28 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-load.js +16 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-local.d.ts +6 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-local.js +37 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-recall.js +4 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-replacement.js +19 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +55 -11
- package/dataflow/internal/process/functions/call/built-in/built-in-source.d.ts +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-source.js +11 -10
- 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 +8 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +64 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +160 -20
- package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +5 -3
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +6 -0
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +142 -4
- package/dataflow/internal/process/functions/call/quoted.d.ts +2 -0
- package/dataflow/internal/process/functions/call/quoted.js +23 -4
- 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/wiki-dataflow-graph.js +10 -4
- package/documentation/wiki-linter.js +12 -0
- package/documentation/wiki-query.js +112 -1
- package/linter/linter-rules.d.ts +41 -1
- package/linter/linter-rules.js +5 -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.js +1 -1
- package/linter/rules/cmd-check/call-arguments.js +5 -6
- package/linter/rules/cmd-check/cmd-check-util.d.ts +0 -6
- package/linter/rules/cmd-check/cmd-check-util.js +0 -28
- package/linter/rules/cmd-check/package-hooks.js +2 -1
- package/linter/rules/cmd-check/s-three-method-consistency.js +1 -1
- package/linter/rules/interactive-functions.d.ts +30 -0
- package/linter/rules/interactive-functions.js +87 -0
- package/linter/rules/process-state-in-session.js +1 -1
- package/linter/rules/undefined-symbol-util.d.ts +1 -1
- package/linter/rules/undefined-symbol-util.js +8 -2
- package/linter/rules/undefined-symbol.js +18 -7
- package/linter/rules/useless-loop.d.ts +1 -1
- package/package.json +1 -1
- package/project/context/flowr-analyzer-dependencies-context.js +2 -1
- package/project/flowr-analyzer.d.ts +1 -0
- package/project/flowr-analyzer.js +5 -5
- package/project/sigdb/build.js +14 -4
- package/project/sigdb/decode.d.ts +3 -0
- package/project/sigdb/decode.js +10 -1
- package/project/sigdb/guarded-source.d.ts +6 -0
- package/project/sigdb/guarded-source.js +29 -0
- package/project/sigdb/reader.d.ts +5 -0
- package/project/sigdb/reader.js +27 -1
- package/project/sigdb/schema.d.ts +24 -2
- 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 +6 -2
- package/queries/catalog/ambient-access-query/ambient-access-query-format.js +48 -3
- 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 +5 -2
- package/queries/catalog/code-clones-query/code-clones-query-format.js +34 -2
- 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/dependencies-query-format.d.ts +1 -1
- package/queries/catalog/dependencies-query/dependencies-query-format.js +8 -3
- 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/dice-query/dice-query-format.d.ts +7 -2
- package/queries/catalog/dice-query/dice-query-format.js +34 -2
- package/queries/catalog/does-call-query/does-call-query-format.d.ts +7 -4
- package/queries/catalog/does-call-query/does-call-query-format.js +114 -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/guess-dep-versions-query/guess-dep-versions-query-format.d.ts +6 -3
- 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 +8 -4
- package/queries/catalog/happens-before-query/happens-before-query-format.js +37 -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/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 +69 -4
- 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 +6 -3
- package/queries/catalog/origin-query/origin-query-format.js +29 -2
- package/queries/catalog/project-query/project-query-format.d.ts +6 -3
- package/queries/catalog/project-query/project-query-format.js +98 -2
- package/queries/catalog/provenance-query/provenance-query-format.d.ts +6 -3
- package/queries/catalog/provenance-query/provenance-query-format.js +30 -2
- package/queries/catalog/resolve-value-query/resolve-value-query-format.d.ts +9 -2
- package/queries/catalog/resolve-value-query/resolve-value-query-format.js +38 -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.js +3 -1
- package/queries/catalog/signature-query/signature-query-format.d.ts +3 -0
- package/queries/catalog/signature-query/signature-query-render.js +23 -0
- package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +13 -2
- package/queries/catalog/static-slice-query/static-slice-query-format.js +55 -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.d.ts +48 -27
- package/queries/query.js +6 -4
- package/r-bridge/lang-4.x/ast/model/processing/node-id.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/processing/node-id.js +4 -0
- package/r-bridge/shell.js +7 -2
- package/reconstruct/reconstruct.js +18 -3
- package/slicing/static/removal-slice.js +4 -3
- package/slicing/static/slice-call.d.ts +11 -0
- package/slicing/static/slice-call.js +43 -2
- package/slicing/static/static-slicer.d.ts +2 -0
- package/slicing/static/static-slicer.js +137 -21
- package/slicing/static/visiting-queue.d.ts +2 -0
- package/slicing/static/visiting-queue.js +4 -0
- package/util/flowr-version.d.ts +1 -1
- package/util/flowr-version.js +2 -2
- package/util/objects.d.ts +2 -0
- package/util/objects.js +5 -0
- package/util/r-datasets.d.ts +27 -0
- package/util/r-datasets.js +45 -0
- package/util/text/playground-link.d.ts +2 -0
- package/util/text/playground-link.js +2 -0
- 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/ambient-access-query/ambient-access-query-executor.d.ts +0 -6
- package/queries/catalog/ambient-access-query/ambient-access-query-executor.js +0 -50
- 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/code-clones-query/code-clones-query-executor.d.ts +0 -6
- package/queries/catalog/code-clones-query/code-clones-query-executor.js +0 -38
- 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 -116
- 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 -62
- 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
|
@@ -15,13 +15,14 @@ const edge_1 = require("../../dataflow/graph/edge");
|
|
|
15
15
|
const default_builtin_config_1 = require("../../dataflow/environments/default-builtin-config");
|
|
16
16
|
const identifier_1 = require("../../dataflow/environments/identifier");
|
|
17
17
|
const built_in_props_1 = require("../../dataflow/environments/built-in-props");
|
|
18
|
+
const ambient_effect_1 = require("../../dataflow/environments/ambient-effect");
|
|
18
19
|
const base_operators_1 = require("../../dataflow/environments/default-builtin-config/base-operators");
|
|
19
20
|
function builtInNames(stated) {
|
|
20
21
|
return new Set(default_builtin_config_1.DefaultBuiltinConfig.flatMap(d => d.type === 'function' && stated((d.config ?? {})) ? d.names.map(name => String(identifier_1.Identifier.getName(name))) : []));
|
|
21
22
|
}
|
|
22
|
-
const accesses = (
|
|
23
|
-
const DeviceOpeners = builtInNames(accesses(
|
|
24
|
-
const DeviceClosers = builtInNames(accesses(
|
|
23
|
+
const accesses = (verb) => (config) => ambient_effect_1.Ambient.list(config.ambient).some(effect => effect.family === ambient_effect_1.AmbientPart.Device && effect.access === verb);
|
|
24
|
+
const DeviceOpeners = builtInNames(accesses(ambient_effect_1.AmbientVerb.Opens));
|
|
25
|
+
const DeviceClosers = builtInNames(accesses(ambient_effect_1.AmbientVerb.Closes));
|
|
25
26
|
/* a call handing back its argument is that argument: `invisible(dev.off())` closes the device */
|
|
26
27
|
const PassingOn = builtInNames(config => ((config.sig?.[0]?.[1] ?? 0) & built_in_props_1.ArgProp.Alias) !== 0);
|
|
27
28
|
/** the statements of the program, without function bodies, which only run when called */
|
|
@@ -64,6 +64,10 @@ export declare function handleReturns(from: NodeId, queue: VisitingQueue, curren
|
|
|
64
64
|
interface DeferringInfo {
|
|
65
65
|
readonly sig?: FnSig;
|
|
66
66
|
readonly evaluates: boolean;
|
|
67
|
+
/** the call does nothing but hand back its argument invisibly, as `invisible(x)` does, which keeps a slice from printing what the program does not */
|
|
68
|
+
readonly hides: boolean;
|
|
69
|
+
/** the call muffles conditions its argument signals, as `suppressMessages(x)` does, which decides whether what the argument reports reaches the message sink */
|
|
70
|
+
readonly muffles: boolean;
|
|
67
71
|
}
|
|
68
72
|
/**
|
|
69
73
|
* The built-in call that decides when, where or whether the code at `id` runs: the closest call it is an argument
|
|
@@ -74,4 +78,11 @@ interface DeferringInfo {
|
|
|
74
78
|
* @param sigs - the signatures of the calls met on the way, filled as they are asked for
|
|
75
79
|
*/
|
|
76
80
|
export declare function deferringCall(id: NodeId, info: DataflowInformation, idMap: AstIdMap, sigs: Map<NodeId, DeferringInfo>): NodeId | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* The top-level assignment `x <- call` the call `id` is the value of, if the call may hand back a visible value while the output is diverted, which R would print
|
|
83
|
+
* into the diversion once a slice dropped the assignment: it runs a closure (a method of the program `print` dispatches to among them), or a built-in not known to return invisibly.
|
|
84
|
+
*/
|
|
85
|
+
export declare function assignmentHidingValue(id: NodeId, info: DataflowInformation, idMap: AstIdMap): NodeId | undefined;
|
|
86
|
+
/** Every node of the closures what the output `id` reads (`sink()` ending a diversion) prints, as printing a closure deparses its whole definition (`f` at the top level, `print(f)`), but for the methods printing calls. */
|
|
87
|
+
export declare function printedClosures(id: NodeId, graph: DataflowGraph, idMap: AstIdMap): NodeId[];
|
|
77
88
|
export {};
|
|
@@ -9,6 +9,8 @@ exports.sliceReachesFunctionInterface = sliceReachesFunctionInterface;
|
|
|
9
9
|
exports.includeCalleesOfDefinition = includeCalleesOfDefinition;
|
|
10
10
|
exports.handleReturns = handleReturns;
|
|
11
11
|
exports.deferringCall = deferringCall;
|
|
12
|
+
exports.assignmentHidingValue = assignmentHidingValue;
|
|
13
|
+
exports.printedClosures = printedClosures;
|
|
12
14
|
const assert_1 = require("../../util/assert");
|
|
13
15
|
const fingerprint_1 = require("./fingerprint");
|
|
14
16
|
const linker_1 = require("../../dataflow/internal/linker");
|
|
@@ -28,6 +30,7 @@ const query_fn_props_1 = require("../../dataflow/environments/query-fn-props");
|
|
|
28
30
|
const r_argument_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-argument");
|
|
29
31
|
const r_function_call_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-function-call");
|
|
30
32
|
const r_function_definition_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-function-definition");
|
|
33
|
+
const ambient_state_name_1 = require("../../dataflow/environments/ambient-state-name");
|
|
31
34
|
const NoCallTargets = new Set();
|
|
32
35
|
const linkedByGraph = new WeakMap();
|
|
33
36
|
function linkedFunctionsOf(defs, graph) {
|
|
@@ -257,17 +260,55 @@ function deferringCall(id, info, idMap, sigs) {
|
|
|
257
260
|
let known = sigs.get(call);
|
|
258
261
|
if (known === undefined) {
|
|
259
262
|
const props = (0, query_fn_props_1.callFnProps)(call, info);
|
|
260
|
-
known = { sig: props?.sig, evaluates: props?.tags?.includes(built_in_props_1.SemanticCallTag.Eval) === true };
|
|
263
|
+
known = { sig: props?.sig, evaluates: props?.tags?.includes(built_in_props_1.SemanticCallTag.Eval) === true, hides: built_in_props_1.CallProps.hasAll(props, built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Pure), muffles: (props?.muffles?.length ?? 0) > 0 };
|
|
261
264
|
sigs.set(call, known);
|
|
262
265
|
}
|
|
263
266
|
/* quoted code the dataflow evaluates in place needs neither the quote nor the evaluating call */
|
|
264
267
|
if (vertex_1.DfgVertex.hasOrigin(info.graph.getVertex(call), built_in_proc_name_1.BuiltInProcName.Quote)) {
|
|
265
268
|
return undefined;
|
|
266
269
|
}
|
|
267
|
-
|
|
270
|
+
const prop = known.sig === undefined ? undefined : built_in_props_1.FnSig.propAt(built_in_props_1.FnSig.layout(known.sig), parent.arguments.indexOf(child));
|
|
271
|
+
const handsOn = ((known.muffles && reports(id, info)) || (known.hides && r_argument_1.RArgument.valueOf(child)?.info.id === id)) && prop !== undefined && (prop & built_in_props_1.ArgProp.Alias) !== 0;
|
|
272
|
+
if (known.evaluates || handsOn || (prop !== undefined && runsElsewhere(prop))) {
|
|
268
273
|
return call;
|
|
269
274
|
}
|
|
270
275
|
}
|
|
271
276
|
return undefined;
|
|
272
277
|
}
|
|
278
|
+
/** Whether running `id` may write into the message sink, as a message or a warning does, in its arguments (an inner `suppressWarnings(message(m))`) and the functions it calls as well. */
|
|
279
|
+
function reports(id, info) {
|
|
280
|
+
return df_helper_1.Dataflow.sideEffects.ambientAccess(info, id).writes.has(ambient_state_name_1.MessageSinks.used);
|
|
281
|
+
}
|
|
282
|
+
/** Whether the call `id` runs while the output is diverted (`sink(f)`), so that what it prints is part of what the program writes, `true` if it keeps no environment to tell. */
|
|
283
|
+
function runsDiverted(id, info) {
|
|
284
|
+
const vertex = info.graph.getVertex(id);
|
|
285
|
+
const environment = vertex_1.DfgVertex.isFunctionCall(vertex) ? vertex.environment : undefined;
|
|
286
|
+
return environment === undefined || (resolve_helper_1.Resolve.byName(ambient_state_name_1.AmbientStateName.sinkOpener, environment) ?? []).some(d => !node_id_1.NodeId.isBuiltIn(d.nodeId));
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* The top-level assignment `x <- call` the call `id` is the value of, if the call may hand back a visible value while the output is diverted, which R would print
|
|
290
|
+
* into the diversion once a slice dropped the assignment: it runs a closure (a method of the program `print` dispatches to among them), or a built-in not known to return invisibly.
|
|
291
|
+
*/
|
|
292
|
+
function assignmentHidingValue(id, info, idMap) {
|
|
293
|
+
const node = idMap.get(id);
|
|
294
|
+
const parent = node === undefined ? undefined : model_1.RNode.directParent(node, idMap);
|
|
295
|
+
if (parent === undefined || model_1.RNode.topLevelStatement(parent, idMap) !== parent || !vertex_1.DfgVertex.hasOrigin(info.graph.getVertex(parent.info.id), built_in_proc_name_1.BuiltInProcName.Assignment)
|
|
296
|
+
|| df_helper_1.Dataflow.hasEdge(info.graph, parent.info.id, id, edge_1.EdgeType.Returns)) {
|
|
297
|
+
return undefined;
|
|
298
|
+
}
|
|
299
|
+
const visible = df_helper_1.Dataflow.calleeIdsOf(info.graph, id).some(t => !node_id_1.NodeId.isBuiltIn(t)) || !built_in_props_1.CallProps.hasAny((0, query_fn_props_1.callFnProps)(id, info), built_in_props_1.CallProp.Invisible);
|
|
300
|
+
return visible && runsDiverted(id, info) ? parent.info.id : undefined;
|
|
301
|
+
}
|
|
302
|
+
/** Every node of the closures what the output `id` reads (`sink()` ending a diversion) prints, as printing a closure deparses its whole definition (`f` at the top level, `print(f)`), but for the methods printing calls. */
|
|
303
|
+
function printedClosures(id, graph, idMap) {
|
|
304
|
+
const prints = (at, kind) => graph.ambientAccessOf(at)?.[kind].has(ambient_state_name_1.AmbientStateName.sinkOutput) === true;
|
|
305
|
+
if (!prints(id, 'reads')) {
|
|
306
|
+
return [];
|
|
307
|
+
}
|
|
308
|
+
return df_helper_1.Dataflow.targetsOf(graph, id, edge_1.EdgeType.Reads).filter(printer => printer !== id && prints(printer, 'writes')).flatMap(printer => {
|
|
309
|
+
const called = df_helper_1.Dataflow.calleeIdsOf(graph, printer);
|
|
310
|
+
return [...(0, linker_1.getAllLinkedFunctionDefinitions)(new Set([printer]), graph)[0]].filter(closure => !called.includes(closure.id))
|
|
311
|
+
.flatMap(closure => [...model_1.RNode.collectAllIds(idMap.get(closure.id))].filter(n => graph.hasVertex(n)));
|
|
312
|
+
});
|
|
313
|
+
}
|
|
273
314
|
//# sourceMappingURL=slice-call.js.map
|
|
@@ -47,6 +47,8 @@ export interface StaticSliceOptions {
|
|
|
47
47
|
* A slice always gets a contingent of its own, so it is never billed for the analysis or the slices before it.
|
|
48
48
|
*/
|
|
49
49
|
readonly gas?: GasOverrides;
|
|
50
|
+
/** Top-level statements the slice is known to reach, which run as late (backward) as the seeds do, see {@link outsideSeedRun}. */
|
|
51
|
+
readonly reached?: readonly NodeId[];
|
|
50
52
|
}
|
|
51
53
|
/**
|
|
52
54
|
* Computes the node ids to include in a static slice, starting from the given seed ids.
|
|
@@ -4,6 +4,7 @@ exports.slicerLogger = void 0;
|
|
|
4
4
|
exports.staticSlice = staticSlice;
|
|
5
5
|
exports.staticDice = staticDice;
|
|
6
6
|
exports.updatePotentialAddition = updatePotentialAddition;
|
|
7
|
+
const ambient_state_name_1 = require("../../dataflow/environments/ambient-state-name");
|
|
7
8
|
const assert_1 = require("../../util/assert");
|
|
8
9
|
const log_1 = require("../../util/log");
|
|
9
10
|
const visiting_queue_1 = require("./visiting-queue");
|
|
@@ -16,8 +17,10 @@ const edge_1 = require("../../dataflow/graph/edge");
|
|
|
16
17
|
const df_helper_1 = require("../../dataflow/graph/df-helper");
|
|
17
18
|
const slice_direction_1 = require("../../util/slice-direction");
|
|
18
19
|
const model_1 = require("../../r-bridge/lang-4.x/ast/model/model");
|
|
20
|
+
const r_symbol_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-symbol");
|
|
19
21
|
const r_function_definition_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-function-definition");
|
|
20
22
|
const r_expression_list_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-expression-list");
|
|
23
|
+
const r_function_call_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-function-call");
|
|
21
24
|
const r_argument_1 = require("../../r-bridge/lang-4.x/ast/model/nodes/r-argument");
|
|
22
25
|
exports.slicerLogger = log_1.log.getSubLogger({ name: 'slicer' });
|
|
23
26
|
/**
|
|
@@ -49,7 +52,10 @@ function staticSlice(options) {
|
|
|
49
52
|
const callSigs = new Map();
|
|
50
53
|
/* the unknown side effects every slice keeps are seeds as well, so what they reach is not cut off as running too late */
|
|
51
54
|
const effects = [...graph.unknownSideEffects].filter((id) => typeof id !== 'object');
|
|
52
|
-
const
|
|
55
|
+
const reached = [...options.reached ?? []];
|
|
56
|
+
let missesSeeds = sliceGraph === undefined ? outsideSeedRun([...ids, ...effects], idMap, direction, graph, reached) : undefined;
|
|
57
|
+
/* the nodes whose edges {@link missesSeeds} cut, to follow again once the slice reaches further */
|
|
58
|
+
const cut = [];
|
|
53
59
|
const separatedWrite = (id) => info.graph.fileWritesPerCall?.has(id) === true
|
|
54
60
|
&& !openedBodies.has(model_1.RNode.findEnclosing(id, idMap, r_function_definition_1.RFunctionDefinition.is));
|
|
55
61
|
/* the dispatches within functions decided per call, as visited, and per call of such a function the dispatches it decides */
|
|
@@ -80,16 +86,42 @@ function staticSlice(options) {
|
|
|
80
86
|
}
|
|
81
87
|
}
|
|
82
88
|
/* a call asked about does what the functions it runs do, which includes what they print */
|
|
83
|
-
for (const id of
|
|
89
|
+
for (const id of writesWithinCallees(ids, graph, PrintedOutput)) {
|
|
84
90
|
queue.add(id, emptyEnv, basePrint, false);
|
|
85
91
|
}
|
|
92
|
+
/* and so do the calls in its arguments, which it evaluates (`suppressWarnings(f())` prints what `f` prints), once the slice knows the calls dispatching to the methods they run */
|
|
93
|
+
let argumentWrites = writesWithinCallees(ids.flatMap(id => [...model_1.RNode.collectAllIdsWithStop(idMap.get(id), r_function_definition_1.RFunctionDefinition.is)].filter(part => part !== id && vertex_1.DfgVertex.isFunctionCall(graph.getVertex(part)))), graph, PrintedOutput);
|
|
86
94
|
/* a drained queue completes the body slice, only then can a boundary decide whether its callers matter */
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
95
|
+
drain();
|
|
96
|
+
/* a statement the slice keeps although it runs after the seeds (the close of a sink the seed opens) needs what runs before it as well */
|
|
97
|
+
for (let beyond = beyondSeeds(); beyond.length > 0; beyond = beyondSeeds()) {
|
|
98
|
+
reached.push(...beyond);
|
|
99
|
+
missesSeeds = outsideSeedRun([...ids, ...effects], idMap, direction, graph, reached);
|
|
100
|
+
cut.splice(0).forEach(c => processNode(c));
|
|
101
|
+
drain();
|
|
102
|
+
}
|
|
103
|
+
function beyondSeeds() {
|
|
104
|
+
const misses = missesSeeds;
|
|
105
|
+
return direction === slice_direction_1.SliceDirection.Backward && misses !== undefined ? [...queue.status().result].filter(misses) : [];
|
|
106
|
+
}
|
|
107
|
+
function drain() {
|
|
108
|
+
do {
|
|
109
|
+
while (queue.nonEmpty()) {
|
|
110
|
+
processNode();
|
|
111
|
+
}
|
|
112
|
+
resolveCalleeBoundaries();
|
|
113
|
+
if (!queue.nonEmpty() && argumentWrites !== undefined) {
|
|
114
|
+
argumentWrites.forEach(id => queue.add(id, emptyEnv, basePrint, false));
|
|
115
|
+
argumentWrites = undefined;
|
|
116
|
+
}
|
|
117
|
+
/* what the reconstruction prints as written is in the slice, and so is what it needs, see {@link printedAsWritten} */
|
|
118
|
+
if (!queue.nonEmpty()) {
|
|
119
|
+
for (const id of printedAsWritten(queue, idMap, graph)) {
|
|
120
|
+
queue.add(id, emptyEnv, basePrint, false);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
} while (queue.nonEmpty());
|
|
124
|
+
}
|
|
93
125
|
function processNode(current = queue.next()) {
|
|
94
126
|
const { baseEnvironment, id, onlyForSideEffects, envFingerprint: baseEnvFingerprint } = current;
|
|
95
127
|
const currentInfo = graph.get(id, true);
|
|
@@ -103,6 +135,9 @@ function staticSlice(options) {
|
|
|
103
135
|
a function links to all its calls, and none running before the seeds can */
|
|
104
136
|
const reachable = missesSeeds !== undefined && (strictlyEnclosing !== undefined || direction === slice_direction_1.SliceDirection.Forward)
|
|
105
137
|
? withoutMissed(allEdges, missesSeeds) : allEdges;
|
|
138
|
+
if (reachable !== allEdges) {
|
|
139
|
+
cut.push(current);
|
|
140
|
+
}
|
|
106
141
|
/* a dispatch decided per call of its function runs only what the calls of it in the slice may run */
|
|
107
142
|
const perCall = direction === slice_direction_1.SliceDirection.Backward && sliceGraph === undefined && vertex_1.DfgVertex.isFunctionCall(currentVertex) ? currentVertex.ruledOutAt : undefined;
|
|
108
143
|
let ruledOut;
|
|
@@ -139,6 +174,20 @@ function staticSlice(options) {
|
|
|
139
174
|
if (deferring !== undefined) {
|
|
140
175
|
enqueue(deferring, baseEnvironment, baseEnvFingerprint);
|
|
141
176
|
}
|
|
177
|
+
/* what a promise changes happens where it is forced, and a forcing statement of the program must not print what it did not */
|
|
178
|
+
const binding = deferring !== undefined && (graph.ambientAccessOf(id)?.writes.size ?? 0) > 0 ? function_semantics_1.FunctionSemantics.call.quoted.promisedBinding(graph, deferring) : undefined;
|
|
179
|
+
for (const site of binding === undefined ? [] : function_semantics_1.FunctionSemantics.promiseForcingPoints(binding, graph)) {
|
|
180
|
+
const node = idMap.get(site);
|
|
181
|
+
enqueue(site, baseEnvironment, baseEnvFingerprint);
|
|
182
|
+
if (node !== undefined && model_1.RNode.strictlyEnclosingFunction(site, idMap) === undefined) {
|
|
183
|
+
enqueue(model_1.RNode.topLevelStatement(node, idMap).info.id, baseEnvironment, baseEnvFingerprint);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
/* a read running an active binding keeps its top-level statement, which would otherwise print what the read yields */
|
|
187
|
+
const read = strictlyEnclosing === undefined && vertex_1.DfgVertex.isFunctionCall(currentVertex) ? idMap.get(id) : undefined;
|
|
188
|
+
if (r_symbol_1.RSymbol.is(read)) {
|
|
189
|
+
enqueue(model_1.RNode.topLevelStatement(read, idMap).info.id, baseEnvironment, baseEnvFingerprint);
|
|
190
|
+
}
|
|
142
191
|
/* a call or a definition within a promise runs only when the promise is forced, within captured code only when it is evaluated */
|
|
143
192
|
if (vertex_1.DfgVertex.isFunctionCall(currentVertex) || vertex_1.DfgVertex.isVariableDefinition(currentVertex)) {
|
|
144
193
|
const dependencies = function_semantics_1.FunctionSemantics.promiseDependencies(id, graph);
|
|
@@ -149,8 +198,22 @@ function staticSlice(options) {
|
|
|
149
198
|
enqueue(dep, baseEnvironment, baseEnvFingerprint);
|
|
150
199
|
}
|
|
151
200
|
}
|
|
201
|
+
for (const printed of direction === slice_direction_1.SliceDirection.Backward ? (0, slice_call_1.printedClosures)(id, graph, idMap) : []) {
|
|
202
|
+
enqueue(printed, baseEnvironment, baseEnvFingerprint);
|
|
203
|
+
}
|
|
152
204
|
if (vertex_1.DfgVertex.isFunctionCall(currentVertex)) {
|
|
153
205
|
(0, slice_call_1.sliceForCall)(current, currentVertex, info, queue, ctx, ruledOut);
|
|
206
|
+
const hiding = direction === slice_direction_1.SliceDirection.Backward ? (0, slice_call_1.assignmentHidingValue)(id, info, idMap) : undefined;
|
|
207
|
+
if (hiding !== undefined) {
|
|
208
|
+
enqueue(hiding, baseEnvironment, baseEnvFingerprint);
|
|
209
|
+
}
|
|
210
|
+
/* a built-in dispatching to a method of the program (`print(x)` running `print.foo`) changes the state as the calls within the method do */
|
|
211
|
+
const written = Array.isArray(currentVertex.origin) && !currentVertex.origin.includes('function') ? graph.ambientAccessOf(id)?.writes : undefined;
|
|
212
|
+
if (written !== undefined && written.size > 0) {
|
|
213
|
+
for (const inner of writesWithinCallees([id], graph, new Set(written.keys()), ruledOut)) {
|
|
214
|
+
enqueue(inner, emptyEnv, basePrint);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
154
217
|
/* a call of a function joining the slice late lets the dispatches within run what it may run, once, as they may be such calls themselves */
|
|
155
218
|
const waiting = dispatchesOfCall.get(id) ?? [];
|
|
156
219
|
dispatchesOfCall.delete(id);
|
|
@@ -264,12 +327,12 @@ function topLevelStatement(id, idMap) {
|
|
|
264
327
|
* theirs; forward, it is a call running only before them, outside of any function. `undefined` if a seed is in a
|
|
265
328
|
* function, which may run any time.
|
|
266
329
|
*/
|
|
267
|
-
function outsideSeedRun(ids, idMap, direction, graph) {
|
|
330
|
+
function outsideSeedRun(ids, idMap, direction, graph, reached = []) {
|
|
268
331
|
const backward = direction === slice_direction_1.SliceDirection.Backward;
|
|
269
332
|
const bounds = new Map();
|
|
270
|
-
for (const id of ids) {
|
|
333
|
+
for (const id of [...ids, ...reached]) {
|
|
271
334
|
const at = topLevelStatement(id, idMap);
|
|
272
|
-
if (at === undefined || model_1.RNode.findEnclosing(id, idMap, r_function_definition_1.RFunctionDefinition.is) !== undefined) {
|
|
335
|
+
if (at === undefined || (!reached.includes(id) && model_1.RNode.findEnclosing(id, idMap, r_function_definition_1.RFunctionDefinition.is) !== undefined)) {
|
|
273
336
|
return undefined;
|
|
274
337
|
}
|
|
275
338
|
const bound = bounds.get(at[0]) ?? at[1];
|
|
@@ -288,34 +351,58 @@ function outsideSeedRun(ids, idMap, direction, graph) {
|
|
|
288
351
|
return misses;
|
|
289
352
|
};
|
|
290
353
|
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
}
|
|
354
|
+
const PrintedOutput = new Set([ambient_state_name_1.AmbientStateName.sinkOutput]);
|
|
355
|
+
/** per graph, which does not change while it is sliced: the calls writing each combination of states asked for, and the calls a dispatch is decided for */
|
|
356
|
+
const WritesPerGraph = new WeakMap();
|
|
357
|
+
function writesOf(graph) {
|
|
358
|
+
let known = WritesPerGraph.get(graph);
|
|
359
|
+
if (known === undefined) {
|
|
360
|
+
known = { writers: new Map() };
|
|
361
|
+
WritesPerGraph.set(graph, known);
|
|
362
|
+
}
|
|
363
|
+
return known;
|
|
364
|
+
}
|
|
365
|
+
/** The calls writing one of the `states` (`cat`, `print`, ...: they print into {@link AmbientStateName.sinkOutput}) within the functions the `seeds` call (a printed value its `print` method), transitively, but for the methods the slice rules out for the seeds (`ruledOutHere`). */
|
|
366
|
+
function writesWithinCallees(seeds, graph, states, ruledOutHere) {
|
|
367
|
+
const known = writesOf(graph);
|
|
368
|
+
const key = [...states].sort().join(',');
|
|
369
|
+
let writers = known.writers.get(key);
|
|
370
|
+
if (writers === undefined) {
|
|
371
|
+
writers = new Set([...graph.ambientAccessIds()].filter(id => graph.ambientAccessOf(id)?.writes.keys().some(state => states.has(state))));
|
|
372
|
+
known.writers.set(key, writers);
|
|
298
373
|
}
|
|
299
374
|
if (writers.size === 0) {
|
|
300
375
|
return [];
|
|
301
376
|
}
|
|
302
377
|
const found = [];
|
|
303
378
|
const seen = new Set();
|
|
379
|
+
/* the functions that print themselves */
|
|
380
|
+
const printsThrough = new Set();
|
|
304
381
|
/* each call with the calls that ran the function holding it, innermost first, which a dispatch decided per call depends on */
|
|
305
382
|
const calls = [...seeds].map(id => [id, []]);
|
|
306
383
|
const decided = new Set();
|
|
307
384
|
/* the calls a dispatch is decided for, which have to be followed again for every other way they are run */
|
|
308
|
-
const contexts = new Set(graph.verticesOfType(vertex_1.VertexType.FunctionCall).flatMap(([, v]) => (0, slice_call_1.callsRuledOutAt)(v.ruledOutAt ?? [])));
|
|
385
|
+
const contexts = known.contexts ??= new Set(graph.verticesOfType(vertex_1.VertexType.FunctionCall).flatMap(([, v]) => (0, slice_call_1.callsRuledOutAt)(v.ruledOutAt ?? [])));
|
|
309
386
|
for (let next = calls.pop(); next !== undefined; next = calls.pop()) {
|
|
310
387
|
const [call, via] = next;
|
|
311
388
|
const ruledOut = (0, slice_call_1.ruledOutVia)(graph.getVertex(call)?.ruledOutAt, via);
|
|
312
389
|
const chain = [call, ...via].slice(0, dispatch_linking_1.MaxContextDepth);
|
|
313
|
-
|
|
390
|
+
const callees = df_helper_1.Dataflow.calleeIdsOf(graph, call).filter(t => !ruledOut.includes(t) && (via.length > 0 || ruledOutHere?.has(t) !== true));
|
|
391
|
+
/* a function runs the exit hooks it keeps (its definition calls them), and prints what they print */
|
|
392
|
+
for (const target of [...callees, ...callees.flatMap(c => df_helper_1.Dataflow.targetsOf(graph, c, edge_1.EdgeType.Calls).filter(h => vertex_1.DfgVertex.isFunctionDefinition(graph.getVertex(h))))]) {
|
|
314
393
|
const callee = graph.getVertex(target);
|
|
315
394
|
const first = !seen.has(target);
|
|
316
395
|
seen.add(target);
|
|
317
396
|
if (first) {
|
|
318
|
-
|
|
397
|
+
const written = [...callee.subflow.graph].filter(inner => writers.has(inner));
|
|
398
|
+
found.push(...written);
|
|
399
|
+
if (written.length > 0) {
|
|
400
|
+
printsThrough.add(target);
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
/* what a callee prints is printed through the calls leading there, which a slice keeps as well: `f(3)` within `g` for `g()` */
|
|
404
|
+
if (printsThrough.has(target)) {
|
|
405
|
+
found.push(...chain);
|
|
319
406
|
}
|
|
320
407
|
for (const [innerCall, vertex] of df_helper_1.Dataflow.callsIn(callee, graph)) {
|
|
321
408
|
/* a function run again by other calls decides its dispatches anew */
|
|
@@ -329,6 +416,35 @@ function outputWithinCallees(seeds, graph) {
|
|
|
329
416
|
}
|
|
330
417
|
return found;
|
|
331
418
|
}
|
|
419
|
+
/**
|
|
420
|
+
* The parts of the program the slice will print although nothing selected them: a selected named call is printed with its arguments as
|
|
421
|
+
* they are written (but for a block handed to it, see `reconstructCallOfBlock`), so a function handed to it prints its whole body,
|
|
422
|
+
* `lg <<- c(lg, "r")` in `h(function() { lg <<- c(lg, "r"); 1 })` included, which then needs the definition of `lg` as well.
|
|
423
|
+
*/
|
|
424
|
+
function printedAsWritten(queue, idMap, graph) {
|
|
425
|
+
const found = [];
|
|
426
|
+
for (const id of queue.visitedIds()) {
|
|
427
|
+
const call = idMap.get(id);
|
|
428
|
+
if (!r_function_call_1.RFunctionCall.isNamed(call)) {
|
|
429
|
+
continue;
|
|
430
|
+
}
|
|
431
|
+
for (const arg of call.arguments) {
|
|
432
|
+
const value = r_argument_1.RArgument.valueOf(arg);
|
|
433
|
+
if (value === undefined || (r_expression_list_1.RExpressionList.is(value) && value.grouping?.[0].content === '{')) {
|
|
434
|
+
continue;
|
|
435
|
+
}
|
|
436
|
+
/* a function the slice runs part of prints its whole body, an argument the slice leaves out otherwise is just not evaluated */
|
|
437
|
+
for (const part of model_1.RNode.collectAllIds(value)) {
|
|
438
|
+
const node = idMap.get(part);
|
|
439
|
+
const body = r_function_definition_1.RFunctionDefinition.is(node) ? [...model_1.RNode.collectAllIds(node.body)] : [];
|
|
440
|
+
if (body.some(inner => queue.hasId(inner))) {
|
|
441
|
+
found.push(...body.filter(inner => !queue.hasId(inner) && graph.hasVertex(inner)));
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
return found;
|
|
447
|
+
}
|
|
332
448
|
/**
|
|
333
449
|
* The function `definition` and what holds it, up to its statement, as a body only runs as part of its definition.
|
|
334
450
|
* The `opened` bodies the slice starts in stop at an argument holding them or handed to a call of them: that call is a caller.
|
|
@@ -42,5 +42,7 @@ export declare class VisitingQueue {
|
|
|
42
42
|
/** Whether a node was left out for having been added more often than the threshold allows. */
|
|
43
43
|
hitThreshold(): boolean;
|
|
44
44
|
hasId(id: NodeId): boolean;
|
|
45
|
+
/** Every node added so far, see {@link hasId}. */
|
|
46
|
+
visitedIds(): readonly NodeId[];
|
|
45
47
|
status(): Readonly<Pick<SliceResult, 'timesHitThreshold' | 'result' | 'stoppedEarly' | 'progress'>>;
|
|
46
48
|
}
|
|
@@ -108,6 +108,10 @@ class VisitingQueue {
|
|
|
108
108
|
hasId(id) {
|
|
109
109
|
return this.idThreshold.has(id);
|
|
110
110
|
}
|
|
111
|
+
/** Every node added so far, see {@link hasId}. */
|
|
112
|
+
visitedIds() {
|
|
113
|
+
return [...this.idThreshold.keys()];
|
|
114
|
+
}
|
|
111
115
|
status() {
|
|
112
116
|
return {
|
|
113
117
|
timesHitThreshold: this.timesHitThreshold,
|
package/util/flowr-version.d.ts
CHANGED
package/util/flowr-version.js
CHANGED
|
@@ -8,9 +8,9 @@ exports.flowrVersion = flowrVersion;
|
|
|
8
8
|
*/
|
|
9
9
|
const semver_1 = require("semver");
|
|
10
10
|
// this is automatically replaced with the current version by release-it
|
|
11
|
-
const version = '2.17.
|
|
11
|
+
const version = '2.17.6';
|
|
12
12
|
// this is automatically replaced with the release date by release-it (scripts/bump-version.ts)
|
|
13
|
-
exports.versionDate = '2026-11-
|
|
13
|
+
exports.versionDate = '2026-11-13T12:10:52Z';
|
|
14
14
|
/**
|
|
15
15
|
* Retrieves the current flowR version as a new {@link SemVer} object.
|
|
16
16
|
*/
|
package/util/objects.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ type Defined<T> = Exclude<T, undefined>;
|
|
|
35
35
|
type DefinedRecord<T> = {
|
|
36
36
|
[K in keyof T as T[K] extends undefined ? never : K]: Defined<T[K]>;
|
|
37
37
|
};
|
|
38
|
+
/** The array, `undefined` for an empty one, to leave it out of a {@link compactRecord}. */
|
|
39
|
+
export declare function nonEmpty<A extends readonly unknown[]>(array: A | undefined): A | undefined;
|
|
38
40
|
export declare function compactRecord<T extends Record<string, unknown>>(record: T): DefinedRecord<T>;
|
|
39
41
|
export declare function compactRecord(record: undefined): undefined;
|
|
40
42
|
export declare function compactRecord<T extends Record<string, unknown>>(record: T | undefined): DefinedRecord<T> | undefined;
|
package/util/objects.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.isObjectOrArray = isObjectOrArray;
|
|
|
4
4
|
exports.isPlainObject = isPlainObject;
|
|
5
5
|
exports.deepMergeObject = deepMergeObject;
|
|
6
6
|
exports.deepMergeObjectInPlace = deepMergeObjectInPlace;
|
|
7
|
+
exports.nonEmpty = nonEmpty;
|
|
7
8
|
exports.compactRecord = compactRecord;
|
|
8
9
|
exports.deepClonePreserveUnclonable = deepClonePreserveUnclonable;
|
|
9
10
|
exports.looselyCompareObjects = looselyCompareObjects;
|
|
@@ -103,6 +104,10 @@ function assertSameType(base, addon) {
|
|
|
103
104
|
throw new Error(`cannot merge different types! ${typeof base} (${JSON.stringify(base, json_1.jsonReplacer)}) !== ${typeof addon} (${JSON.stringify(addon, json_1.jsonReplacer)})`);
|
|
104
105
|
}
|
|
105
106
|
}
|
|
107
|
+
/** The array, `undefined` for an empty one, to leave it out of a {@link compactRecord}. */
|
|
108
|
+
function nonEmpty(array) {
|
|
109
|
+
return array === undefined || array.length === 0 ? undefined : array;
|
|
110
|
+
}
|
|
106
111
|
/** from a record take only the keys that are not undefined */
|
|
107
112
|
function compactRecord(record) {
|
|
108
113
|
if (record === undefined) {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { BrandedIdentifier, BrandedNamespace } from '../dataflow/environments/identifier';
|
|
2
|
+
/** The shape of a data set a package ships as a data frame, like `penguins` of `datasets` or `starwars` of `dplyr`. */
|
|
3
|
+
export interface DatasetShape {
|
|
4
|
+
/** the package shipping the data set */
|
|
5
|
+
readonly pkg: BrandedNamespace;
|
|
6
|
+
/** the name of the data set */
|
|
7
|
+
readonly name: BrandedIdentifier;
|
|
8
|
+
/** the number of rows */
|
|
9
|
+
readonly rows: number;
|
|
10
|
+
/** the column names, in order */
|
|
11
|
+
readonly columns: readonly string[];
|
|
12
|
+
/** the class of every column, as the first entry of `class()` */
|
|
13
|
+
readonly classes: readonly string[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* The shape of the data set `name`, which R finds as lazy data: from `pkg` if given (as in `pkg::name`), otherwise
|
|
17
|
+
* from `datasets` (always attached) or from the first package `isLoaded` holds that ships a data set of that name.
|
|
18
|
+
* The shapes are read from the packages installed where flowR was built, see `scripts/gen-r-datasets.ts`.
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* datasetShape('penguins')?.columns // ['species', 'island', ...]
|
|
22
|
+
* datasetShape('starwars', 'dplyr')?.rows // 87
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare function datasetShape(name: BrandedIdentifier, pkg?: BrandedNamespace, isLoaded?: (pkg: BrandedNamespace) => boolean): DatasetShape | undefined;
|
|
26
|
+
/** Every data set `pkg` ships as a data frame, by name. */
|
|
27
|
+
export declare function datasetsOf(pkg: BrandedNamespace): readonly BrandedIdentifier[];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.datasetShape = datasetShape;
|
|
4
|
+
exports.datasetsOf = datasetsOf;
|
|
5
|
+
const r_datasets_generated_1 = require("../data/r-datasets.generated");
|
|
6
|
+
const r_base_packages_1 = require("./r-base-packages");
|
|
7
|
+
/** the packages shipping a data set of each name, to look up a name that names no package */
|
|
8
|
+
let byName;
|
|
9
|
+
function packagesWith(name) {
|
|
10
|
+
if (byName === undefined) {
|
|
11
|
+
byName = new Map();
|
|
12
|
+
for (const [pkg, sets] of Object.entries((0, r_datasets_generated_1.RDatasets)())) {
|
|
13
|
+
for (const set of Object.keys(sets)) {
|
|
14
|
+
const known = byName.get(set);
|
|
15
|
+
if (known === undefined) {
|
|
16
|
+
byName.set(set, [pkg]);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
known.push(pkg);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return byName.get(String(name)) ?? [];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* The shape of the data set `name`, which R finds as lazy data: from `pkg` if given (as in `pkg::name`), otherwise
|
|
28
|
+
* from `datasets` (always attached) or from the first package `isLoaded` holds that ships a data set of that name.
|
|
29
|
+
* The shapes are read from the packages installed where flowR was built, see `scripts/gen-r-datasets.ts`.
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* datasetShape('penguins')?.columns // ['species', 'island', ...]
|
|
33
|
+
* datasetShape('starwars', 'dplyr')?.rows // 87
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
function datasetShape(name, pkg, isLoaded = () => false) {
|
|
37
|
+
const from = pkg ?? (r_base_packages_1.BaseDatasets.has(name) ? 'datasets' : packagesWith(name).find(isLoaded));
|
|
38
|
+
const shape = from === undefined ? undefined : (0, r_datasets_generated_1.RDatasets)()[String(from)]?.[String(name)];
|
|
39
|
+
return shape === undefined || from === undefined ? undefined : { pkg: from, name, rows: shape[0], columns: shape[1], classes: shape[2] };
|
|
40
|
+
}
|
|
41
|
+
/** Every data set `pkg` ships as a data frame, by name. */
|
|
42
|
+
function datasetsOf(pkg) {
|
|
43
|
+
return Object.keys((0, r_datasets_generated_1.RDatasets)()[String(pkg)] ?? {});
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=r-datasets.js.map
|
|
@@ -8,6 +8,8 @@ export declare enum PlaygroundBox {
|
|
|
8
8
|
Deps = "deps",
|
|
9
9
|
/** what the linter found */
|
|
10
10
|
Lints = "lints",
|
|
11
|
+
/** what the functions of the script ask of their calls */
|
|
12
|
+
Contracts = "contracts",
|
|
11
13
|
/** what the DESCRIPTION of the project says */
|
|
12
14
|
Project = "project"
|
|
13
15
|
}
|
|
@@ -15,6 +15,8 @@ var PlaygroundBox;
|
|
|
15
15
|
PlaygroundBox["Deps"] = "deps";
|
|
16
16
|
/** what the linter found */
|
|
17
17
|
PlaygroundBox["Lints"] = "lints";
|
|
18
|
+
/** what the functions of the script ask of their calls */
|
|
19
|
+
PlaygroundBox["Contracts"] = "contracts";
|
|
18
20
|
/** what the DESCRIPTION of the project says */
|
|
19
21
|
PlaygroundBox["Project"] = "project";
|
|
20
22
|
})(PlaygroundBox || (exports.PlaygroundBox = PlaygroundBox = {}));
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { BasicQueryData } from '../../base-query-format';
|
|
2
|
-
import { type AbsintQuery, type AbsintQueryResult, type AbsintQueryType } from './absint-query-format';
|
|
3
|
-
/**
|
|
4
|
-
* Executes the given abstract interpretation queries using the provided analyzer.
|
|
5
|
-
*/
|
|
6
|
-
export declare function executeAbsintQuery<AbsintType extends AbsintQueryType>({ analyzer }: BasicQueryData, queries: readonly AbsintQuery<AbsintType>[]): Promise<AbsintQueryResult<AbsintType>>;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.executeAbsintQuery = executeAbsintQuery;
|
|
4
|
-
const absint_inference_1 = require("../../../abstract-interpretation/absint-inference");
|
|
5
|
-
const parse_1 = require("../../../slicing/criterion/parse");
|
|
6
|
-
const log_1 = require("../../../util/log");
|
|
7
|
-
const query_meta_1 = require("../../query-meta");
|
|
8
|
-
const absint_query_format_1 = require("./absint-query-format");
|
|
9
|
-
/**
|
|
10
|
-
* Executes the given abstract interpretation queries using the provided analyzer.
|
|
11
|
-
*/
|
|
12
|
-
async function executeAbsintQuery({ analyzer }, queries) {
|
|
13
|
-
if (queries.length === 0 || queries.some(query => query.inference !== queries[0].inference)) {
|
|
14
|
-
throw new Error('The inference types of bundled abstract interpretation queries must be the same.');
|
|
15
|
-
}
|
|
16
|
-
if (queries.length > 1 && queries.some(query => query.criteria === undefined)) {
|
|
17
|
-
log_1.log.warn('The abstract interpretation query expects only up to one query without slicing criteria, but got', queries.length);
|
|
18
|
-
queries = [{ type: 'absint', inference: queries[0].inference }];
|
|
19
|
-
}
|
|
20
|
-
const inference = absint_query_format_1.AbsintQueryInferences[queries[0].inference];
|
|
21
|
-
const ast = await analyzer.normalize();
|
|
22
|
-
const dfg = (await analyzer.dataflow()).graph;
|
|
23
|
-
const cfg = await analyzer.controlflow();
|
|
24
|
-
const start = Date.now();
|
|
25
|
-
const analysis = inference.create();
|
|
26
|
-
const interpreter = new absint_inference_1.AbstractInterpreter({ controlFlow: cfg, dfg, normalizedAst: ast, ctx: analyzer.inspectContext() }, analysis);
|
|
27
|
-
interpreter.start();
|
|
28
|
-
if (queries.length === 1 && queries[0].criteria === undefined) {
|
|
29
|
-
const state = ('domain' in inference ? interpreter.getEndState(inference.domain) : interpreter.getEndState());
|
|
30
|
-
return {
|
|
31
|
-
...(0, query_meta_1.metaSince)(start),
|
|
32
|
-
result: state
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
const result = new Map();
|
|
36
|
-
for (const query of queries) {
|
|
37
|
-
if (query.criteria === undefined) {
|
|
38
|
-
log_1.log.warn('Missing criterion in abstract interpretation query');
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
for (const criterion of query.criteria) {
|
|
42
|
-
if (result.has(criterion)) {
|
|
43
|
-
log_1.log.warn('Duplicate criterion in abstract interpretation query:', query.criteria);
|
|
44
|
-
continue;
|
|
45
|
-
}
|
|
46
|
-
try {
|
|
47
|
-
const nodeId = parse_1.SlicingCriterion.parse(criterion, ast.idMap);
|
|
48
|
-
const value = ('domain' in inference ? interpreter.getAbstractValue(nodeId, inference.domain) : interpreter.getAbstractValue(nodeId));
|
|
49
|
-
result.set(criterion, value);
|
|
50
|
-
}
|
|
51
|
-
catch (err) {
|
|
52
|
-
console.error(err instanceof Error ? err.message : err);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
...(0, query_meta_1.metaSince)(start),
|
|
58
|
-
result: result
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=absint-query-executor.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { BasicQueryData } from '../../base-query-format';
|
|
2
|
-
import { type AmbientAccessQuery, type AmbientAccessQueryResult } from './ambient-access-query-format';
|
|
3
|
-
/**
|
|
4
|
-
* Executes {@link AmbientAccessQuery}s, sharing one pass over the call graph between all scopes they ask for.
|
|
5
|
-
*/
|
|
6
|
-
export declare function executeAmbientAccessQuery({ analyzer }: BasicQueryData, queries: readonly AmbientAccessQuery[]): Promise<AmbientAccessQueryResult>;
|