@eagleoutice/flowr 2.13.8 → 2.13.10

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 (152) hide show
  1. package/config.d.ts +50 -2
  2. package/config.js +37 -6
  3. package/dataflow/cluster.js +48 -24
  4. package/dataflow/environments/apply-kill.js +4 -4
  5. package/dataflow/environments/built-in-props.d.ts +28 -4
  6. package/dataflow/environments/built-in-props.js +31 -8
  7. package/dataflow/environments/built-in.d.ts +7 -2
  8. package/dataflow/environments/built-in.js +10 -12
  9. package/dataflow/environments/default-builtin-config.d.ts +76 -6
  10. package/dataflow/environments/default-builtin-config.js +39 -16
  11. package/dataflow/environments/environment.d.ts +16 -0
  12. package/dataflow/environments/environment.js +70 -18
  13. package/dataflow/environments/identifier.d.ts +6 -0
  14. package/dataflow/environments/identifier.js +18 -5
  15. package/dataflow/environments/query-fn-props.js +34 -2
  16. package/dataflow/environments/reference-to-maybe.js +1 -1
  17. package/dataflow/eval/resolve/alias-tracking.js +45 -1
  18. package/dataflow/eval/resolve/resolve-argument.js +25 -17
  19. package/dataflow/eval/resolve/resolve-strings.d.ts +17 -0
  20. package/dataflow/eval/resolve/resolve-strings.js +16 -9
  21. package/dataflow/eval/resolve/resolve.js +3 -1
  22. package/dataflow/graph/call-graph.d.ts +7 -0
  23. package/dataflow/graph/call-graph.js +103 -0
  24. package/dataflow/graph/df-helper.d.ts +2 -0
  25. package/dataflow/graph/graph.d.ts +6 -8
  26. package/dataflow/graph/graph.js +21 -6
  27. package/dataflow/internal/linker.d.ts +5 -5
  28. package/dataflow/internal/linker.js +31 -92
  29. package/dataflow/internal/process/functions/call/built-in/built-in-access.js +2 -2
  30. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +3 -9
  31. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +4 -30
  32. package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +2 -1
  33. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +1 -1
  34. package/dataflow/internal/process/functions/call/built-in/built-in-library.js +7 -1
  35. package/dataflow/internal/process/functions/call/built-in/built-in-load.js +3 -3
  36. package/dataflow/internal/process/functions/call/built-in/built-in-pipe.d.ts +1 -1
  37. package/dataflow/internal/process/functions/call/built-in/built-in-pipe.js +5 -1
  38. package/dataflow/internal/process/functions/call/built-in/built-in-with.d.ts +2 -2
  39. package/dataflow/internal/process/functions/call/built-in/built-in-with.js +5 -6
  40. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +32 -14
  41. package/dataflow/internal/process/functions/call/known-call-handling.d.ts +16 -4
  42. package/dataflow/internal/process/functions/call/known-call-handling.js +29 -8
  43. package/documentation/doc-util/doc-sigdb.d.ts +9 -0
  44. package/documentation/doc-util/doc-sigdb.js +32 -0
  45. package/documentation/wiki-interface.js +13 -2
  46. package/documentation/wiki-query.js +3 -0
  47. package/documentation/wiki-signature-database.js +2 -5
  48. package/gas.d.ts +6 -0
  49. package/gas.js +7 -1
  50. package/package.json +2 -2
  51. package/project/attached-packages.d.ts +13 -0
  52. package/project/attached-packages.js +30 -0
  53. package/project/context/flowr-analyzer-context.d.ts +15 -0
  54. package/project/context/flowr-analyzer-context.js +14 -3
  55. package/project/context/flowr-analyzer-files-context.d.ts +11 -0
  56. package/project/context/flowr-analyzer-files-context.js +3 -0
  57. package/project/context/flowr-analyzer-incremental-analysis-context.d.ts +4 -0
  58. package/project/context/flowr-analyzer-incremental-analysis-context.js +69 -0
  59. package/project/dependency-version-space.d.ts +45 -8
  60. package/project/dependency-version-space.js +86 -26
  61. package/project/plugins/file-plugins/files/flowr-namespace-file.js +52 -24
  62. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-library-plugin.d.ts +22 -0
  63. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-library-plugin.js +101 -0
  64. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.d.ts +30 -11
  65. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +79 -37
  66. package/project/plugins/package-version-plugins/package.d.ts +2 -0
  67. package/project/plugins/package-version-plugins/package.js +4 -0
  68. package/project/plugins/plugin-registry.d.ts +2 -1
  69. package/project/plugins/plugin-registry.js +2 -0
  70. package/project/sigdb/manifest.js +9 -5
  71. package/project/sigdb/signature-match.d.ts +5 -18
  72. package/project/sigdb/signature-match.js +5 -18
  73. package/queries/catalog/call-context-query/identify-link-to-last-call-relation.d.ts +4 -2
  74. package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +25 -0
  75. package/queries/catalog/call-graph-query/call-graph-query-executor.js +3 -1
  76. package/queries/catalog/call-graph-query/call-graph-query-format.d.ts +4 -0
  77. package/queries/catalog/call-graph-query/call-graph-query-format.js +4 -0
  78. package/queries/catalog/dataflow-lens-query/dataflow-lens-query-executor.js +11 -1
  79. package/queries/catalog/dependencies-query/dependencies-query-executor.js +13 -5
  80. package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +27 -1
  81. package/queries/catalog/dependencies-query/dependencies-query-format.js +69 -7
  82. package/queries/catalog/dependencies-query/function-info/library-functions.js +9 -2
  83. package/queries/catalog/dependencies-query/function-info/read-functions.js +31 -5
  84. package/queries/catalog/dependencies-query/function-info/remote-functions.d.ts +18 -0
  85. package/queries/catalog/dependencies-query/function-info/remote-functions.js +46 -0
  86. package/queries/catalog/dependencies-query/function-info/test-functions.d.ts +2 -0
  87. package/queries/catalog/dependencies-query/function-info/test-functions.js +33 -31
  88. package/queries/catalog/dependencies-query/function-info/visualize-functions.js +52 -2
  89. package/queries/catalog/dependencies-query/function-info/write-functions.js +28 -5
  90. package/queries/catalog/dependencies-query/link-devices.d.ts +12 -0
  91. package/queries/catalog/dependencies-query/link-devices.js +58 -0
  92. package/queries/catalog/dice-query/dice-query-format.d.ts +2 -0
  93. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.js +25 -6
  94. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.d.ts +38 -7
  95. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.js +18 -5
  96. package/queries/catalog/happens-before-query/happens-before-query-format.js +3 -2
  97. package/queries/catalog/input-sources-query/input-sources-query-format.js +4 -0
  98. package/queries/catalog/input-sources-query/input-types.d.ts +10 -0
  99. package/queries/catalog/input-sources-query/input-types.js +10 -0
  100. package/queries/catalog/location-map-query/location-map-query-executor.js +16 -6
  101. package/queries/catalog/location-map-query/location-map-query-format.d.ts +15 -1
  102. package/queries/catalog/location-map-query/location-map-query-format.js +22 -5
  103. package/queries/catalog/signature-query/signature-query-executor.js +3 -0
  104. package/queries/catalog/signature-query/signature-query-format.d.ts +5 -0
  105. package/queries/catalog/static-slice-query/static-slice-query-format.js +1 -0
  106. package/queries/query.d.ts +1 -1
  107. package/r-bridge/data/data.d.ts +1 -1
  108. package/r-bridge/data/data.js +1 -1
  109. package/r-bridge/lang-4.x/ast/model/model.d.ts +14 -2
  110. package/r-bridge/lang-4.x/ast/model/model.js +32 -0
  111. package/r-bridge/lang-4.x/ast/model/nodes/r-access.d.ts +2 -0
  112. package/r-bridge/lang-4.x/ast/model/nodes/r-argument.d.ts +2 -0
  113. package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.d.ts +2 -0
  114. package/r-bridge/lang-4.x/ast/model/nodes/r-break.d.ts +2 -0
  115. package/r-bridge/lang-4.x/ast/model/nodes/r-comment.d.ts +2 -0
  116. package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.d.ts +2 -0
  117. package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.d.ts +2 -0
  118. package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.d.ts +7 -8
  119. package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.js +9 -46
  120. package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.d.ts +2 -0
  121. package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.d.ts +2 -0
  122. package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.d.ts +2 -0
  123. package/r-bridge/lang-4.x/ast/model/nodes/r-logical.d.ts +2 -0
  124. package/r-bridge/lang-4.x/ast/model/nodes/r-next.d.ts +2 -0
  125. package/r-bridge/lang-4.x/ast/model/nodes/r-number.d.ts +2 -0
  126. package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.d.ts +2 -0
  127. package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.d.ts +2 -0
  128. package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.d.ts +2 -0
  129. package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +2 -0
  130. package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.d.ts +2 -0
  131. package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.d.ts +2 -0
  132. package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.d.ts +2 -0
  133. package/r-bridge/lang-4.x/ast/model/processing/node-id.d.ts +0 -5
  134. package/r-bridge/lang-4.x/ast/model/processing/node-id.js +6 -3
  135. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +1 -1
  136. package/search/flowr-search-filters.d.ts +17 -1
  137. package/search/flowr-search-filters.js +23 -0
  138. package/slicing/criterion/parse.d.ts +6 -25
  139. package/slicing/criterion/parse.js +50 -19
  140. package/slicing/static/fingerprint.d.ts +1 -1
  141. package/slicing/static/fingerprint.js +52 -8
  142. package/slicing/static/slicer-types.d.ts +10 -0
  143. package/slicing/static/static-slicer.d.ts +1 -1
  144. package/slicing/static/static-slicer.js +29 -6
  145. package/slicing/static/visiting-queue.d.ts +15 -3
  146. package/slicing/static/visiting-queue.js +37 -3
  147. package/util/arg-matching.d.ts +18 -0
  148. package/util/arg-matching.js +70 -0
  149. package/util/r-regex.js +19 -1
  150. package/util/range.d.ts +7 -8
  151. package/util/range.js +10 -11
  152. package/util/version.js +1 -1
