@eagleoutice/flowr 2.15.10 → 2.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/README.md +23 -26
  2. package/abstract-interpretation/data-frame/arguments.js +11 -7
  3. package/cli/flowr-main-options.d.ts +15 -0
  4. package/cli/flowr-main-options.js +18 -0
  5. package/cli/flowr.d.ts +18 -0
  6. package/cli/flowr.js +13 -2
  7. package/cli/repl/commands/repl-clipboard.js +2 -1
  8. package/cli/repl/commands/repl-commands.js +2 -0
  9. package/cli/repl/commands/repl-main.d.ts +5 -0
  10. package/cli/repl/commands/repl-signature.js +2 -0
  11. package/cli/repl/core.d.ts +7 -1
  12. package/cli/repl/core.js +17 -8
  13. package/cli/repl/execute.js +2 -0
  14. package/cli/repl/server/connection.js +2 -1
  15. package/cli/repl/server/net.d.ts +10 -0
  16. package/cli/repl/server/net.js +34 -1
  17. package/cli/slicer-app.js +2 -1
  18. package/config.d.ts +12 -2
  19. package/config.js +91 -14
  20. package/control-flow/happens-before.d.ts +5 -0
  21. package/control-flow/happens-before.js +48 -34
  22. package/control-flow/useless-loop.d.ts +1 -1
  23. package/control-flow/useless-loop.js +29 -42
  24. package/dataflow/environments/built-in-props.d.ts +9 -0
  25. package/dataflow/environments/built-in-props.js +25 -19
  26. package/dataflow/environments/built-in.d.ts +2 -2
  27. package/dataflow/environments/built-in.js +41 -77
  28. package/dataflow/environments/default-builtin-config.d.ts +181 -29
  29. package/dataflow/environments/default-builtin-config.js +38 -24
  30. package/dataflow/environments/environment.d.ts +6 -4
  31. package/dataflow/environments/environment.js +54 -121
  32. package/dataflow/environments/identifier.d.ts +4 -2
  33. package/dataflow/environments/identifier.js +23 -69
  34. package/dataflow/environments/reference-to-maybe.d.ts +9 -0
  35. package/dataflow/environments/reference-to-maybe.js +23 -51
  36. package/dataflow/environments/resolve-by-name.js +37 -76
  37. package/dataflow/eval/resolve/resolve-argument.d.ts +3 -1
  38. package/dataflow/eval/resolve/resolve-argument.js +61 -64
  39. package/dataflow/eval/resolve/resolve-working-directory.d.ts +8 -2
  40. package/dataflow/eval/resolve/resolve-working-directory.js +12 -20
  41. package/dataflow/eval/resolve/resolve.d.ts +4 -0
  42. package/dataflow/eval/resolve/resolve.js +23 -14
  43. package/dataflow/extractor.js +185 -59
  44. package/dataflow/fn/class-declaration.d.ts +8 -2
  45. package/dataflow/fn/class-declaration.js +96 -97
  46. package/dataflow/fn/exceptions-of-function.js +68 -37
  47. package/dataflow/fn/frame-reflection.d.ts +12 -4
  48. package/dataflow/fn/frame-reflection.js +64 -42
  49. package/dataflow/fn/function-props.js +15 -33
  50. package/dataflow/fn/function-semantics.d.ts +11 -3
  51. package/dataflow/fn/function-semantics.js +6 -0
  52. package/dataflow/fn/higher-order-function.js +13 -17
  53. package/dataflow/fn/strict-function.d.ts +13 -0
  54. package/dataflow/fn/strict-function.js +285 -122
  55. package/dataflow/graph/call-graph.d.ts +7 -6
  56. package/dataflow/graph/call-graph.js +35 -46
  57. package/dataflow/graph/graph.d.ts +6 -1
  58. package/dataflow/graph/graph.js +57 -66
  59. package/dataflow/info.d.ts +8 -1
  60. package/dataflow/info.js +24 -30
  61. package/dataflow/internal/control-flow.d.ts +42 -4
  62. package/dataflow/internal/control-flow.js +76 -39
  63. package/dataflow/internal/linker.d.ts +15 -9
  64. package/dataflow/internal/linker.js +253 -241
  65. package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.d.ts +80 -14
  66. package/dataflow/internal/process/functions/call/built-in/built-in-ambient-state.js +441 -79
  67. package/dataflow/internal/process/functions/call/built-in/built-in-apply.d.ts +3 -1
  68. package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +51 -48
  69. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.d.ts +2 -2
  70. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +119 -185
  71. package/dataflow/internal/process/functions/call/built-in/built-in-class-generator.js +7 -9
  72. package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.d.ts +1 -1
  73. package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +122 -147
  74. package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +55 -25
  75. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +290 -252
  76. package/dataflow/internal/process/functions/call/built-in/built-in-get.d.ts +1 -1
  77. package/dataflow/internal/process/functions/call/built-in/built-in-get.js +30 -32
  78. package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +68 -67
  79. package/dataflow/internal/process/functions/call/built-in/built-in-library.js +72 -126
  80. package/dataflow/internal/process/functions/call/built-in/built-in-local.d.ts +1 -3
  81. package/dataflow/internal/process/functions/call/built-in/built-in-local.js +10 -10
  82. package/dataflow/internal/process/functions/call/built-in/built-in-quote.d.ts +4 -4
  83. package/dataflow/internal/process/functions/call/built-in/built-in-quote.js +9 -35
  84. package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +8 -3
  85. package/dataflow/internal/process/functions/call/built-in/built-in-s-four.d.ts +1 -1
  86. package/dataflow/internal/process/functions/call/built-in/built-in-s-four.js +12 -28
  87. package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.d.ts +1 -1
  88. package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.js +40 -118
  89. package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.d.ts +1 -3
  90. package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.js +16 -24
  91. package/dataflow/internal/process/functions/call/built-in/built-in-source.d.ts +2 -0
  92. package/dataflow/internal/process/functions/call/built-in/built-in-source.js +93 -102
  93. package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.d.ts +7 -3
  94. package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +173 -114
  95. package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.d.ts +1 -3
  96. package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +22 -27
  97. package/dataflow/internal/process/functions/call/built-in/built-in-with.d.ts +1 -1
  98. package/dataflow/internal/process/functions/call/built-in/built-in-with.js +34 -9
  99. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +1 -1
  100. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +120 -93
  101. package/dataflow/internal/process/functions/call/common.d.ts +1 -3
  102. package/dataflow/internal/process/functions/call/common.js +36 -76
  103. package/dataflow/internal/process/functions/call/deferred.d.ts +6 -2
  104. package/dataflow/internal/process/functions/call/deferred.js +60 -58
  105. package/dataflow/internal/process/functions/call/known-call-handling.d.ts +4 -2
  106. package/dataflow/internal/process/functions/call/known-call-handling.js +65 -68
  107. package/dataflow/internal/process/functions/call/named-call-handling.d.ts +3 -5
  108. package/dataflow/internal/process/functions/call/named-call-handling.js +44 -21
  109. package/dataflow/internal/process/functions/call/quoted.d.ts +2 -0
  110. package/dataflow/internal/process/functions/call/quoted.js +162 -172
  111. package/dataflow/internal/process/functions/call/unnamed-call-handling.js +17 -38
  112. package/dataflow/internal/process/functions/process-parameter.js +25 -32
  113. package/dataflow/internal/process/process-symbol.js +3 -6
  114. package/dataflow/internal/program-order.d.ts +26 -0
  115. package/dataflow/internal/program-order.js +49 -0
  116. package/documentation/doc-capabilities.js +4 -1
  117. package/documentation/wiki-interface.js +4 -0
  118. package/documentation/wiki-setup.js +23 -0
  119. package/engines.js +11 -3
  120. package/linter/linter-executor.js +19 -1
  121. package/linter/linter-rules.d.ts +17 -8
  122. package/linter/rules/absolute-path.js +63 -87
  123. package/linter/rules/file-path-validity.d.ts +4 -2
  124. package/linter/rules/file-path-validity.js +117 -80
  125. package/linter/rules/namespace-access.js +21 -33
  126. package/linter/rules/naming-convention.d.ts +1 -1
  127. package/linter/rules/naming-convention.js +60 -48
  128. package/linter/rules/network-functions.js +11 -7
  129. package/linter/rules/no-leaked-credentials.js +15 -18
  130. package/linter/rules/problematic-inputs.d.ts +2 -1
  131. package/linter/rules/problematic-inputs.js +39 -59
  132. package/linter/rules/roxygen-arguments.d.ts +9 -4
  133. package/linter/rules/roxygen-arguments.js +29 -48
  134. package/linter/rules/seeded-randomness.d.ts +7 -4
  135. package/linter/rules/seeded-randomness.js +130 -89
  136. package/linter/rules/stop-with-call-arg.d.ts +4 -2
  137. package/linter/rules/stop-with-call-arg.js +25 -22
  138. package/linter/rules/unclosed-connection.js +31 -24
  139. package/linter/rules/undefined-symbol.d.ts +4 -6
  140. package/linter/rules/undefined-symbol.js +58 -75
  141. package/linter/rules/unescaped-arguments.js +18 -44
  142. package/linter/rules/unused-definition.d.ts +6 -0
  143. package/linter/rules/unused-definition.js +105 -145
  144. package/linter/rules/unused-import.d.ts +3 -0
  145. package/linter/rules/unused-import.js +25 -43
  146. package/package.json +5 -2
  147. package/project/flowr-analyzer.js +6 -2
  148. package/project/plugins/file-plugins/files/flowr-jupyter-file.d.ts +2 -2
  149. package/project/plugins/file-plugins/files/flowr-jupyter-file.js +8 -12
  150. package/project/plugins/file-plugins/files/flowr-rda-file.d.ts +14 -5
  151. package/project/plugins/file-plugins/files/flowr-rda-file.js +35 -24
  152. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +7 -5
  153. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +34 -56
  154. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +18 -42
  155. package/project/sigdb/decompress.js +3 -1
  156. package/project/sigdb/sigdb-download.js +9 -6
  157. package/queries/base-query-format.js +1 -2
  158. package/queries/catalog/absint-query/absint-query-format.js +1 -1
  159. package/queries/catalog/config-query/config-query-executor.js +9 -2
  160. package/queries/catalog/dataflow-query/dataflow-query-executor.js +2 -2
  161. package/queries/catalog/dataflow-query/dataflow-query-format.d.ts +2 -0
  162. package/queries/catalog/dataflow-query/dataflow-query-format.js +4 -7
  163. package/queries/catalog/dependencies-query/dependencies-query-executor.js +50 -114
  164. package/queries/catalog/dependencies-query/function-info/library-functions.d.ts +5 -9
  165. package/queries/catalog/dependencies-query/function-info/library-functions.js +6 -0
  166. package/queries/catalog/dependencies-query/function-info/read-functions.js +1 -1
  167. package/queries/catalog/dependencies-query/function-info/write-functions.js +7 -3
  168. package/queries/catalog/input-sources-query/simple-input-classifier.d.ts +4 -4
  169. package/queries/catalog/input-sources-query/simple-input-classifier.js +192 -301
  170. package/r-bridge/lang-4.x/ast/model/model.d.ts +3 -1
  171. package/r-bridge/lang-4.x/ast/model/model.js +19 -43
  172. package/r-bridge/lang-4.x/ast/model/nodes/r-access.d.ts +1 -0
  173. package/r-bridge/lang-4.x/ast/model/nodes/r-argument.d.ts +3 -0
  174. package/r-bridge/lang-4.x/ast/model/nodes/r-argument.js +5 -12
  175. package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.d.ts +1 -0
  176. package/r-bridge/lang-4.x/ast/model/nodes/r-break.d.ts +1 -0
  177. package/r-bridge/lang-4.x/ast/model/nodes/r-comment.d.ts +1 -0
  178. package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.d.ts +1 -0
  179. package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.d.ts +1 -0
  180. package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.d.ts +1 -0
  181. package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.d.ts +1 -0
  182. package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.d.ts +1 -0
  183. package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.d.ts +1 -0
  184. package/r-bridge/lang-4.x/ast/model/nodes/r-logical.d.ts +1 -0
  185. package/r-bridge/lang-4.x/ast/model/nodes/r-next.d.ts +1 -0
  186. package/r-bridge/lang-4.x/ast/model/nodes/r-number.d.ts +1 -0
  187. package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.d.ts +1 -0
  188. package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.d.ts +1 -0
  189. package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.d.ts +1 -0
  190. package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +1 -0
  191. package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.d.ts +1 -0
  192. package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.d.ts +1 -0
  193. package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.d.ts +1 -0
  194. package/r-bridge/roxygen2/roxygen-parse.js +28 -42
  195. package/r-bridge/shell-executor.js +2 -0
  196. package/r-bridge/shell.js +8 -0
  197. package/search/search-executor/search-enrichers.js +25 -37
  198. package/slicing/static/slice-call.d.ts +4 -3
  199. package/slicing/static/slice-call.js +56 -88
  200. package/slicing/static/static-slicer.js +120 -79
  201. package/slicing/static/visiting-queue.d.ts +4 -6
  202. package/slicing/static/visiting-queue.js +9 -13
  203. package/util/files.d.ts +6 -0
  204. package/util/files.js +12 -0
  205. package/util/parallel.js +2 -0
  206. package/util/proc.js +2 -1
  207. package/util/r-base-packages.d.ts +2 -0
  208. package/util/r-base-packages.js +23 -13
  209. package/util/secure-mode.d.ts +42 -0
  210. package/util/secure-mode.js +70 -0
  211. package/util/text/playground-link.d.ts +12 -3
  212. package/util/text/playground-link.js +18 -27
  213. package/util/version.js +4 -10
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DispatchCallees = exports.ArgProps = exports.FnSig = exports.CallProps = exports.PropagatedProps = exports.FileInputProps = exports.SigDbInferable = exports.InputProps = exports.ExclusiveCallProps = exports.ImpureProps = exports.ProvenanceProps = exports.SemanticCallTag = exports.CallProp = exports.ArgProp = void 0;
4
4
  exports.fnInfoFromSignature = fnInfoFromSignature;
