@eagleoutice/flowr 2.11.1 → 2.12.1
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 +187 -257
- package/abstract-interpretation/absint-visitor.d.ts +1 -0
- package/abstract-interpretation/data-frame/mappers/arguments.js +7 -1
- package/abstract-interpretation/domains/set-range-domain.js +1 -1
- package/abstract-interpretation/domains/set-upper-bound-domain.js +6 -2
- package/benchmark/slicer.d.ts +1 -1
- package/benchmark/slicer.js +3 -1
- package/benchmark/summarizer/second-phase/graph.js +5 -0
- package/cli/common/options.d.ts +8 -0
- package/cli/common/options.js +2 -0
- package/cli/common/scripts-info.d.ts +8 -0
- package/cli/repl/commands/repl-commands.d.ts +1 -0
- package/cli/repl/commands/repl-commands.js +66 -15
- package/cli/repl/commands/repl-dataflow.js +48 -4
- package/cli/repl/commands/repl-main.d.ts +2 -0
- package/cli/repl/commands/repl-main.js +5 -0
- package/cli/repl/commands/repl-query.d.ts +4 -1
- package/cli/repl/commands/repl-query.js +72 -22
- package/cli/repl/commands/repl-signature.d.ts +7 -0
- package/cli/repl/commands/repl-signature.js +119 -0
- package/cli/repl/core.d.ts +8 -1
- package/cli/repl/core.js +46 -6
- package/cli/repl/ghost-hint.d.ts +37 -0
- package/cli/repl/ghost-hint.js +72 -0
- package/cli/repl/parser/slice-query-parser.d.ts +11 -1
- package/cli/repl/parser/slice-query-parser.js +45 -16
- package/cli/repl/print-version.d.ts +2 -4
- package/cli/repl/print-version.js +41 -23
- package/cli/repl/server/connection.js +19 -17
- package/cli/slicer-app.d.ts +2 -0
- package/cli/slicer-app.js +3 -3
- package/cli/wiki.d.ts +2 -2
- package/cli/wiki.js +2 -2
- package/config.d.ts +63 -2
- package/config.js +64 -8
- package/control-flow/cfg-dead-code.js +0 -1
- package/control-flow/control-flow-graph.js +6 -6
- package/control-flow/diff-cfg.js +2 -2
- package/control-flow/semantic-cfg-guided-visitor.js +2 -0
- package/core/print/slice-diff-ansi.js +8 -8
- package/core/steps/all/core/20-dataflow.d.ts +2 -2
- package/core/steps/all/static-slicing/00-slice.d.ts +5 -0
- package/core/steps/all/static-slicing/00-slice.js +1 -1
- package/core/steps/all/static-slicing/10-reconstruct.d.ts +7 -0
- package/core/steps/all/static-slicing/10-reconstruct.js +6 -2
- package/core/steps/pipeline/default-pipelines.d.ts +20 -16
- package/data/r-base-packages.generated.d.ts +44 -0
- package/data/r-base-packages.generated.js +32 -0
- package/data/r-base-primitives.generated.d.ts +1 -0
- package/data/r-base-primitives.generated.js +15 -0
- package/data/sigdb/sigdb.remote.json +112 -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 +14 -4
- package/dataflow/environments/built-in.js +13 -2
- package/dataflow/environments/data-masking-functions.d.ts +12 -0
- package/dataflow/environments/data-masking-functions.js +46 -0
- package/dataflow/environments/default-builtin-config.d.ts +72 -19
- package/dataflow/environments/default-builtin-config.js +48 -14
- package/dataflow/environments/diff.js +1 -1
- package/dataflow/environments/environment.js +1 -2
- package/dataflow/environments/identifier.d.ts +11 -4
- package/dataflow/environments/identifier.js +28 -10
- package/dataflow/environments/resolve-by-name.js +16 -2
- package/dataflow/extractor.js +6 -3
- package/dataflow/graph/call-graph.d.ts +2 -2
- package/dataflow/graph/df-helper.d.ts +4 -4
- package/dataflow/graph/diff-dataflow-graph.js +2 -2
- package/dataflow/graph/edge.d.ts +3 -3
- package/dataflow/graph/edge.js +3 -3
- package/dataflow/graph/graph-helper.d.ts +2 -2
- package/dataflow/internal/linker.js +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.d.ts +7 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +20 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +1 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +2 -49
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +6 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-get.js +7 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-library.d.ts +19 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +111 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-pipe.js +13 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-replacement.js +2 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.d.ts +9 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.js +19 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-with.js +12 -4
- package/dataflow/internal/process/functions/call/common.js +8 -1
- package/dataflow/internal/process/functions/call/default-call-handling.js +6 -0
- package/dataflow/internal/process/functions/call/known-call-handling.d.ts +17 -0
- package/dataflow/internal/process/functions/call/known-call-handling.js +32 -0
- package/dataflow/internal/process/functions/call/named-call-handling.js +29 -7
- package/dataflow/internal/process/functions/process-argument.js +12 -1
- package/dataflow/internal/process/process-named-call.d.ts +18 -1
- package/dataflow/internal/process/process-named-call.js +94 -0
- package/dataflow/processor.d.ts +18 -0
- package/documentation/data/faq/faqs.js +5 -1
- package/documentation/doc-capabilities.js +1 -1
- package/documentation/doc-util/doc-cli-option.d.ts +10 -0
- package/documentation/doc-util/doc-cli-option.js +23 -0
- package/documentation/doc-util/doc-dfg.js +2 -1
- package/documentation/doc-util/doc-query.d.ts +9 -3
- package/documentation/doc-util/doc-query.js +9 -4
- package/documentation/wiki-dataflow-graph.js +8 -5
- package/documentation/wiki-interface.js +4 -2
- package/documentation/wiki-linter.js +1 -1
- package/documentation/wiki-linting-and-testing.js +4 -1
- package/documentation/wiki-mk/doc-context.d.ts +14 -0
- package/documentation/wiki-mk/doc-context.js +3 -0
- package/documentation/wiki-mk/doc-maker.js +3 -1
- package/documentation/wiki-query.js +36 -15
- package/documentation/wiki-setup.js +10 -7
- package/documentation/wiki-signature-database.d.ts +16 -0
- package/documentation/wiki-signature-database.js +293 -0
- package/linter/linter-format.d.ts +7 -0
- package/linter/linter-rules.d.ts +10 -9
- package/linter/rules/naming-convention.d.ts +1 -0
- package/linter/rules/naming-convention.js +2 -0
- package/linter/rules/no-leaked-credentials.js +1 -2
- package/linter/rules/roxygen-arguments.js +18 -5
- package/linter/rules/stop-with-call-arg.js +2 -2
- package/linter/rules/undefined-symbol-util.d.ts +36 -0
- package/linter/rules/undefined-symbol-util.js +149 -0
- package/linter/rules/undefined-symbol.d.ts +58 -17
- package/linter/rules/undefined-symbol.js +143 -33
- package/linter/rules/unused-definition.d.ts +8 -1
- package/linter/rules/unused-definition.js +126 -1
- package/package.json +22 -10
- package/project/context/abstract-flowr-analyzer-context.js +7 -1
- package/project/context/flowr-analyzer-context.d.ts +8 -0
- package/project/context/flowr-analyzer-context.js +10 -0
- package/project/context/flowr-analyzer-dependencies-context.d.ts +28 -4
- package/project/context/flowr-analyzer-dependencies-context.js +51 -2
- package/project/context/flowr-analyzer-files-context.d.ts +1 -0
- package/project/context/flowr-analyzer-files-context.js +2 -1
- package/project/context/flowr-analyzer-functions-context.js +1 -1
- package/project/context/flowr-file.d.ts +5 -0
- package/project/context/flowr-file.js +5 -0
- package/project/flowr-analyzer-builder.js +12 -2
- package/project/plugins/file-plugins/files/flowr-description-file.js +6 -3
- package/project/plugins/file-plugins/files/flowr-namespace-file.js +9 -3
- package/project/plugins/file-plugins/files/flowr-news-file.js +1 -3
- package/project/plugins/file-plugins/flowr-analyzer-inst-file-plugin.d.ts +26 -0
- package/project/plugins/file-plugins/flowr-analyzer-inst-file-plugin.js +39 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-description-file-plugin.js +1 -1
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +2 -2
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-namespace-file-plugin.js +1 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.d.ts +18 -2
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.js +19 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.d.ts +120 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +518 -0
- package/project/plugins/package-version-plugins/package.d.ts +5 -3
- package/project/plugins/package-version-plugins/package.js +27 -25
- package/project/plugins/plugin-registry.d.ts +3 -2
- package/project/plugins/plugin-registry.js +4 -2
- package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.js +7 -2
- package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +3 -1
- package/project/sigdb/build.d.ts +131 -0
- package/project/sigdb/build.js +628 -0
- package/project/sigdb/codec.d.ts +51 -0
- package/project/sigdb/codec.js +122 -0
- package/project/sigdb/decode.d.ts +58 -0
- package/project/sigdb/decode.js +129 -0
- package/project/sigdb/decompress.d.ts +44 -0
- package/project/sigdb/decompress.js +176 -0
- package/project/sigdb/hash.d.ts +9 -0
- package/project/sigdb/hash.js +54 -0
- package/project/sigdb/index-format.d.ts +40 -0
- package/project/sigdb/index-format.js +28 -0
- package/project/sigdb/manifest.d.ts +68 -0
- package/project/sigdb/manifest.js +146 -0
- package/project/sigdb/reader.d.ts +250 -0
- package/project/sigdb/reader.js +692 -0
- package/project/sigdb/schema.d.ts +196 -0
- package/project/sigdb/schema.js +33 -0
- package/project/sigdb/sigdb-download.d.ts +65 -0
- package/project/sigdb/sigdb-download.js +237 -0
- package/project/sigdb/signature-match.d.ts +26 -0
- package/project/sigdb/signature-match.js +40 -0
- package/project/sigdb/version.d.ts +20 -0
- package/project/sigdb/version.js +55 -0
- package/queries/catalog/absint-query/absint-query-executor.d.ts +6 -0
- package/queries/catalog/absint-query/absint-query-executor.js +63 -0
- package/queries/catalog/absint-query/absint-query-format.d.ts +37 -0
- package/queries/catalog/absint-query/absint-query-format.js +102 -0
- package/queries/catalog/call-context-query/call-context-query-executor.js +1 -3
- package/queries/catalog/config-query/config-query-format.d.ts +3 -1
- package/queries/catalog/config-query/config-query-format.js +68 -9
- package/queries/catalog/dataflow-query/dataflow-query-format.js +11 -1
- package/queries/catalog/dependencies-query/dependencies-query-executor.js +1 -1
- package/queries/catalog/linter-query/linter-query-executor.d.ts +2 -0
- package/queries/catalog/linter-query/linter-query-executor.js +6 -1
- package/queries/catalog/linter-query/linter-query-format.d.ts +2 -1
- package/queries/catalog/linter-query/linter-query-format.js +40 -8
- package/queries/catalog/project-query/project-query-executor.d.ts +15 -0
- package/queries/catalog/project-query/project-query-executor.js +96 -4
- package/queries/catalog/project-query/project-query-format.d.ts +44 -0
- package/queries/catalog/project-query/project-query-format.js +33 -2
- package/queries/catalog/signature-query/signature-query-executor.d.ts +29 -0
- package/queries/catalog/signature-query/signature-query-executor.js +461 -0
- package/queries/catalog/signature-query/signature-query-format.d.ts +138 -0
- package/queries/catalog/signature-query/signature-query-format.js +76 -0
- package/queries/catalog/signature-query/signature-query-render.d.ts +15 -0
- package/queries/catalog/signature-query/signature-query-render.js +155 -0
- package/queries/catalog/static-slice-query/static-slice-query-executor.js +9 -3
- package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +10 -0
- package/queries/catalog/static-slice-query/static-slice-query-format.js +19 -1
- package/queries/query-print.js +5 -0
- package/queries/query.d.ts +15 -5
- package/queries/query.js +7 -4
- package/r-bridge/init.js +5 -1
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.d.ts +10 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.js +55 -0
- package/r-bridge/lang-4.x/ast/model/processing/node-id.d.ts +16 -0
- package/r-bridge/lang-4.x/ast/model/processing/node-id.js +27 -0
- package/r-bridge/lang-4.x/ast/parser/json/format.js +89 -2
- package/r-bridge/lang-4.x/ast/parser/main/internal/structure/normalize-expressions.js +2 -4
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +2 -1
- package/r-bridge/parser.d.ts +2 -0
- package/r-bridge/retriever.js +4 -1
- package/r-bridge/roxygen2/documentation-provider.js +2 -1
- package/r-bridge/shell.d.ts +5 -0
- package/r-bridge/shell.js +17 -1
- package/reconstruct/inline/source-inline-map.d.ts +48 -0
- package/reconstruct/inline/source-inline-map.js +94 -0
- package/reconstruct/reconstruct.d.ts +19 -2
- package/reconstruct/reconstruct.js +79 -16
- package/search/search-executor/search-generators.js +5 -22
- package/search/search-executor/search-transformer.js +10 -6
- package/slicing/criterion/parse.d.ts +28 -4
- package/slicing/criterion/parse.js +133 -18
- package/slicing/static/slice-call.d.ts +24 -1
- package/slicing/static/slice-call.js +90 -0
- package/slicing/static/static-slicer.d.ts +7 -0
- package/slicing/static/static-slicer.js +38 -3
- package/util/collections/arrays.d.ts +4 -5
- package/util/collections/arrays.js +7 -18
- package/util/hash.d.ts +14 -0
- package/util/hash.js +31 -0
- package/util/mermaid/dfg.d.ts +7 -2
- package/util/mermaid/dfg.js +53 -13
- package/util/r-base-packages.d.ts +19 -0
- package/util/r-base-packages.js +72 -0
- package/util/r-license.js +2 -10
- package/util/r-version.d.ts +45 -15
- package/util/r-version.js +97 -36
- package/util/range.d.ts +15 -0
- package/util/range.js +39 -0
- package/util/schema.d.ts +10 -0
- package/util/schema.js +22 -0
- package/util/text/ansi.d.ts +3 -0
- package/util/text/ansi.js +10 -0
- package/util/text/args.js +1 -2
- package/util/version.js +28 -8
- package/data/pkgdb/pkgdb-latest.json.br +0 -0
- package/data/pkgdb/pkgdb-tiny.json.br +0 -0
- package/documentation/wiki-package-database.d.ts +0 -9
- package/documentation/wiki-package-database.js +0 -63
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-pkgdb-plugin.d.ts +0 -63
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-pkgdb-plugin.js +0 -176
- package/project/plugins/package-version-plugins/pkgdb.d.ts +0 -133
- package/project/plugins/package-version-plugins/pkgdb.js +0 -370
- package/queries/catalog/df-shape-query/df-shape-query-executor.d.ts +0 -6
- package/queries/catalog/df-shape-query/df-shape-query-executor.js +0 -58
- package/queries/catalog/df-shape-query/df-shape-query-format.d.ts +0 -27
- package/queries/catalog/df-shape-query/df-shape-query-format.js +0 -56
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RBasePrimitives = void 0;
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/*
|
|
6
|
+
* GENERATED, do not edit: base names the flowr-sigdb base export list drops (it kept only plain closures,
|
|
7
|
+
* discarding `.Primitive`/`.Internal`-backed ones) plus base constants. R 4.6.0 (2026-04-24). Regenerate:
|
|
8
|
+
* Rscript -e 'e<-getNamespaceExports("base");b<-asNamespace("base");
|
|
9
|
+
* ui<-function(f)!is.primitive(f)&&is.function(f)&&any(grepl(".Internal",deparse(body(f)),fixed=TRUE));
|
|
10
|
+
* fn<-Filter(function(n){o<-get(n,envir=b);is.function(o)&&(is.primitive(o)||ui(o))},e);
|
|
11
|
+
* cn<-intersect(c(".Machine",".Platform","pi","T","F","LETTERS","letters","month.name","month.abb","R.version.string"),e);
|
|
12
|
+
* writeLines(sort(unique(c(fn,cn))))'
|
|
13
|
+
*/
|
|
14
|
+
exports.RBasePrimitives = new Set(["-", ":", "::", ":::", "!", "!=", "...elt", "...length", "...names", "..getNamespace", ".bincode", ".C", ".cache_class", ".Call", ".Call.graphics", ".class2", ".col", ".colMeans", ".colSums", ".detach", ".doSortWrap", ".doWrap", ".External", ".External.graphics", ".External2", ".Fortran", ".getNamespace", ".Internal", ".isMethodsDispatchOn", ".kappa_tri", ".Last.value", ".Machine", ".makeMessage", ".mapply", ".Platform", ".pretty", ".Primitive", ".primTrace", ".primUntrace", ".row", ".row_names_info", ".rowMeans", ".rowSums", ".signalSimpleWarning", ".subset", ".subset2", ".traceback", "(", "[", "[.data.frame", "[[", "[[<-", "[<-", "{", "@", "@<-", "*", "/", "&", "&&", "%*%", "%/%", "%%", "^", "+", "<", "<-", "<<-", "<=", "=", "==", ">", ">=", "|", "||", "~", "$", "$<-", "abbreviate", "abs", "acos", "acosh", "activeBindingFunction", "agrep", "agrepl", "all", "all.names", "all.vars", "allowInterrupts", "any", "anyDuplicated.default", "anyNA", "aperm.default", "Arg", "args", "array", "as.call", "as.character", "as.character.default", "as.character.factor", "as.complex", "as.Date.POSIXlt", "as.double", "as.environment", "as.expression.default", "as.function.default", "as.integer", "as.list.default", "as.list.environment", "as.logical", "as.name", "as.numeric", "as.pairlist", "as.POSIXct.POSIXlt", "as.POSIXlt.Date", "as.POSIXlt.POSIXct", "as.raw", "as.single.default", "as.symbol", "as.vector", "asin", "asinh", "asplit", "asS3", "asS4", "assign", "atan", "atan2", "atanh", "attach", "attachNamespace", "attr", "attr<-", "attributes", "attributes<-", "backsolve", "balancePOSIXlt", "baseenv", "basename", "besselI", "besselJ", "besselK", "besselY", "beta", "bindingIsActive", "bindingIsLocked", "bindtextdomain", "bitwAnd", "bitwNot", "bitwOr", "bitwShiftL", "bitwShiftR", "bitwXor", "body", "break", "browser", "browserCondition", "browserSetDebug", "browserText", "builtins", "bzfile", "c", "call", "capabilities", "cat", "cbind", "ceiling", "char.expand", "character", "charmatch", "charToRaw", "chartr", "chol.default", "chol2inv", "choose", "class", "class<-", "clearPushBack", "close.connection", "col", "colMeans", "colSums", "commandArgs", "comment", "comment<-", "complex", "computeRestarts", "Conj", "cos", "cosh", "cospi", "crossprod", "Cstack_info", "cummax", "cummin", "cumprod", "cumsum", "curlGetHeaders", "date", "debug", "debuggingState", "debugonce", "declare", "delayedAssign", "deparse", "detach", "determinant.matrix", "diag", "digamma", "dim", "dim<-", "dimnames", "dimnames<-", "dir", "dir.create", "dir.exists", "dirname", "do.call", "double", "dput", "drop", "dump", "duplicated.default", "dyn.load", "dyn.unload", "eapply", "eigen", "emptyenv", "enc2native", "enc2utf8", "encodeString", "Encoding", "Encoding<-", "endsWith", "env.profile", "environment", "environment<-", "environmentIsLocked", "environmentName", "eval", "evalq", "Exec", "exists", "exp", "expm1", "expression", "extSoftVersion", "F", "fifo", "file", "file.access", "file.append", "file.choose", "file.copy", "file.create", "file.exists", "file.info", "file.link", "file.path", "file.remove", "file.rename", "file.show", "file.symlink", "findInterval", "findRestart", "floor", "flush.connection", "for", "forceAndCall", "formals", "format.default", "format.info", "format.POSIXlt", "formatC", "forwardsolve", "function", "gamma", "gc", "gc.time", "gcinfo", "gctorture", "gctorture2", "get", "get0", "getAllConnections", "getConnection", "getDLLRegisteredRoutines.DLLInfo", "geterrmessage", "getExportedValue", "getLoadedDLLs", "getNamespace", "getNativeSymbolInfo", "getOption", "gettext", "getwd", "globalCallingHandlers", "globalenv", "gregexpr", "grep", "grepl", "grepRaw", "grouping", "gsub", "gzcon", "gzfile", "iconv", "iconvlist", "icuGetCollate", "icuSetCollate", "identical", "if", "Im", "importIntoEnv", "infoRDS", "inherits", "integer", "interactive", "intToBits", "intToUtf8", "invisible", "invokeRestart", "invokeRestartInteractively", "is.array", "is.atomic", "is.call", "is.character", "is.complex", "is.double", "is.environment", "is.expression", "is.finite", "is.function", "is.infinite", "is.integer", "is.language", "is.list", "is.loaded", "is.logical", "is.matrix", "is.na", "is.name", "is.nan", "is.null", "is.numeric", "is.object", "is.pairlist", "is.raw", "is.recursive", "is.single", "is.symbol", "is.unsorted", "is.vector", "isatty", "isdebugged", "isIncomplete", "isNamespace", "isNamespaceLoaded", "isOpen", "isS4", "isSeekable", "kappa.default", "l10n_info", "La_library", "La_version", "La.svd", "lapply", "lazyLoad", "lazyLoadDBexec", "lazyLoadDBfetch", "lbeta", "lchoose", "length", "length<-", "lengths", "letters", "LETTERS", "levels<-", "lgamma", "libcurlVersion", "list", "list.dirs", "list.files", "list2env", "load", "loadedNamespaces", "loadNamespace", "lockBinding", "lockEnvironment", "log", "log10", "log1p", "log2", "logical", "ls", "make.names", "make.unique", "makeActiveBinding", "mapply", "match", "match.call", "matrix", "max", "max.col", "mean.default", "mem.maxNSize", "mem.maxVSize", "memCompress", "memDecompress", "memory.profile", "merge.data.frame", "mget", "min", "missing", "Mod", "month.abb", "month.name", "names", "names<-", "nargs", "nchar", "new.env", "next", "NextMethod", "ngettext", "norm", "normalizePath", "numeric", "numToBits", "numToInts", "nzchar", "objects", "oldClass", "oldClass<-", "on.exit", "open.connection", "Ops.numeric_version", "options", "order", "packBits", "parent.env", "parent.env<-", "parent.frame", "parse", "paste", "paste0", "path.expand", "pcre_config", "pi", "pipe", "pmatch", "pmax", "pmax.int", "pmin", "pmin.int", "polyroot", "pos.to.env", "pretty.default", "print.default", "prmatrix", "proc.time", "prod", "psigamma", "pushBack", "pushBackLength", "q", "qr.coef", "qr.default", "qr.qty", "qr.qy", "quit", "quote", "R_compiled_by", "R.home", "R.Version", "R.version.string", "range", "rank", "rapply", "raw", "rawConnection", "rawConnectionValue", "rawShift", "rawToBits", "rawToChar", "rbind", "rcond", "Re", "read.dcf", "readBin", "readChar", "readline", "readLines", "readRDS", "readRenviron", "Recall", "reg.finalizer", "regexec", "regexpr", "registerS3methods", "remove", "rep", "rep_len", "rep.int", "repeat", "require", "requireNamespace", "retracemem", "return", "returnValue", "rm", "RNGkind", "round", "row", "rowMeans", "rowsum.data.frame", "rowsum.default", "rowSums", "sample.int", "save", "saveRDS", "scan", "search", "seek.connection", "seq_along", "seq_len", "seq.int", "sequence.default", "serialize", "serverSocket", "set.seed", "setSessionTimeLimit", "setTimeLimit", "setwd", "sign", "signalCondition", "signif", "sin", "sinh", "sink", "sink.number", "sinpi", "socketAccept", "socketConnection", "socketSelect", "socketTimeout", "solve.default", "sort.int", "sort.list", "source", "split.default", "sprintf", "sqrt", "standardGeneric", "startsWith", "stderr", "stdin", "stdout", "stop", "storage.mode<-", "str2expression", "str2lang", "strptime", "strrep", "strsplit", "strtoi", "strtrim", "sub", "substitute", "substr", "substr<-", "substring", "substring<-", "sum", "summary.connection", "suspendInterrupts", "switch", "sys.call", "sys.calls", "Sys.chmod", "sys.frame", "sys.frames", "sys.function", "Sys.getenv", "Sys.getlocale", "Sys.getpid", "Sys.glob", "Sys.info", "sys.load.image", "Sys.localeconv", "sys.nframe", "sys.on.exit", "sys.parent", "sys.parents", "Sys.readlink", "Sys.setenv", "Sys.setFileTime", "Sys.setlocale", "Sys.sleep", "Sys.time", "Sys.timezone", "Sys.umask", "Sys.unsetenv", "system", "system2", "T", "t.default", "tabulate", "Tailcall", "tan", "tanh", "tanpi", "tcrossprod", "tempdir", "tempfile", "textConnection", "textConnectionValue", "tolower", "topenv", "toupper", "tracemem", "tracingState", "trigamma", "trunc", "truncate.connection", "try", "tryCatch", "tryInvokeRestart", "typeof", "unCfillPOSIXlt", "unclass", "undebug", "unique.default", "unlink", "unlist", "unloadNamespace", "unlockBinding", "unserialize", "untracemem", "unz", "url", "UseMethod", "utf8ToInt", "validEnc", "validUTF8", "vapply", "vector", "warning", "which", "which.max", "which.min", "while", "withCallingHandlers", "withRestarts", "withVisible", "writeBin", "writeChar", "writeLines", "xtfrm", "xzfile", "zstdfile"]);
|
|
15
|
+
//# sourceMappingURL=r-base-primitives.generated.js.map
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "flowr-sigdb-remote",
|
|
3
|
+
"schema": 1,
|
|
4
|
+
"tag": "sigdb-v2.11.1",
|
|
5
|
+
"repo": "flowr-analysis/flowr",
|
|
6
|
+
"shards": {
|
|
7
|
+
"base.base-current.sigs.ndjson.br": {
|
|
8
|
+
"sha256": "7f286f58a0d7392c5ccaf6ac3c2bdf6ede1a110494e16a54785726f7e3ad82e0",
|
|
9
|
+
"bytes": 90026
|
|
10
|
+
},
|
|
11
|
+
"base.base-current.sigs.ndjson.zst": {
|
|
12
|
+
"sha256": "def3c61083ce9c8cfca726c3529de44203e0f20623b5f072bd959fb82a6858f0",
|
|
13
|
+
"bytes": 95945
|
|
14
|
+
},
|
|
15
|
+
"base.base-full.sigs.ndjson.br": {
|
|
16
|
+
"sha256": "2511f0f5359b6311bdc84039ae369303fcaa5fa6994a26d17ebef39eaa508051",
|
|
17
|
+
"bytes": 413427
|
|
18
|
+
},
|
|
19
|
+
"base.base-full.sigs.ndjson.zst": {
|
|
20
|
+
"sha256": "8e5fc30ce66cb84a12c6d38bb0f3a1867861d10ae8eea316b5ef742725feb71b",
|
|
21
|
+
"bytes": 446108
|
|
22
|
+
},
|
|
23
|
+
"base.dict.sigs.ndjson.br": {
|
|
24
|
+
"sha256": "c0c56f235e188b2c5fc8da0b14a5e65001c07e84545b43b0e5e6dde81478809b",
|
|
25
|
+
"bytes": 49594
|
|
26
|
+
},
|
|
27
|
+
"base.dict.sigs.ndjson.zst": {
|
|
28
|
+
"sha256": "a0ed8c80dc11f47b5d56d2d50069d9f7ef5e5bbd8ee3282b2ad6872fd3aa75a5",
|
|
29
|
+
"bytes": 51020
|
|
30
|
+
},
|
|
31
|
+
"base.manifest.json.br": {
|
|
32
|
+
"sha256": "e16a304fbd7b2683c14366fe327a2b5f70df8492105063027a5a6f2f99faca3b",
|
|
33
|
+
"bytes": 806
|
|
34
|
+
},
|
|
35
|
+
"base.manifest.json.zst": {
|
|
36
|
+
"sha256": "bbf77e03d4823ecc843f27c4fb3e2fe7bd530bd46b53c724e0a758c2f6388e21",
|
|
37
|
+
"bytes": 908
|
|
38
|
+
},
|
|
39
|
+
"current.base-current.sigs.ndjson.br": {
|
|
40
|
+
"sha256": "075907a7a839fe6348e54a73ef3d27e4a3590d1d80042bd80f1435795233c733",
|
|
41
|
+
"bytes": 97450
|
|
42
|
+
},
|
|
43
|
+
"current.base-current.sigs.ndjson.zst": {
|
|
44
|
+
"sha256": "d42d7bc6cdccad5d73912c6ab6e9100da618efc37f9cb18cf2bdbb6055002690",
|
|
45
|
+
"bytes": 102863
|
|
46
|
+
},
|
|
47
|
+
"current.base-full.sigs.ndjson.br": {
|
|
48
|
+
"sha256": "67fdf17991c0929726ab2c53bbf21f748cfd82ecbd2d18cead61f612281b86b2",
|
|
49
|
+
"bytes": 427751
|
|
50
|
+
},
|
|
51
|
+
"current.base-full.sigs.ndjson.zst": {
|
|
52
|
+
"sha256": "33b6a02564e027b8f0afb70e4b41ce3d3d52ce2bc829f8de10e3c4ebf2929aba",
|
|
53
|
+
"bytes": 461423
|
|
54
|
+
},
|
|
55
|
+
"current.current-rest.sigs.ndjson.br": {
|
|
56
|
+
"sha256": "4fa862ffab29cfcd5873259def33b321b2c35b4c2fb87eb4053c30bb677005ab",
|
|
57
|
+
"bytes": 14698884
|
|
58
|
+
},
|
|
59
|
+
"current.current-rest.sigs.ndjson.zst": {
|
|
60
|
+
"sha256": "ed912393f82bf2708e15c43113cb822f6fdc432ee2c67ef6caf7d566decd824b",
|
|
61
|
+
"bytes": 15430613
|
|
62
|
+
},
|
|
63
|
+
"current.current-top.sigs.ndjson.br": {
|
|
64
|
+
"sha256": "4566fffc038fc70eb5102a85315c880c52e328b60fb037d474902c6593383649",
|
|
65
|
+
"bytes": 2038147
|
|
66
|
+
},
|
|
67
|
+
"current.current-top.sigs.ndjson.zst": {
|
|
68
|
+
"sha256": "b3f0872dabfb437797f8a6d0061b3550cb6c651fb632a48fb7ffbc39447e3b4e",
|
|
69
|
+
"bytes": 2141474
|
|
70
|
+
},
|
|
71
|
+
"current.dict.sigs.ndjson.br": {
|
|
72
|
+
"sha256": "2918d69a78938fc14793f0942d0767aeddb2228216f56b38bc2f905e288523b5",
|
|
73
|
+
"bytes": 6528828
|
|
74
|
+
},
|
|
75
|
+
"current.dict.sigs.ndjson.zst": {
|
|
76
|
+
"sha256": "1ace15643727bef4ded7df21a3df18205e672d6f83e62c2f1d5822c8cf0ef048",
|
|
77
|
+
"bytes": 6664857
|
|
78
|
+
},
|
|
79
|
+
"current.manifest.json.br": {
|
|
80
|
+
"sha256": "7c1f7553773c8096cd21a75c7be784600ae4b43ca8d0265ca1ae0a9e6cc48d26",
|
|
81
|
+
"bytes": 419290
|
|
82
|
+
},
|
|
83
|
+
"current.manifest.json.zst": {
|
|
84
|
+
"sha256": "fb276919e6237da465c69796ced744ceaf4f24dcf53751e4c9567cf3f3841696",
|
|
85
|
+
"bytes": 447011
|
|
86
|
+
},
|
|
87
|
+
"history.dict.sigs.ndjson.br": {
|
|
88
|
+
"sha256": "e52d71c9143b6a6a7943dc625082d4590901aa7db6fc3ae1db5c816cb5cbeab0",
|
|
89
|
+
"bytes": 6804901
|
|
90
|
+
},
|
|
91
|
+
"history.dict.sigs.ndjson.zst": {
|
|
92
|
+
"sha256": "8c4565d5bec609117bfb45bca3bd21606415c0315eb26345f275966a79177d7d",
|
|
93
|
+
"bytes": 6935498
|
|
94
|
+
},
|
|
95
|
+
"history.history-rest.sigs.ndjson.br": {
|
|
96
|
+
"sha256": "08127837136fb9bd51757149153df0056fce36e7a93ac92948149189ec689f47",
|
|
97
|
+
"bytes": 28938888
|
|
98
|
+
},
|
|
99
|
+
"history.history-rest.sigs.ndjson.zst": {
|
|
100
|
+
"sha256": "b21abfdc8fddc5781809ff1f171034c5699ac5a383c0f5b95812da3b19404410",
|
|
101
|
+
"bytes": 31321399
|
|
102
|
+
},
|
|
103
|
+
"history.manifest.json.br": {
|
|
104
|
+
"sha256": "e91cf94c118a1567a4dfdfdb387f56c828067109d59c0435fae0ff6c5d03c03f",
|
|
105
|
+
"bytes": 335113
|
|
106
|
+
},
|
|
107
|
+
"history.manifest.json.zst": {
|
|
108
|
+
"sha256": "3a1617068e19a766bf327dc251df0180f748bfa11ba286800b155f0c369a856b",
|
|
109
|
+
"bytes": 360716
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -12,6 +12,8 @@ export declare enum BuiltInProcName {
|
|
|
12
12
|
AssignmentLike = "builtin:assign-l",
|
|
13
13
|
/** for super-assignments like `<<-` and `->>`, see {@link processAssignment} */
|
|
14
14
|
SuperAssignment = "builtin:s-assign",
|
|
15
|
+
/** for calls like `Hmisc::getHdata(x)` that define the variable they are given while also reading it, see {@link processDefineArgument} */
|
|
16
|
+
DefineArgument = "builtin:define-arg",
|
|
15
17
|
/** for `break` calls */
|
|
16
18
|
Break = "builtin:break",
|
|
17
19
|
/** the default built-in processor, see {@link defaultBuiltInProcessor} */
|
|
@@ -72,6 +74,8 @@ export declare enum BuiltInProcName {
|
|
|
72
74
|
S7NewGeneric = "builtin:s7-new-generic",
|
|
73
75
|
/** for `S7_dispatch` calls (and their implicit creations), see {@link processS7Dispatch} */
|
|
74
76
|
S7Dispatch = "builtin:s7-dispatch",
|
|
77
|
+
/** for `make_constructor(class)` calls that return a class constructor function, see {@link processMakeConstructor} */
|
|
78
|
+
S7MakeConstructor = "builtin:s7-make-constructor",
|
|
75
79
|
/** for `source` calls, see {@link processSourceCall} */
|
|
76
80
|
Source = "builtin:source",
|
|
77
81
|
/** for special binary operators like `%x%`, see {@link processSpecialBinOp} */
|
|
@@ -16,6 +16,8 @@ var BuiltInProcName;
|
|
|
16
16
|
BuiltInProcName["AssignmentLike"] = "builtin:assign-l";
|
|
17
17
|
/** for super-assignments like `<<-` and `->>`, see {@link processAssignment} */
|
|
18
18
|
BuiltInProcName["SuperAssignment"] = "builtin:s-assign";
|
|
19
|
+
/** for calls like `Hmisc::getHdata(x)` that define the variable they are given while also reading it, see {@link processDefineArgument} */
|
|
20
|
+
BuiltInProcName["DefineArgument"] = "builtin:define-arg";
|
|
19
21
|
/** for `break` calls */
|
|
20
22
|
BuiltInProcName["Break"] = "builtin:break";
|
|
21
23
|
/** the default built-in processor, see {@link defaultBuiltInProcessor} */
|
|
@@ -76,6 +78,8 @@ var BuiltInProcName;
|
|
|
76
78
|
BuiltInProcName["S7NewGeneric"] = "builtin:s7-new-generic";
|
|
77
79
|
/** for `S7_dispatch` calls (and their implicit creations), see {@link processS7Dispatch} */
|
|
78
80
|
BuiltInProcName["S7Dispatch"] = "builtin:s7-dispatch";
|
|
81
|
+
/** for `make_constructor(class)` calls that return a class constructor function, see {@link processMakeConstructor} */
|
|
82
|
+
BuiltInProcName["S7MakeConstructor"] = "builtin:s7-make-constructor";
|
|
79
83
|
/** for `source` calls, see {@link processSourceCall} */
|
|
80
84
|
BuiltInProcName["Source"] = "builtin:source";
|
|
81
85
|
/** for special binary operators like `%x%`, see {@link processSpecialBinOp} */
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { DataflowProcessorInformation } from '../processor';
|
|
2
2
|
import type { DataflowInformation, ExitPointType } from '../info';
|
|
3
|
+
import type { NseArguments } from '../internal/process/functions/call/known-call-handling';
|
|
3
4
|
import { processAccess } from '../internal/process/functions/call/built-in/built-in-access';
|
|
4
5
|
import { processIfThenElse } from '../internal/process/functions/call/built-in/built-in-if-then-else';
|
|
5
|
-
import { processAssignment, processAssignmentLike } from '../internal/process/functions/call/built-in/built-in-assignment';
|
|
6
|
+
import { processAssignment, processAssignmentLike, processDefineArgument } from '../internal/process/functions/call/built-in/built-in-assignment';
|
|
6
7
|
import { processSpecialBinOp } from '../internal/process/functions/call/built-in/built-in-special-bin-op';
|
|
7
8
|
import { processPipe } from '../internal/process/functions/call/built-in/built-in-pipe';
|
|
8
9
|
import { processForLoop } from '../internal/process/functions/call/built-in/built-in-for-loop';
|
|
@@ -40,7 +41,7 @@ import { processRegisterHook } from '../internal/process/functions/call/built-in
|
|
|
40
41
|
import { processLocal } from '../internal/process/functions/call/built-in/built-in-local';
|
|
41
42
|
import { processS3Dispatch } from '../internal/process/functions/call/built-in/built-in-s-three-dispatch';
|
|
42
43
|
import { processRecall } from '../internal/process/functions/call/built-in/built-in-recall';
|
|
43
|
-
import { processS7NewGeneric } from '../internal/process/functions/call/built-in/built-in-s-seven-new-generic';
|
|
44
|
+
import { processS7NewGeneric, processMakeConstructor } from '../internal/process/functions/call/built-in/built-in-s-seven-new-generic';
|
|
44
45
|
import { processS7Dispatch } from '../internal/process/functions/call/built-in/built-in-s-seven-dispatch';
|
|
45
46
|
import { BuiltInProcName } from './built-in-proc-name';
|
|
46
47
|
import { processPurrrFormula } from '../internal/process/functions/call/built-in/built-in-purrr-formula';
|
|
@@ -68,9 +69,16 @@ export interface DefaultBuiltInProcessorConfiguration extends ForceArguments {
|
|
|
68
69
|
readonly returnsNthArgument?: number | 'last';
|
|
69
70
|
readonly cfg?: ExitPointType;
|
|
70
71
|
readonly readAllArguments?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Propagate the `out` references produced by the arguments instead of dropping them.
|
|
74
|
+
* Set this for functions that are transparent about their arguments, like `(`.
|
|
75
|
+
*/
|
|
76
|
+
readonly keepArgumentOut?: boolean;
|
|
71
77
|
readonly hasUnknownSideEffects?: boolean | LinkTo<RegExp | string>;
|
|
72
78
|
/** record mapping the actual function name called to the arguments that should be treated as function calls */
|
|
73
79
|
readonly treatAsFnCall?: Record<string, readonly string[]>;
|
|
80
|
+
/** Mark the given arguments as {@link EdgeType.NonStandardEvaluation|non-standard-evaluated}, like `quote`. */
|
|
81
|
+
readonly markArgsAsNSE?: NseArguments;
|
|
74
82
|
/**
|
|
75
83
|
* Name that should be used for the origin (useful when needing to differentiate between
|
|
76
84
|
* functions like 'return' that use the default builtin processor)
|
|
@@ -87,13 +95,14 @@ export interface BuiltInEvalHandlerArgs {
|
|
|
87
95
|
blocked?: Set<NodeId>;
|
|
88
96
|
}
|
|
89
97
|
export type BuiltInEvalHandler = (args: BuiltInEvalHandlerArgs) => Value;
|
|
90
|
-
declare function defaultBuiltInProcessor<OtherInfo>(name: RSymbol<OtherInfo & ParentInformation>, args: readonly PotentiallyEmptyRArgument<OtherInfo & ParentInformation>[], rootId: NodeId, data: DataflowProcessorInformation<OtherInfo & ParentInformation>, { returnsNthArgument, useAsProcessor, forceArgs, readAllArguments, cfg, hasUnknownSideEffects, treatAsFnCall }: DefaultBuiltInProcessorConfiguration): DataflowInformation;
|
|
91
|
-
declare function defaultBuiltInProcessorReadallArgs<OtherInfo>(name: RSymbol<OtherInfo & ParentInformation>, args: readonly PotentiallyEmptyRArgument<OtherInfo & ParentInformation>[], rootId: NodeId, data: DataflowProcessorInformation<OtherInfo & ParentInformation>, { useAsProcessor, forceArgs }: Pick<DefaultBuiltInProcessorConfiguration, 'useAsProcessor' | 'forceArgs'>): DataflowInformation;
|
|
98
|
+
declare function defaultBuiltInProcessor<OtherInfo>(name: RSymbol<OtherInfo & ParentInformation>, args: readonly PotentiallyEmptyRArgument<OtherInfo & ParentInformation>[], rootId: NodeId, data: DataflowProcessorInformation<OtherInfo & ParentInformation>, { returnsNthArgument, useAsProcessor, forceArgs, readAllArguments, cfg, hasUnknownSideEffects, treatAsFnCall, markArgsAsNSE: nse, keepArgumentOut }: DefaultBuiltInProcessorConfiguration): DataflowInformation;
|
|
99
|
+
declare function defaultBuiltInProcessorReadallArgs<OtherInfo>(name: RSymbol<OtherInfo & ParentInformation>, args: readonly PotentiallyEmptyRArgument<OtherInfo & ParentInformation>[], rootId: NodeId, data: DataflowProcessorInformation<OtherInfo & ParentInformation>, { useAsProcessor, forceArgs, markArgsAsNSE: nse }: Pick<DefaultBuiltInProcessorConfiguration, 'useAsProcessor' | 'forceArgs' | 'markArgsAsNSE'>): DataflowInformation;
|
|
92
100
|
export declare const BuiltInProcessorMapper: {
|
|
93
101
|
readonly "builtin:acc": typeof processAccess;
|
|
94
102
|
readonly "builtin:app": typeof processApply;
|
|
95
103
|
readonly "builtin:assign": typeof processAssignment;
|
|
96
104
|
readonly "builtin:assign-l": typeof processAssignmentLike;
|
|
105
|
+
readonly "builtin:define-arg": typeof processDefineArgument;
|
|
97
106
|
readonly "builtin:d": typeof defaultBuiltInProcessor;
|
|
98
107
|
readonly "builtin:d-ra": typeof defaultBuiltInProcessorReadallArgs;
|
|
99
108
|
readonly "builtin:eval": typeof processEvalCall;
|
|
@@ -116,6 +125,7 @@ export declare const BuiltInProcessorMapper: {
|
|
|
116
125
|
readonly "builtin:rm": typeof processRm;
|
|
117
126
|
readonly "builtin:s3-dp": typeof processS3Dispatch;
|
|
118
127
|
readonly "builtin:s7-new-generic": typeof processS7NewGeneric;
|
|
128
|
+
readonly "builtin:s7-make-constructor": typeof processMakeConstructor;
|
|
119
129
|
readonly "builtin:s7-dispatch": typeof processS7Dispatch;
|
|
120
130
|
readonly "builtin:source": typeof processSourceCall;
|
|
121
131
|
readonly "builtin:s-bop": typeof processSpecialBinOp;
|
|
@@ -47,8 +47,14 @@ const built_in_stack_env_1 = require("../internal/process/functions/call/built-i
|
|
|
47
47
|
const built_in_attach_1 = require("../internal/process/functions/call/built-in/built-in-attach");
|
|
48
48
|
const built_in_with_1 = require("../internal/process/functions/call/built-in/built-in-with");
|
|
49
49
|
const built_in_namespace_access_1 = require("../internal/process/functions/call/built-in/built-in-namespace-access");
|
|
50
|
-
function defaultBuiltInProcessor(name, args, rootId, data, { returnsNthArgument, useAsProcessor = built_in_proc_name_1.BuiltInProcName.Default, forceArgs, readAllArguments, cfg, hasUnknownSideEffects, treatAsFnCall }) {
|
|
50
|
+
function defaultBuiltInProcessor(name, args, rootId, data, { returnsNthArgument, useAsProcessor = built_in_proc_name_1.BuiltInProcName.Default, forceArgs, readAllArguments, cfg, hasUnknownSideEffects, treatAsFnCall, markArgsAsNSE: nse, keepArgumentOut }) {
|
|
51
51
|
const { information: res, processedArguments } = (0, known_call_handling_1.processKnownFunctionCall)({ name, args, rootId, data, forceArgs, origin: useAsProcessor });
|
|
52
|
+
if (nse !== undefined) {
|
|
53
|
+
(0, known_call_handling_1.markArgumentsAsNonStandardEvaluation)(res.graph, rootId, processedArguments, nse);
|
|
54
|
+
}
|
|
55
|
+
if (keepArgumentOut) {
|
|
56
|
+
res.out = [...res.out, ...processedArguments.flatMap(arg => arg?.out ?? [])];
|
|
57
|
+
}
|
|
52
58
|
if (returnsNthArgument !== undefined) {
|
|
53
59
|
const arg = returnsNthArgument === 'last' ? processedArguments.at(-1) : processedArguments[returnsNthArgument];
|
|
54
60
|
if (arg !== undefined) {
|
|
@@ -106,7 +112,7 @@ function defaultBuiltInProcessor(name, args, rootId, data, { returnsNthArgument,
|
|
|
106
112
|
}
|
|
107
113
|
return res;
|
|
108
114
|
}
|
|
109
|
-
function defaultBuiltInProcessorReadallArgs(name, args, rootId, data, { useAsProcessor = built_in_proc_name_1.BuiltInProcName.Default, forceArgs }) {
|
|
115
|
+
function defaultBuiltInProcessorReadallArgs(name, args, rootId, data, { useAsProcessor = built_in_proc_name_1.BuiltInProcName.Default, forceArgs, markArgsAsNSE: nse }) {
|
|
110
116
|
const { information, processedArguments } = (0, known_call_handling_1.processKnownFunctionCall)({ name, args, rootId, data, forceArgs, origin: useAsProcessor });
|
|
111
117
|
const g = information.graph;
|
|
112
118
|
for (const arg of processedArguments) {
|
|
@@ -114,6 +120,9 @@ function defaultBuiltInProcessorReadallArgs(name, args, rootId, data, { useAsPro
|
|
|
114
120
|
g.addEdge(rootId, arg.entryPoint, edge_1.EdgeType.Reads);
|
|
115
121
|
}
|
|
116
122
|
}
|
|
123
|
+
if (nse !== undefined) {
|
|
124
|
+
(0, known_call_handling_1.markArgumentsAsNonStandardEvaluation)(g, rootId, processedArguments, nse);
|
|
125
|
+
}
|
|
117
126
|
return information;
|
|
118
127
|
}
|
|
119
128
|
exports.BuiltInProcessorMapper = {
|
|
@@ -121,6 +130,7 @@ exports.BuiltInProcessorMapper = {
|
|
|
121
130
|
[built_in_proc_name_1.BuiltInProcName.Apply]: built_in_apply_1.processApply,
|
|
122
131
|
[built_in_proc_name_1.BuiltInProcName.Assignment]: built_in_assignment_1.processAssignment,
|
|
123
132
|
[built_in_proc_name_1.BuiltInProcName.AssignmentLike]: built_in_assignment_1.processAssignmentLike,
|
|
133
|
+
[built_in_proc_name_1.BuiltInProcName.DefineArgument]: built_in_assignment_1.processDefineArgument,
|
|
124
134
|
[built_in_proc_name_1.BuiltInProcName.Default]: defaultBuiltInProcessor,
|
|
125
135
|
[built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs]: defaultBuiltInProcessorReadallArgs,
|
|
126
136
|
[built_in_proc_name_1.BuiltInProcName.Eval]: built_in_eval_1.processEvalCall,
|
|
@@ -143,6 +153,7 @@ exports.BuiltInProcessorMapper = {
|
|
|
143
153
|
[built_in_proc_name_1.BuiltInProcName.Rm]: built_in_rm_1.processRm,
|
|
144
154
|
[built_in_proc_name_1.BuiltInProcName.S3Dispatch]: built_in_s_three_dispatch_1.processS3Dispatch,
|
|
145
155
|
[built_in_proc_name_1.BuiltInProcName.S7NewGeneric]: built_in_s_seven_new_generic_1.processS7NewGeneric,
|
|
156
|
+
[built_in_proc_name_1.BuiltInProcName.S7MakeConstructor]: built_in_s_seven_new_generic_1.processMakeConstructor,
|
|
146
157
|
[built_in_proc_name_1.BuiltInProcName.S7Dispatch]: built_in_s_seven_dispatch_1.processS7Dispatch,
|
|
147
158
|
[built_in_proc_name_1.BuiltInProcName.Source]: built_in_source_1.processSourceCall,
|
|
148
159
|
[built_in_proc_name_1.BuiltInProcName.SpecialBinOp]: built_in_special_bin_op_1.processSpecialBinOp,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Identifier, PkgName } from './identifier';
|
|
2
|
+
/**
|
|
3
|
+
* Functions that data-mask their non-first argument: the symbols passed there name columns of the first
|
|
4
|
+
* (data) argument, not variables in scope. The {@link DefaultBuiltinConfig} marks those arguments
|
|
5
|
+
* {@link EdgeType.NonStandardEvaluation|NSE}; the pipe processor ({@link processPipe}) re-applies the same
|
|
6
|
+
* treatment when the data is supplied through `%>%`/`|>` (then every explicit argument is a column).
|
|
7
|
+
*/
|
|
8
|
+
export declare const DataMaskingFunctions: readonly (readonly [string, PkgName])[];
|
|
9
|
+
/** The {@link DataMaskingFunctions} as {@link Identifier}s, for the built-in configuration. */
|
|
10
|
+
export declare const DataMaskingFunctionIdentifiers: Identifier[];
|
|
11
|
+
/** Names to treat as data-masking in the pipe: the {@link DataMaskingFunctions} plus `with`/`within` (own processor). */
|
|
12
|
+
export declare const DataMaskingFunctionNames: ReadonlySet<string>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataMaskingFunctionNames = exports.DataMaskingFunctionIdentifiers = exports.DataMaskingFunctions = void 0;
|
|
4
|
+
const identifier_1 = require("./identifier");
|
|
5
|
+
/**
|
|
6
|
+
* Functions that data-mask their non-first argument: the symbols passed there name columns of the first
|
|
7
|
+
* (data) argument, not variables in scope. The {@link DefaultBuiltinConfig} marks those arguments
|
|
8
|
+
* {@link EdgeType.NonStandardEvaluation|NSE}; the pipe processor ({@link processPipe}) re-applies the same
|
|
9
|
+
* treatment when the data is supplied through `%>%`/`|>` (then every explicit argument is a column).
|
|
10
|
+
*/
|
|
11
|
+
exports.DataMaskingFunctions = [
|
|
12
|
+
['subset', "base" /* PkgName.Base */], ['transform', "base" /* PkgName.Base */],
|
|
13
|
+
['filter', "dplyr" /* PkgName.Dplyr */], ['filter_out', "janitor" /* PkgName.Janitor */],
|
|
14
|
+
['mutate', "dplyr" /* PkgName.Dplyr */], ['transmute', "dplyr" /* PkgName.Dplyr */],
|
|
15
|
+
['summarise', "dplyr" /* PkgName.Dplyr */], ['summarize', "dplyr" /* PkgName.Dplyr */],
|
|
16
|
+
['arrange', "dplyr" /* PkgName.Dplyr */], ['group_by', "dplyr" /* PkgName.Dplyr */],
|
|
17
|
+
['distinct', "dplyr" /* PkgName.Dplyr */], ['count', "dplyr" /* PkgName.Dplyr */],
|
|
18
|
+
['tally', "dplyr" /* PkgName.Dplyr */], ['reframe', "dplyr" /* PkgName.Dplyr */],
|
|
19
|
+
['slice', "dplyr" /* PkgName.Dplyr */], ['slice_head', "dplyr" /* PkgName.Dplyr */],
|
|
20
|
+
['slice_tail', "dplyr" /* PkgName.Dplyr */], ['slice_min', "dplyr" /* PkgName.Dplyr */],
|
|
21
|
+
['slice_max', "dplyr" /* PkgName.Dplyr */], ['slice_sample', "dplyr" /* PkgName.Dplyr */],
|
|
22
|
+
['pull', "dplyr" /* PkgName.Dplyr */], ['rename', "dplyr" /* PkgName.Dplyr */],
|
|
23
|
+
['relocate', "dplyr" /* PkgName.Dplyr */], ['select', "dplyr" /* PkgName.Dplyr */],
|
|
24
|
+
['group_split', "dplyr" /* PkgName.Dplyr */], ['add_count', "dplyr" /* PkgName.Dplyr */],
|
|
25
|
+
['add_tally', "dplyr" /* PkgName.Dplyr */], ['nest_by', "dplyr" /* PkgName.Dplyr */],
|
|
26
|
+
['pivot_longer', "tidyr" /* PkgName.TidyR */], ['pivot_wider', "tidyr" /* PkgName.TidyR */],
|
|
27
|
+
['gather', "tidyr" /* PkgName.TidyR */], ['spread', "tidyr" /* PkgName.TidyR */],
|
|
28
|
+
['separate', "tidyr" /* PkgName.TidyR */], ['separate_rows', "tidyr" /* PkgName.TidyR */],
|
|
29
|
+
['separate_wider_delim', "tidyr" /* PkgName.TidyR */], ['separate_wider_regex', "tidyr" /* PkgName.TidyR */],
|
|
30
|
+
['separate_wider_position', "tidyr" /* PkgName.TidyR */], ['unite', "tidyr" /* PkgName.TidyR */],
|
|
31
|
+
['extract', "tidyr" /* PkgName.TidyR */], ['nest', "tidyr" /* PkgName.TidyR */],
|
|
32
|
+
['unnest', "tidyr" /* PkgName.TidyR */], ['unnest_longer', "tidyr" /* PkgName.TidyR */],
|
|
33
|
+
['unnest_wider', "tidyr" /* PkgName.TidyR */], ['hoist', "tidyr" /* PkgName.TidyR */],
|
|
34
|
+
['chop', "tidyr" /* PkgName.TidyR */], ['unchop', "tidyr" /* PkgName.TidyR */],
|
|
35
|
+
['pack', "tidyr" /* PkgName.TidyR */], ['unpack', "tidyr" /* PkgName.TidyR */],
|
|
36
|
+
['drop_na', "tidyr" /* PkgName.TidyR */], ['fill', "tidyr" /* PkgName.TidyR */],
|
|
37
|
+
['replace_na', "tidyr" /* PkgName.TidyR */], ['complete', "tidyr" /* PkgName.TidyR */],
|
|
38
|
+
['expand', "tidyr" /* PkgName.TidyR */], ['crossing', "tidyr" /* PkgName.TidyR */],
|
|
39
|
+
['nesting', "tidyr" /* PkgName.TidyR */], ['expand_grid', "tidyr" /* PkgName.TidyR */],
|
|
40
|
+
['uncount', "tidyr" /* PkgName.TidyR */]
|
|
41
|
+
];
|
|
42
|
+
/** The {@link DataMaskingFunctions} as {@link Identifier}s, for the built-in configuration. */
|
|
43
|
+
exports.DataMaskingFunctionIdentifiers = exports.DataMaskingFunctions.map(([name, pkg]) => identifier_1.Identifier.from([name, pkg]));
|
|
44
|
+
/** Names to treat as data-masking in the pipe: the {@link DataMaskingFunctions} plus `with`/`within` (own processor). */
|
|
45
|
+
exports.DataMaskingFunctionNames = new Set([...exports.DataMaskingFunctions.map(([name]) => name), 'with', 'within']);
|
|
46
|
+
//# sourceMappingURL=data-masking-functions.js.map
|
|
@@ -6,6 +6,7 @@ import { CascadeAction } from '../../queries/catalog/call-context-query/cascade-
|
|
|
6
6
|
import { KnownHooks } from '../hooks';
|
|
7
7
|
import { Identifier } from './identifier';
|
|
8
8
|
import { BuiltInProcName } from './built-in-proc-name';
|
|
9
|
+
import { NseArguments } from '../internal/process/functions/call/known-call-handling';
|
|
9
10
|
/** Which stack environment an env-returning/-transforming builtin denotes (see {@link StackEnvBuiltins}). */
|
|
10
11
|
export declare enum StackEnvKind {
|
|
11
12
|
Global = 0,
|
|
@@ -101,7 +102,31 @@ export declare const DefaultBuiltinConfig: [{
|
|
|
101
102
|
readonly assumePrimitive: true;
|
|
102
103
|
}, {
|
|
103
104
|
readonly type: "function";
|
|
104
|
-
readonly names: [Identifier
|
|
105
|
+
readonly names: [Identifier];
|
|
106
|
+
readonly processor: BuiltInProcName.DefaultReadAllArgs;
|
|
107
|
+
readonly config: {
|
|
108
|
+
readonly markArgsAsNSE: NseArguments.All;
|
|
109
|
+
};
|
|
110
|
+
readonly assumePrimitive: false;
|
|
111
|
+
}, {
|
|
112
|
+
readonly type: "function";
|
|
113
|
+
readonly names: Identifier[];
|
|
114
|
+
readonly processor: BuiltInProcName.Default;
|
|
115
|
+
readonly config: {
|
|
116
|
+
readonly markArgsAsNSE: NseArguments.AllButFirst;
|
|
117
|
+
};
|
|
118
|
+
readonly assumePrimitive: false;
|
|
119
|
+
}, {
|
|
120
|
+
readonly type: "function";
|
|
121
|
+
readonly names: [Identifier, Identifier, Identifier];
|
|
122
|
+
readonly processor: BuiltInProcName.DefaultReadAllArgs;
|
|
123
|
+
readonly config: {
|
|
124
|
+
readonly markArgsAsNSE: NseArguments.All;
|
|
125
|
+
};
|
|
126
|
+
readonly assumePrimitive: false;
|
|
127
|
+
}, {
|
|
128
|
+
readonly type: "function";
|
|
129
|
+
readonly names: [Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier];
|
|
105
130
|
readonly processor: BuiltInProcName.DefaultReadAllArgs;
|
|
106
131
|
readonly config: {};
|
|
107
132
|
readonly assumePrimitive: true;
|
|
@@ -169,6 +194,7 @@ export declare const DefaultBuiltinConfig: [{
|
|
|
169
194
|
readonly config: {
|
|
170
195
|
readonly returnsNthArgument: 0;
|
|
171
196
|
readonly forceArgs: "all";
|
|
197
|
+
readonly keepArgumentOut: true;
|
|
172
198
|
readonly hasUnknownSideEffects: {
|
|
173
199
|
readonly type: "link-to-last-call";
|
|
174
200
|
readonly callName: RegExp;
|
|
@@ -182,8 +208,19 @@ export declare const DefaultBuiltinConfig: [{
|
|
|
182
208
|
readonly config: {
|
|
183
209
|
readonly returnsNthArgument: 0;
|
|
184
210
|
readonly forceArgs: "all";
|
|
211
|
+
readonly keepArgumentOut: true;
|
|
185
212
|
};
|
|
186
213
|
readonly assumePrimitive: true;
|
|
214
|
+
}, {
|
|
215
|
+
readonly type: "function";
|
|
216
|
+
readonly names: [Identifier, Identifier];
|
|
217
|
+
readonly processor: BuiltInProcName.Default;
|
|
218
|
+
readonly config: {
|
|
219
|
+
readonly returnsNthArgument: 0;
|
|
220
|
+
readonly forceArgs: "all";
|
|
221
|
+
readonly keepArgumentOut: true;
|
|
222
|
+
};
|
|
223
|
+
readonly assumePrimitive: false;
|
|
187
224
|
}, {
|
|
188
225
|
readonly type: "function";
|
|
189
226
|
readonly names: string[];
|
|
@@ -259,6 +296,7 @@ export declare const DefaultBuiltinConfig: [{
|
|
|
259
296
|
readonly processor: BuiltInProcName.Default;
|
|
260
297
|
readonly config: {
|
|
261
298
|
readonly returnsNthArgument: 0;
|
|
299
|
+
readonly keepArgumentOut: true;
|
|
262
300
|
};
|
|
263
301
|
readonly assumePrimitive: true;
|
|
264
302
|
}, {
|
|
@@ -286,6 +324,7 @@ export declare const DefaultBuiltinConfig: [{
|
|
|
286
324
|
readonly config: {
|
|
287
325
|
readonly hasUnknownSideEffects: true;
|
|
288
326
|
readonly forceArgs: readonly [true];
|
|
327
|
+
readonly markArgsAsNSE: NseArguments.First;
|
|
289
328
|
readonly treatAsFnCall: {
|
|
290
329
|
readonly '.Call': readonly [".NAME"];
|
|
291
330
|
readonly '.External': readonly [".NAME"];
|
|
@@ -339,6 +378,7 @@ export declare const DefaultBuiltinConfig: [{
|
|
|
339
378
|
readonly config: {
|
|
340
379
|
readonly returnsNthArgument: 0;
|
|
341
380
|
readonly cfg: ExitPointType.Return;
|
|
381
|
+
readonly keepArgumentOut: true;
|
|
342
382
|
readonly useAsProcessor: BuiltInProcName.Return;
|
|
343
383
|
};
|
|
344
384
|
readonly assumePrimitive: true;
|
|
@@ -597,6 +637,14 @@ export declare const DefaultBuiltinConfig: [{
|
|
|
597
637
|
readonly canBeReplacement: true;
|
|
598
638
|
};
|
|
599
639
|
readonly assumePrimitive: true;
|
|
640
|
+
}, {
|
|
641
|
+
readonly type: "function";
|
|
642
|
+
readonly names: [Identifier, Identifier];
|
|
643
|
+
readonly processor: BuiltInProcName.DefineArgument;
|
|
644
|
+
readonly config: {
|
|
645
|
+
readonly superAssignment: true;
|
|
646
|
+
};
|
|
647
|
+
readonly assumePrimitive: false;
|
|
600
648
|
}, {
|
|
601
649
|
readonly type: "function";
|
|
602
650
|
readonly names: [Identifier, Identifier];
|
|
@@ -977,23 +1025,6 @@ export declare const DefaultBuiltinConfig: [{
|
|
|
977
1025
|
};
|
|
978
1026
|
readonly ignore: [".names", ".unpack"];
|
|
979
1027
|
};
|
|
980
|
-
}, {
|
|
981
|
-
readonly type: "function";
|
|
982
|
-
readonly names: [Identifier, Identifier];
|
|
983
|
-
readonly processor: BuiltInProcName.PurrrFormula;
|
|
984
|
-
readonly config: {
|
|
985
|
-
readonly args: {
|
|
986
|
-
readonly '.x': {
|
|
987
|
-
readonly index: 0;
|
|
988
|
-
readonly name: ".data";
|
|
989
|
-
};
|
|
990
|
-
};
|
|
991
|
-
readonly '.f': {
|
|
992
|
-
readonly index: 1;
|
|
993
|
-
readonly name: "...";
|
|
994
|
-
};
|
|
995
|
-
readonly ignore: [".by", ".preserve"];
|
|
996
|
-
};
|
|
997
1028
|
}, {
|
|
998
1029
|
readonly type: "function";
|
|
999
1030
|
readonly names: [Identifier];
|
|
@@ -1184,6 +1215,28 @@ export declare const DefaultBuiltinConfig: [{
|
|
|
1184
1215
|
readonly libFn: true;
|
|
1185
1216
|
};
|
|
1186
1217
|
readonly assumePrimitive: true;
|
|
1218
|
+
}, {
|
|
1219
|
+
readonly type: "function";
|
|
1220
|
+
readonly names: [Identifier, Identifier];
|
|
1221
|
+
readonly processor: BuiltInProcName.S7MakeConstructor;
|
|
1222
|
+
readonly config: {
|
|
1223
|
+
readonly mode: readonly ["s7"];
|
|
1224
|
+
};
|
|
1225
|
+
readonly assumePrimitive: true;
|
|
1226
|
+
}, {
|
|
1227
|
+
readonly type: "function";
|
|
1228
|
+
readonly names: [Identifier];
|
|
1229
|
+
readonly processor: BuiltInProcName.S7MakeConstructor;
|
|
1230
|
+
readonly config: {
|
|
1231
|
+
readonly mode: readonly ["s4"];
|
|
1232
|
+
};
|
|
1233
|
+
readonly assumePrimitive: true;
|
|
1234
|
+
}, {
|
|
1235
|
+
readonly type: "function";
|
|
1236
|
+
readonly names: [Identifier, Identifier, Identifier];
|
|
1237
|
+
readonly processor: BuiltInProcName.S7MakeConstructor;
|
|
1238
|
+
readonly config: {};
|
|
1239
|
+
readonly assumePrimitive: true;
|
|
1187
1240
|
}, {
|
|
1188
1241
|
readonly type: "function";
|
|
1189
1242
|
readonly names: [Identifier, Identifier];
|
|
@@ -1271,7 +1324,7 @@ export declare const DefaultBuiltinConfig: [{
|
|
|
1271
1324
|
};
|
|
1272
1325
|
}, {
|
|
1273
1326
|
readonly type: "function";
|
|
1274
|
-
readonly names: [Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier
|
|
1327
|
+
readonly names: [Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier, Identifier];
|
|
1275
1328
|
readonly processor: BuiltInProcName.Default;
|
|
1276
1329
|
readonly config: {
|
|
1277
1330
|
readonly hasUnknownSideEffects: true;
|