package/config.d.ts CHANGED
@@ -276,6 +276,25 @@ export interface FlowrConfig extends MergeableRecord {
276
276
  readonly versionSelection?: VersionSelection;
277
277
  /** Force an exact version for specific packages (mapping a package name to a version), overriding both the project constraint and the {@link versionSelection} policy; a version missing from the database falls back with a warning (default `{}`). */
278
278
  readonly versionOverrides?: Record<string, string>;
279
+ /**
280
+ * Recovering a package no signature database knows (a CRAN-archived one like `maptools`) from the copy
281
+ * installed on this machine: its `DESCRIPTION` states the version, its `NAMESPACE` the exports. Opt-in,
282
+ * as it reads directories outside the analyzed project and ties the analysis to what is installed here.
283
+ */
284
+ readonly installedLibrary?: {
285
+ /** Consult installed packages at all (default `false`). */
286
+ readonly enabled: boolean;
287
+ /** The library directories to search; when empty they are discovered as configured below (default `[]`). */
288
+ readonly paths?: string[];
289
+ /** Search the libraries `R_LIBS_USER`/`R_LIBS`/`R_LIBS_SITE` name (default `true`, ignored when {@link paths} is given). */
290
+ readonly useEnvironment?: boolean;
291
+ /** Search a project-local `renv`/`packrat` library (default `true`, ignored when {@link paths} is given). */
292
+ readonly useProjectLibrary?: boolean;
293
+ /** How far to descend into the nested layout of a project-local library (default `3`). */
294
+ readonly maxDepth?: number;
295
+ /** Only recover packages whose name matches one of these regular expressions; empty means any (default `[]`). */
296
+ readonly packages?: string[];
297
+ };
279
298
  };
280
299
  /** Policies for reasoning about dependency versions (independent of how the signature database is loaded). */
281
300
  readonly versionManagement?: {
@@ -342,8 +361,37 @@ export interface FlowrConfig extends MergeableRecord {
342
361
  };
343
362
  };
344
363
  };