5
5
  const record_1 = require("../../util/record");
6
+ const logic_1 = require("../../util/logic");
6
7
  /**
7
8
  * What a single argument of a call is used for, as a bitmask ({@link ArgProp.Forced}/{@link ArgProp.NoDefault}
8
9
  * lead, being the two bits the signature database can also state).
@@ -311,16 +312,11 @@ exports.CallProps = {
311
312
  },
312
313
  /** Gets the string labels for stated properties {@link CallPropLabels}. */
313
314
  labels(stated) {
314
- if (stated === undefined) {
315
- return [];
316
- }
317
- const callProps = record_1.Record.keys(CallPropLabels).filter(prop => ((stated?.props ?? 0) & prop) !== 0).map(prop => CallPropLabels[prop]);
318
- const semanticProps = stated.tags ?? [];
319
- return [...callProps, ...semanticProps];
315
+ return [...exports.CallProps.words(stated?.props), ...stated?.tags ?? []];
320
316
  },
321
317
  /** The {@link CallPropLabels} words for a bare {@link CallProps} bitfield, as inferred functions carry one. */
322
318
  words(props) {
323
- return props === undefined ? [] : record_1.Record.keys(CallPropLabels).filter(prop => (props & prop) !== 0).map(prop => CallPropLabels[prop]);
319
+ return wordsOf(CallPropEntries, props);
324
320
  },
