@eagleoutice/flowr 2.10.9 → 2.11.0
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 +116 -38
- package/abstract-interpretation/absint-visitor.js +6 -3
- package/abstract-interpretation/domains/abstract-domain.d.ts +1 -1
- package/abstract-interpretation/domains/bounded-set-domain.d.ts +1 -1
- package/abstract-interpretation/domains/bounded-set-domain.js +1 -1
- package/abstract-interpretation/domains/interval-domain.d.ts +1 -1
- package/abstract-interpretation/domains/interval-domain.js +1 -1
- package/abstract-interpretation/domains/lattice.d.ts +1 -1
- package/abstract-interpretation/domains/partial-product-domain.d.ts +1 -1
- package/abstract-interpretation/domains/partial-product-domain.js +2 -2
- package/abstract-interpretation/domains/set-range-domain.d.ts +1 -1
- package/abstract-interpretation/domains/set-range-domain.js +1 -1
- package/abstract-interpretation/domains/set-upper-bound-domain.d.ts +1 -1
- package/abstract-interpretation/domains/set-upper-bound-domain.js +1 -1
- package/abstract-interpretation/domains/singleton-domain.d.ts +1 -1
- package/abstract-interpretation/domains/singleton-domain.js +1 -1
- package/abstract-interpretation/domains/state-abstract-domain.d.ts +1 -1
- package/abstract-interpretation/domains/state-abstract-domain.js +2 -2
- package/abstract-interpretation/unsupported-functions.d.ts +3 -2
- package/abstract-interpretation/unsupported-functions.js +38 -28
- package/cli/benchmark-app.js +2 -1
- package/cli/common/options.d.ts +2 -108
- package/cli/common/options.js +3 -27
- package/cli/common/script.js +3 -2
- package/cli/common/scripts-info.d.ts +2 -123
- package/cli/common/scripts-info.js +0 -17
- package/cli/flowr-main-options.d.ts +5 -0
- package/cli/flowr-main-options.js +10 -0
- package/cli/flowr.js +48 -11
- package/cli/repl/commands/repl-cfg.js +9 -9
- package/cli/repl/commands/repl-commands.js +5 -0
- package/cli/repl/commands/repl-dataflow.js +31 -24
- package/cli/repl/commands/repl-main.d.ts +6 -0
- package/cli/repl/commands/repl-normalize.js +15 -12
- package/cli/repl/commands/repl-parse.js +1 -1
- package/cli/repl/commands/repl-query.js +4 -5
- package/cli/repl/commands/repl-quit.js +2 -1
- package/cli/repl/core.d.ts +11 -0
- package/cli/repl/core.js +101 -3
- package/cli/repl/execute.js +3 -2
- package/cli/repl/parser/slice-query-parser.d.ts +16 -0
- package/cli/repl/parser/slice-query-parser.js +52 -0
- package/cli/repl/print-version.d.ts +3 -1
- package/cli/repl/print-version.js +21 -2
- package/cli/repl/server/connection.d.ts +3 -0
- package/cli/repl/server/connection.js +65 -31
- package/cli/repl/server/messages/message-analysis.d.ts +10 -0
- package/cli/repl/server/messages/message-analysis.js +6 -2
- package/cli/repl/server/messages/message-slice.d.ts +1 -1
- package/cli/script-core/summarizer-core.js +13 -32
- package/cli/wiki.d.ts +3 -1
- package/cli/wiki.js +6 -1
- package/config.d.ts +22 -10
- package/config.js +33 -7
- package/control-flow/diff-cfg.d.ts +1 -1
- package/control-flow/diff-cfg.js +1 -1
- package/control-flow/semantic-cfg-guided-visitor.js +2 -0
- package/control-flow/simple-visitor.js +6 -5
- package/control-flow/useless-loop.js +2 -2
- package/core/print/dataflow-printer.d.ts +2 -2
- package/core/print/dataflow-printer.js +2 -2
- package/core/steps/all/static-slicing/00-slice.js +1 -1
- package/data/pkgdb/pkgdb-latest.json.br +0 -0
- package/data/pkgdb/pkgdb-tiny.json.br +0 -0
- package/dataflow/environments/append.d.ts +2 -2
- package/dataflow/environments/append.js +4 -10
- package/dataflow/environments/apply-kill.d.ts +21 -0
- package/dataflow/environments/apply-kill.js +155 -0
- package/dataflow/environments/built-in-proc-name.d.ts +4 -0
- package/dataflow/environments/built-in-proc-name.js +4 -0
- package/dataflow/environments/built-in.d.ts +4 -0
- package/dataflow/environments/built-in.js +4 -0
- package/dataflow/environments/default-builtin-config.d.ts +183 -67
- package/dataflow/environments/default-builtin-config.js +358 -147
- package/dataflow/environments/environment.d.ts +49 -31
- package/dataflow/environments/environment.js +144 -25
- package/dataflow/environments/identifier.d.ts +65 -2
- package/dataflow/environments/identifier.js +37 -2
- package/dataflow/environments/overwrite.js +2 -10
- package/dataflow/environments/reference-to-maybe.d.ts +2 -0
- package/dataflow/environments/reference-to-maybe.js +56 -11
- package/dataflow/environments/resolve-by-name.d.ts +1 -1
- package/dataflow/environments/resolve-by-name.js +23 -9
- package/dataflow/environments/scoping.d.ts +9 -2
- package/dataflow/environments/scoping.js +15 -2
- package/dataflow/eval/values/general.js +4 -0
- package/dataflow/extractor.js +35 -4
- package/dataflow/graph/df-helper.d.ts +14 -0
- package/dataflow/graph/df-helper.js +41 -0
- package/dataflow/graph/graph.d.ts +4 -1
- package/dataflow/graph/graph.js +6 -2
- package/dataflow/info.d.ts +27 -1
- package/dataflow/internal/linker.d.ts +5 -1
- package/dataflow/internal/linker.js +34 -9
- package/dataflow/internal/process/functions/call/built-in/built-in-access.js +7 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +19 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.d.ts +1 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +7 -13
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +9 -48
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +30 -47
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +17 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +7 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.d.ts +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +61 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +9 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-library.d.ts +37 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +391 -21
- package/dataflow/internal/process/functions/call/built-in/built-in-namespace-access.d.ts +13 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-namespace-access.js +58 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.js +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.d.ts +3 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +132 -25
- package/dataflow/internal/process/functions/call/built-in/built-in-source.js +9 -10
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +25 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +94 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +11 -4
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +30 -0
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +279 -0
- package/dataflow/internal/process/functions/call/known-call-handling.js +4 -3
- package/dataflow/internal/process/functions/call/named-call-handling.d.ts +1 -1
- package/dataflow/internal/process/functions/call/named-call-handling.js +23 -0
- package/dataflow/origin/dfg-get-origin.d.ts +1 -1
- package/dataflow/origin/dfg-get-origin.js +1 -1
- package/dataflow/processor.d.ts +6 -0
- package/documentation/data/faq/faqs.d.ts +2 -1
- package/documentation/data/faq/faqs.js +78 -57
- package/documentation/data/interface/doc-writing-code.js +4 -80
- package/documentation/data/server/doc-data-server-messages.d.ts +2 -1
- package/documentation/data/server/doc-data-server-messages.js +15 -7
- package/documentation/doc-readme.js +15 -15
- package/documentation/doc-util/doc-cfg.d.ts +3 -1
- package/documentation/doc-util/doc-cfg.js +3 -3
- package/documentation/doc-util/doc-dfg.d.ts +3 -1
- package/documentation/doc-util/doc-dfg.js +3 -3
- package/documentation/doc-util/doc-files.d.ts +3 -1
- package/documentation/doc-util/doc-files.js +9 -6
- package/documentation/doc-util/doc-normalized-ast.d.ts +3 -1
- package/documentation/doc-util/doc-normalized-ast.js +2 -2
- package/documentation/doc-util/doc-query.d.ts +2 -1
- package/documentation/doc-util/doc-query.js +2 -2
- package/documentation/doc-util/doc-repl.js +1 -0
- package/documentation/doc-util/doc-structure.js +1 -2
- package/documentation/doc-util/doc-types.d.ts +6 -6
- package/documentation/doc-util/doc-types.js +11 -9
- package/documentation/issue-linting-rule.js +1 -2
- package/documentation/wiki-analyzer.js +9 -9
- package/documentation/wiki-cfg.js +40 -41
- package/documentation/wiki-core.js +121 -32
- package/documentation/wiki-create-linting-rules.d.ts +6 -0
- package/documentation/wiki-create-linting-rules.js +95 -0
- package/documentation/wiki-dataflow-graph.js +112 -77
- package/documentation/wiki-engine.js +1 -2
- package/documentation/wiki-faq.d.ts +2 -1
- package/documentation/wiki-faq.js +4 -4
- package/documentation/wiki-interface.js +22 -8
- package/documentation/wiki-linter.d.ts +1 -1
- package/documentation/wiki-linter.js +16 -6
- package/documentation/wiki-linting-and-testing.js +2 -2
- package/documentation/wiki-mk/doc-context.d.ts +3 -3
- package/documentation/wiki-mk/doc-maker.d.ts +2 -0
- package/documentation/wiki-mk/doc-maker.js +7 -1
- package/documentation/wiki-normalized-ast.js +5 -5
- package/documentation/wiki-onboarding.d.ts +2 -1
- package/documentation/wiki-onboarding.js +5 -5
- package/documentation/wiki-overview.js +4 -17
- package/documentation/wiki-package-database.d.ts +9 -0
- package/documentation/wiki-package-database.js +63 -0
- package/documentation/wiki-query.js +86 -84
- package/documentation/wiki-search.js +4 -5
- package/documentation/wiki-setup.js +6 -7
- package/gas.d.ts +74 -0
- package/gas.js +18 -0
- package/linter/linter-executor.js +2 -8
- package/linter/linter-format.d.ts +4 -11
- package/linter/linter-rules.d.ts +111 -86
- package/linter/linter-rules.js +9 -1
- package/linter/rules/absolute-path.d.ts +2 -7
- package/linter/rules/absolute-path.js +8 -5
- package/linter/rules/dataframe-access-validation.d.ts +1 -6
- package/linter/rules/dataframe-access-validation.js +8 -6
- package/linter/rules/dead-code.d.ts +2 -11
- package/linter/rules/dead-code.js +16 -11
- package/linter/rules/deprecated-functions.d.ts +3 -3
- package/linter/rules/file-path-validity.d.ts +1 -6
- package/linter/rules/file-path-validity.js +5 -5
- package/linter/rules/function-finder-util.d.ts +7 -11
- package/linter/rules/function-finder-util.js +9 -6
- package/linter/rules/naming-convention.d.ts +2 -7
- package/linter/rules/naming-convention.js +3 -2
- package/linter/rules/network-functions.d.ts +2 -7
- package/linter/rules/network-functions.js +14 -12
- package/linter/rules/no-leaked-credentials.d.ts +36 -0
- package/linter/rules/no-leaked-credentials.js +75 -0
- package/linter/rules/problematic-inputs.d.ts +1 -8
- package/linter/rules/problematic-inputs.js +5 -4
- package/linter/rules/roxygen-arguments.d.ts +2 -7
- package/linter/rules/roxygen-arguments.js +13 -20
- package/linter/rules/seeded-randomness.d.ts +2 -7
- package/linter/rules/seeded-randomness.js +7 -4
- package/linter/rules/software-has-license.d.ts +31 -0
- package/linter/rules/software-has-license.js +46 -0
- package/linter/rules/software-has-tests.d.ts +38 -0
- package/linter/rules/software-has-tests.js +48 -0
- package/linter/rules/stop-with-call-arg.d.ts +2 -7
- package/linter/rules/stop-with-call-arg.js +3 -2
- package/linter/rules/undefined-symbol.d.ts +39 -0
- package/linter/rules/undefined-symbol.js +80 -0
- package/linter/rules/unused-definition.d.ts +3 -8
- package/linter/rules/unused-definition.js +7 -5
- package/linter/rules/useless-loop.d.ts +2 -7
- package/linter/rules/useless-loop.js +5 -2
- package/package.json +5 -5
- package/project/cache/flowr-analyzer-cache.d.ts +2 -0
- package/project/cache/flowr-analyzer-cache.js +9 -1
- package/project/context/flowr-analyzer-context.d.ts +13 -14
- package/project/context/flowr-analyzer-context.js +4 -0
- package/project/context/flowr-analyzer-dependencies-context.d.ts +16 -8
- package/project/context/flowr-analyzer-dependencies-context.js +36 -4
- package/project/context/flowr-analyzer-environment-context.d.ts +2 -4
- package/project/context/flowr-analyzer-environment-context.js +3 -4
- package/project/context/flowr-analyzer-files-context.d.ts +13 -0
- package/project/context/flowr-analyzer-files-context.js +12 -2
- package/project/context/flowr-analyzer-gas-context.d.ts +28 -0
- package/project/context/flowr-analyzer-gas-context.js +101 -0
- package/project/context/flowr-file.d.ts +2 -0
- package/project/context/flowr-file.js +2 -0
- package/project/flowr-analyzer-builder.js +3 -0
- package/project/flowr-analyzer.d.ts +2 -1
- package/project/flowr-analyzer.js +3 -1
- package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +13 -15
- package/project/plugins/file-plugins/files/flowr-namespace-file.js +36 -13
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +13 -7
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +56 -11
- package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.d.ts +27 -0
- package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.js +41 -0
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.d.ts +1 -1
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.js +2 -2
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.d.ts +2 -1
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.js +5 -5
- package/project/plugins/flowr-analyzer-plugin.d.ts +15 -8
- package/project/plugins/flowr-analyzer-plugin.js +14 -7
- package/project/plugins/gas-plugins/flowr-analyzer-gas-plugin.d.ts +19 -0
- package/project/plugins/gas-plugins/flowr-analyzer-gas-plugin.js +35 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.d.ts +18 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +62 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-pkgdb-plugin.d.ts +63 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-pkgdb-plugin.js +174 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.d.ts +10 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.js +6 -0
- package/project/plugins/package-version-plugins/package.d.ts +3 -0
- package/project/plugins/package-version-plugins/package.js +12 -0
- package/project/plugins/package-version-plugins/pkgdb.d.ts +133 -0
- package/project/plugins/package-version-plugins/pkgdb.js +370 -0
- package/project/plugins/plugin-registry.d.ts +5 -1
- package/project/plugins/plugin-registry.js +10 -1
- package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.d.ts +22 -0
- package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.js +47 -0
- package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +1 -1
- package/queries/catalog/call-context-query/call-context-query-executor.js +62 -8
- package/queries/catalog/call-context-query/call-context-query-format.d.ts +4 -2
- package/queries/catalog/call-context-query/call-context-query-format.js +1 -0
- package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +8 -0
- package/queries/catalog/dependencies-query/dependencies-query-executor.js +31 -3
- package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +3 -1
- package/queries/catalog/dependencies-query/dependencies-query-format.js +3 -2
- package/queries/catalog/dependencies-query/function-info/function-info.d.ts +1 -1
- package/queries/catalog/dependencies-query/function-info/other-path-functions.d.ts +2 -0
- package/queries/catalog/dependencies-query/function-info/other-path-functions.js +27 -0
- package/queries/catalog/dependencies-query/function-info/read-functions.js +5 -4
- package/queries/catalog/dependencies-query/function-info/test-functions.d.ts +2 -0
- package/queries/catalog/dependencies-query/function-info/test-functions.js +18 -177
- package/queries/catalog/dependencies-query/function-info/visualize-functions.js +3 -1
- package/queries/catalog/df-shape-query/df-shape-query-format.js +1 -1
- package/queries/catalog/dice-query/dice-query-executor.d.ts +8 -0
- package/queries/catalog/dice-query/dice-query-executor.js +52 -0
- package/queries/catalog/dice-query/dice-query-format.d.ts +53 -0
- package/queries/catalog/dice-query/dice-query-format.js +102 -0
- package/queries/catalog/happens-before-query/happens-before-query-executor.js +2 -2
- package/queries/catalog/input-sources-query/input-sources-query-format.d.ts +2 -0
- package/queries/catalog/input-sources-query/input-sources-query-format.js +1 -0
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.d.ts +2 -0
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.js +1 -0
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.d.ts +2 -0
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.js +1 -0
- package/queries/catalog/linter-query/linter-query-executor.js +8 -0
- package/queries/catalog/location-map-query/location-map-query-format.d.ts +2 -0
- package/queries/catalog/location-map-query/location-map-query-format.js +1 -0
- package/queries/catalog/origin-query/origin-query-format.d.ts +2 -0
- package/queries/catalog/origin-query/origin-query-format.js +1 -0
- package/queries/catalog/provenance-query/provenance-query-format.d.ts +2 -0
- package/queries/catalog/provenance-query/provenance-query-format.js +1 -0
- package/queries/catalog/resolve-value-query/resolve-value-query-format.d.ts +2 -0
- package/queries/catalog/resolve-value-query/resolve-value-query-format.js +1 -0
- package/queries/catalog/static-slice-query/static-slice-query-executor.js +1 -1
- package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +2 -0
- package/queries/catalog/static-slice-query/static-slice-query-format.js +1 -0
- package/queries/query.d.ts +18 -1
- package/queries/query.js +3 -1
- package/r-bridge/data/data.d.ts +7 -2
- package/r-bridge/data/data.js +8 -2
- package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +0 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.js +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.js +1 -1
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +13 -4
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +55 -44
- package/r-bridge/parser.js +2 -9
- package/r-bridge/shell.d.ts +8 -1
- package/r-bridge/shell.js +26 -7
- package/search/flowr-search-builder.d.ts +2 -2
- package/search/flowr-search-builder.js +1 -1
- package/search/flowr-search-filters.d.ts +30 -9
- package/search/flowr-search-filters.js +26 -21
- package/search/search-executor/search-enrichers.d.ts +601 -1
- package/search/search-executor/search-enrichers.js +30 -6
- package/slicing/static/static-slicer.d.ts +39 -11
- package/slicing/static/static-slicer.js +44 -14
- package/util/collections/queue.d.ts +16 -0
- package/util/collections/queue.js +38 -0
- package/util/log.d.ts +1 -1
- package/util/log.js +1 -1
- package/util/mermaid/dfg.d.ts +2 -2
- package/util/mermaid/dfg.js +2 -2
- package/util/mermaid/mermaid.d.ts +4 -0
- package/util/mermaid/mermaid.js +8 -1
- package/util/objects.d.ts +9 -0
- package/util/objects.js +54 -0
- package/util/proc.d.ts +6 -0
- package/util/proc.js +20 -0
- package/util/version.js +10 -2
- package/cli/common/features.d.ts +0 -9
- package/cli/common/features.js +0 -35
- package/cli/script-core/statistics-core.d.ts +0 -6
- package/cli/script-core/statistics-core.js +0 -103
- package/cli/script-core/statistics-helper-core.d.ts +0 -6
- package/cli/script-core/statistics-helper-core.js +0 -85
- package/cli/statistics-app.d.ts +0 -11
- package/cli/statistics-app.js +0 -16
- package/cli/statistics-helper-app.d.ts +0 -11
- package/cli/statistics-helper-app.js +0 -14
- package/statistics/features/common-syntax-probability.d.ts +0 -38
- package/statistics/features/common-syntax-probability.js +0 -169
- package/statistics/features/feature.d.ts +0 -179
- package/statistics/features/feature.js +0 -38
- package/statistics/features/post-processing.d.ts +0 -18
- package/statistics/features/post-processing.js +0 -26
- package/statistics/features/supported/assignments/assignments.d.ts +0 -12
- package/statistics/features/supported/assignments/assignments.js +0 -56
- package/statistics/features/supported/assignments/post-process.d.ts +0 -6
- package/statistics/features/supported/assignments/post-process.js +0 -126
- package/statistics/features/supported/comments/comments.d.ts +0 -18
- package/statistics/features/supported/comments/comments.js +0 -143
- package/statistics/features/supported/comments/post-process.d.ts +0 -6
- package/statistics/features/supported/comments/post-process.js +0 -51
- package/statistics/features/supported/control-flow/control-flow.d.ts +0 -17
- package/statistics/features/supported/control-flow/control-flow.js +0 -69
- package/statistics/features/supported/control-flow/post-process.d.ts +0 -6
- package/statistics/features/supported/control-flow/post-process.js +0 -66
- package/statistics/features/supported/data-access/data-access.d.ts +0 -15
- package/statistics/features/supported/data-access/data-access.js +0 -122
- package/statistics/features/supported/data-access/post-process.d.ts +0 -6
- package/statistics/features/supported/data-access/post-process.js +0 -108
- package/statistics/features/supported/defined-functions/defined-functions.d.ts +0 -34
- package/statistics/features/supported/defined-functions/defined-functions.js +0 -145
- package/statistics/features/supported/defined-functions/post-process.d.ts +0 -6
- package/statistics/features/supported/defined-functions/post-process.js +0 -168
- package/statistics/features/supported/expression-list/post-process.d.ts +0 -6
- package/statistics/features/supported/expression-list/post-process.js +0 -45
- package/statistics/features/supported/expression-list/statistics-expression-list.d.ts +0 -9
- package/statistics/features/supported/expression-list/statistics-expression-list.js +0 -37
- package/statistics/features/supported/loops/loops.d.ts +0 -20
- package/statistics/features/supported/loops/loops.js +0 -81
- package/statistics/features/supported/loops/post-process.d.ts +0 -6
- package/statistics/features/supported/loops/post-process.js +0 -73
- package/statistics/features/supported/used-functions/post-process.d.ts +0 -6
- package/statistics/features/supported/used-functions/post-process.js +0 -176
- package/statistics/features/supported/used-functions/used-functions.d.ts +0 -24
- package/statistics/features/supported/used-functions/used-functions.js +0 -99
- package/statistics/features/supported/used-packages/post-process.d.ts +0 -6
- package/statistics/features/supported/used-packages/post-process.js +0 -122
- package/statistics/features/supported/used-packages/used-packages.d.ts +0 -16
- package/statistics/features/supported/used-packages/used-packages.js +0 -140
- package/statistics/features/supported/values/post-process.d.ts +0 -6
- package/statistics/features/supported/values/post-process.js +0 -73
- package/statistics/features/supported/values/values.d.ts +0 -14
- package/statistics/features/supported/values/values.js +0 -111
- package/statistics/features/supported/variables/post-process.d.ts +0 -15
- package/statistics/features/supported/variables/post-process.js +0 -126
- package/statistics/features/supported/variables/variables.d.ts +0 -15
- package/statistics/features/supported/variables/variables.js +0 -62
- package/statistics/meta-statistics.d.ts +0 -32
- package/statistics/meta-statistics.js +0 -16
- package/statistics/output/file-provider.d.ts +0 -36
- package/statistics/output/file-provider.js +0 -96
- package/statistics/output/print-stats.d.ts +0 -29
- package/statistics/output/print-stats.js +0 -81
- package/statistics/output/statistics-file.d.ts +0 -36
- package/statistics/output/statistics-file.js +0 -68
- package/statistics/statistics.d.ts +0 -29
- package/statistics/statistics.js +0 -108
- package/statistics/summarizer/auto-detect.d.ts +0 -5
- package/statistics/summarizer/auto-detect.js +0 -34
- package/statistics/summarizer/first-phase/process.d.ts +0 -6
- package/statistics/summarizer/first-phase/process.js +0 -81
- package/statistics/summarizer/post-process/clusterer.d.ts +0 -25
- package/statistics/summarizer/post-process/clusterer.js +0 -40
- package/statistics/summarizer/post-process/file-based-count.d.ts +0 -16
- package/statistics/summarizer/post-process/file-based-count.js +0 -47
- package/statistics/summarizer/post-process/histogram.d.ts +0 -57
- package/statistics/summarizer/post-process/histogram.js +0 -126
- package/statistics/summarizer/post-process/post-process-output.d.ts +0 -14
- package/statistics/summarizer/post-process/post-process-output.js +0 -102
- package/statistics/summarizer/second-phase/process.d.ts +0 -15
- package/statistics/summarizer/second-phase/process.js +0 -118
- package/statistics/summarizer/summarizer.d.ts +0 -34
- package/statistics/summarizer/summarizer.js +0 -141
|
@@ -22,9 +22,9 @@ export interface FileFilter<FilterType> {
|
|
|
22
22
|
}
|
|
23
23
|
export interface DefaultCallContextQueryFormat<RegexType extends CallNameTypes> extends BaseQueryFormat {
|
|
24
24
|
readonly type: 'call-context';
|
|
25
|
-
/**
|
|
25
|
+
/** The function name to match: a string (interpreted as a regex unless {@link callNameExact} is set), a RegExp, or an array of strings (always matched exactly). */
|
|
26
26
|
readonly callName: RegexType;
|
|
27
|
-
/**
|
|
27
|
+
/** For a string {@link callName}, match it literally instead of as a regex. For a RegExp, add `^` and `$` anchors. Arrays always match exactly, regardless of this flag. */
|
|
28
28
|
readonly callNameExact?: boolean;
|
|
29
29
|
/** kind may be a step or anything that you attach to the call, this can be used to group calls together (e.g., linking `ggplot` to `visualize`). Defaults to `.` */
|
|
30
30
|
readonly kind?: string;
|
|
@@ -35,6 +35,8 @@ export interface DefaultCallContextQueryFormat<RegexType extends CallNameTypes>
|
|
|
35
35
|
* Request this specifically to gain all call targets we can resolve.
|
|
36
36
|
*/
|
|
37
37
|
readonly callTargets?: CallTargets;
|
|
38
|
+
/** Only keep calls that resolve to (or are explicitly qualified with) this package, e.g. `bar` to find `bar::foo` / `foo()` after `library(bar)`. */
|
|
39
|
+
readonly callTargetNamespace?: string;
|
|
38
40
|
/** Consider a case like `f <- function_of_interest`, do you want uses of `f` to be included in the results? */
|
|
39
41
|
readonly includeAliases?: boolean;
|
|
40
42
|
/** Should we ignore default values for parameters in the results? */
|
|
@@ -39,6 +39,7 @@ exports.CallContextQueryDefinition = {
|
|
|
39
39
|
kind: joi_1.default.string().optional().description('The kind of the call, this can be used to group calls together (e.g., linking `plot` to `visualize`). Defaults to `.`'),
|
|
40
40
|
subkind: joi_1.default.string().optional().description('The subkind of the call, this can be used to uniquely identify the respective call type when grouping the output (e.g., the normalized name, linking `ggplot` to `plot`). Defaults to `.`'),
|
|
41
41
|
callTargets: joi_1.default.string().valid(...Object.values(identify_link_to_last_call_relation_1.CallTargets)).optional().description('Call targets the function may have. This defaults to `any`. Request this specifically to gain all call targets we can resolve.'),
|
|
42
|
+
callTargetNamespace: joi_1.default.string().optional().description('Only keep calls that resolve to (or are explicitly qualified with) this package (e.g. `bar` to find `bar::foo`).'),
|
|
42
43
|
ignoreParameterValues: joi_1.default.boolean().optional().description('Should we ignore default values for parameters in the results?'),
|
|
43
44
|
includeAliases: joi_1.default.boolean().optional().description('Consider a case like `f <- function_of_interest`, do you want uses of `f` to be included in the results?'),
|
|
44
45
|
fileFilter: joi_1.default.object({
|
|
@@ -42,6 +42,14 @@ function satisfiesCallTargets(info, graph, callTarget) {
|
|
|
42
42
|
.map(([t]) => t)
|
|
43
43
|
.toArray();
|
|
44
44
|
let builtIn = false;
|
|
45
|
+
/*
|
|
46
|
+
* a resolved call target that is itself a built-in - a base builtin or a loaded-package export
|
|
47
|
+
* like `ggplot2::ggplot` (added by `library()`) - is a global resolution, so such calls count
|
|
48
|
+
* as global for every call-context query (`callTargetNamespace` then narrows down to the package).
|
|
49
|
+
*/
|
|
50
|
+
if (callTargets.some(t => node_id_1.NodeId.isBuiltIn(t))) {
|
|
51
|
+
builtIn = true;
|
|
52
|
+
}
|
|
45
53
|
if (info.environment !== undefined) {
|
|
46
54
|
/*
|
|
47
55
|
* for performance and scoping reasons, flowR will not identify the global linkage,
|
|
@@ -4,6 +4,8 @@ exports.executeDependenciesQuery = executeDependenciesQuery;
|
|
|
4
4
|
const query_1 = require("../../query");
|
|
5
5
|
const dependencies_query_format_1 = require("./dependencies-query-format");
|
|
6
6
|
const vertex_1 = require("../../../dataflow/graph/vertex");
|
|
7
|
+
const identifier_1 = require("../../../dataflow/environments/identifier");
|
|
8
|
+
const dfg_get_origin_1 = require("../../../dataflow/origin/dfg-get-origin");
|
|
7
9
|
const type_1 = require("../../../r-bridge/lang-4.x/ast/model/type");
|
|
8
10
|
const objects_1 = require("../../../util/objects");
|
|
9
11
|
const function_info_1 = require("./function-info/function-info");
|
|
@@ -12,6 +14,7 @@ const resolve_argument_1 = require("../../../dataflow/eval/resolve/resolve-argum
|
|
|
12
14
|
const assert_1 = require("../../../util/assert");
|
|
13
15
|
const log_1 = require("../../../util/log");
|
|
14
16
|
const model_1 = require("../../../r-bridge/lang-4.x/ast/model/model");
|
|
17
|
+
const graph_1 = require("../../../dataflow/graph/graph");
|
|
15
18
|
/**
|
|
16
19
|
* Executes a dependencies query.
|
|
17
20
|
*/
|
|
@@ -100,6 +103,18 @@ function getResults(queries, { dataflow, config, normalize }, results, kind, fun
|
|
|
100
103
|
for (const { id, linkedIds } of results) {
|
|
101
104
|
const vertex = dfg.getVertex(id);
|
|
102
105
|
const info = functionMap.get(name);
|
|
106
|
+
// the qualified call name (`dplyr::filter` for a bare `filter()` after `library(dplyr)`),
|
|
107
|
+
// falling back to the plain called name when the call does not resolve to a loaded package
|
|
108
|
+
const functionName = identifier_1.Identifier.toQualified((0, dfg_get_origin_1.getOriginInDfg)(dfg, id)) ?? vertex.name;
|
|
109
|
+
// a call qualified to (or resolved via a loaded library to) a different package than the
|
|
110
|
+
// function's is not this function - e.g. purrr::map, or a bare map() after library(purrr),
|
|
111
|
+
// is not the maps `map` plot; bare/matching-namespace calls still count.
|
|
112
|
+
if (info.package !== undefined) {
|
|
113
|
+
const callNamespace = identifier_1.Identifier.getNamespace(functionName);
|
|
114
|
+
if (callNamespace !== undefined && callNamespace !== info.package) {
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
103
118
|
const args = (0, resolve_argument_1.getArgumentStringValue)(vars, dfg, vertex, info.argIdx, info.argName, info.resolveValue, ictx);
|
|
104
119
|
const linkedArgs = collectValuesFromLinks(args, { dataflow, config, ctx: ictx }, linkedIds);
|
|
105
120
|
const linked = dropInfoOnLinkedIds(linkedIds);
|
|
@@ -123,6 +138,19 @@ function getResults(queries, { dataflow, config, normalize }, results, kind, fun
|
|
|
123
138
|
}
|
|
124
139
|
return false;
|
|
125
140
|
}
|
|
141
|
+
function ignoreOnArgSet() {
|
|
142
|
+
if (info.ignoreIf !== 'arg-set') {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
const hasArg = (name, index) => vertex.args.some((arg, idx) => graph_1.FunctionArgument.isNamed(arg) && arg.name === name ||
|
|
146
|
+
graph_1.FunctionArgument.isPositional(arg) && idx === index);
|
|
147
|
+
if (hasArg(info.argName, info.argIdx)) {
|
|
148
|
+
return false;
|
|
149
|
+
}
|
|
150
|
+
const margs = info.additionalArgs?.argSet;
|
|
151
|
+
(0, assert_1.guard)(margs, 'Need additional argument argSet when checking for arg-set');
|
|
152
|
+
return hasArg(margs.argName, margs.argIdx);
|
|
153
|
+
}
|
|
126
154
|
const foundValues = linkedArgs ?? args;
|
|
127
155
|
if (!foundValues) {
|
|
128
156
|
if (info.ignoreIf === 'arg-missing') {
|
|
@@ -133,7 +161,7 @@ function getResults(queries, { dataflow, config, normalize }, results, kind, fun
|
|
|
133
161
|
}
|
|
134
162
|
const record = (0, objects_1.compactRecord)({
|
|
135
163
|
nodeId: id,
|
|
136
|
-
functionName
|
|
164
|
+
functionName,
|
|
137
165
|
lexemeOfArgument: undefined,
|
|
138
166
|
linkedIds: linked?.length ? linked : undefined,
|
|
139
167
|
value: info.defaultValue ?? defaultValue
|
|
@@ -157,7 +185,7 @@ function getResults(queries, { dataflow, config, normalize }, results, kind, fun
|
|
|
157
185
|
continue;
|
|
158
186
|
}
|
|
159
187
|
}
|
|
160
|
-
else if (ignoreOnArgVal()) {
|
|
188
|
+
else if (ignoreOnArgVal() || ignoreOnArgSet()) {
|
|
161
189
|
continue;
|
|
162
190
|
}
|
|
163
191
|
for (const [arg, values] of foundValues.entries()) {
|
|
@@ -169,7 +197,7 @@ function getResults(queries, { dataflow, config, normalize }, results, kind, fun
|
|
|
169
197
|
const dep = resolvedValue ? d.getDependency(resolvedValue) ?? undefined : undefined;
|
|
170
198
|
finalResults.push((0, objects_1.compactRecord)({
|
|
171
199
|
nodeId: id,
|
|
172
|
-
functionName
|
|
200
|
+
functionName,
|
|
173
201
|
lexemeOfArgument: getLexeme(value, arg),
|
|
174
202
|
linkedIds: linked?.length ? linked : undefined,
|
|
175
203
|
value: resolvedValue ?? info.defaultValue ?? defaultValue,
|
|
@@ -7,6 +7,7 @@ import type { CallContextQueryResult } from '../call-context-query/call-context-
|
|
|
7
7
|
import type { Range } from 'semver';
|
|
8
8
|
import type { AsyncOrSync, MarkOptional } from 'ts-essentials';
|
|
9
9
|
import type { NamespaceInfo } from '../../../project/plugins/file-plugins/files/flowr-namespace-file';
|
|
10
|
+
import { Identifier } from '../../../dataflow/environments/identifier';
|
|
10
11
|
export declare const Unknown = "unknown";
|
|
11
12
|
export interface DependencyCategorySettings {
|
|
12
13
|
queryDisplayName?: string;
|
|
@@ -70,7 +71,8 @@ export type DependenciesQueryResult = BaseQueryResult & {
|
|
|
70
71
|
};
|
|
71
72
|
export interface DependencyInfo extends Record<string, unknown> {
|
|
72
73
|
nodeId: NodeId;
|
|
73
|
-
|
|
74
|
+
/** the called name; an {@link Identifier}, so a namespaced call like `maps::map` keeps its package */
|
|
75
|
+
functionName: Identifier;
|
|
74
76
|
linkedIds?: readonly NodeId[];
|
|
75
77
|
/** the lexeme is presented whenever the specific info is of {@link Unknown} */
|
|
76
78
|
lexemeOfArgument?: string;
|
|
@@ -76,12 +76,13 @@ function printResultSection(title, infos, result) {
|
|
|
76
76
|
}
|
|
77
77
|
result.push(` ╰ ${title}`);
|
|
78
78
|
const grouped = infos.reduce(function (groups, i) {
|
|
79
|
-
const
|
|
79
|
+
const key = identifier_1.Identifier.toString(i.functionName);
|
|
80
|
+
const array = groups.get(key);
|
|
80
81
|
if (array) {
|
|
81
82
|
array.push(i);
|
|
82
83
|
}
|
|
83
84
|
else {
|
|
84
|
-
groups.set(
|
|
85
|
+
groups.set(key, [i]);
|
|
85
86
|
}
|
|
86
87
|
return groups;
|
|
87
88
|
}, new Map());
|
|
@@ -29,7 +29,7 @@ export interface FunctionInfo extends FunctionArgInfo {
|
|
|
29
29
|
/** default value for the argument if no binding value is found, please be aware, that categories can define global defaults, these are overwritten by the per-function defaults */
|
|
30
30
|
defaultValue?: string;
|
|
31
31
|
/** the function is not to be counted as a dependency if the argument is missing */
|
|
32
|
-
ignoreIf?: 'arg-missing' | 'mode-only-read' | 'mode-only-write' | 'arg-true' | 'arg-false';
|
|
32
|
+
ignoreIf?: 'arg-missing' | 'mode-only-read' | 'mode-only-write' | 'arg-true' | 'arg-false' | 'arg-set';
|
|
33
33
|
/** additional info on arguments - e.g. for the mode flag */
|
|
34
34
|
additionalArgs?: Record<string, FunctionArgInfo>;
|
|
35
35
|
/** string replacements to apply to resolved values, e.g. `{ '': 'stdin' }` */
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OtherPathFunctions = void 0;
|
|
4
|
+
exports.OtherPathFunctions = [
|
|
5
|
+
{ package: 'base', name: 'setwd', argIdx: 0, argName: 'dir', resolveValue: true },
|
|
6
|
+
{ package: 'base', name: 'basename', argIdx: 0, argName: 'path', resolveValue: true },
|
|
7
|
+
{ package: 'base', name: 'dirname', argIdx: 0, argName: 'path', resolveValue: true },
|
|
8
|
+
{ package: 'base', name: 'normalizePath', argIdx: 0, argName: 'path', resolveValue: true },
|
|
9
|
+
{ package: 'base', name: 'file.info', argIdx: 'unnamed', resolveValue: true },
|
|
10
|
+
{ package: 'base', name: 'file.mode', argIdx: 'unnamed', resolveValue: true },
|
|
11
|
+
{ package: 'base', name: 'file.mtime', argIdx: 'unnamed', resolveValue: true },
|
|
12
|
+
{ package: 'base', name: 'file.size', argIdx: 'unnamed', resolveValue: true },
|
|
13
|
+
{ package: 'base', name: 'file.create', argIdx: 'unnamed', resolveValue: true },
|
|
14
|
+
{ package: 'base', name: 'file.exists', argIdx: 'unnamed', resolveValue: true },
|
|
15
|
+
{ package: 'base', name: 'file.remove', argIdx: 'unnamed', resolveValue: true },
|
|
16
|
+
{ package: 'base', name: 'file.rename', argIdx: 0, argName: 'from', resolveValue: true },
|
|
17
|
+
{ package: 'base', name: 'file.append', argIdx: 0, argName: 'file1', resolveValue: true },
|
|
18
|
+
{ package: 'base', name: 'file.copy', argIdx: 0, argName: 'from', resolveValue: true },
|
|
19
|
+
{ package: 'base', name: 'file.symlink', argIdx: 0, argName: 'from', resolveValue: true },
|
|
20
|
+
{ package: 'base', name: 'file.link', argIdx: 0, argName: 'from', resolveValue: true },
|
|
21
|
+
{ package: 'base', name: 'Sys.junction', argIdx: 0, argName: 'from', resolveValue: true },
|
|
22
|
+
{ package: 'base', name: 'dir.exists', argIdx: 0, argName: 'path', resolveValue: true },
|
|
23
|
+
{ package: 'base', name: 'list.files', argIdx: 0, argName: 'path', resolveValue: true, defaultValue: '.' },
|
|
24
|
+
{ package: 'base', name: 'list.dirs', argIdx: 0, argName: 'path', resolveValue: true, defaultValue: '.' },
|
|
25
|
+
{ package: 'base', name: 'dir', argIdx: 0, argName: 'path', resolveValue: true, defaultValue: '.' }
|
|
26
|
+
];
|
|
27
|
+
//# sourceMappingURL=other-path-functions.js.map
|
|
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ReadFunctions = void 0;
|
|
4
4
|
exports.ReadFunctions = [
|
|
5
5
|
{ package: 'base', name: 'parse', argName: 'file', resolveValue: true, ignoreIf: 'arg-missing' },
|
|
6
|
-
{ package: 'base', name: 'read.table', argIdx: 0, argName: 'file', resolveValue: true },
|
|
7
|
-
{ package: 'utils', name: 'read.csv', argIdx: 0, argName: 'file', resolveValue: true },
|
|
8
|
-
{ package: 'utils', name: 'read.csv2', argIdx: 0, argName: 'file', resolveValue: true },
|
|
9
|
-
{ package: 'utils', name: 'read.delim', argIdx: 0, argName: 'file', resolveValue: true },
|
|
6
|
+
{ package: 'base', name: 'read.table', argIdx: 0, argName: 'file', resolveValue: true, ignoreIf: 'arg-set', additionalArgs: { argSet: { argName: 'text' } } },
|
|
7
|
+
{ package: 'utils', name: 'read.csv', argIdx: 0, argName: 'file', resolveValue: true, ignoreIf: 'arg-set', additionalArgs: { argSet: { argName: 'text' } } },
|
|
8
|
+
{ package: 'utils', name: 'read.csv2', argIdx: 0, argName: 'file', resolveValue: true, ignoreIf: 'arg-set', additionalArgs: { argSet: { argName: 'text' } } },
|
|
9
|
+
{ package: 'utils', name: 'read.delim', argIdx: 0, argName: 'file', resolveValue: true, ignoreIf: 'arg-set', additionalArgs: { argSet: { argName: 'text' } } },
|
|
10
|
+
{ package: 'utils', name: 'read.delim2', argIdx: 0, argName: 'file', resolveValue: true, ignoreIf: 'arg-set', additionalArgs: { argSet: { argName: 'text' } } },
|
|
10
11
|
{ package: 'base', name: 'read.dcf', argIdx: 0, argName: 'file', resolveValue: true },
|
|
11
12
|
{ package: 'base', name: 'scan', argIdx: 0, argName: 'file', resolveValue: true },
|
|
12
13
|
{ package: 'utils', name: 'read.fwf', argIdx: 0, argName: 'file', resolveValue: true },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TestFunctions = void 0;
|
|
4
|
-
|
|
3
|
+
exports.TestFunctions = exports.ExpectFunctions = void 0;
|
|
4
|
+
exports.ExpectFunctions = {
|
|
5
5
|
type: 'link-to-nested-call',
|
|
6
6
|
callName: new RegExp(/* testthat */ '^(expect_equal|expect_identical|expect_error|expect_warning|expect_message|expect_condition|' +
|
|
7
7
|
'expect_true|expect_false|expect_all_equal|expect_all_true|expect_all_false|expect_lt|expect_lte|expect_gt|expect_gte|' +
|
|
@@ -15,6 +15,8 @@ const ExpectFunctions = {
|
|
|
15
15
|
'exit_file|exit_if_not|expect_equal|expect_identical|expect_equivalent|expect_true|expect_false|expect_silent|expect_null|' +
|
|
16
16
|
'expect_inherits|expect_error|expect_warning|expect_message|expect_stdout|expect_equal_to_reference|' +
|
|
17
17
|
'expect_equivalent_to_reference|expect_length|expect_match|ignore|report_side_effects|' +
|
|
18
|
+
/* testit */
|
|
19
|
+
'assert|' +
|
|
18
20
|
/* RUnit */
|
|
19
21
|
'checkEquals|checkEqualsNumeric|checkIdentical|checkTrue|checkException|' +
|
|
20
22
|
/* checkmate */
|
|
@@ -37,180 +39,19 @@ const ContextFunctions = {
|
|
|
37
39
|
callName: new RegExp('^(context)$')
|
|
38
40
|
};
|
|
39
41
|
exports.TestFunctions = [
|
|
40
|
-
{ package: 'testthat', name: 'test_that', argName: 'desc', argIdx: 0, resolveValue: true, linkTo: [ExpectFunctions, ContextFunctions] },
|
|
41
|
-
{ package: 'testthat', name: 'describe', argName: 'description', argIdx: 0, resolveValue: true, linkTo: [ExpectFunctions, ContextFunctions] },
|
|
42
|
-
{ package: 'testthat', name: 'it', argName: 'description', argIdx: 0, resolveValue: true, linkTo: [ExpectFunctions, ContextFunctions] },
|
|
43
|
-
|
|
44
|
-
{ package: 'testthat', name: '
|
|
45
|
-
{ package: 'testthat', name: '
|
|
46
|
-
{ package: '
|
|
47
|
-
{ package: '
|
|
48
|
-
{ package: '
|
|
49
|
-
{ package: '
|
|
50
|
-
{ package: '
|
|
51
|
-
{ package: '
|
|
52
|
-
{ package: '
|
|
53
|
-
{ package: '
|
|
54
|
-
{ package: 'testthat', name: 'expect_setequal' },
|
|
55
|
-
{ package: 'testthat', name: 'expect_mapequal' },
|
|
56
|
-
{ package: 'testthat', name: 'expect_contains' },
|
|
57
|
-
{ package: 'testthat', name: 'expect_in' },
|
|
58
|
-
{ package: 'testthat', name: 'expect_disjoint' },
|
|
59
|
-
{ package: 'testthat', name: 'expect_type' },
|
|
60
|
-
{ package: 'testthat', name: 'expect_s3_class' },
|
|
61
|
-
{ package: 'testthat', name: 'expect_s4_class' },
|
|
62
|
-
{ package: 'testthat', name: 'expect_r6_class' },
|
|
63
|
-
{ package: 'testthat', name: 'expect_s7_class' },
|
|
64
|
-
{ package: 'testthat', name: 'expect_vector' },
|
|
65
|
-
{ package: 'testthat', name: 'expect_no_error' },
|
|
66
|
-
{ package: 'testthat', name: 'expect_no_warning' },
|
|
67
|
-
{ package: 'testthat', name: 'expect_no_message' },
|
|
68
|
-
{ package: 'testthat', name: 'expect_no_condition' },
|
|
69
|
-
{ package: 'testthat', name: 'expect_invisible' },
|
|
70
|
-
{ package: 'testthat', name: 'expect_visible' },
|
|
71
|
-
{ package: 'testthat', name: 'expect_output' },
|
|
72
|
-
{ package: 'testthat', name: 'expect_silent' },
|
|
73
|
-
{ package: 'testthat', name: 'expect_snapshot' },
|
|
74
|
-
{ package: 'testthat', name: 'expect_snapshot_value' },
|
|
75
|
-
{ package: 'testthat', name: 'expect_snapshot_file' },
|
|
76
|
-
{ package: 'testthat', name: 'announce_snapshot_file' },
|
|
77
|
-
{ package: 'testthat', name: 'compare_file_binary' },
|
|
78
|
-
{ package: 'testthat', name: 'compare_file_text' },
|
|
79
|
-
{ package: 'testthat', name: 'snapshot_accept' },
|
|
80
|
-
{ package: 'testthat', name: 'snapshot_reject' },
|
|
81
|
-
{ package: 'testthat', name: 'snapshot_review' },
|
|
82
|
-
{ package: 'testthat', name: 'fail' },
|
|
83
|
-
{ package: 'testthat', name: 'pass' },
|
|
84
|
-
{ package: 'testthat', name: 'expect_success' },
|
|
85
|
-
{ package: 'testthat', name: 'expect_failure' },
|
|
86
|
-
{ package: 'testthat', name: 'expect_snapshot_failure' },
|
|
87
|
-
{ package: 'testthat', name: 'show_failure' },
|
|
88
|
-
|
|
89
|
-
{ package: 'tinytest', name: 'exit_file', argName: 'msg', resolveValue: true },
|
|
90
|
-
{ package: 'tinytest', name: 'exit_if_not' },
|
|
91
|
-
{ package: 'tinytest', name: 'expect_equal', argName: 'info', resolveValue: true },
|
|
92
|
-
{ package: 'tinytest', name: 'expect_identical', argName: 'info', resolveValue: true },
|
|
93
|
-
{ package: 'tinytest', name: 'expect_equivalent', argName: 'info', resolveValue: true },
|
|
94
|
-
{ package: 'tinytest', name: 'expect_true', argName: 'info', resolveValue: true },
|
|
95
|
-
{ package: 'tinytest', name: 'expect_false', argName: 'info', resolveValue: true },
|
|
96
|
-
{ package: 'tinytest', name: 'expect_silent', argName: 'info', resolveValue: true },
|
|
97
|
-
{ package: 'tinytest', name: 'expect_null', argName: 'info', resolveValue: true },
|
|
98
|
-
{ package: 'tinytest', name: 'expect_inherits', argName: 'info', resolveValue: true },
|
|
99
|
-
{ package: 'tinytest', name: 'expect_error', argName: 'info', resolveValue: true },
|
|
100
|
-
{ package: 'tinytest', name: 'expect_warning', argName: 'info', resolveValue: true },
|
|
101
|
-
{ package: 'tinytest', name: 'expect_message', argName: 'info', resolveValue: true },
|
|
102
|
-
{ package: 'tinytest', name: 'expect_stdout', argName: 'info', resolveValue: true },
|
|
103
|
-
{ package: 'tinytest', name: 'expect_equal_to_reference', argName: 'info', resolveValue: true },
|
|
104
|
-
{ package: 'tinytest', name: 'expect_equivalent_to_reference', argName: 'info', resolveValue: true },
|
|
105
|
-
{ package: 'tinytest', name: 'expect_length', argName: 'info', resolveValue: true },
|
|
106
|
-
{ package: 'tinytest', name: 'expect_match', argName: 'info', resolveValue: true },
|
|
107
|
-
{ package: 'tinytest', name: 'ignore' },
|
|
108
|
-
{ package: 'tinytest', name: 'report_side_effects' },
|
|
109
|
-
|
|
110
|
-
{ package: 'RUnit', name: 'checkEquals', argName: 'msg', argIdx: 2, resolveValue: true },
|
|
111
|
-
{ package: 'RUnit', name: 'checkEqualsNumeric', argName: 'msg', argIdx: 2, resolveValue: true },
|
|
112
|
-
{ package: 'RUnit', name: 'checkIdentical', argName: 'msg', argIdx: 2, resolveValue: true },
|
|
113
|
-
{ package: 'RUnit', name: 'checkTrue', argName: 'msg', argIdx: 1, resolveValue: true },
|
|
114
|
-
{ package: 'RUnit', name: 'checkException', argName: 'msg', argIdx: 1, resolveValue: true },
|
|
115
|
-
|
|
116
|
-
{ package: 'checkmate', name: 'assertAccess' },
|
|
117
|
-
{ package: 'checkmate', name: 'assert_access' },
|
|
118
|
-
{ package: 'checkmate', name: 'assertArray' },
|
|
119
|
-
{ package: 'checkmate', name: 'assert_array' },
|
|
120
|
-
{ package: 'checkmate', name: 'assert_atomic' },
|
|
121
|
-
{ package: 'checkmate', name: 'assertAtomic' },
|
|
122
|
-
{ package: 'checkmate', name: 'assert_atomic_vector' },
|
|
123
|
-
{ package: 'checkmate', name: 'assertAtomicVector' },
|
|
124
|
-
{ package: 'checkmate', name: 'assert_character' },
|
|
125
|
-
{ package: 'checkmate', name: 'assertCharacter' },
|
|
126
|
-
{ package: 'checkmate', name: 'assert_choice' },
|
|
127
|
-
{ package: 'checkmate', name: 'assertChoice' },
|
|
128
|
-
{ package: 'checkmate', name: 'assert_class' },
|
|
129
|
-
{ package: 'checkmate', name: 'assertClass' },
|
|
130
|
-
{ package: 'checkmate', name: 'assert_complex' },
|
|
131
|
-
{ package: 'checkmate', name: 'assertComplex' },
|
|
132
|
-
{ package: 'checkmate', name: 'assert_count' },
|
|
133
|
-
{ package: 'checkmate', name: 'assertCount' },
|
|
134
|
-
{ package: 'checkmate', name: 'assert_data_frame' },
|
|
135
|
-
{ package: 'checkmate', name: 'assertDataFrame' },
|
|
136
|
-
{ package: 'checkmate', name: 'assert_data_table' },
|
|
137
|
-
{ package: 'checkmate', name: 'assertDataTable' },
|
|
138
|
-
{ package: 'checkmate', name: 'assert_date' },
|
|
139
|
-
{ package: 'checkmate', name: 'assertDate' },
|
|
140
|
-
{ package: 'checkmate', name: 'assert_directory' },
|
|
141
|
-
{ package: 'checkmate', name: 'assertDirectory' },
|
|
142
|
-
{ package: 'checkmate', name: 'assert_directory_exists' },
|
|
143
|
-
{ package: 'checkmate', name: 'assertDirectoryExists' },
|
|
144
|
-
{ package: 'checkmate', name: 'assert_disjunct' },
|
|
145
|
-
{ package: 'checkmate', name: 'assertDisjunct' },
|
|
146
|
-
{ package: 'checkmate', name: 'assert_double' },
|
|
147
|
-
{ package: 'checkmate', name: 'assertDouble' },
|
|
148
|
-
{ package: 'checkmate', name: 'assert_environment' },
|
|
149
|
-
{ package: 'checkmate', name: 'assertEnvironment' },
|
|
150
|
-
{ package: 'checkmate', name: 'assert_factor' },
|
|
151
|
-
{ package: 'checkmate', name: 'assertFactor' },
|
|
152
|
-
{ package: 'checkmate', name: 'assert_false' },
|
|
153
|
-
{ package: 'checkmate', name: 'assertFalse' },
|
|
154
|
-
{ package: 'checkmate', name: 'assert_file' },
|
|
155
|
-
{ package: 'checkmate', name: 'assertFile' },
|
|
156
|
-
{ package: 'checkmate', name: 'assert_file_exists' },
|
|
157
|
-
{ package: 'checkmate', name: 'assertFileExists' },
|
|
158
|
-
{ package: 'checkmate', name: 'assert_flag' },
|
|
159
|
-
{ package: 'checkmate', name: 'assertFlag' },
|
|
160
|
-
{ package: 'checkmate', name: 'assert_formula' },
|
|
161
|
-
{ package: 'checkmate', name: 'assertFormula' },
|
|
162
|
-
{ package: 'checkmate', name: 'assert_function' },
|
|
163
|
-
{ package: 'checkmate', name: 'assertFunction' },
|
|
164
|
-
{ package: 'checkmate', name: 'assert_int' },
|
|
165
|
-
{ package: 'checkmate', name: 'assertInt' },
|
|
166
|
-
{ package: 'checkmate', name: 'assert_integer' },
|
|
167
|
-
{ package: 'checkmate', name: 'assertInteger' },
|
|
168
|
-
{ package: 'checkmate', name: 'assert_list' },
|
|
169
|
-
{ package: 'checkmate', name: 'assertList' },
|
|
170
|
-
{ package: 'checkmate', name: 'assert_logical' },
|
|
171
|
-
{ package: 'checkmate', name: 'assertLogical' },
|
|
172
|
-
{ package: 'checkmate', name: 'assert_matrix' },
|
|
173
|
-
{ package: 'checkmate', name: 'assertMatrix' },
|
|
174
|
-
{ package: 'checkmate', name: 'assert_multi_class' },
|
|
175
|
-
{ package: 'checkmate', name: 'assertMultiClass' },
|
|
176
|
-
{ package: 'checkmate', name: 'assert_named' },
|
|
177
|
-
{ package: 'checkmate', name: 'assertNamed' },
|
|
178
|
-
{ package: 'checkmate', name: 'assert_names' },
|
|
179
|
-
{ package: 'checkmate', name: 'assertNames' },
|
|
180
|
-
{ package: 'checkmate', name: 'assert_null' },
|
|
181
|
-
{ package: 'checkmate', name: 'assertNull' },
|
|
182
|
-
{ package: 'checkmate', name: 'assert_number' },
|
|
183
|
-
{ package: 'checkmate', name: 'assertNumber' },
|
|
184
|
-
{ package: 'checkmate', name: 'assert_numeric' },
|
|
185
|
-
{ package: 'checkmate', name: 'assertNumeric' },
|
|
186
|
-
{ package: 'checkmate', name: 'assert_os' },
|
|
187
|
-
{ package: 'checkmate', name: 'assertOs' },
|
|
188
|
-
{ package: 'checkmate', name: 'assert_path_for_output' },
|
|
189
|
-
{ package: 'checkmate', name: 'assertPathForOutput' },
|
|
190
|
-
{ package: 'checkmate', name: 'assert_permutation' },
|
|
191
|
-
{ package: 'checkmate', name: 'assertPermutation' },
|
|
192
|
-
{ package: 'checkmate', name: 'assert_posixct' },
|
|
193
|
-
{ package: 'checkmate', name: 'assertPOSIXct' },
|
|
194
|
-
{ package: 'checkmate', name: 'assert_r6' },
|
|
195
|
-
{ package: 'checkmate', name: 'assertR6' },
|
|
196
|
-
{ package: 'checkmate', name: 'assert_raw' },
|
|
197
|
-
{ package: 'checkmate', name: 'assertRaw' },
|
|
198
|
-
{ package: 'checkmate', name: 'assert_scalar' },
|
|
199
|
-
{ package: 'checkmate', name: 'assertScalar' },
|
|
200
|
-
{ package: 'checkmate', name: 'assert_scalar_na' },
|
|
201
|
-
{ package: 'checkmate', name: 'assertScalarNA' },
|
|
202
|
-
{ package: 'checkmate', name: 'assert_set_equal' },
|
|
203
|
-
{ package: 'checkmate', name: 'assertSetEqual' },
|
|
204
|
-
{ package: 'checkmate', name: 'assert_string' },
|
|
205
|
-
{ package: 'checkmate', name: 'assertString' },
|
|
206
|
-
{ package: 'checkmate', name: 'assert_subset' },
|
|
207
|
-
{ package: 'checkmate', name: 'assertSubset' },
|
|
208
|
-
{ package: 'checkmate', name: 'assert_tibble' },
|
|
209
|
-
{ package: 'checkmate', name: 'assertTibble' },
|
|
210
|
-
{ package: 'checkmate', name: 'assert_true' },
|
|
211
|
-
{ package: 'checkmate', name: 'assertTrue' },
|
|
212
|
-
{ package: 'checkmate', name: 'assert_vector' },
|
|
213
|
-
{ package: 'checkmate', name: 'assertVector' }
|
|
214
|
-
*/
|
|
42
|
+
{ package: 'testthat', name: 'test_that', argName: 'desc', argIdx: 0, resolveValue: true, linkTo: [exports.ExpectFunctions, ContextFunctions] },
|
|
43
|
+
{ package: 'testthat', name: 'describe', argName: 'description', argIdx: 0, resolveValue: true, linkTo: [exports.ExpectFunctions, ContextFunctions] },
|
|
44
|
+
{ package: 'testthat', name: 'it', argName: 'description', argIdx: 0, resolveValue: true, linkTo: [exports.ExpectFunctions, ContextFunctions] },
|
|
45
|
+
{ package: 'testthat', name: 'test_file' },
|
|
46
|
+
{ package: 'testthat', name: 'test_dir' },
|
|
47
|
+
{ package: 'testthat', name: 'test_package' },
|
|
48
|
+
{ package: 'tinytest', name: 'run_test_dir' },
|
|
49
|
+
{ package: 'tinytest', name: 'run_test_file' },
|
|
50
|
+
{ package: 'tinytest', name: 'test_all' },
|
|
51
|
+
{ package: 'tinytest', name: 'test_package' },
|
|
52
|
+
{ package: 'testit', name: 'test_pkg' },
|
|
53
|
+
{ package: 'RUnit', name: 'runTestSuite' },
|
|
54
|
+
{ package: 'RUnit', name: 'runTestFile' },
|
|
55
|
+
{ package: 'RUnit', name: 'defineTestSuite' },
|
|
215
56
|
];
|
|
216
57
|
//# sourceMappingURL=test-functions.js.map
|
|
@@ -7,7 +7,9 @@ const LinkToPlotCreation = [
|
|
|
7
7
|
];
|
|
8
8
|
exports.VisualizeFunctions =
|
|
9
9
|
// plot creation
|
|
10
|
-
default_builtin_config_1.GgPlotCreate.map(f => ({ package: 'ggplot2', name: f })).concat(default_builtin_config_1.TinyPlotCrate.map(f => ({ package: 'tinyplot', name: f })),
|
|
10
|
+
default_builtin_config_1.GgPlotCreate.map(f => ({ package: 'ggplot2', name: f })).concat(default_builtin_config_1.TinyPlotCrate.map(f => ({ package: 'tinyplot', name: f })),
|
|
11
|
+
// `map` is the maps-package plot; qualify it so it does not swallow purrr::map/dplyr::map etc.
|
|
12
|
+
default_builtin_config_1.GraphicsPlotCreate.map(f => f === 'map' ? { name: f, package: 'maps' } : { name: f }),
|
|
11
13
|
// plot modification
|
|
12
14
|
default_builtin_config_1.GgPlotImplicitAddons.concat(default_builtin_config_1.GgPlotAddons).map(f => ({ package: 'ggplot2', name: f, linkTo: LinkToPlotCreation })), default_builtin_config_1.TinyPlotAddons.map(f => ({ package: 'tinyplot', name: f, linkTo: LinkToPlotCreation })), default_builtin_config_1.GraphicsPlotAddons.map(f => ({ name: f, linkTo: LinkToPlotCreation }))).map(f => {
|
|
13
15
|
if (f.name !== 'hist') {
|
|
@@ -42,7 +42,7 @@ exports.DfShapeQueryDefinition = {
|
|
|
42
42
|
jsonFormatter: (queryResults) => {
|
|
43
43
|
const { domains, ...out } = queryResults;
|
|
44
44
|
const state = domains instanceof abstract_domain_1.AbstractDomain ? domains.value : domains;
|
|
45
|
-
const json = state === lattice_1.Bottom ? state.description : Object.fromEntries(state.entries().map(([key, domain]) => [key, domain?.
|
|
45
|
+
const json = state === lattice_1.Bottom ? state.description : Object.fromEntries(state.entries().map(([key, domain]) => [key, domain?.toJSON() ?? null]));
|
|
46
46
|
const result = { domains: json, ...out };
|
|
47
47
|
return result;
|
|
48
48
|
},
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BasicQueryData } from '../../base-query-format';
|
|
2
|
+
import type { DiceQuery, DiceQueryResult } from './dice-query-format';
|
|
3
|
+
/**
|
|
4
|
+
* Execute dice queries. Each dice computes the intersection of a forward slice from `from`
|
|
5
|
+
* and a backward slice from `to`, yielding only those program points that lie on a path
|
|
6
|
+
* from the start criteria to the end criteria.
|
|
7
|
+
*/
|
|
8
|
+
export declare function executeDiceQuery({ analyzer }: BasicQueryData, queries: readonly DiceQuery[]): Promise<DiceQueryResult>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.executeDiceQuery = executeDiceQuery;
|
|
4
|
+
const static_slicer_1 = require("../../../slicing/static/static-slicer");
|
|
5
|
+
const reconstruct_1 = require("../../../reconstruct/reconstruct");
|
|
6
|
+
const auto_select_defaults_1 = require("../../../reconstruct/auto-select/auto-select-defaults");
|
|
7
|
+
const magic_comments_1 = require("../../../reconstruct/auto-select/magic-comments");
|
|
8
|
+
const parse_1 = require("../../../slicing/criterion/parse");
|
|
9
|
+
const log_1 = require("../../../util/log");
|
|
10
|
+
/**
|
|
11
|
+
* Execute dice queries. Each dice computes the intersection of a forward slice from `from`
|
|
12
|
+
* and a backward slice from `to`, yielding only those program points that lie on a path
|
|
13
|
+
* from the start criteria to the end criteria.
|
|
14
|
+
*/
|
|
15
|
+
async function executeDiceQuery({ analyzer }, queries) {
|
|
16
|
+
const start = Date.now();
|
|
17
|
+
const results = {};
|
|
18
|
+
const ast = await analyzer.normalize();
|
|
19
|
+
const df = await analyzer.dataflow();
|
|
20
|
+
for (const query of queries) {
|
|
21
|
+
const key = JSON.stringify(query);
|
|
22
|
+
if (results[key]) {
|
|
23
|
+
log_1.log.warn(`Duplicate key for dice-query: ${key}, skipping...`);
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
const { from, to, noReconstruction, noMagicComments } = query;
|
|
27
|
+
const startIds = parse_1.SlicingCriteria.convertAll(from, ast.idMap);
|
|
28
|
+
const endIds = parse_1.SlicingCriteria.convertAll(to, ast.idMap);
|
|
29
|
+
const sliceStart = Date.now();
|
|
30
|
+
const slice = (0, static_slicer_1.staticDice)(analyzer.inspectContext(), df, ast, startIds, endIds, analyzer.flowrConfig.solver.slicer?.threshold);
|
|
31
|
+
const sliceEnd = Date.now();
|
|
32
|
+
if (noReconstruction) {
|
|
33
|
+
results[key] = { slice: { ...slice, '.meta': { timing: sliceEnd - sliceStart } } };
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
const reconstructStart = Date.now();
|
|
37
|
+
const reconstruct = (0, reconstruct_1.reconstructToCode)(ast, { nodes: slice.result }, noMagicComments ? auto_select_defaults_1.doNotAutoSelect : (0, magic_comments_1.makeMagicCommentHandler)(auto_select_defaults_1.doNotAutoSelect));
|
|
38
|
+
const reconstructEnd = Date.now();
|
|
39
|
+
results[key] = {
|
|
40
|
+
slice: { ...slice, '.meta': { timing: sliceEnd - sliceStart } },
|
|
41
|
+
reconstruct: { ...reconstruct, '.meta': { timing: reconstructEnd - reconstructStart } }
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'.meta': {
|
|
47
|
+
timing: Date.now() - start
|
|
48
|
+
},
|
|
49
|
+
results
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=dice-query-executor.js.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { BaseQueryFormat, BaseQueryResult } from '../../base-query-format';
|
|
2
|
+
import type { SlicingCriteria } from '../../../slicing/criterion/parse';
|
|
3
|
+
import type { NodeId } from '../../../r-bridge/lang-4.x/ast/model/processing/node-id';
|
|
4
|
+
import type { ParsedQueryLine } from '../../query';
|
|
5
|
+
import Joi from 'joi';
|
|
6
|
+
import { executeDiceQuery } from './dice-query-executor';
|
|
7
|
+
import type { ReplOutput } from '../../../cli/repl/commands/repl-main';
|
|
8
|
+
import type { CommandCompletions } from '../../../cli/repl/core';
|
|
9
|
+
import type { FlowrConfig } from '../../../config';
|
|
10
|
+
/**
|
|
11
|
+
* Computes a program dice: only those parts that lie on a path from the given start nodes to the given end nodes.
|
|
12
|
+
* Equivalent to the intersection of a forward slice from `from` and a backward slice from `to`.
|
|
13
|
+
*/
|
|
14
|
+
export interface DiceQuery extends BaseQueryFormat {
|
|
15
|
+
readonly type: 'dice';
|
|
16
|
+
/** Slicing criteria for the start of the dice (forward slice seeds) */
|
|
17
|
+
readonly from: SlicingCriteria;
|
|
18
|
+
/** Slicing criteria for the end of the dice (backward slice seeds) */
|
|
19
|
+
readonly to: SlicingCriteria;
|
|
20
|
+
/** Do not reconstruct the dice into readable code */
|
|
21
|
+
readonly noReconstruction?: boolean;
|
|
22
|
+
/** Should magic comments be ignored? */
|
|
23
|
+
readonly noMagicComments?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface DiceQueryResult extends BaseQueryResult {
|
|
26
|
+
results: Record<string, {
|
|
27
|
+
slice: {
|
|
28
|
+
timesHitThreshold: number;
|
|
29
|
+
result: ReadonlySet<NodeId>;
|
|
30
|
+
slicedFor: readonly NodeId[];
|
|
31
|
+
'.meta': {
|
|
32
|
+
timing: number;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
reconstruct?: {
|
|
36
|
+
code: string | string[];
|
|
37
|
+
'.meta': {
|
|
38
|
+
timing: number;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}>;
|
|
42
|
+
}
|
|
43
|
+
declare function diceQueryLineParser(output: ReplOutput, line: readonly string[], _config: FlowrConfig): ParsedQueryLine<'dice'>;
|
|
44
|
+
declare function diceQueryCompleter(line: readonly string[], startingNewArg: boolean, _config: FlowrConfig): CommandCompletions;
|
|
45
|
+
export declare const DiceQueryDefinition: {
|
|
46
|
+
readonly executor: typeof executeDiceQuery;
|
|
47
|
+
readonly asciiSummarizer: (formatter: import("../../../util/text/ansi").OutputFormatter, _analyzer: import("../../../project/flowr-analyzer").ReadonlyFlowrAnalysisProvider<import("../../../r-bridge/parser").KnownParser>, queryResults: BaseQueryResult, result: string[]) => true;
|
|
48
|
+
readonly fromLine: typeof diceQueryLineParser;
|
|
49
|
+
readonly completer: typeof diceQueryCompleter;
|
|
50
|
+
readonly schema: Joi.ObjectSchema<any>;
|
|
51
|
+
readonly flattenInvolvedNodes: (queryResults: BaseQueryResult) => NodeId[];
|
|
52
|
+
};
|
|
53
|
+
export {};
|