345
- readonly incrementalParsing: {
346
- readonly activated: boolean;
364
+ readonly incremental: {
365
+ /**
366
+ * Always take the incremental path, regardless of heuristics
367
+ */
368
+ readonly alwaysIncremental: boolean;
369
+ readonly parsing: {
370
+ readonly activated: boolean;
371
+ readonly heuristics: {
372
+ readonly activated: boolean;
373
+ /**
374
+ * Skip reparsing entirely if the file's modification time is unchanged since the last parse
375
+ */
376
+ readonly mtime: boolean;
377
+ /**
378
+ * Only consider incremental parsing for files with at least this many lines
379
+ */
380
+ readonly linesFrom: number;
381
+ /**
382
+ * Only consider incremental parsing for files with at least this many bytes
383
+ */
384
+ readonly bytesFrom: number;
385
+ /**
386
+ * Always take the incremental path whenever there is a computed edit region, regardless of the other thresholds
387
+ */
388
+ readonly alwaysWithEdits: boolean;
389
+ /**
390
+ * Only apply these heuristics once the project has at least this many files loaded
391
+ */
392
+ readonly minFiles: number;
393
+ };
394
+ };
347
395
  };
348
396
  /**
349
397
  * Resource-usage guard (gas) configuration.
package/config.js CHANGED
@@ -100,6 +100,7 @@ exports.FlowrDefaultPlugins = [
100
100
  'file:description',
101
101
  'versions:description',
102
102
  'versions:sigdb',
103
+ 'versions:library',
103
104
  'versions:namespace',
104
105
  'versions:renv',
105
106
  'versions:rv',
@@ -240,7 +241,7 @@ exports.FlowrConfig = {
240
241
  variables: VariableResolve.Alias,
241
242
  evalStrings: true,
242
243
  trackEnvironments: true,
243
- sigdb: { enabled: true, loadProjectDependencies: true, eagerlyLoad: false, eagerlyLoadExports: false, assumedRVersion: 'auto', linkBaseR: false, linkDescriptionDependencies: false, linkBaseRCalls: false, linkPackageCalls: false, warmInBackground: false, additionalPaths: [], autoSync: false, versionSelection: VersionSelection.Newest, versionOverrides: {} },
244
+ sigdb: { enabled: true, loadProjectDependencies: true, eagerlyLoad: false, eagerlyLoadExports: false, assumedRVersion: 'auto', linkBaseR: false, linkDescriptionDependencies: false, linkBaseRCalls: false, linkPackageCalls: false, warmInBackground: false, additionalPaths: [], autoSync: false, versionSelection: VersionSelection.Newest, versionOverrides: {}, installedLibrary: { enabled: false, paths: [], useEnvironment: true, useProjectLibrary: true, maxDepth: 3, packages: [] } },
244
245
  versionManagement: { linkedVersionGroups: [] },
245
246
  resolveSource: {
246
247
  dropPaths: DropPathsOption.No,
@@ -268,8 +269,19 @@ exports.FlowrConfig = {
268
269
  }
269
270
  }
270
271
  },
271
- incrementalParsing: {
272
- activated: false,
272
+ incremental: {
273
+ alwaysIncremental: false,
274
+ parsing: {
275
+ activated: false,
276
+ heuristics: {
277
+ activated: true,
278
+ mtime: true,
279
+ linesFrom: 500,
280
+ bytesFrom: 50_000,
281
+ alwaysWithEdits: false,
282
+ minFiles: 1,
283
+ }
284
+ }
273
285
  },
274
286
  gas: {
275
287
  thresholds: {
@@ -367,6 +379,14 @@ exports.FlowrConfig = {
367
379
  additionalPaths: joi_1.default.array().items(joi_1.default.string()).optional().description('Extra directories or bundle/manifest files searched for signature databases (alongside the shipped default and $FLOWR_SIGDB_DIR); a downloaded full-history bundle placed here is mounted automatically.'),
368
380
  downloadRepo: joi_1.default.string().optional().description('GitHub owner/repo the full-history bundle is downloaded from via ":signature download" (default "flowr-analysis/flowr", release tag "sigdb-v<flowR-version>").'),
369
381
  autoSync: joi_1.default.boolean().optional().description('On startup, re-download shards whose committed sigdb.remote.json hash no longer matches the cache, in the background (default false; opt-in network sync after a git pull).'),
382
+ installedLibrary: joi_1.default.object({
383
+ enabled: joi_1.default.boolean().required().description('Recover packages no signature database knows from their installed copy (default false).'),
384
+ paths: joi_1.default.array().items(joi_1.default.string()).optional().description('Library directories to search; when empty they are discovered from the environment and the project.'),
385
+ useEnvironment: joi_1.default.boolean().optional().description('Search the libraries R_LIBS_USER/R_LIBS/R_LIBS_SITE name (default true).'),
386
+ useProjectLibrary: joi_1.default.boolean().optional().description('Search a project-local renv/packrat library (default true).'),
387
+ maxDepth: joi_1.default.number().optional().description('How far to descend into the nested layout of a project-local library (default 3).'),
388
+ packages: joi_1.default.array().items(joi_1.default.string()).optional().description('Only recover packages whose name matches one of these regular expressions; empty means any.')
389
+ }).optional().description('Recovering packages no signature database knows from the copy installed on this machine.'),
370
390
  versionSelection: joi_1.default.string().valid(...Object.values(VersionSelection)).optional().description('When a project constrains a dependency, resolve to the newest (default), oldest, or system-installed version satisfying it; system needs R and falls back to newest. Base-R packages always resolve against the assumed R version.'),
371
391
  versionOverrides: joi_1.default.object().pattern(joi_1.default.string(), joi_1.default.string()).optional().description('Force an exact version for specific packages (name -> version), overriding both the project constraint and the versionSelection policy (default {}).')
372
392
  }).description('Resolving library exports from a signature database.'),
@@ -400,8 +420,19 @@ exports.FlowrConfig = {
400
420
  }).description('Configuration options for reading data frame shapes from loaded external data files, such as CSV files.')
401
421
  }).description('The configuration of the shape inference for data frames.')
402
422
  }).description('The configuration options for abstract interpretation.'),
403
- incrementalParsing: joi_1.default.object({
404
- activated: joi_1.default.boolean().description('If set, incremental parsing will be used.')
423
+ incremental: joi_1.default.object({
424
+ alwaysIncremental: joi_1.default.boolean().description('Always take the incremental path, regardless of heuristics.'),
425
+ parsing: joi_1.default.object({
426
+ activated: joi_1.default.boolean().description('If set, incremental parsing will be used.'),
427
+ heuristics: joi_1.default.object({
428
+ activated: joi_1.default.boolean().optional().description('If set, the heuristics for incremental parsing will be used.'),
429
+ mtime: joi_1.default.boolean().optional().description('Skip reparsing entirely if the file\'s modification time is unchanged since the last parse.'),
430
+ linesFrom: joi_1.default.number().min(0).optional().description('Only consider incremental parsing for files with at least this many lines.'),
431
+ bytesFrom: joi_1.default.number().min(0).optional().description('Only consider incremental parsing for files with at least this many bytes.'),
432
+ alwaysWithEdits: joi_1.default.boolean().optional().description('Always take the incremental path whenever there is a computed edit region, regardless of the other thresholds.'),
433
+ minFiles: joi_1.default.number().min(1).optional().description('Only apply these heuristics once the project has at least this many files loaded.'),
434
+ }),
435
+ }),
405
436
  }),
406
437
  gas: joi_1.default.object({
407
438
  thresholds: joi_1.default.object({
@@ -414,7 +445,7 @@ exports.FlowrConfig = {
414
445
  critical: joi_1.default.number().min(0).optional().description('Elapsed ms above which Critical is returned.')
415
446
  }).optional().description('Elapsed analysis time thresholds in milliseconds.')
416
447
  }).optional().description('Shared thresholds for all gas checks (scaled by per-feature factor).'),
417
- features: joi_1.default.object().pattern(joi_1.default.string(), joi_1.default.number().min(0).optional()).optional().description('Per-feature sensitivity factors. 0 or absent disables gas checking for that feature. A factor of 2 makes the feature twice as sensitive. Recognised keys: `source`, `side-effect-linking`, `linter`.'),
448
+ features: joi_1.default.object().pattern(joi_1.default.string(), joi_1.default.number().min(0).optional()).optional().description('Per-feature sensitivity factors. 0 or absent disables gas checking for that feature. A factor of 2 makes the feature twice as sensitive. Recognised keys: `source`, `side-effect-linking`, `linter`, `slicer`.'),
418
449
  heapProvider: joi_1.default.function().optional().description('Custom heap statistics source (programmatic configs only), overriding the built-in v8/performance.memory detection.')
419
450
  }).optional().description(`Resource-usage guard (gas) configuration. All feature factors default to 0 (disabled). See ${gas_1.GasWikiRef}.`)
420
451
  }).description('The configuration file format for flowR.'),
@@ -10,41 +10,65 @@ const assert_1 = require("../util/assert");
10
10
  function findAllClusters(graph) {
11
11
  const clusters = [];
12
12
  // we reverse the vertices since dependencies usually point "backwards" from later nodes
13
- const notReached = new Set(graph.vertices(true).map(([id]) => id).toArray().reverse());
14
- while (notReached.size > 0) {
15
- const [startNode] = notReached;
16
- notReached.delete(startNode);
13
+ const ids = graph.vertices(true).map(([id]) => id).toArray().reverse();
14
+ /* walking the ids picks the same start nodes in the same order as draining the set did, without re-opening an
15
+ * iterator over the shrinking set for every cluster */
16
+ const notReached = new Set(ids);
17
+ /* `graph.ingoingEdges` rebuilds the reverse adjacency by scanning every edge of the graph, and clustering asks
18
+ * for it once per node; building it a single time turns that quadratic sweep into one pass */
19
+ const incoming = new Map();
20
+ for (const [source, outgoing] of graph.edges()) {
21
+ for (const [target, edge] of outgoing) {
22
+ const into = incoming.get(target);
23
+ if (into === undefined) {
24
+ incoming.set(target, new Map([[source, edge]]));
25
+ }
26
+ else {
27
+ into.set(source, edge);
28
+ }
29
+ }
30
+ }
31
+ for (const startNode of ids) {
32
+ if (!notReached.delete(startNode)) {
33
+ continue;
34
+ }
17
35
  clusters.push({
18
36
  startNode: startNode,
19
- members: Array.from(makeCluster(graph, startNode, notReached)),
37
+ members: Array.from(makeCluster(graph, startNode, notReached, incoming)),
20
38
  hasUnknownSideEffects: graph.unknownSideEffects.has(startNode)
21
39
  });
22
40
  }
23
41
  return clusters;
24
42
  }