325
321
  /** The {@link PropMask} the given {@link CallProp}/{@link SemanticCallTag} member names stand for, unknown ones ignored. */
326
322
  mask(names) {
@@ -355,6 +351,8 @@ exports.FnSig = {
355
351
  posWith: argsWith,
356
352
  /** Which of the first `count` arguments a call evaluates; see {@link forcedArgs}. */
357
353
  forced: forcedArgs,
354
+ /** How surely a call evaluates each of the first `count` arguments; see {@link argForcing}. */
355
+ forcing: argForcing,
358
356
  /** A signature saying only that the call evaluates every argument; see {@link ForcingEvery}. */
359
357
  every: ForcingEvery,
360
358
  /** A signature saying only that the call evaluates one argument; see {@link forcingOnly}. */
@@ -415,6 +413,7 @@ function bitEntries(byBit) {
415
413
  return Object.entries(byBit).map(([bit, word]) => [Number(bit), word]);
416
414
  }
417
415
  const ArgPropEntries = bitEntries(ArgPropNames);
416
+ const CallPropEntries = bitEntries(CallPropLabels);
418
417
  /**
419
418
  * Utility functions for {@link ArgProps|argument property bitfields}.
420
419
  */
@@ -463,25 +462,32 @@ function forcingOnly(index, name) {
463
462
  * A signature is the one place that says so, which is why nothing else may state it alongside.
464
463
  */
465
464
  function forcedArgs(sig, count) {
466
- if (sig === undefined) {
467
- return undefined;
468
- }
469
- const layout = sigLayout(sig);
470
- if ((layout.any & ArgProp.Forced) === 0) {
465
+ const layout = sig === undefined ? undefined : sigLayout(sig);
466
+ if (layout === undefined || (layout.any & ArgProp.Forced) === 0) {
471
467
  return undefined;
472
468
  }
473
469
  const cache = layout.forced ??= [];
474
470
  return cache[count] ??= Array.from({ length: count }, (_, i) => (argProp(layout, i) & ArgProp.Forced) !== 0);
475
471
  }
472
+ /**
473
+ * How surely a call evaluates each of the first `count` arguments: {@link ArgProp.Forced} always,
474
+ * {@link ArgProp.Nse} and {@link ArgProp.Presence} never, anything else maybe; `undefined` without a signature.
475
+ */
476
+ function argForcing(sig, count) {
477
+ if (sig === undefined) {
478
+ return undefined;
479
+ }
480
+ const layout = sigLayout(sig);
481
+ const cache = layout.forcing ??= [];
482
+ return cache[count] ??= Array.from({ length: count }, (_, i) => {
483
+ const props = argProp(layout, i);
484
+ return (props & ArgProp.Forced) !== 0 ? logic_1.Ternary.Always
485
+ : (props & (ArgProp.Nse | ArgProp.Presence)) !== 0 ? logic_1.Ternary.Never : logic_1.Ternary.Maybe;
486
+ });
487
+ }
476
488
  /** The positions of the first `count` arguments that carry any of `prop`. */
477
489
  function argsWith(layout, count, prop) {
478
- const found = [];
479
- for (let i = 0; i < count; i++) {
480
- if ((exports.FnSig.propAt(layout, i) & prop) !== 0) {
481
- found.push(i);
482
- }
483
- }
484
- return found;
490
+ return Array.from({ length: count }, (_, i) => i).filter(i => (argProp(layout, i) & prop) !== 0);
485
491
  }
486
492
  /** the {@link DecodedFunction#props} names that have a {@link CallProp} counterpart, together {@link SigDbInferable} */
487
493
  const SigDbProps = {
@@ -1,7 +1,7 @@
1
1
  import type { DataflowProcessorInformation } from '../processor';
2
2
  import type { DataflowInformation } from '../info';
3
3
  import { ExitPointType } from '../info';
4
- import { NseArguments } from '../internal/process/functions/call/known-call-handling';
4
+ import { type NseArguments } from '../internal/process/functions/call/known-call-handling';
5
5
  import { processAccess } from '../internal/process/functions/call/built-in/built-in-access';
6
6
  import { processIfThenElse } from '../internal/process/functions/call/built-in/built-in-if-then-else';
7
7
  import { processAssignment, processAssignmentLike, processDefineArgument } from '../internal/process/functions/call/built-in/built-in-assignment';
@@ -87,7 +87,7 @@ export interface DefaultBuiltInProcessorConfiguration extends BuiltInFnInfo {
87
87
  readonly keepArgumentOut?: boolean;
88
88
  readonly hasUnknownSideEffects?: boolean | LinkTo<RegExp | string>;
89
89
  /** how the call reads or writes global state like the graphics parameters or the options, see {@link AmbientStateAccess} */
90
- readonly ambient?: AmbientStateAccess;
90
+ readonly ambient?: AmbientStateAccess | readonly AmbientStateAccess[];
91
91
  /** the call changes that state for a scope only, see {@link AmbientScope} */
92
92
  readonly scope?: AmbientScope;
93
93
  /** record mapping the actual function name called to the arguments that should be treated as function calls */
@@ -81,8 +81,8 @@ function dataArgumentSymbols(args, sig) {
81
81
  if (r_argument_1.RArgument.isEmpty(arg) || (prop & built_in_props_1.ArgProp.Atomic) === 0 || (prop & (built_in_props_1.ArgProp.Callee | built_in_props_1.ArgProp.Nse)) !== 0) {
82
82
  continue;
83
83
  }
84
- const value = r_argument_1.RArgument.is(arg) ? arg.value : arg;
85
- if (value !== undefined && r_symbol_1.RSymbol.is(value)) {
84
+ const value = r_argument_1.RArgument.valueOf(arg);
85
+ if (r_symbol_1.RSymbol.is(value)) {
86
86
  (symbols ??= new Set()).add(value.info.id);
87
87
  }
88
88
  }
@@ -97,7 +97,7 @@ function defaultBuiltInProcessor(name, args, rootId, data, { useAsProcessor = bu
97
97
  if (layout !== undefined) {
98
98
  nse ??= (layout.any & built_in_props_1.ArgProp.Nse) !== 0 ? function_semantics_1.FunctionSemantics.call.signature.posWith(layout, args.length, built_in_props_1.ArgProp.Nse) : undefined;
99
99
  }
100
- const nsePositions = nsePositionsOf(nse, args.length);
100
+ const nsePositions = nse === undefined ? undefined : new Set((0, known_call_handling_1.nseArgumentPositions)(nse, args.length));
101
101
  let lastEnv = data.environment;
102
102
  /* `evalq(expr)` runs `expr` right here, in the frame it is called from */
103
103
  const inPlace = args.length === 1 && identifier_1.Identifier.getName(name.content) === 'evalq';
@@ -122,88 +122,49 @@ function defaultBuiltInProcessor(name, args, rootId, data, { useAsProcessor = bu
122
122
  if (keepArgumentOut) {
123
123
  res.out = [...res.out, ...processedArguments.flatMap(arg => arg?.out ?? [])];
124
124
  }
125
- if (layout !== undefined && layout.alias >= 0) {
126
- const arg = processedArguments[layout.alias];
127
- if (arg !== undefined) {
128
- res.graph.addEdge(rootId, arg.entryPoint, edge_1.EdgeType.Returns);
129
- }
125
+ const alias = layout !== undefined && layout.alias >= 0 ? processedArguments[layout.alias] : undefined;
126
+ if (alias !== undefined) {
127
+ res.graph.addEdge(rootId, alias.entryPoint, edge_1.EdgeType.Returns);
130
128
  }
131
129
  if (readAllArguments) {
132
- for (const arg of processedArguments) {
133
- if (arg) {
134
- res.graph.addEdge(rootId, arg.entryPoint, edge_1.EdgeType.Reads);
135
- }
136
- }
130
+ readArguments(res.graph, rootId, processedArguments);
137
131
  }
138
132
  else if (layout !== undefined && (layout.any & (built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Shape)) !== 0) {
139
- for (const i of function_semantics_1.FunctionSemantics.call.signature.posWith(layout, processedArguments.length, built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Shape)) {
140
- const arg = processedArguments[i];
141
- if (arg) {
142
- res.graph.addEdge(rootId, arg.entryPoint, edge_1.EdgeType.Reads);
143
- }
144
- }
133
+ const valuePositions = function_semantics_1.FunctionSemantics.call.signature.posWith(layout, processedArguments.length, built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Shape);
134
+ readArguments(res.graph, rootId, valuePositions.map(i => processedArguments[i]));
145
135
  }
146
136
  if (hasUnknownSideEffects) {
147
- if (typeof hasUnknownSideEffects === 'boolean') {
148
- (0, unknown_side_effect_1.handleUnknownSideEffect)(res.graph, res.environment, rootId);
149
- }
150
- else {
151
- (0, unknown_side_effect_1.handleUnknownSideEffect)(res.graph, res.environment, rootId, hasUnknownSideEffects);
152
- }
137
+ (0, unknown_side_effect_1.handleUnknownSideEffect)(res.graph, res.environment, rootId, hasUnknownSideEffects === true ? undefined : hasUnknownSideEffects);
153
138
  }
154
- const fnCallNames = treatAsFnCall?.[identifier_1.Identifier.getName(name.content)];
155
- if (fnCallNames) {
156
- for (const arg of args) {
157
- if (arg !== r_function_call_1.EmptyArgument && arg.value && fnCallNames.includes(arg.name?.content)) {
158
- const rhs = arg.value;
159
- let fnName;
160
- let fnId;
161
- if (r_string_1.RString.is(rhs)) {
162
- fnName = rhs.content.str;
163
- fnId = rhs.info.id;
164
- }
165
- else if (r_symbol_1.RSymbol.is(rhs)) {
166
- fnName = rhs.content;
167
- fnId = rhs.info.id;
168
- }
169
- else {
170
- continue;
171
- }
172
- res.graph.updateToFunctionCall({
173
- tag: vertex_1.VertexType.FunctionCall,
174
- id: fnId,
175
- name: fnName,
176
- args: [],
177
- environment: data.environment,
178
- onlyBuiltin: false,
179
- cds: data.cds,
180
- origin: [useAsProcessor]
181
- });
182
- }
139
+ const fnCallNames = treatAsFnCall?.[identifier_1.Identifier.getName(name.content)] ?? [];
140
+ for (const arg of args) {
141
+ const rhs = arg !== r_function_call_1.EmptyArgument && fnCallNames.includes(arg.name?.content) ? arg.value : undefined;
142
+ if (r_string_1.RString.is(rhs) || r_symbol_1.RSymbol.is(rhs)) {
143
+ res.graph.updateToFunctionCall({
144
+ tag: vertex_1.VertexType.FunctionCall,
145
+ id: rhs.info.id,
146
+ name: r_string_1.RString.is(rhs) ? rhs.content.str : rhs.content,
147
+ args: [],
148
+ environment: data.environment,
149
+ onlyBuiltin: false,
150
+ cds: data.cds,
151
+ origin: [useAsProcessor]
152
+ });
183
153
  }
184
154
  }
185
155
  if (cfg !== undefined) {
186
156
  /* the call jumps, so it never falls through to whatever follows it */
187
157
  const exitPoints = res.exitPoints.filter(e => e.type !== 0 /* ExitPointType.Default */ || e.nodeId !== rootId);
188
- exitPoints.push({ type: cfg, nodeId: rootId, cds: data.cds });
189
- res.exitPoints = exitPoints;
158
+ res.exitPoints = [...exitPoints, { type: cfg, nodeId: rootId, cds: data.cds }];
190
159
  }
191
160
  return ambient === undefined ? res : (0, built_in_ambient_state_1.applyAmbientStateAccess)(res, args, rootId, data, ambient);
192
161
  }
193
- /** The argument positions {@link markArgumentsAsNonStandardEvaluation} would mark as quoted. */
194
- function nsePositionsOf(which, count) {
195
- if (which === undefined) {
196
- return undefined;
197
- }
198
- else if (typeof which !== 'string') {
199
- return new Set(which);
200
- }
201
- const positions = new Set();
202
- const end = which === known_call_handling_1.NseArguments.First ? Math.min(1, count) : count;
203
- for (let i = which === known_call_handling_1.NseArguments.AllButFirst ? 1 : 0; i < end; i++) {
204
- positions.add(i);
162
+ function readArguments(graph, rootId, args) {
163
+ for (const arg of args) {
164
+ if (arg) {
165
+ graph.addEdge(rootId, arg.entryPoint, edge_1.EdgeType.Reads);
166
+ }
205
167
  }
206
- return positions;
207
168
  }
208
169
  /** Whatever a quoted argument saw in its clean env must not be resolved in the caller's frame afterwards. */
209
170
  function dropQuotedReferences(res, processedArguments, nsePositions, lastEnv) {
@@ -227,16 +188,18 @@ function defaultBuiltInProcessorReadallArgs(name, args, rootId, data, { useAsPro
227
188
  const { information, processedArguments } = (0, known_call_handling_1.processKnownFunctionCall)({
228
189
  name, args, rootId, data, sig, origin: useAsProcessor, nonFunction: dataArgumentSymbols(args, sig)
229
190
  });
230
- const g = information.graph;
231
- for (const arg of processedArguments) {
232
- if (arg) {
233
- g.addEdge(rootId, arg.entryPoint, edge_1.EdgeType.Reads);
234
- }
235
- }
236
- (0, known_call_handling_1.markArgumentsAsNonStandardEvaluation)(g, rootId, processedArguments, nse);
237
- (0, known_call_handling_1.markArgumentsAsNonStandardEvaluation)(g, rootId, processedArguments, masked, { kind: known_call_handling_1.NseKind.DataMasked });
191
+ readArguments(information.graph, rootId, processedArguments);
192
+ (0, known_call_handling_1.markArgumentsAsNonStandardEvaluation)(information.graph, rootId, processedArguments, nse);
193
+ (0, known_call_handling_1.markArgumentsAsNonStandardEvaluation)(information.graph, rootId, processedArguments, masked, { kind: known_call_handling_1.NseKind.DataMasked });
238
194
  return ambient === undefined ? information : (0, built_in_ambient_state_1.applyAmbientStateAccess)(information, args, rootId, data, ambient);
239
195
  }
196
+ /** A call that reads or writes the files its arguments name accesses the {@link AmbientStateName.files|files on disk} as well. */
197
+ function withFileAccess(config) {
198
+ const { tags, ambient, sig } = (config ?? {});
199
+ const type = !tags?.includes(built_in_props_1.SemanticCallTag.File) ? undefined : tags.includes(built_in_props_1.SemanticCallTag.Writes) ? "write-files" /* AmbientStateAccessType.WriteFiles */ : tags.includes(built_in_props_1.SemanticCallTag.Reads) ? "read-files" /* AmbientStateAccessType.ReadFiles */ : undefined;
200
+ const stated = [ambient ?? []].flat();
201
+ return type === undefined || stated.some(a => a.type === type) ? config : { ...config, ambient: [...stated, { type, sig: tags?.includes(built_in_props_1.SemanticCallTag.Glob) ? undefined : sig }] };
202
+ }
240
203
  exports.BuiltInProcessorMapper = {
241
204
  [built_in_proc_name_1.BuiltInProcName.Access]: built_in_access_1.processAccess,
242
205
  [built_in_proc_name_1.BuiltInProcName.Apply]: built_in_apply_1.processApply,
@@ -334,6 +297,7 @@ class BuiltIns {
334
297
  (0, assert_1.guard)(mappedProcessor !== undefined, () => `Processor for ${processor} is undefined! Please pass a valid builtin name ${JSON.stringify(Object.keys(exports.BuiltInProcessorMapper))}!`);
335
298
  const mappedEval = evalHandler === undefined ? undefined : exports.BuiltInEvalHandlerMapper[evalHandler];
336
299
  (0, assert_1.guard)(evalHandler === undefined || mappedEval !== undefined, () => `Eval handler ${evalHandler} is unknown! Please pass a valid one of ${JSON.stringify(Object.keys(exports.BuiltInEvalHandlerMapper))}!`);
300
+ config = withFileAccess(config);
337
301
  for (const name of names) {
338
302
  const n = identifier_1.Identifier.getName(name);
339
303
  const id = node_id_1.NodeId.toBuiltIn(n);
@@ -191,6 +191,9 @@ export declare const WrittenBuiltinDefinitions: [{
191
191
  readonly processor: BuiltInProcName.Default;
192
192
  readonly config: {
193
193
  readonly markArgsAsMasked: NseArguments.AllButFirst;
194
+ readonly ambient: {
195
+ readonly type: AmbientStateAccessType.DrawRng;
196
+ };
194
197
  readonly tags: [SemanticCallTag.Random];
195
198
  };
196
199
  readonly assumePrimitive: false;
@@ -287,6 +290,15 @@ export declare const WrittenBuiltinDefinitions: [{
287
290
  readonly sig: FnSig;
288
291
  };
289
292
  readonly assumePrimitive: true;
293
+ }, {
294
+ readonly type: "function";
295
+ readonly names: [Identifier];
296
+ readonly processor: BuiltInProcName.DefaultReadAllArgs;
297
+ readonly config: {
298
+ readonly props: CallProp.Pure;
299
+ readonly sig: [[".Data", number], ["...", number]];
300
+ };
301
+ readonly assumePrimitive: false;
290
302
  }, {
291
303
  readonly type: "function";
292
304
  readonly names: [Identifier];
@@ -1215,6 +1227,26 @@ export declare const WrittenBuiltinDefinitions: [{
1215
1227
  readonly sig: [["dsn", number], ["...", number]];
1216
1228
  };
1217
1229
  readonly assumePrimitive: false;
1230
+ }, {
1231
+ readonly type: "function";
1232
+ readonly names: [Identifier];
1233
+ readonly processor: BuiltInProcName.DefaultReadAllArgs;
1234
+ readonly config: {
1235
+ readonly libFn: true;
1236
+ readonly tags: [SemanticCallTag.File, SemanticCallTag.Writes];
1237
+ readonly sig: [["...", number], ["out", number]];
1238
+ };
1239
+ readonly assumePrimitive: false;
1240
+ }, {
1241
+ readonly type: "function";
1242
+ readonly names: Identifier[];
1243
+ readonly processor: BuiltInProcName.DefaultReadAllArgs;
1244
+ readonly config: {
1245
+ readonly libFn: true;
1246
+ readonly tags: [SemanticCallTag.File, SemanticCallTag.Writes];
1247
+ readonly sig: [["l", number], ["file", number]];
1248
+ };
1249
+ readonly assumePrimitive: false;
1218
1250
  }, {
1219
1251
  readonly type: "function";
1220
1252
  readonly names: [Identifier];
@@ -2572,13 +2604,25 @@ export declare const WrittenBuiltinDefinitions: [{
2572
2604
  readonly assumePrimitive: false;
2573
2605
  }, {
2574
2606
  readonly type: "function";
2575
- readonly names: Identifier[];
2607
+ readonly names: [Identifier];
2576
2608
  readonly processor: BuiltInProcName.DefaultReadAllArgs;
2577
2609
  readonly config: {
2578
2610
  readonly tags: [SemanticCallTag.Opens];
2579
2611
  readonly sig: [["object", number]];
2580
2612
  };
2581
2613
  readonly assumePrimitive: false;
2614
+ }, {
2615
+ readonly type: "function";
2616
+ readonly names: [Identifier];
2617
+ readonly processor: BuiltInProcName.DefaultReadAllArgs;
2618
+ readonly config: {
2619
+ readonly ambient: {
2620
+ readonly type: AmbientStateAccessType.OpenTextConnection;
2621
+ };
2622
+ readonly tags: [SemanticCallTag.Opens];
2623
+ readonly sig: [["object", number]];
2624
+ };
2625
+ readonly assumePrimitive: false;
2582
2626
  }, {
2583
2627
  readonly type: "function";
2584
2628
  readonly names: Identifier[];
@@ -2725,7 +2769,6 @@ export declare const WrittenBuiltinDefinitions: [{
2725
2769
  readonly processor: BuiltInProcName.Default;
2726
2770
  readonly config: {
2727
2771
  readonly libFn: true;
2728
- readonly tags: [SemanticCallTag.Network, SemanticCallTag.Reads];
2729
2772
  readonly sig: [["x", number], ["...", number]];
2730
2773
  };
2731
2774
  readonly assumePrimitive: false;
@@ -2878,10 +2921,38 @@ export declare const WrittenBuiltinDefinitions: [{
2878
2921
  readonly processor: BuiltInProcName.DefaultReadAllArgs;
2879
2922
  readonly config: {
2880
2923
  readonly props: number;
2924
+ readonly ambient: {
2925
+ readonly type: AmbientStateAccessType.WriteFiles;
2926
+ };
2881
2927
  readonly tags: [SemanticCallTag.Closes];
2882
2928
  readonly sig: [["con", number], ["...", number]];
2883
2929
  };
2884
2930
  readonly assumePrimitive: false;
2931
+ }, {
2932
+ readonly type: "function";
2933
+ readonly names: [Identifier];
2934
+ readonly processor: BuiltInProcName.DefaultReadAllArgs;
2935
+ readonly config: {
2936
+ readonly props: CallProp.Invisible;
2937
+ readonly ambient: {
2938
+ readonly type: AmbientStateAccessType.WriteFiles;
2939
+ };
2940
+ readonly tags: [SemanticCallTag.Closes];
2941
+ readonly sig: [["con", number], ["type", number], ["...", number]];
2942
+ };
2943
+ readonly assumePrimitive: false;
2944
+ }, {
2945
+ readonly type: "function";
2946
+ readonly names: [Identifier];
2947
+ readonly processor: BuiltInProcName.DefaultReadAllArgs;
2948
+ readonly config: {
2949
+ readonly props: number;
2950
+ readonly ambient: {
2951
+ readonly type: AmbientStateAccessType.WriteFiles;
2952
+ };
2953
+ readonly sig: [["con", number]];
2954
+ };
2955
+ readonly assumePrimitive: false;
2885
2956
  }, {
2886
2957
  readonly type: "function";
2887
2958
  readonly names: [Identifier];
@@ -3014,6 +3085,35 @@ export declare const WrittenBuiltinDefinitions: [{
3014
3085
  };
3015
3086
  };
3016
3087
  readonly assumePrimitive: false;
3088
+ }, {
3089
+ readonly type: "function";
3090
+ readonly names: [Identifier];
3091
+ readonly processor: BuiltInProcName.Default;
3092
+ readonly config: {
3093
+ readonly libFn: true;
3094
+ readonly props: CallProp.Configures;
3095
+ readonly tags: [SemanticCallTag.Random];
3096
+ readonly scope: {
3097
+ readonly state: "rng";
3098
+ readonly params: readonly ["seed", "code", ".rng_kind", ".rng_normal_kind", ".rng_sample_kind"];
3099
+ readonly code: "code";
3100
+ };
3101
+ };
3102
+ readonly assumePrimitive: false;
3103
+ }, {
3104
+ readonly type: "function";
3105
+ readonly names: [Identifier];
3106
+ readonly processor: BuiltInProcName.Default;
3107
+ readonly config: {
3108
+ readonly libFn: true;
3109
+ readonly props: number;
3110
+ readonly tags: [SemanticCallTag.Random];
3111
+ readonly scope: {
3112
+ readonly state: "rng";
3113
+ readonly params: readonly ["seed", ".local_envir", ".rng_kind", ".rng_normal_kind", ".rng_sample_kind"];
3114
+ };
3115
+ };
3116
+ readonly assumePrimitive: false;
3017
3117
  }, {
3018
3118
  readonly type: "function";
3019
3119
  readonly names: [Identifier];
@@ -3046,7 +3146,7 @@ export declare const WrittenBuiltinDefinitions: [{
3046
3146
  readonly assumePrimitive: false;
3047
3147
  }, {
3048
3148
  readonly type: "function";
3049
- readonly names: [Identifier];
3149
+ readonly names: Identifier[];
3050
3150
  readonly processor: BuiltInProcName.DefaultReadAllArgs;
3051
3151
  readonly config: {
3052
3152
  readonly tags: [SemanticCallTag.File, SemanticCallTag.Reads];
@@ -3103,6 +3203,24 @@ export declare const WrittenBuiltinDefinitions: [{
3103
3203
  readonly sig: [["file", number]];
3104
3204
  };
3105
3205
  readonly assumePrimitive: false;
3206
+ }, {
3207
+ readonly type: "function";
3208
+ readonly names: [Identifier];
3209
+ readonly processor: BuiltInProcName.DefaultReadAllArgs;
3210
+ readonly config: {
3211
+ readonly tags: [SemanticCallTag.File, SemanticCallTag.Writes];
3212
+ readonly sig: [["...", number], ["file", number], ["append", number], ["type", number], ["split", number]];
3213
+ };
3214
+ readonly assumePrimitive: false;
3215
+ }, {
3216
+ readonly type: "function";
3217
+ readonly names: Identifier[];
3218
+ readonly processor: BuiltInProcName.DefaultReadAllArgs;
3219
+ readonly config: {
3220
+ readonly tags: [SemanticCallTag.File, SemanticCallTag.Reads];
3221
+ readonly sig: [["...", number]];
3222
+ };
3223
+ readonly assumePrimitive: false;
3106
3224
  }, {
3107
3225
  readonly type: "function";
3108
3226
  readonly names: Identifier[];
@@ -3166,6 +3284,9 @@ export declare const WrittenBuiltinDefinitions: [{
3166
3284
  readonly names: [Identifier];
3167
3285
  readonly processor: BuiltInProcName.DefaultReadAllArgs;
3168
3286
  readonly config: {
3287
+ readonly ambient: {
3288
+ readonly type: AmbientStateAccessType.DrawRng;
3289
+ };
3169
3290
  readonly tags: [SemanticCallTag.Random];
3170
3291
  readonly sig: [["x", ArgProp.NoDefault], ["factor", 0], ["amount", 0]];
3171
3292
  };
@@ -3175,6 +3296,9 @@ export declare const WrittenBuiltinDefinitions: [{
3175
3296
  readonly names: Identifier[];
3176
3297
  readonly processor: BuiltInProcName.DefaultReadAllArgs;
3177
3298
  readonly config: {
3299
+ readonly ambient: {
3300
+ readonly type: AmbientStateAccessType.DrawRng;
3301
+ };
3178
3302
  readonly tags: [SemanticCallTag.Random];
3179
3303
  };
3180
3304
  readonly assumePrimitive: false;
@@ -3187,6 +3311,28 @@ export declare const WrittenBuiltinDefinitions: [{
3187
3311
  readonly sig: [["...", 0]];
3188
3312
  };
3189
3313
  readonly assumePrimitive: true;
3314
+ }, {
3315
+ readonly type: "function";
3316
+ readonly names: [Identifier];
3317
+ readonly processor: BuiltInProcName.Default;
3318
+ readonly config: {
3319
+ readonly ambient: {
3320
+ readonly type: AmbientStateAccessType.RegisterFinalizer;
3321
+ };
3322
+ readonly sig: [["e", ArgProp.Forced], ["f", ArgProp.Forced], ["onexit", number]];
3323
+ };
3324
+ readonly assumePrimitive: false;
3325
+ }, {
3326
+ readonly type: "function";
3327
+ readonly names: [Identifier];
3328
+ readonly processor: BuiltInProcName.Default;
3329
+ readonly config: {
3330
+ readonly ambient: {
3331
+ readonly type: AmbientStateAccessType.RunFinalizers;
3332
+ };
3333
+ readonly sig: [["verbose", number], ["reset", number], ["full", number]];
3334
+ };
3335
+ readonly assumePrimitive: false;
3190
3336
  }, {
3191
3337
  readonly type: "function";
3192
3338
  readonly names: [Identifier];
@@ -3649,25 +3795,6 @@ export declare const WrittenBuiltinDefinitions: [{
3649
3795
  readonly sig: FnSig;
3650
3796
  };
3651
3797
  readonly assumePrimitive: true;
3652
- }, {
3653
- readonly overrides: true;
3654
- readonly type: "function";
3655
- readonly names: Identifier[];
3656
- readonly processor: BuiltInProcName.Default;
3657
- readonly config: {
3658
- readonly tags: SemanticCallTags;
3659
- readonly treatAsFnCall: {
3660
- readonly facet_grid: readonly ["labeller"];
3661
- };
3662
- readonly hasUnknownSideEffects: {
3663
- readonly type: "link-to-last-call";
3664
- readonly callName: RegExp;
3665
- readonly ignoreIf: (source: NodeId, graph: DataflowGraph) => boolean;
3666
- readonly cascadeIf: (targetVertex: DataflowGraphVertexInfo, _: NodeId, graph: DataflowGraph) => CascadeAction.Stop | CascadeAction.Continue;
3667
- };
3668
- readonly sig: FnSig;
3669
- };
3670
- readonly assumePrimitive: true;
3671
3798
  }, {
3672
3799
  readonly type: "function";
3673
3800
  readonly names: (string | Identifier)[];
@@ -3811,10 +3938,26 @@ export declare const WrittenBuiltinDefinitions: [{
3811
3938
  readonly names: [Identifier];
3812
3939
  readonly processor: BuiltInProcName.Default;
3813
3940
  readonly config: {
3814
- readonly hasUnknownSideEffects: true;
3941
+ readonly ambient: {
3942
+ readonly type: AmbientStateAccessType.SetRng;
3943
+ };
3815
3944
  readonly props: number;
3816
3945
  readonly tags: [SemanticCallTag.Random];
3817
- readonly sig: [["seed", number]];
3946
+ readonly sig: [["seed", number], ["kind", number], ["normal.kind", number], ["sample.kind", number]];
3947
+ };
3948
+ readonly assumePrimitive: false;
3949
+ }, {
3950
+ readonly type: "function";
3951
+ readonly names: [Identifier];
3952
+ readonly processor: BuiltInProcName.Default;
3953
+ readonly config: {
3954
+ readonly ambient: {
3955
+ readonly type: AmbientStateAccessType.SetRng;
3956
+ readonly kindFrom: 0;
3957
+ };
3958
+ readonly props: CallProp.Configures;
3959
+ readonly tags: [SemanticCallTag.Random];
3960
+ readonly sig: [["kind", number], ["normal.kind", number], ["sample.kind", number]];
3818
3961
  };
3819
3962
  readonly assumePrimitive: false;
3820
3963
  }, {
@@ -3964,6 +4107,14 @@ export declare const WrittenBuiltinDefinitions: [{
3964
4107
  readonly sig: [["expr", number], ["...", ArgProp.Callee]];
3965
4108
  };
3966
4109
  readonly assumePrimitive: true;
4110
+ }, {
4111
+ readonly type: "function";
4112
+ readonly names: [Identifier];
4113
+ readonly processor: BuiltInProcName.Default;
4114
+ readonly config: {
4115
+ readonly sig: [["r", number], ["...", number]];
4116
+ };
4117
+ readonly assumePrimitive: true;
3967
4118
  }, {
3968
4119
  readonly type: "function";
3969
4120
  readonly names: [Identifier, Identifier];
@@ -4466,7 +4617,7 @@ export declare const WrittenBuiltinDefinitions: [{
4466
4617
  readonly processor: BuiltInProcName.DefineArgument;
4467
4618
  readonly config: {
4468
4619
  readonly superAssignment: true;
4469
- readonly sig: [["...", 0], ["list", 0], ["package", 0], ["lib.loc", 0], ["verbose", 0], ["envir", 0], ["overwrite", 0]];
4620
+ readonly sig: [["...", 0], ["list", ArgProp.Value], ["package", 0], ["lib.loc", 0], ["verbose", 0], ["envir", 0], ["overwrite", 0]];
4470
4621
  };
4471
4622
  readonly assumePrimitive: false;
4472
4623
  }, {
@@ -5001,7 +5152,6 @@ export declare const WrittenBuiltinDefinitions: [{
5001
5152
  readonly config: {
5002
5153
  readonly open: "${";
5003
5154
  readonly props: CallProp.MayPure;
5004
- readonly tags: [SemanticCallTag.Deprecated];
5005
5155
  };
5006
5156
  readonly assumePrimitive: false;
5007
5157
  }, {
@@ -6273,7 +6423,6 @@ export declare const WrittenBuiltinDefinitions: [{
6273
6423
  readonly config: {
6274
6424
  readonly markArgsAsMasked: NseArguments.AllButFirst;
6275
6425
  readonly props: CallProp.Pure;
6276
- readonly tags: [SemanticCallTag.Deprecated];
6277
6426
  readonly sig: FnSig;
6278
6427
  };
6279
6428
  readonly assumePrimitive: false;
@@ -6435,7 +6584,6 @@ export declare const WrittenBuiltinDefinitions: [{
6435
6584
  readonly config: {
6436
6585
  readonly markArgsAsMasked: NseArguments.AllButFirst;
6437
6586
  readonly props: CallProp.Pure;
6438
- readonly tags: [SemanticCallTag.Deprecated];
6439
6587
  readonly sig: [["data", ArgProp.Value], ["col", ArgProp.Value], ["into", ArgProp.Value], ["sep", ArgProp.Value], ["remove", ArgProp.Flag], ["convert", ArgProp.Flag]];
6440
6588
  };
6441
6589
  readonly assumePrimitive: false;
@@ -6609,7 +6757,6 @@ export declare const WrittenBuiltinDefinitions: [{
6609
6757
  readonly config: {
6610
6758
  readonly markArgsAsMasked: NseArguments.AllButFirst;
6611
6759
  readonly props: CallProp.Pure;
6612
- readonly tags: [SemanticCallTag.Deprecated];
6613
6760
  };
6614
6761
  readonly names: Identifier[];
6615
6762
  }, {
@@ -6661,6 +6808,11 @@ export declare const WrittenBuiltinDefinitions: [{
6661
6808
  readonly tags: [SemanticCallTag.Deprecated];
6662
6809
  };
6663
6810
  readonly names: Identifier[];
6811
+ }, {
6812
+ readonly type: "function";
6813
+ readonly processor: BuiltInProcName.DefaultReadAllArgs;
6814
+ readonly config: {};
6815
+ readonly names: Identifier[];
6664
6816
  }, {
6665
6817
  readonly overrides: true;
6666
6818
  readonly type: "function";