@eagleoutice/flowr 2.16.0 → 2.16.2
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 +9 -9
- package/cli/flowr-main-options.d.ts +15 -0
- package/cli/flowr-main-options.js +18 -0
- package/cli/flowr.d.ts +18 -0
- package/cli/flowr.js +13 -2
- package/cli/repl/commands/repl-clipboard.js +2 -1
- package/cli/repl/commands/repl-commands.js +2 -0
- package/cli/repl/commands/repl-main.d.ts +5 -0
- package/cli/repl/commands/repl-signature.js +2 -0
- package/cli/repl/core.d.ts +7 -1
- package/cli/repl/core.js +17 -8
- package/cli/repl/execute.js +2 -0
- package/cli/repl/server/connection.js +2 -1
- package/cli/repl/server/net.d.ts +10 -0
- package/cli/repl/server/net.js +34 -1
- package/cli/slicer-app.js +2 -1
- package/config.d.ts +12 -2
- package/config.js +91 -14
- package/dataflow/environments/built-in-props.d.ts +5 -2
- package/dataflow/environments/built-in-props.js +6 -3
- package/dataflow/environments/default-builtin-config.d.ts +197 -11
- package/dataflow/environments/default-builtin-config.js +62 -42
- package/dataflow/environments/identifier.d.ts +1 -0
- package/dataflow/environments/query-fn-props.d.ts +3 -0
- package/dataflow/environments/query-fn-props.js +8 -0
- package/dataflow/environments/resolve-by-name.js +11 -4
- package/dataflow/eval/resolve/resolve-argument.js +5 -1
- package/dataflow/extractor.js +14 -5
- package/dataflow/fn/frame-reflection.js +14 -2
- package/dataflow/graph/graph.js +12 -0
- package/dataflow/internal/control-flow.d.ts +11 -0
- package/dataflow/internal/control-flow.js +15 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +4 -10
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.js +9 -0
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +8 -7
- package/dataflow/internal/process/functions/call/deferred.js +6 -1
- package/dataflow/internal/process/functions/call/named-call-handling.js +70 -9
- package/documentation/doc-capabilities.js +4 -1
- package/documentation/wiki-interface.js +4 -0
- package/engines.js +11 -3
- package/linter/linter-executor.js +19 -1
- package/linter/linter-rules.d.ts +8 -3
- package/linter/rules/file-path-validity.js +4 -1
- package/linter/rules/function-finder-util.d.ts +1 -1
- package/linter/rules/function-finder-util.js +1 -3
- package/linter/rules/network-functions.d.ts +4 -3
- package/linter/rules/network-functions.js +14 -12
- package/linter/rules/no-leaked-credentials.d.ts +8 -3
- package/linter/rules/no-leaked-credentials.js +133 -35
- package/linter/rules/problematic-inputs.d.ts +1 -1
- package/linter/rules/problematic-inputs.js +20 -14
- package/linter/rules/seeded-randomness.js +3 -1
- package/linter/rules/unescaped-arguments.d.ts +13 -2
- package/linter/rules/unescaped-arguments.js +100 -12
- package/package.json +1 -1
- package/project/plugins/file-plugins/files/flowr-rda-file.d.ts +14 -5
- package/project/plugins/file-plugins/files/flowr-rda-file.js +35 -24
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +2 -1
- package/project/sigdb/decompress.js +3 -1
- package/project/sigdb/sigdb-download.js +9 -6
- package/queries/catalog/call-context-query/call-context-query-executor.js +2 -1
- package/queries/catalog/config-query/config-query-executor.js +9 -2
- package/queries/catalog/input-sources-query/input-source-functions.d.ts +6 -4
- package/queries/catalog/input-sources-query/input-source-functions.js +11 -6
- package/queries/catalog/input-sources-query/input-sources-query-executor.js +1 -1
- package/queries/catalog/input-sources-query/input-sources-query-format.d.ts +1 -1
- package/queries/catalog/input-sources-query/input-sources-query-format.js +9 -2
- package/queries/catalog/input-sources-query/simple-input-classifier.d.ts +12 -4
- package/queries/catalog/input-sources-query/simple-input-classifier.js +227 -29
- package/r-bridge/shell-executor.js +2 -0
- package/r-bridge/shell.js +2 -0
- package/search/search-executor/search-enrichers.js +5 -3
- package/slicing/static/static-slicer.js +14 -9
- package/util/files.d.ts +6 -0
- package/util/files.js +12 -0
- package/util/parallel.js +2 -0
- package/util/secure-mode.d.ts +42 -0
- package/util/secure-mode.js +70 -0
- package/util/version.js +2 -2
|
@@ -579,9 +579,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
579
579
|
/* running summaries & reordering */
|
|
580
580
|
'cumsum', 'cumprod', 'cummax', 'cummin', 'diff', 'sort', 'rev', 'unique', 'duplicated', 't',
|
|
581
581
|
/* coercion */
|
|
582
|
-
'as.character', 'as.
|
|
583
|
-
'as.factor', 'as.raw', 'as.list', 'as.array', 'as.double', 'as.complex', 'factor',
|
|
584
|
-
'as.single', 'as.ordered'
|
|
582
|
+
'as.character', 'as.matrix', 'as.data.frame', 'as.factor', 'as.raw', 'as.list', 'as.array', 'factor', 'as.ordered'
|
|
585
583
|
]),
|
|
586
584
|
...identifier_1.Identifier.fromAll("utils" /* PkgName.Utils */, ['head', 'tail']),
|
|
587
585
|
...identifier_1.Identifier.fromAll("stats" /* PkgName.Stats */, ['var', 'sd', 'median', 'quantile']),
|
|
@@ -590,6 +588,8 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
590
588
|
config: { props: built_in_props_1.CallProp.Pure, sig: SigXDots },
|
|
591
589
|
assumePrimitive: true
|
|
592
590
|
},
|
|
591
|
+
/* a number or a logical carries none of the text it was converted from */
|
|
592
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['as.integer', 'as.logical', 'as.numeric', 'as.double', 'as.complex', 'as.single']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: SigXDots }, assumePrimitive: true },
|
|
593
593
|
/* they read the values but answer only with a logical, so nothing those values carry reaches the result */
|
|
594
594
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['is.na', 'nzchar', 'is.finite', 'is.infinite', 'is.nan']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Narrows], sig: SigX }, assumePrimitive: true },
|
|
595
595
|
/* the numeric functions the value solver folds; each one is an entry of `NumericFns`, which states its parameters */
|
|
@@ -629,7 +629,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
629
629
|
'matrix', 'array', 'table', 'prop.table', 'colSums', 'rowSums', 'colMeans', 'rowMeans',
|
|
630
630
|
'solve', 'det', 'eigen', 'aperm',
|
|
631
631
|
/* string */
|
|
632
|
-
'grep', 'sub', 'gsub', 'substr', 'substring', 'strsplit', 'strrep', 'chartr', 'strtoi',
|
|
632
|
+
'grep', 'sub', 'gsub', 'substr', 'substring', 'strsplit', 'strrep', 'chartr', 'strtoi', 'shQuote',
|
|
633
633
|
'regexpr', 'gregexpr', 'regexec', 'format', 'sprintf', 'formatC',
|
|
634
634
|
/* regmatches yields a substring of its subject, so what flows in flows out */
|
|
635
635
|
'regmatches'
|
|
@@ -725,6 +725,8 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
725
725
|
{ type: 'function', names: [identifier_1.Identifier.from(['open_graph', "DiagrammeR" /* PkgName.DiagrammeR */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
726
726
|
{ type: 'function', names: [identifier_1.Identifier.from(['read.ftable', "stats" /* PkgName.Stats */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
727
727
|
{ type: 'function', names: [identifier_1.Identifier.from(['read_json', "jsonlite" /* PkgName.Jsonlite */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
728
|
+
/* `txt` is json text, a path, or a url */
|
|
729
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['fromJSON', "jsonlite" /* PkgName.Jsonlite */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['txt', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
728
730
|
{ type: 'function', names: [identifier_1.Identifier.from(['import', "rio" /* PkgName.Rio */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
729
731
|
{ type: 'function', names: [identifier_1.Identifier.from(['import_list', "rio" /* PkgName.Rio */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
730
732
|
{ type: 'function', names: [identifier_1.Identifier.from(['read.xlsx', "openxlsx" /* PkgName.OpenXlsx */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['xlsxFile', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
@@ -863,12 +865,15 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
863
865
|
/* `curl_upload` sends a file somewhere, so the file it reads comes first and the address second */
|
|
864
866
|
{ type: 'function', names: [identifier_1.Identifier.from(['curl_upload', "curl" /* PkgName.Curl */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['verbose', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
865
867
|
{ type: 'function', names: [identifier_1.Identifier.from(['curl_echo', "curl" /* PkgName.Curl */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network], sig: [['handle', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['port', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['progress', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
866
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['new_handle', "curl" /* PkgName.Curl */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Opens
|
|
868
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['new_handle', "curl" /* PkgName.Curl */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Opens], sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
867
869
|
{ type: 'function', names: [identifier_1.Identifier.from(['getURL', "RCurl" /* PkgName.Rcurl */]), identifier_1.Identifier.from(['getForm', "rBDAT" /* PkgName.Rbdat */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
868
870
|
{ type: 'function', names: identifier_1.Identifier.fromAll("xml2" /* PkgName.Xml2 */, ['read_html', 'read_xml']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['encoding', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
869
871
|
{ type: 'function', names: identifier_1.Identifier.fromAll("xml2" /* PkgName.Xml2 */, ['download_html', 'download_xml']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Writes], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
870
872
|
{ type: 'function', names: identifier_1.Identifier.fromAll("rvest" /* PkgName.Rvest */, ['html_nodes', 'html_text']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
871
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['read_html_live', "rvest" /* PkgName.Rvest */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
873
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['read_html_live', "rvest" /* PkgName.Rvest */]), identifier_1.Identifier.from(['session', "rvest" /* PkgName.Rvest */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['url', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
874
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("rvest" /* PkgName.Rvest */, ['session_jump_to', 'session_follow_link', 'session_submit', 'session_back', 'session_forward']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
875
|
+
/* an `httr2` request is only a description until one of these performs it */
|
|
876
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("httr2" /* PkgName.Httr2 */, ['req_perform', 'req_perform_sequential', 'req_perform_parallel', 'req_perform_iterative', 'req_perform_stream', 'req_perform_connection', 'req_perform_promise']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['req', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
872
877
|
{ type: 'function', names: identifier_1.Identifier.fromAll("xfun" /* PkgName.Xfun */, ['url_filename', 'url_accessible', 'url_destination']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
873
878
|
{ type: 'function', names: identifier_1.Identifier.fromAll("googledrive" /* PkgName.GoogleDrive */, ['drive_get', 'drive_download', 'shared_drive_get', 'shared_drive_rm']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
874
879
|
{ type: 'function', names: identifier_1.Identifier.fromAll("aws.s3" /* PkgName.AwsS3 */, ['s3read_using', 's3write_using']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Network, built_in_props_1.SemanticCallTag.Reads], sig: [['FUN', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['object', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
@@ -950,8 +955,10 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
950
955
|
{ type: 'function', names: identifier_1.Identifier.fromAll("functools" /* PkgName.Functools */, ['Lapply', 'Sapply', 'Vapply']), processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure }, assumePrimitive: false },
|
|
951
956
|
{ type: 'function', names: [...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['apply', 'tapply']), identifier_1.Identifier.from(['Tapply', "functools" /* PkgName.Functools */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 2, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['X', built_in_props_1.ArgProp.NoDefault], ['...', 0]] }, assumePrimitive: false },
|
|
952
957
|
{ type: 'function', names: [identifier_1.Identifier.from(['Map', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['f', built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
958
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['outer', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 2, nameOfFunctionArgument: 'FUN', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['X', built_in_props_1.ArgProp.Value], ['Y', built_in_props_1.ArgProp.Value], ['FUN', built_in_props_1.ArgProp.Callee], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
953
959
|
{ type: 'function', names: [identifier_1.Identifier.from(['Filter', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['f', built_in_props_1.ArgProp.Callee], ['x', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
954
960
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['Find', 'Position']), processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['f', built_in_props_1.ArgProp.Callee], ['x', built_in_props_1.ArgProp.Value], ['right', built_in_props_1.ArgProp.Flag], ['nomatch', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
961
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['replicate', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.MayPure, sig: [['n', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['expr', built_in_props_1.ArgProp.Value], ['simplify', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
955
962
|
{ type: 'function', names: [identifier_1.Identifier.from(['Reduce', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 0, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['f', built_in_props_1.ArgProp.Callee]] }, assumePrimitive: false },
|
|
956
963
|
{ type: 'function', names: [identifier_1.Identifier.from(['rapply', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Apply, config: { indexOfFunction: 1, nameOfFunctionArgument: 'f', unquoteFunction: true, props: built_in_props_1.CallProp.MayPure, sig: [['object', built_in_props_1.ArgProp.NoDefault], ['f', built_in_props_1.ArgProp.NoDefault], ['classes', 0], ['deflt', 0], ['how', 0], ['...', 0]] }, assumePrimitive: false },
|
|
957
964
|
{ type: 'function', names: [identifier_1.Identifier.from(['print', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { keepArgumentOut: true, hasUnknownSideEffects: { type: 'link-to-last-call', callName: /^sink$/ }, ambient: PrintDispatched, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Generic, tags: [built_in_props_1.SemanticCallTag.Prints], sig: [['x', built_in_props_1.ArgProp.Alias | built_in_props_1.ArgProp.Forced], ['...', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
@@ -984,6 +991,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
984
991
|
{ type: 'function', names: [identifier_1.Identifier.from(['set.seed', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "set-rng" /* AmbientStateAccessType.SetRng */ }, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.Random], sig: [['seed', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['kind', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['normal.kind', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['sample.kind', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
985
992
|
{ type: 'function', names: [identifier_1.Identifier.from(['RNGkind', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "set-rng" /* AmbientStateAccessType.SetRng */, kindFrom: 0 }, props: built_in_props_1.CallProp.Configures, tags: [built_in_props_1.SemanticCallTag.Random], sig: [['kind', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['normal.kind', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced], ['sample.kind', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
986
993
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['body', 'formals']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Lang, sig: [['fun', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
994
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['trace', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['what', built_in_props_1.ArgProp.Value], ['tracer', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['exit', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['at', built_in_props_1.ArgProp.Value], ['print', built_in_props_1.ArgProp.Flag], ['signature', built_in_props_1.ArgProp.Value], ['where', built_in_props_1.ArgProp.Value], ['edit', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
987
995
|
/* `environment()` without an argument is the frame the call sits in, which is how `as.list(environment())` gets at every argument */
|
|
988
996
|
{ type: 'function', names: [identifier_1.Identifier.from(['environment', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, frame: built_in_props_1.ArgProp.Value, sig: [['fun', built_in_props_1.ArgProp.Handle | built_in_props_1.ArgProp.Forced]] }, assumePrimitive: true },
|
|
989
997
|
{
|
|
@@ -1034,9 +1042,9 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1034
1042
|
{ type: 'function', names: [identifier_1.Identifier.from(['source', "base" /* PkgName.Base */])],
|
|
1035
1043
|
/* it hands back what it evaluated invisibly, so a top-level `source()` prints nothing of its own */
|
|
1036
1044
|
processor: built_in_proc_name_1.BuiltInProcName.Source,
|
|
1037
|
-
config: { includeFunctionCall: true, forceFollow: false, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads],
|
|
1038
|
-
sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['local', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['echo', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1039
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['sys.source', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Written]] }, assumePrimitive: false },
|
|
1045
|
+
config: { includeFunctionCall: true, forceFollow: false, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Eval],
|
|
1046
|
+
sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Injectable], ['local', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['echo', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['print.eval', built_in_props_1.ArgProp.Flag], ['exprs', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable]] }, assumePrimitive: false },
|
|
1047
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['sys.source', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { hasUnknownSideEffects: true, props: built_in_props_1.CallProp.Invisible, tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Eval], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Written]] }, assumePrimitive: false },
|
|
1040
1048
|
{ type: 'function', names: ['['], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1041
1049
|
{ type: 'function', names: ['[['], processor: built_in_proc_name_1.BuiltInProcName.Access, config: { treatIndicesAsString: false, resolveField: true, props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1042
1050
|
/* the field is a name rather than a value, so it is never evaluated */
|
|
@@ -1048,7 +1056,7 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1048
1056
|
{ type: 'function', names: [identifier_1.Identifier.from(['if_else', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.IfThenElse, config: { args: { cond: 'condition', yes: 'true', no: 'false' }, props: built_in_props_1.CallProp.Pure }, assumePrimitive: true },
|
|
1049
1057
|
{ type: 'function', names: [identifier_1.Identifier.from(['get', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, evalHandler: built_in_eval_name_1.BuiltInEvalName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['pos', built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1050
1058
|
{ type: 'function', names: [identifier_1.Identifier.from(['get0', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, evalHandler: built_in_eval_name_1.BuiltInEvalName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['ifnotfound', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1051
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['ls', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['objects', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.EnvContents, config: { props: built_in_props_1.CallProp.
|
|
1059
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['ls', "base" /* PkgName.Base */]), identifier_1.Identifier.from(['objects', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.EnvContents, config: { props: built_in_props_1.CallProp.NonDet, sig: [['name', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['pos', built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['all.names', built_in_props_1.ArgProp.Flag], ['pattern', built_in_props_1.ArgProp.Value], ['sorted', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1052
1060
|
{ type: 'function', names: [identifier_1.Identifier.from(['list2env', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.ListToEnv, config: { props: built_in_props_1.CallProp.Scope, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['envir', built_in_props_1.ArgProp.Written]] }, assumePrimitive: false },
|
|
1053
1061
|
{ type: 'function', names: [identifier_1.Identifier.from(['mget', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['ifnotfound', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1054
1062
|
{ type: 'function', names: [identifier_1.Identifier.from(['exists', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Get, config: { returnsValue: false, props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['where', built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['frame', built_in_props_1.ArgProp.Flag], ['mode', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['inherits', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
@@ -1113,24 +1121,24 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1113
1121
|
{ type: 'function', names: [...identifier_1.Identifier.fromAllIn(MagrittrPipePackages, ['%>%']), '%!>%'], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', assignLhs: false, returnLhs: false, rhsMightBeSymbol: true, sig: [['lhs', built_in_props_1.ArgProp.Value], ['rhs', built_in_props_1.ArgProp.Alias]] }, assumePrimitive: true },
|
|
1114
1122
|
{ type: 'function', names: [identifier_1.Identifier.from(['%<>%', "magrittr" /* PkgName.Magrittr */])], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', assignLhs: true, returnLhs: false, rhsMightBeSymbol: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope }, assumePrimitive: true },
|
|
1115
1123
|
{ type: 'function', names: [identifier_1.Identifier.from(['%T>%', "magrittr" /* PkgName.Magrittr */])], processor: built_in_proc_name_1.BuiltInProcName.Pipe, config: { pipePlaceholderName: '.', assignLhs: false, returnLhs: true, rhsMightBeSymbol: true, sig: [['lhs', built_in_props_1.ArgProp.Alias], ['rhs', built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1116
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['map', 'map_lgl', 'map_int', 'map_dbl', 'map_chr']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.x' } }, '.f': { index: 1, name: '.f' }, ignore: ['.progress'] } },
|
|
1117
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['pmap', 'pmap_lgl', 'pmap_int', 'pmap_dbl', 'pmap_chr']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.l': { index: 0, name: '.l' } }, '.f': { index: 1, name: '.f' }, ignore: ['.progress'] } },
|
|
1118
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['map2', 'map2_lgl', 'map2_int', 'map2_dbl', 'map2_chr']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.x' }, '.y': { index: 1, name: '.y' } }, '.f': { index: 2, name: '.f' }, ignore: ['.progress'] } },
|
|
1119
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['modify', 'imodify', 'imap', 'imap_lgl', 'imap_int', 'imap_dbl', 'imap_chr', 'imap_vec', 'lmap']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.x' } }, '.f': { index: 1, name: '.f' }, ignore: [] } },
|
|
1120
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['modify2', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.x' }, '.y': { index: 1, name: '.y' } }, '.f': { index: 2, name: '.f' }, ignore: [] } },
|
|
1121
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['map_at', 'modify_at']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.x' }, '.at': { index: 1, name: '.at' } }, '.f': { index: 2, name: '.f' }, ignore: ['.progress'] } },
|
|
1122
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['lmap_at', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.x' }, '.at': { index: 1, name: '.at' } }, '.f': { index: 2, name: '.f' }, ignore: [] } },
|
|
1123
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['map_if', 'modify_if', 'lmap_if']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.x' }, '.p': { index: 1, name: '.p' } }, '.f': { index: 2, name: '.f' }, ignore: ['.else'] } },
|
|
1124
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['walk', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.x' } }, '.f': { index: 1, name: '.f' }, ignore: ['.progress'], returnArg: '.x' } },
|
|
1125
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['iwalk', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.x' } }, '.f': { index: 1, name: '.f' }, ignore: [], returnArg: '.x' } },
|
|
1126
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['pwalk', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.l': { index: 0, name: '.l' } }, '.f': { index: 1, name: '.f' }, ignore: ['.progress'], returnArg: '.l' } },
|
|
1127
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['walk2', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.x' }, '.y': { index: 1, name: '.y' } }, '.f': { index: 2, name: '.f' }, ignore: ['.progress'], returnArg: '.x' } },
|
|
1128
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['map_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.x' } }, '.f': { index: 1, name: '.f' }, ignore: ['.progress', '.ptype'] } },
|
|
1129
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['pmap_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.l': { index: 0, name: '.l' } }, '.f': { index: 1, name: '.f' }, ignore: ['.progress', '.ptype'] } },
|
|
1130
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['map_depth', 'modify_depth']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.x' }, '.depth': { index: 2, name: '.depth' } }, '.f': { index: 2, name: '.f' }, ignore: ['.ragged', '.is_node'] } },
|
|
1131
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['map2_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.x' }, '.y': { index: 1, name: '.y' } }, '.f': { index: 2, name: '.f' }, ignore: ['.progress', '.ptype'] } },
|
|
1132
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['across', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.cols' } }, '.f': { index: 1, name: '.fns' }, ignore: ['.names', '.unpack'] } },
|
|
1133
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['rename_with', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { args: { '.x': { index: 0, name: '.data' } }, '.f': { index: 1, name: '.fn' }, ignore: ['.cols'] } },
|
|
1124
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['map', 'map_lgl', 'map_int', 'map_dbl', 'map_chr']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.x': { index: 0, name: '.x' } }, '.f': { index: 1, name: '.f' }, ignore: ['.progress'] } },
|
|
1125
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['pmap', 'pmap_lgl', 'pmap_int', 'pmap_dbl', 'pmap_chr']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.l': { index: 0, name: '.l' } }, '.f': { index: 1, name: '.f' }, ignore: ['.progress'] } },
|
|
1126
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['map2', 'map2_lgl', 'map2_int', 'map2_dbl', 'map2_chr']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.x': { index: 0, name: '.x' }, '.y': { index: 1, name: '.y' } }, '.f': { index: 2, name: '.f' }, ignore: ['.progress'] } },
|
|
1127
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['modify', 'imodify', 'imap', 'imap_lgl', 'imap_int', 'imap_dbl', 'imap_chr', 'imap_vec', 'lmap']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.x': { index: 0, name: '.x' } }, '.f': { index: 1, name: '.f' }, ignore: [] } },
|
|
1128
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['modify2', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.x': { index: 0, name: '.x' }, '.y': { index: 1, name: '.y' } }, '.f': { index: 2, name: '.f' }, ignore: [] } },
|
|
1129
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['map_at', 'modify_at']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.x': { index: 0, name: '.x' }, '.at': { index: 1, name: '.at' } }, '.f': { index: 2, name: '.f' }, ignore: ['.progress'] } },
|
|
1130
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['lmap_at', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.x': { index: 0, name: '.x' }, '.at': { index: 1, name: '.at' } }, '.f': { index: 2, name: '.f' }, ignore: [] } },
|
|
1131
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['map_if', 'modify_if', 'lmap_if']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.x': { index: 0, name: '.x' }, '.p': { index: 1, name: '.p' } }, '.f': { index: 2, name: '.f' }, ignore: ['.else'] } },
|
|
1132
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['walk', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.x': { index: 0, name: '.x' } }, '.f': { index: 1, name: '.f' }, ignore: ['.progress'], returnArg: '.x' } },
|
|
1133
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['iwalk', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.x': { index: 0, name: '.x' } }, '.f': { index: 1, name: '.f' }, ignore: [], returnArg: '.x' } },
|
|
1134
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['pwalk', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.l': { index: 0, name: '.l' } }, '.f': { index: 1, name: '.f' }, ignore: ['.progress'], returnArg: '.l' } },
|
|
1135
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['walk2', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.x': { index: 0, name: '.x' }, '.y': { index: 1, name: '.y' } }, '.f': { index: 2, name: '.f' }, ignore: ['.progress'], returnArg: '.x' } },
|
|
1136
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['map_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.x': { index: 0, name: '.x' } }, '.f': { index: 1, name: '.f' }, ignore: ['.progress', '.ptype'] } },
|
|
1137
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['pmap_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.l': { index: 0, name: '.l' } }, '.f': { index: 1, name: '.f' }, ignore: ['.progress', '.ptype'] } },
|
|
1138
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("purrr" /* PkgName.Purrr */, ['map_depth', 'modify_depth']), processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.x': { index: 0, name: '.x' }, '.depth': { index: 2, name: '.depth' } }, '.f': { index: 2, name: '.f' }, ignore: ['.ragged', '.is_node'] } },
|
|
1139
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['map2_vec', "purrr" /* PkgName.Purrr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.x': { index: 0, name: '.x' }, '.y': { index: 1, name: '.y' } }, '.f': { index: 2, name: '.f' }, ignore: ['.progress', '.ptype'] } },
|
|
1140
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['across', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.x': { index: 0, name: '.cols' } }, '.f': { index: 1, name: '.fns' }, ignore: ['.names', '.unpack'] } },
|
|
1141
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['rename_with', "dplyr" /* PkgName.Dplyr */])], processor: built_in_proc_name_1.BuiltInProcName.PurrrFormula, config: { props: built_in_props_1.CallProp.MayPure, args: { '.x': { index: 0, name: '.data' } }, '.f': { index: 1, name: '.fn' }, ignore: ['.cols'] } },
|
|
1134
1142
|
{ type: 'function', names: ['function', '\\'], processor: built_in_proc_name_1.BuiltInProcName.FunctionDefinition, config: { sig: [['arglist', built_in_props_1.ArgProp.Nse], ['expr', built_in_props_1.ArgProp.NoDefault | built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
|
|
1135
1143
|
{ type: 'function', names: [identifier_1.Identifier.from(['quote', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Quote, config: { quoteArgumentsWithIndex: 0, keepEnvironment: true, props: built_in_props_1.CallProp.Lang, sig: [['expr', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: true },
|
|
1136
1144
|
/* `bquote` evaluates the operand of `.()` */
|
|
@@ -1279,16 +1287,18 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1279
1287
|
{ type: 'function', names: [identifier_1.Identifier.from(['on_package_load', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.MayPure, sig: [['pkg', built_in_props_1.ArgProp.Value], ['expr', built_in_props_1.ArgProp.Forced], ['env', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1280
1288
|
{ type: 'function', names: [identifier_1.Identifier.from(['run_on_load', "rlang" /* PkgName.Rlang */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Invisible | built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.MayPure, sig: [['ns', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1281
1289
|
/* `parse(text=)` turns text into an expression, with `file=` it reads that file */
|
|
1282
|
-
{ type: 'function', names:
|
|
1290
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['parse', 'str2lang', 'str2expression']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Pure, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1291
|
+
/* the tidy-eval sinks (`!!`, `{{`) are no calls flowR sees, so the text is checked where it turns into code */
|
|
1292
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("rlang" /* PkgName.Rlang */, ['parse_expr', 'parse_exprs']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Lang, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable]] }, assumePrimitive: false },
|
|
1283
1293
|
/* they answer with whatever is on disk when they run */
|
|
1284
1294
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['list.files', 'dir', 'list.dirs']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Glob], sig: [['path', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1285
1295
|
{ type: 'function', names: [identifier_1.Identifier.from(['Sys.glob', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads, built_in_props_1.SemanticCallTag.Glob], sig: [['paths', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource]] }, assumePrimitive: false },
|
|
1286
1296
|
/* language objects */
|
|
1287
1297
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['enquote', 'call', 'as.call', 'as.expression', 'as.name', 'as.symbol', 'args', 'deparse', 'deparse1']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1288
1298
|
/* they hand back the call they sit in, so the function around them reads its arguments as written, unevaluated */
|
|
1289
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['match.call', 'sys.call', 'sys.calls']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, frame: built_in_props_1.ArgProp.Nse, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1299
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['match.call', 'sys.call', 'sys.calls']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang | built_in_props_1.CallProp.NonDet, frame: built_in_props_1.ArgProp.Nse, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1290
1300
|
/* `nargs()` counts what the call supplied, so it sees no argument, only whether there was one */
|
|
1291
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['nargs', 'sys.nframe']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, frame: built_in_props_1.ArgProp.Presence, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1301
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['nargs', 'sys.nframe']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang | built_in_props_1.CallProp.NonDet, frame: built_in_props_1.ArgProp.Presence, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1292
1302
|
/* `alist` keeps its arguments unevaluated, `evalq` evaluates its first one in another frame */
|
|
1293
1303
|
{ type: 'function', names: [identifier_1.Identifier.from(['alist', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Lang, sig: [['...', built_in_props_1.ArgProp.Nse]] }, assumePrimitive: false },
|
|
1294
1304
|
{ type: 'function', names: [identifier_1.Identifier.from(['evalq', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { ambient: { type: "evaluate-quoted" /* AmbientStateAccessType.EvaluateQuoted */ }, props: built_in_props_1.CallProp.Lang, tags: [built_in_props_1.SemanticCallTag.Eval], sig: [['expr', built_in_props_1.ArgProp.Nse | built_in_props_1.ArgProp.Injectable], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
@@ -1305,18 +1315,25 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1305
1315
|
{ type: 'function', names: [identifier_1.Identifier.from(['commandArgs', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { props: built_in_props_1.CallProp.Ambient, tags: [built_in_props_1.SemanticCallTag.CommandLine], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1306
1316
|
/* system commands */
|
|
1307
1317
|
{ type: 'function', names: [identifier_1.Identifier.from(['system', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.Process], sig: [['command', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['intern', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['ignore.stdout', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['ignore.stderr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['wait', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['input', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['show.output.on.console', built_in_props_1.ArgProp.Flag], ['minimized', built_in_props_1.ArgProp.Flag], ['invisible', built_in_props_1.ArgProp.Flag], ['timeout', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1308
|
-
{ type: 'function', names: [identifier_1.Identifier.from(['system2', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.Process], sig: [['command', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['args', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['stdout', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['stderr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['stdin', built_in_props_1.ArgProp.Value], ['input', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['env', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['wait', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['minimized', built_in_props_1.ArgProp.Flag], ['invisible', built_in_props_1.ArgProp.Flag], ['timeout', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1318
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['system2', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.Process], sig: [['command', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['args', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['stdout', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['stderr', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['stdin', built_in_props_1.ArgProp.Value], ['input', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['env', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['wait', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['minimized', built_in_props_1.ArgProp.Flag], ['invisible', built_in_props_1.ArgProp.Flag], ['timeout', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1309
1319
|
{ type: 'function', names: [identifier_1.Identifier.from(['shell', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.Process], sig: [['cmd', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['shell', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['flag', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['intern', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['wait', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['translate', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['mustWork', built_in_props_1.ArgProp.Flag], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1310
1320
|
{ type: 'function', names: [identifier_1.Identifier.from(['shell.exec', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.Process], sig: [['file', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Injectable]] }, assumePrimitive: false },
|
|
1311
1321
|
{ type: 'function', names: [identifier_1.Identifier.from(['pipe', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.Opens, built_in_props_1.SemanticCallTag.Process], sig: [['description', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource | built_in_props_1.ArgProp.Injectable], ['open', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['encoding', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1312
1322
|
{ type: 'function', names: identifier_1.Identifier.fromAll("processx" /* PkgName.Processx */, ['run', 'process']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Process], sig: [['command', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['args', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1313
1323
|
{ type: 'function', names: identifier_1.Identifier.fromAll("sys" /* PkgName.Sys */, ['exec_wait', 'exec_internal', 'exec_background']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Process], sig: [['cmd', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['args', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable]] }, assumePrimitive: false },
|
|
1314
|
-
{ type: 'function', names: identifier_1.Identifier.
|
|
1315
|
-
{ type: 'function', names:
|
|
1324
|
+
{ type: 'function', names: identifier_1.Identifier.fromAllIn(["DBI" /* PkgName.Dbi */, 'RSQLite', 'RPostgres', 'RMariaDB', 'odbc', 'pool'], ['dbGetQuery', 'dbSendQuery', 'dbSendStatement', 'dbExecute']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.NonDet, tags: [built_in_props_1.SemanticCallTag.Database], sig: [['conn', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['statement', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1325
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("DBI" /* PkgName.Dbi */, ['dbQuoteString', 'dbQuoteLiteral', 'dbQuoteIdentifier']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Pure, sig: [['conn', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1326
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['htmlEscape', "htmltools" /* PkgName.HtmlTools */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Pure, sig: [['text', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['attribute', built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1327
|
+
/* these escape the values they interpolate, but not the template they are handed */
|
|
1328
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['sqlInterpolate', "DBI" /* PkgName.Dbi */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, sig: [['conn', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['sql', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['...', built_in_props_1.ArgProp.Value], ['.dots', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1329
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("glue" /* PkgName.Glue */, ['glue_sql', 'glue_data_sql']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['.con', built_in_props_1.ArgProp.Handle], ['.envir', built_in_props_1.ArgProp.Value], ['.na', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1330
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['sqldf', "sqldf" /* PkgName.Sqldf */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.NonDet, tags: [built_in_props_1.SemanticCallTag.Database], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['stringsAsFactors', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['row.names', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['envir', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['method', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1331
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll('RODBC', ['sqlQuery', 'odbcQuery']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.NonDet, tags: [built_in_props_1.SemanticCallTag.Database], sig: [['channel', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Handle], ['query', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['...', built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1316
1332
|
{ type: 'function', names: [identifier_1.Identifier.from(['sql', "dplyr" /* PkgName.Dplyr */]), identifier_1.Identifier.from(['sql', "dbplyr" /* PkgName.DbPlyr */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Database], sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable]] }, assumePrimitive: false },
|
|
1317
1333
|
{ type: 'function', names: [identifier_1.Identifier.from(['HTML', "shiny" /* PkgName.Shiny */]), identifier_1.Identifier.from(['HTML', "htmltools" /* PkgName.HtmlTools */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Html], sig: [['text', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1334
|
+
{ type: 'function', names: [identifier_1.Identifier.from(['markdown', "shiny" /* PkgName.Shiny */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Html], sig: [['mds', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['extensions', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['.noWS', built_in_props_1.ArgProp.Flag], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1318
1335
|
{ type: 'function', names: [identifier_1.Identifier.from(['insertUI', "shiny" /* PkgName.Shiny */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Html], sig: [['selector', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['where', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['ui', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['immediate', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['session', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
1319
|
-
{ type: 'function', names:
|
|
1336
|
+
{ type: 'function', names: identifier_1.Identifier.fromAllIn(["htmlwidgets" /* PkgName.HtmlWidgets */, 'DT'], ['JS']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.JavaScript], sig: [['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable]] }, assumePrimitive: false },
|
|
1320
1337
|
{ type: 'function', names: [identifier_1.Identifier.from(['runjs', "shinyjs" /* PkgName.ShinyJs */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.JavaScript], sig: [['code', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable]] }, assumePrimitive: false },
|
|
1321
1338
|
{ type: 'function', names: [identifier_1.Identifier.from(['html', "shinyjs" /* PkgName.ShinyJs */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.Html], sig: [['id', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['html', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['add', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['selector', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['asis', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: false },
|
|
1322
1339
|
{ type: 'function', names: [identifier_1.Identifier.from(['extendShinyjs', "shinyjs" /* PkgName.ShinyJs */])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.JavaScript, built_in_props_1.SemanticCallTag.File, built_in_props_1.SemanticCallTag.Reads], sig: [['script', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Resource], ['text', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable], ['functions', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: false },
|
|
@@ -1342,12 +1359,14 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1342
1359
|
{ type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['tempfile', 'tempdir']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { tags: [built_in_props_1.SemanticCallTag.TempFile], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1343
1360
|
{ type: 'function', names: [...identifier_1.Identifier.fromAll("fs" /* PkgName.Fs */, ['file_temp', 'path_temp']), ...identifier_1.Identifier.fromAll("withr" /* PkgName.Withr */, ['local_tempfile', 'with_tempfile', 'local_tempdir', 'with_tempdir'])], processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, tags: [built_in_props_1.SemanticCallTag.TempFile], sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1344
1361
|
/* wrappers that run the expression they are handed; `observe`/`render*` are left out, they yield a handle instead */
|
|
1345
|
-
{ type: 'function', names: identifier_1.Identifier.fromAll("shiny" /* PkgName.Shiny */, ['reactive', 'eventReactive', 'bindEvent', 'bindCache', 'isolate', 'req', 'debounce', 'throttle', '
|
|
1362
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("shiny" /* PkgName.Shiny */, ['reactive', 'eventReactive', 'bindEvent', 'bindCache', 'isolate', 'req', 'debounce', 'throttle', 'reactiveValuesToList', 'freezeReactiveVal']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.MayPure, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1363
|
+
/* their content is whatever the app sets later on, `v(input$x)` included */
|
|
1364
|
+
{ type: 'function', names: identifier_1.Identifier.fromAll("shiny" /* PkgName.Shiny */, ['reactiveVal', 'reactiveValues']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.NonDet, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1346
1365
|
/* assembling a cohort keeps the data of its source; `filter` is registered above, dplyr holds that name */
|
|
1347
1366
|
{ type: 'function', names: identifier_1.Identifier.fromAll("cohortBuilder" /* PkgName.CohortBuilder */, ['cohort', 'set_source', 'add_source', 'update_source', 'add_filter', 'update_filter', 'rm_filter', 'bind_key', 'bind_keys', 'as.tblist', 'tblist', 'step', 'add_step', 'rm_step', 'run', 'restore']), processor: built_in_proc_name_1.BuiltInProcName.Default, config: { libFn: true, props: built_in_props_1.CallProp.Pure, sig: [['...', built_in_props_1.ArgProp.Forced]] }, assumePrimitive: false },
|
|
1348
1367
|
/* they are all mapped to `<-` but we separate super assignments */
|
|
1349
1368
|
{ type: 'replacement', suffixes: ['<-', '<<-'], names: ['[', '[[', ...identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['names', 'dimnames', 'attributes', 'attr', 'class', 'levels', 'rownames', 'colnames', 'environment', 'length', 'dim'])], config: { readIndices: true, props: built_in_props_1.CallProp.Scope } },
|
|
1350
|
-
{ type: 'replacement', suffixes: ['<-', '<<-'], names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['body', 'formals']), config: { readIndices: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Lang } },
|
|
1369
|
+
{ type: 'replacement', suffixes: ['<-', '<<-'], names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['body', 'formals']), config: { readIndices: true, props: built_in_props_1.CallProp.Scope | built_in_props_1.CallProp.Lang, sig: [['fun', built_in_props_1.ArgProp.Value], ['value', built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Injectable]] } },
|
|
1351
1370
|
{ type: 'replacement', suffixes: ['<-', '<<-'], names: [identifier_1.Identifier.from(['method', "S7" /* PkgName.S7 */])], config: { readIndices: true, constructName: 's7' } },
|
|
1352
1371
|
{ type: 'replacement', suffixes: ['<-', '<<-'], names: ['$', '@'], config: { readIndices: false, props: built_in_props_1.CallProp.Scope } },
|
|
1353
1372
|
/* the string and shape functions R declares formals for, restated one by one: the group above gives them
|
|
@@ -1355,11 +1374,12 @@ exports.WrittenBuiltinDefinitions = [
|
|
|
1355
1374
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['sprintf', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['fmt', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['...', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1356
1375
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['format', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { ambient: PrintDispatched, props: built_in_props_1.CallProp.Pure, sig: SigXDots }, assumePrimitive: true },
|
|
1357
1376
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['grep', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['pattern', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['ignore.case', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['perl', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['value', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['fixed', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['useBytes', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['invert', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: true },
|
|
1358
|
-
{ overrides: true, type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['sub', 'gsub']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['pattern', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['replacement', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['ignore.case', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['perl', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['fixed', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['useBytes', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: true },
|
|
1359
|
-
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['substr', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['start', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['stop', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1360
|
-
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['substring', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['text', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['first', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['last', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1361
|
-
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['strsplit', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['split', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['fixed', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['perl', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['useBytes', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: true },
|
|
1362
|
-
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['trimws', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['which', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['whitespace', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn },
|
|
1377
|
+
{ overrides: true, type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['sub', 'gsub']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Edits], sig: [['pattern', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['replacement', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['ignore.case', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['perl', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['fixed', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['useBytes', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: true },
|
|
1378
|
+
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['substr', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Edits], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['start', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['stop', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1379
|
+
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['substring', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Edits], sig: [['text', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['first', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['last', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1380
|
+
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['strsplit', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Edits], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['split', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['fixed', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['perl', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['useBytes', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag]] }, assumePrimitive: true },
|
|
1381
|
+
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['trimws', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Edits], sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['which', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['whitespace', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true, evalHandler: built_in_eval_name_1.BuiltInEvalName.StringFn },
|
|
1382
|
+
{ overrides: true, type: 'function', names: identifier_1.Identifier.fromAll("base" /* PkgName.Base */, ['chartr', 'regmatches']), processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, tags: [built_in_props_1.SemanticCallTag.Edits] }, assumePrimitive: true },
|
|
1363
1383
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['strtoi', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['x', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['base', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1364
1384
|
{ overrides: true, type: 'function', names: [identifier_1.Identifier.from(['matrix', "base" /* PkgName.Base */])], processor: built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs, config: { props: built_in_props_1.CallProp.Pure, sig: [['data', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['nrow', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['ncol', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value], ['byrow', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Flag], ['dimnames', built_in_props_1.ArgProp.Forced | built_in_props_1.ArgProp.Value]] }, assumePrimitive: true },
|
|
1365
1385
|
/* the tidyverse verbs, under the names R declares them with. They keep the data mask the group above
|
|
@@ -13,6 +13,7 @@ import type { PackageSignatureSource } from '../../project/sigdb/reader';
|
|
|
13
13
|
import type { DecodedFunction } from '../../project/sigdb/decode';
|
|
14
14
|
import type { ReadOnlyFlowrAnalyzerContext } from '../../project/context/flowr-analyzer-context';
|
|
15
15
|
import type { DataflowInformation } from '../info';
|
|
16
|
+
import type { DataflowGraph } from '../graph/graph';
|
|
16
17
|
/**
|
|
17
18
|
* Where to look up what flowR knows about a function, in that order:
|
|
18
19
|
* the name as it resolves here, the built-in definitions, and the signature database for the rest.
|
|
@@ -43,6 +44,8 @@ export declare function builtInLookup(ctx?: ReadOnlyFlowrAnalyzerContext): (name
|
|
|
43
44
|
export declare function callFnProps(id: NodeId, { graph, environment }: Pick<DataflowInformation, 'graph' | 'environment'>): (BuiltInFnInfo & {
|
|
44
45
|
name: Identifier;
|
|
45
46
|
}) | undefined;
|
|
47
|
+
/** Whether `id` is quoted only by calls shipping it to a worker (`future(expr)`, `%dopar%`), which still runs it. */
|
|
48
|
+
export declare function quotedForWorker(id: NodeId, graph: DataflowGraph, index: BuiltInIndex): boolean;
|
|
46
49
|
/**
|
|
47
50
|
* What the signature database implies for a package function: what its own entry states
|
|
48
51
|
* (see {@link fnInfoFromSignature}) plus the {@link PropagatedProps} of everything it calls, transitively.
|
|
@@ -4,6 +4,7 @@ exports.BuiltInIndex = void 0;
|
|
|
4
4
|
exports.queryFnProps = queryFnProps;
|
|
5
5
|
exports.builtInLookup = builtInLookup;
|
|
6
6
|
exports.callFnProps = callFnProps;
|
|
7
|
+
exports.quotedForWorker = quotedForWorker;
|
|
7
8
|
exports.inferFnProps = inferFnProps;
|
|
8
9
|
exports.fnInfo = fnInfo;
|
|
9
10
|
exports.builtInNames = builtInNames;
|
|
@@ -22,6 +23,7 @@ const signature_db_1 = require("../../project/sigdb/signature-db");
|
|
|
22
23
|
const resolve_helper_1 = require("./resolve-helper");
|
|
23
24
|
const vertex_1 = require("../graph/vertex");
|
|
24
25
|
const df_helper_1 = require("../graph/df-helper");
|
|
26
|
+
const edge_1 = require("../graph/edge");
|
|
25
27
|
const r_base_packages_1 = require("../../util/r-base-packages");
|
|
26
28
|
/**
|
|
27
29
|
* What flowR states about the package export `definition` binds, `undefined` if it binds none or if flowR
|
|
@@ -135,6 +137,12 @@ function callFnProps(id, { graph, environment }) {
|
|
|
135
137
|
})
|
|
136
138
|
};
|
|
137
139
|
}
|
|
140
|
+
/** Whether `id` is quoted only by calls shipping it to a worker (`future(expr)`, `%dopar%`), which still runs it. */
|
|
141
|
+
function quotedForWorker(id, graph, index) {
|
|
142
|
+
const quoting = graph.edgesTo(id).entries().filter(([, e]) => edge_1.DfEdge.includesType(e, edge_1.EdgeType.NonStandardEvaluation)).map(([s]) => s).toArray();
|
|
143
|
+
return quoting.length > 0 && quoting.every(s => graph.outgoingEdges(s)?.entries().some(([t, e]) => edge_1.DfEdge.includesType(e, edge_1.EdgeType.Calls)
|
|
144
|
+
&& node_id_1.NodeId.isBuiltIn(t) && ((index.propsOf(node_id_1.NodeId.fromBuiltIn(t)) ?? 0) & built_in_props_1.CallProp.Concurrent) !== 0));
|
|
145
|
+
}
|
|
138
146
|
/**
|
|
139
147
|
* What the signature database implies for a package function: what its own entry states
|
|
140
148
|
* (see {@link fnInfoFromSignature}) plus the {@link PropagatedProps} of everything it calls, transitively.
|
|
@@ -10,6 +10,7 @@ const identifier_1 = require("./identifier");
|
|
|
10
10
|
const info_1 = require("../info");
|
|
11
11
|
const built_in_s_seven_dispatch_1 = require("../internal/process/functions/call/built-in/built-in-s-seven-dispatch");
|
|
12
12
|
const node_id_1 = require("../../r-bridge/lang-4.x/ast/model/processing/node-id");
|
|
13
|
+
const r_base_packages_1 = require("../../util/r-base-packages");
|
|
13
14
|
/** how many answers a frozen layer memoizes before it starts over, so the memo cannot grow without bound */
|
|
14
15
|
const TailCacheCap = 4096;
|
|
15
16
|
/** A namespaced lookup only sees its matching layer; a bare lookup skips loaded-but-unattached namespaces (`requireNamespace`). */
|
|
@@ -18,10 +19,16 @@ function layerSkipped(layer, ns) {
|
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
21
|
* What the built-in environment states about `pkg::name` for a package nothing attached: `pkg::fn` reaches its
|
|
21
|
-
* package in R whether or not it is on the search path, so a namespaced name has to find it here.
|
|
22
|
+
* package in R whether or not it is on the search path, so a namespaced name has to find it here. Failing that,
|
|
23
|
+
* a package outside of base R never hands out a function of base R, so `config::get` is no `base::get`.
|
|
22
24
|
*/
|
|
23
25
|
function statedIn(builtIn, name, ns) {
|
|
24
|
-
|
|
26
|
+
const stated = ns === undefined ? undefined : builtIn.namespaces?.get(String(ns))?.get(name);
|
|
27
|
+
if (stated !== undefined || ns === undefined || (0, r_base_packages_1.isBaseRPackage)(String(ns))) {
|
|
28
|
+
return stated ?? builtIn.lookup(name);
|
|
29
|
+
}
|
|
30
|
+
const foreign = builtIn.lookup(name)?.filter(d => !(0, r_base_packages_1.isBaseRPackage)(String(d.name === undefined ? undefined : identifier_1.Identifier.getNamespace(d.name))));
|
|
31
|
+
return foreign?.length ? foreign : undefined;
|
|
25
32
|
}
|
|
26
33
|
const FunctionTargetTypes = identifier_1.ReferenceType.Function | identifier_1.ReferenceType.BuiltInFunction | identifier_1.ReferenceType.Unknown | identifier_1.ReferenceType.Argument | identifier_1.ReferenceType.Parameter;
|
|
27
34
|
const VariableTargetTypes = identifier_1.ReferenceType.Variable | identifier_1.ReferenceType.Parameter | identifier_1.ReferenceType.Argument | identifier_1.ReferenceType.Unknown;
|
|
@@ -155,7 +162,7 @@ function resolveByTargetType(id, environment, target) {
|
|
|
155
162
|
} while (!current.builtInEnv);
|
|
156
163
|
/* the built-in layer is handed over as it is, except to a value position: `filter(df, c > 2)` means the
|
|
157
164
|
column `c`, never `base::c`, and only with nothing left does `ownDefinitions` have its say */
|
|
158
|
-
const known = statedIn(current, name, ns)
|
|
165
|
+
const known = statedIn(current, name, ns);
|
|
159
166
|
const builtIns = target === identifier_1.ReferenceType.NonFunction ? known?.filter(wantedType) : known;
|
|
160
167
|
const result = definitions
|
|
161
168
|
? (builtIns === undefined || builtIns.length === 0 ? definitions : definitions.concat(builtIns))
|
|
@@ -209,7 +216,7 @@ function resolveByNameAnyType(id, environment) {
|
|
|
209
216
|
}
|
|
210
217
|
current = current.parent;
|
|
211
218
|
} while (!current.builtInEnv);
|
|
212
|
-
const builtIns = statedIn(current, name, ns)
|
|
219
|
+
const builtIns = statedIn(current, name, ns);
|
|
213
220
|
if (definitions === undefined) {
|
|
214
221
|
return remember(environment, id, builtIns);
|
|
215
222
|
}
|
|
@@ -86,9 +86,13 @@ function openedResourceOf(variableResolve, graph, argument, ctx) {
|
|
|
86
86
|
const vertex = graph.getVertex(id);
|
|
87
87
|
const info = vertex_1.DfgVertex.isFunctionCall(vertex) ? (0, query_fn_props_1.callFnProps)(id, { graph, environment: ctx.env.cleanEnv() }) : undefined;
|
|
88
88
|
const resource = info?.sig?.findIndex(([, p]) => (p & built_in_props_1.ArgProp.Resource) !== 0) ?? -1;
|
|
89
|
-
if (vertex === undefined ||
|
|
89
|
+
if (vertex === undefined || !function_semantics_1.FunctionSemantics.call.props.hasAll(info, [built_in_props_1.SemanticCallTag.Opens]) || (resource < 0 && info?.sig === undefined)) {
|
|
90
90
|
continue;
|
|
91
91
|
}
|
|
92
|
+
else if (resource < 0) {
|
|
93
|
+
/* a handle on data in memory (`textConnection(x)`) names no resource at all */
|
|
94
|
+
return [dependencies_query_format_1.Constant];
|
|
95
|
+
}
|
|
92
96
|
const values = getArgumentStringValue(variableResolve, graph, vertex, resource, info?.sig?.[resource][0], true, ctx);
|
|
93
97
|
return values === undefined ? undefined : [...values.values()].flatMap(v => [...v]).filter(assert_1.isNotUndefined);
|
|
94
98
|
}
|
package/dataflow/extractor.js
CHANGED
|
@@ -160,17 +160,27 @@ function openReadsOfCalledFunctions(graph) {
|
|
|
160
160
|
}
|
|
161
161
|
/** An active binding (`makeActiveBinding`) runs its function on every assignment to and read of the name, so each becomes a call of it. */
|
|
162
162
|
function callActiveBindings(graph) {
|
|
163
|
+
/* the definitions that call something are the bindings, and most scripts have none, so nothing else is walked then */
|
|
164
|
+
const active = new Set();
|
|
163
165
|
const bindings = new Map();
|
|
164
166
|
for (const [id] of graph.verticesOfType(vertex_1.VertexType.VariableDefinition)) {
|
|
165
|
-
const
|
|
166
|
-
if (
|
|
167
|
-
|
|
167
|
+
const called = (0, frame_reflection_1.edgeTargets)(graph, id, edge_1.EdgeType.Calls);
|
|
168
|
+
if (called.length > 0) {
|
|
169
|
+
active.add(id);
|
|
170
|
+
const fns = called.filter(t => vertex_1.DfgVertex.isFunctionDefinition(graph.getVertex(t)));
|
|
171
|
+
if (fns.length > 0) {
|
|
172
|
+
bindings.set(id, fns);
|
|
173
|
+
}
|
|
168
174
|
}
|
|
169
175
|
}
|
|
176
|
+
if (active.size === 0) {
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
170
179
|
for (const [, ids] of bindings.size === 0 ? [] : (0, frame_reflection_1.definitionsByName)(graph).entries()) {
|
|
171
180
|
const fns = ids.flatMap(id => bindings.get(id) ?? []);
|
|
172
181
|
for (const id of fns.length === 0 ? [] : ids.filter(id => !bindings.has(id))) {
|
|
173
182
|
for (const assignment of (0, frame_reflection_1.edgeSources)(graph, id, edge_1.EdgeType.Returns).filter(a => vertex_1.DfgVertex.isFunctionCall(graph.getVertex(a)))) {
|
|
183
|
+
active.add(id);
|
|
174
184
|
for (const fn of fns) {
|
|
175
185
|
graph.addEdge(assignment, fn, edge_1.EdgeType.Calls);
|
|
176
186
|
graph.addEdge(id, fn, edge_1.EdgeType.Calls);
|
|
@@ -178,10 +188,9 @@ function callActiveBindings(graph) {
|
|
|
178
188
|
}
|
|
179
189
|
}
|
|
180
190
|
}
|
|
181
|
-
const isActiveBinding = (def) => vertex_1.DfgVertex.isVariableDefinition(graph.getVertex(def)) && (0, frame_reflection_1.edgeTargets)(graph, def, edge_1.EdgeType.Calls).length > 0;
|
|
182
191
|
for (const id of graph.vertexIdsOfType(vertex_1.VertexType.Use)) {
|
|
183
192
|
const node = graph.idMap?.get(id);
|
|
184
|
-
if (r_symbol_1.RSymbol.is(node) && (0, frame_reflection_1.edgeTargets)(graph, id, edge_1.EdgeType.Reads).some(
|
|
193
|
+
if (r_symbol_1.RSymbol.is(node) && (0, frame_reflection_1.edgeTargets)(graph, id, edge_1.EdgeType.Reads).some(def => active.has(def))) {
|
|
185
194
|
graph.updateToFunctionCall({ tag: vertex_1.VertexType.FunctionCall, id, name: node.content, args: [], environment: undefined, onlyBuiltin: false, cds: graph.getVertex(id)?.cds, origin: [built_in_proc_name_1.BuiltInProcName.Function] });
|
|
186
195
|
}
|
|
187
196
|
}
|
|
@@ -19,7 +19,13 @@ const retriever_1 = require("../../r-bridge/retriever");
|
|
|
19
19
|
const defaultmap_1 = require("../../util/collections/defaultmap");
|
|
20
20
|
/** The nodes at the far end of `node`'s outgoing edges of any of `types`, shared by every walk here and in the sibling analyses that follow specific edge kinds. */
|
|
21
21
|
function edgeTargets(graph, node, types) {
|
|
22
|
-
|
|
22
|
+
const found = [];
|
|
23
|
+
for (const [target, edge] of graph.edgesFrom(node)) {
|
|
24
|
+
if (edge_1.DfEdge.includesType(edge, types)) {
|
|
25
|
+
found.push(target);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return found;
|
|
23
29
|
}
|
|
24
30
|
/** The function-definition vertices a `call` resolves to (via {@link EdgeType.Calls}). */
|
|
25
31
|
function calledDefinitions(graph, call) {
|
|
@@ -27,7 +33,13 @@ function calledDefinitions(graph, call) {
|
|
|
27
33
|
}
|
|
28
34
|
/** The nodes at the near end of `node`'s incoming edges of any of `types`, see {@link edgeTargets}. */
|
|
29
35
|
function edgeSources(graph, node, types) {
|
|
30
|
-
|
|
36
|
+
const found = [];
|
|
37
|
+
for (const [source, edge] of graph.edgesTo(node)) {
|
|
38
|
+
if (edge_1.DfEdge.includesType(edge, types)) {
|
|
39
|
+
found.push(source);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return found;
|
|
31
43
|
}
|
|
32
44
|
/** Every variable definition by its unquoted name, in a single pass. */
|
|
33
45
|
function definitionsByName(graph) {
|