25
- function makeCluster(graph, from, notReached) {
26
- const info = graph.getVertex(from);
27
- (0, assert_1.guard)(info !== undefined, () => `Vertex ${from} not found in graph`);
43
+ /* one shared accumulator, filled iteratively: merging a set per node cost a copy of the whole cluster per member
44
+ * (quadratic in the cluster size), and the recursion ran as deep as the cluster was large */
45
+ function makeCluster(graph, from, notReached, incoming) {
28
46
  const nodes = new Set([from]);
29
- // cluster function def exit points
30
- if (info.tag === vertex_1.VertexType.FunctionDefinition) {
31
- for (const { nodeId } of info.exitPoints) {
32
- if (notReached.delete(nodeId)) {
33
- for (const m of makeCluster(graph, nodeId, notReached)) {
34
- nodes.add(m);
35
- }
47
+ const pending = [from];
48
+ while (pending.length > 0) {
49
+ const current = pending.pop();
50
+ const info = graph.getVertex(current);
51
+ (0, assert_1.guard)(info !== undefined, () => `Vertex ${current} not found in graph`);
52
+ function reach(dest) {
53
+ if (notReached.delete(dest)) {
54
+ nodes.add(dest);
55
+ pending.push(dest);
36
56
  }
37
57
  }
38
- }
39
- // cluster adjacent edges
40
- for (const edges of [graph.outgoingEdges(from), graph.ingoingEdges(from)]) {
41
- for (const [dest, e] of edges ?? []) {
42
- // don't cluster for function content if it isn't returned
43
- if (edge_1.DfEdge.doesNotIncludeType(e, edge_1.EdgeType.Returns) && info.onlyBuiltin && info.name === '{') {
44
- continue;
58
+ // cluster function def exit points
59
+ if (info.tag === vertex_1.VertexType.FunctionDefinition) {
60
+ for (const { nodeId } of info.exitPoints) {
61
+ reach(nodeId);
45
62
  }
46
- if (notReached.delete(dest)) {
47
- makeCluster(graph, dest, notReached).forEach(n => nodes.add(n));
63
+ }
64
+ // cluster adjacent edges
65
+ for (const edges of [graph.outgoingEdges(current), incoming.get(current)]) {
66
+ for (const [dest, e] of edges ?? []) {
67
+ // don't cluster for function content if it isn't returned
68
+ if (edge_1.DfEdge.doesNotIncludeType(e, edge_1.EdgeType.Returns) && info.onlyBuiltin && info.name === '{') {
69
+ continue;
70
+ }
71
+ reach(dest);
48
72
  }
49
73
  }
50
74
  }
@@ -46,7 +46,7 @@ function weakenName(env, name, cds) {
46
46
  if (ns === undefined || current.n === ns) {
47
47
  const defs = current.memory.get(plainName);
48
48
  if (defs !== undefined && defs.some(d => !isBuiltInDef(d))) {
49
- current.memory.set(plainName, defs.map(d => isBuiltInDef(d) ? d : weakenDefinition(d, cds)));
49
+ current.writableMemory.set(plainName, defs.map(d => isBuiltInDef(d) ? d : weakenDefinition(d, cds)));
50
50
  current.cache?.delete(plainName);
51
51
  }
52
52
  }
@@ -60,7 +60,7 @@ function weakenAll(env, cds) {
60
60
  }
61
61
  for (const [key, defs] of env.memory) {
62
62
  if (defs.some(d => !isBuiltInDef(d))) {
63
- env.memory.set(key, defs.map(d => isBuiltInDef(d) ? d : weakenDefinition(d, cds)));
63
+ env.writableMemory.set(key, defs.map(d => isBuiltInDef(d) ? d : weakenDefinition(d, cds)));
64
64
  }
65
65
  }
66
66
  env.cache?.clear();
@@ -76,10 +76,10 @@ function removeAllInFrame(env) {
76
76
  }
77
77
  const kept = defs.filter(isBuiltInDef);
78
78
  if (kept.length === 0) {
79
- env.memory.delete(key);
79
+ env.writableMemory.delete(key);
80
80
  }
81
81
  else {
82
- env.memory.set(key, kept);
82
+ env.writableMemory.set(key, kept);
83
83
  }
84
84
  }
85
85
  env.cache?.clear();
@@ -91,7 +91,18 @@ export declare enum CallProp {
91
91
  * argument marked {@link ArgProp.Bounds}. So nothing an argument carries reaches the result, which is what
92
92
  * lets the input-sources query stop tracing at `length(x)` or `match.arg(arg, choices)`.
93
93
  */
94
- Narrows = 4194304
94
+ Narrows = 4194304,
95
+ /**
96
+ * sets ambient state later calls read back: the working directory, environment variables, options, the
97
+ * locale, the RNG seed. The counterpart of {@link CallProp.Ambient}; a call doing both states both.
98
+ */
99
+ Configures = 8388608,
100
+ /** ends what an opener started: a graphics device, a connection, a sink. Narrower than {@link CallProp.Graphics}. */
101
+ Closes = 16777216,
102
+ /** yields the paths it matches at run time rather than one it was handed (`list.files`, `Sys.glob`); empty is an answer */
103
+ Glob = 33554432,
104
+ /** hands back what the program was invoked with, as `commandArgs` and the option parsers built on it do */
105
+ CommandLine = 67108864
95
106
  }
96
107
  /**
97
108
  * The {@link CallProp} bits that state an effect beyond computing a result, so no {@link CallProp.Pure}
@@ -135,6 +146,18 @@ export type CallProps = number;
135
146
  * by their full name only.
136
147
  */
137
148
  export type FnSig = [name: string, props: ArgProps][];
149
+ /**
150
+ * Utility functions for {@link FnSig|function signatures}.
151
+ */
152
+ export declare const FnSig: {
153
+ readonly name: "FnSig";
154
+ /** The positional view of a signature; see {@link sigLayout}. */
155
+ readonly layout: typeof sigLayout;
156
+ /** The roles of the argument at a position; see {@link argProp}. */
157
+ readonly propAt: typeof argProp;
158
+ /** The positions carrying any of the given roles; see {@link argsWith}. */
159
+ readonly posWith: typeof argsWith;
160
+ };
138
161
  /**
139
162
  * Semantics of a built-in that hold no matter which processor handles the call. The remaining facts already
140
163
  * have a home: the exit behavior in `cfg`, whether flowR can fold the call in the `evalHandler` of the
@@ -161,11 +184,11 @@ export interface SigLayout {
161
184
  * The positional view of a {@link FnSig}, computed on first use and cached per signature object,
162
185
  * so declaring a signature costs nothing until a call actually needs it.
163
186
  */
164
- export declare function sigLayout(sig: FnSig): SigLayout;
187
+ declare function sigLayout(this: void, sig: FnSig): SigLayout;
165
188
  /** The {@link ArgProp} bits of the argument at `index`, with `...` covering every position from where it appears. */
166
- export declare function argProp({ props, rest }: SigLayout, index: number): ArgProps;
189
+ declare function argProp(this: void, { props, rest }: SigLayout, index: number): ArgProps;
167
190
  /** The positions of the first `count` arguments that carry any of `prop`. */
168
- export declare function argsWith(layout: SigLayout, count: number, prop: ArgProps): number[];
191
+ declare function argsWith(this: void, layout: SigLayout, count: number, prop: ArgProps): number[];
169
192
  /**
170
193
  * The part of a {@link BuiltInFnInfo} that the signature database already knows: the parameter names in order
171
194
  * (`...` included) with the ones R always forces, plus the properties listed in {@link SigDbProps}. Everything
@@ -173,3 +196,4 @@ export declare function argsWith(layout: SigLayout, count: number, prop: ArgProp
173
196
  * dropped, and anything it cannot see (purity, resources, what an argument is used for) stays unset.
174
197
  */
175
198
  export declare function fnInfoFromSignature(fn: DecodedFunction): BuiltInFnInfo;
199
+ export {};
@@ -1,9 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PropagatedProps = exports.FileInputProps = exports.SigDbInferable = exports.InputProps = exports.ExclusiveCallProps = exports.ImpureProps = exports.CallProp = exports.ArgProp = void 0;
4
- exports.sigLayout = sigLayout;
5
- exports.argProp = argProp;
6
- exports.argsWith = argsWith;
3
+ exports.FnSig = exports.PropagatedProps = exports.FileInputProps = exports.SigDbInferable = exports.InputProps = exports.ExclusiveCallProps = exports.ImpureProps = exports.CallProp = exports.ArgProp = void 0;
7
4
  exports.fnInfoFromSignature = fnInfoFromSignature;
8
5
  /**
9
6
  * What a single argument of a call is used for, as a bitmask.
@@ -100,6 +97,17 @@ var CallProp;
100
97
  * lets the input-sources query stop tracing at `length(x)` or `match.arg(arg, choices)`.
101
98
  */
102
99
  CallProp[CallProp["Narrows"] = 4194304] = "Narrows";
100
+ /**
101
+ * sets ambient state later calls read back: the working directory, environment variables, options, the
102
+ * locale, the RNG seed. The counterpart of {@link CallProp.Ambient}; a call doing both states both.
103
+ */
104
+ CallProp[CallProp["Configures"] = 8388608] = "Configures";
105
+ /** ends what an opener started: a graphics device, a connection, a sink. Narrower than {@link CallProp.Graphics}. */
106
+ CallProp[CallProp["Closes"] = 16777216] = "Closes";
107
+ /** yields the paths it matches at run time rather than one it was handed (`list.files`, `Sys.glob`); empty is an answer */
108
+ CallProp[CallProp["Glob"] = 33554432] = "Glob";
109
+ /** hands back what the program was invoked with, as `commandArgs` and the option parsers built on it do */
110
+ CallProp[CallProp["CommandLine"] = 67108864] = "CommandLine";
103
111
  })(CallProp || (exports.CallProp = CallProp = {}));
104
112
  /**
105
113
  * The {@link CallProp} bits that state an effect beyond computing a result, so no {@link CallProp.Pure}
@@ -107,7 +115,8 @@ var CallProp;
107
115
  */
108
116
  exports.ImpureProps = CallProp.MayPure | CallProp.Scope | CallProp.NonDet | CallProp.Random | CallProp.Ambient
109
117
  | CallProp.File | CallProp.TempFile | CallProp.Network | CallProp.Process | CallProp.Ffi | CallProp.Lang
110
- | CallProp.User | CallProp.Graphics | CallProp.Database | CallProp.Reads | CallProp.Writes | CallProp.Prints;
118
+ | CallProp.User | CallProp.Graphics | CallProp.Database | CallProp.Reads | CallProp.Writes | CallProp.Prints
119
+ | CallProp.Configures | CallProp.Closes | CallProp.CommandLine;
111
120
  /**
112
121
  * Which {@link CallProp} bits rule each other out, as `[bit, everything stating it forbids]`. A definition
113
122
  * that carries the left bit must carry none of the right ones; a test checks the {@link DefaultBuiltinConfig}
@@ -124,7 +133,8 @@ exports.ExclusiveCallProps = [
124
133
  * looks for.
125
134
  */
126
135
  exports.InputProps = CallProp.NonDet | CallProp.Random | CallProp.Ambient | CallProp.File
127
- | CallProp.TempFile | CallProp.Network | CallProp.Process | CallProp.Ffi | CallProp.Lang | CallProp.User;
136
+ | CallProp.TempFile | CallProp.Network | CallProp.Process | CallProp.Ffi | CallProp.Lang | CallProp.User
137
+ | CallProp.CommandLine;
128
138
  /**
129
139
  * The {@link CallProp} bits the signature database states itself, so {@link fnInfoFromSignature} can read them
130
140
  * off any package function without anyone writing them down.
@@ -141,7 +151,20 @@ exports.FileInputProps = CallProp.File | CallProp.Reads;
141
151
  */
142
152
  exports.PropagatedProps = CallProp.Throws | CallProp.Scope | CallProp.NonDet | CallProp.Prints
143
153
  | CallProp.Random | CallProp.Ambient | CallProp.File | CallProp.TempFile | CallProp.Network | CallProp.Process
144
- | CallProp.Ffi | CallProp.Lang | CallProp.User | CallProp.Graphics | CallProp.Database | CallProp.Reads | CallProp.Writes;
154
+ | CallProp.Ffi | CallProp.Lang | CallProp.User | CallProp.Graphics | CallProp.Database | CallProp.Reads | CallProp.Writes
155
+ | CallProp.Configures | CallProp.CommandLine;
156
+ /**
157
+ * Utility functions for {@link FnSig|function signatures}.
158
+ */
159
+ exports.FnSig = {
160
+ name: 'FnSig',
161
+ /** The positional view of a signature; see {@link sigLayout}. */
162
+ layout: sigLayout,
163
+ /** The roles of the argument at a position; see {@link argProp}. */
164
+ propAt: argProp,
165
+ /** The positions carrying any of the given roles; see {@link argsWith}. */
166
+ posWith: argsWith
167
+ };
145
168
  const layouts = new WeakMap();
146
169
  /**
147
170
  * The positional view of a {@link FnSig}, computed on first use and cached per signature object,
@@ -169,7 +192,7 @@ function argProp({ props, rest }, index) {
169
192
  function argsWith(layout, count, prop) {
170
193
  const found = [];
171
194
  for (let i = 0; i < count; i++) {
172
- if ((argProp(layout, i) & prop) !== 0) {
195
+ if ((exports.FnSig.propAt(layout, i) & prop) !== 0) {
173
196
  found.push(i);
174
197
  }
175
198
  }
@@ -84,6 +84,11 @@ export interface DefaultBuiltInProcessorConfiguration extends ForceArguments, Bu
84
84
  readonly treatAsFnCall?: Record<string, readonly string[]>;
85
85
  /** Mark the given arguments as {@link EdgeType.NonStandardEvaluation|non-standard-evaluated}, like `quote`. */
86
86
  readonly markArgsAsNSE?: NseArguments | readonly number[];
87
+ /**
88
+ * Mark the given arguments as evaluated in a data mask, like `subset`: their symbols may name columns of the
89
+ * data instead of variables, while everything else in them is evaluated in the caller's frame as usual.
90
+ */
91
+ readonly markArgsAsMasked?: NseArguments | readonly number[];
87
92
  /**
88
93
  * Name that should be used for the origin (useful when needing to differentiate between
89
94
  * functions like 'return' that use the default builtin processor)
@@ -96,8 +101,8 @@ export interface BuiltInEvalHandlerArgs extends ResolveInfo {
96
101
  node: RNodeWithParent;
97
102
  }
98
103
  export type BuiltInEvalHandler = (args: BuiltInEvalHandlerArgs) => Value;
99
- declare function defaultBuiltInProcessor<OtherInfo>(name: RSymbol<OtherInfo & ParentInformation>, args: readonly PotentiallyEmptyRArgument<OtherInfo & ParentInformation>[], rootId: NodeId, data: DataflowProcessorInformation<OtherInfo & ParentInformation>, { useAsProcessor, forceArgs, readAllArguments, cfg, hasUnknownSideEffects, treatAsFnCall, markArgsAsNSE: nse, keepArgumentOut, sig }: DefaultBuiltInProcessorConfiguration): DataflowInformation;
100
- declare function defaultBuiltInProcessorReadallArgs<OtherInfo>(name: RSymbol<OtherInfo & ParentInformation>, args: readonly PotentiallyEmptyRArgument<OtherInfo & ParentInformation>[], rootId: NodeId, data: DataflowProcessorInformation<OtherInfo & ParentInformation>, { useAsProcessor, forceArgs, markArgsAsNSE: nse }: Pick<DefaultBuiltInProcessorConfiguration, 'useAsProcessor' | 'forceArgs' | 'markArgsAsNSE'>): DataflowInformation;
104
+ declare function defaultBuiltInProcessor<OtherInfo>(name: RSymbol<OtherInfo & ParentInformation>, args: readonly PotentiallyEmptyRArgument<OtherInfo & ParentInformation>[], rootId: NodeId, data: DataflowProcessorInformation<OtherInfo & ParentInformation>, { useAsProcessor, forceArgs, readAllArguments, cfg, hasUnknownSideEffects, treatAsFnCall, markArgsAsNSE: nse, markArgsAsMasked: masked, keepArgumentOut, sig }: DefaultBuiltInProcessorConfiguration): DataflowInformation;
105
+ declare function defaultBuiltInProcessorReadallArgs<OtherInfo>(name: RSymbol<OtherInfo & ParentInformation>, args: readonly PotentiallyEmptyRArgument<OtherInfo & ParentInformation>[], rootId: NodeId, data: DataflowProcessorInformation<OtherInfo & ParentInformation>, { useAsProcessor, forceArgs, markArgsAsNSE: nse, markArgsAsMasked: masked }: Pick<DefaultBuiltInProcessorConfiguration, 'useAsProcessor' | 'forceArgs' | 'markArgsAsNSE' | 'markArgsAsMasked'>): DataflowInformation;
101
106
  export declare const BuiltInProcessorMapper: {
102
107
  readonly "builtin:acc": typeof processAccess;
103
108
  readonly "builtin:app": typeof processApply;
@@ -54,17 +54,16 @@ const built_in_with_1 = require("../internal/process/functions/call/built-in/bui
54
54
  const built_in_namespace_access_1 = require("../internal/process/functions/call/built-in/built-in-namespace-access");
55
55
  const built_in_load_1 = require("../internal/process/functions/call/built-in/built-in-load");
56
56
  const built_in_props_1 = require("./built-in-props");
57
- function defaultBuiltInProcessor(name, args, rootId, data, { useAsProcessor = built_in_proc_name_1.BuiltInProcName.Default, forceArgs, readAllArguments, cfg, hasUnknownSideEffects, treatAsFnCall, markArgsAsNSE: nse, keepArgumentOut, sig }) {
57
+ function defaultBuiltInProcessor(name, args, rootId, data, { useAsProcessor = built_in_proc_name_1.BuiltInProcName.Default, forceArgs, readAllArguments, cfg, hasUnknownSideEffects, treatAsFnCall, markArgsAsNSE: nse, markArgsAsMasked: masked, keepArgumentOut, sig }) {
58
58
  /* a signature states per argument what the individual options state for all of them at once */
59
- const layout = sig !== undefined ? (0, built_in_props_1.sigLayout)(sig) : undefined;
59
+ const layout = sig !== undefined ? built_in_props_1.FnSig.layout(sig) : undefined;
60
60
  if (layout !== undefined) {
61
- forceArgs ??= (layout.any & built_in_props_1.ArgProp.Forced) !== 0 ? args.map((_, i) => ((0, built_in_props_1.argProp)(layout, i) & built_in_props_1.ArgProp.Forced) !== 0) : undefined;
62
- nse ??= (layout.any & built_in_props_1.ArgProp.Nse) !== 0 ? (0, built_in_props_1.argsWith)(layout, args.length, built_in_props_1.ArgProp.Nse) : undefined;
61
+ forceArgs ??= (layout.any & built_in_props_1.ArgProp.Forced) !== 0 ? args.map((_, i) => (built_in_props_1.FnSig.propAt(layout, i) & built_in_props_1.ArgProp.Forced) !== 0) : undefined;
62
+ nse ??= (layout.any & built_in_props_1.ArgProp.Nse) !== 0 ? built_in_props_1.FnSig.posWith(layout, args.length, built_in_props_1.ArgProp.Nse) : undefined;
63
63
  }
64
64
  const { information: res, processedArguments } = (0, known_call_handling_1.processKnownFunctionCall)({ name, args, rootId, data, forceArgs, origin: useAsProcessor });
65
- if (nse !== undefined) {
66
- (0, known_call_handling_1.markArgumentsAsNonStandardEvaluation)(res.graph, rootId, processedArguments, nse);
67
- }
65
+ (0, known_call_handling_1.markArgumentsAsNonStandardEvaluation)(res.graph, rootId, processedArguments, nse);
66
+ (0, known_call_handling_1.markArgumentsAsNonStandardEvaluation)(res.graph, rootId, processedArguments, masked, known_call_handling_1.NseKind.DataMasked);
68
67
  if (keepArgumentOut) {
69
68
  res.out = [...res.out, ...processedArguments.flatMap(arg => arg?.out ?? [])];
70
69
  }
@@ -82,7 +81,7 @@ function defaultBuiltInProcessor(name, args, rootId, data, { useAsProcessor = bu
82
81
  }
83
82
  }
84
83
  else if (layout !== undefined && (layout.any & (built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Shape)) !== 0) {
85
- for (const i of (0, built_in_props_1.argsWith)(layout, processedArguments.length, built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Shape)) {
84
+ for (const i of built_in_props_1.FnSig.posWith(layout, processedArguments.length, built_in_props_1.ArgProp.Value | built_in_props_1.ArgProp.Shape)) {
86
85
  const arg = processedArguments[i];
87
86
  if (arg) {
88
87
  res.graph.addEdge(rootId, arg.entryPoint, edge_1.EdgeType.Reads);
@@ -133,7 +132,7 @@ function defaultBuiltInProcessor(name, args, rootId, data, { useAsProcessor = bu
133
132
  }
134
133
  return res;
135
134
  }
136
- function defaultBuiltInProcessorReadallArgs(name, args, rootId, data, { useAsProcessor = built_in_proc_name_1.BuiltInProcName.Default, forceArgs, markArgsAsNSE: nse }) {
135
+ function defaultBuiltInProcessorReadallArgs(name, args, rootId, data, { useAsProcessor = built_in_proc_name_1.BuiltInProcName.Default, forceArgs, markArgsAsNSE: nse, markArgsAsMasked: masked }) {
137
136
  const { information, processedArguments } = (0, known_call_handling_1.processKnownFunctionCall)({ name, args, rootId, data, forceArgs, origin: useAsProcessor });
138
137
  const g = information.graph;
139
138
  for (const arg of processedArguments) {
@@ -141,9 +140,8 @@ function defaultBuiltInProcessorReadallArgs(name, args, rootId, data, { useAsPro
141
140
  g.addEdge(rootId, arg.entryPoint, edge_1.EdgeType.Reads);
142
141
  }
143
142
  }
144
- if (nse !== undefined) {
145
- (0, known_call_handling_1.markArgumentsAsNonStandardEvaluation)(g, rootId, processedArguments, nse);
146
- }
143
+ (0, known_call_handling_1.markArgumentsAsNonStandardEvaluation)(g, rootId, processedArguments, nse);
144
+ (0, known_call_handling_1.markArgumentsAsNonStandardEvaluation)(g, rootId, processedArguments, masked, known_call_handling_1.NseKind.DataMasked);
147
145
  return information;
148
146
  }
149
147
  exports.BuiltInProcessorMapper = {
@@ -126,7 +126,7 @@ export declare const WrittenBuiltinDefinitions: [{
126
126
  readonly names: [Identifier];
127
127
  readonly processor: BuiltInProcName.DefaultReadAllArgs;
128
128
  readonly config: {
129
- readonly markArgsAsNSE: NseArguments.All;
129
+ readonly markArgsAsMasked: NseArguments.All;
130
130
  };
131
131
  readonly assumePrimitive: false;
132
132
  }, {
@@ -144,7 +144,7 @@ export declare const WrittenBuiltinDefinitions: [{
144
144
  readonly names: Identifier[];
145
145
  readonly processor: BuiltInProcName.Default;
146
146
  readonly config: {
147
- readonly markArgsAsNSE: NseArguments.AllButFirst;
147
+ readonly markArgsAsMasked: NseArguments.AllButFirst;
148
148
  readonly props: CallProp.Pure;
149
149
  };
150
150
  readonly assumePrimitive: false;
@@ -153,7 +153,7 @@ export declare const WrittenBuiltinDefinitions: [{
153
153
  readonly names: [Identifier];
154
154
  readonly processor: BuiltInProcName.Default;
155
155
  readonly config: {
156
- readonly markArgsAsNSE: NseArguments.AllButFirst;
156
+ readonly markArgsAsMasked: NseArguments.AllButFirst;
157
157
  readonly props: CallProp.Random;
158
158
  };
159
159
  readonly assumePrimitive: false;
@@ -162,7 +162,7 @@ export declare const WrittenBuiltinDefinitions: [{
162
162
  readonly names: Identifier[];
163
163
  readonly processor: BuiltInProcName.DefaultReadAllArgs;
164
164
  readonly config: {
165
- readonly markArgsAsNSE: NseArguments.All;
165
+ readonly markArgsAsMasked: NseArguments.All;
166
166
  };
167
167
  readonly assumePrimitive: false;
168
168
  }, {
@@ -297,6 +297,17 @@ export declare const WrittenBuiltinDefinitions: [{
297
297
  };
298
298
  readonly assumePrimitive: true;
299
299
  readonly evalHandler: BuiltInEvalName.StringFn;
300
+ }, {
301
+ readonly type: "function";
302
+ readonly names: [Identifier];
303
+ readonly processor: BuiltInProcName.DefaultReadAllArgs;
304
+ readonly config: {
305
+ readonly libFn: true;
306
+ readonly props: CallProp.Pure;
307
+ readonly sig: [["...", ArgProp.Value]];
308
+ };
309
+ readonly assumePrimitive: false;
310
+ readonly evalHandler: BuiltInEvalName.StringFn;
300
311
  }, {
301
312
  readonly type: "function";
302
313
  readonly names: Identifier[];
@@ -513,7 +524,7 @@ export declare const WrittenBuiltinDefinitions: [{
513
524
  readonly assumePrimitive: true;
514
525
  }, {
515
526
  readonly type: "function";
516
- readonly names: [...Identifier[], Identifier, Identifier];
527
+ readonly names: Identifier[];
517
528
  readonly processor: BuiltInProcName.DefaultReadAllArgs;
518
529
  readonly config: {
519
530
  readonly props: number;
@@ -731,6 +742,16 @@ export declare const WrittenBuiltinDefinitions: [{
731
742
  readonly props: number;
732
743
  };
733
744
  readonly assumePrimitive: false;
745
+ }, {
746
+ readonly type: "function";
747
+ readonly names: Identifier[];
748
+ readonly processor: BuiltInProcName.Default;
749
+ readonly config: {
750
+ readonly hasUnknownSideEffects: true;
751
+ readonly forceArgs: "all";
752
+ readonly props: number;
753
+ };
754
+ readonly assumePrimitive: false;
734
755
  }, {
735
756
  readonly type: "function";
736
757
  readonly names: [Identifier, Identifier];
@@ -955,7 +976,7 @@ export declare const WrittenBuiltinDefinitions: [{
955
976
  readonly assumePrimitive: true;
956
977
  }, {
957
978
  readonly type: "function";
958
- readonly names: [Identifier];
979
+ readonly names: Identifier[];
959
980
  readonly processor: BuiltInProcName.Default;
960
981
  readonly config: {
961
982
  readonly libFn: true;
@@ -2221,6 +2242,36 @@ export declare const WrittenBuiltinDefinitions: [{
2221
2242
  };
2222
2243
  };
2223
2244
  readonly assumePrimitive: true;
2245
+ }, {
2246
+ readonly type: "function";
2247
+ readonly names: [Identifier];
2248
+ readonly processor: BuiltInProcName.Default;
2249
+ readonly config: {
2250
+ readonly libFn: true;
2251
+ readonly props: number;
2252
+ readonly sig: [["expr", ArgProp.Forced], ["env", ArgProp.Value], ["ns", ArgProp.Value]];
2253
+ };
2254
+ readonly assumePrimitive: false;
2255
+ }, {
2256
+ readonly type: "function";
2257
+ readonly names: [Identifier];
2258
+ readonly processor: BuiltInProcName.Default;
2259
+ readonly config: {
2260
+ readonly libFn: true;
2261
+ readonly props: number;
2262
+ readonly sig: [["pkg", ArgProp.Value], ["expr", ArgProp.Forced], ["env", ArgProp.Value]];
2263
+ };
2264
+ readonly assumePrimitive: false;
2265
+ }, {
2266
+ readonly type: "function";
2267
+ readonly names: [Identifier];
2268
+ readonly processor: BuiltInProcName.Default;
2269
+ readonly config: {
2270
+ readonly libFn: true;
2271
+ readonly props: number;
2272
+ readonly sig: [["ns", ArgProp.Value]];
2273
+ };
2274
+ readonly assumePrimitive: false;
2224
2275
  }, {
2225
2276
  readonly type: "function";
2226
2277
  readonly names: [Identifier];
@@ -2240,6 +2291,16 @@ export declare const WrittenBuiltinDefinitions: [{
2240
2291
  readonly sig: [["path", ArgProp.Resource]];
2241
2292
  };
2242
2293
  readonly assumePrimitive: false;
2294
+ }, {
2295
+ readonly type: "function";
2296
+ readonly names: [Identifier];
2297
+ readonly processor: BuiltInProcName.Default;
2298
+ readonly config: {
2299
+ readonly forceArgs: "all";
2300
+ readonly props: number;
2301
+ readonly sig: [["paths", ArgProp.Resource]];
2302
+ };
2303
+ readonly assumePrimitive: false;
2243
2304
  }, {
2244
2305
  readonly type: "function";
2245
2306
  readonly names: Identifier[];
@@ -2306,6 +2367,15 @@ export declare const WrittenBuiltinDefinitions: [{
2306
2367
  readonly props: CallProp.Ambient;
2307
2368
  };
2308
2369
  readonly assumePrimitive: false;
2370
+ }, {
2371
+ readonly type: "function";
2372
+ readonly names: [Identifier];
2373
+ readonly processor: BuiltInProcName.Default;
2374
+ readonly config: {
2375
+ readonly forceArgs: "all";
2376
+ readonly props: number;
2377
+ };
2378
+ readonly assumePrimitive: false;
2309
2379
  }, {
2310
2380
  readonly type: "function";
2311
2381
  readonly names: Identifier[];