@eagleoutice/flowr 2.13.9 → 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.
- package/config.d.ts +50 -2
- package/config.js +37 -6
- package/dataflow/environments/apply-kill.js +4 -4
- package/dataflow/environments/built-in-props.d.ts +28 -4
- package/dataflow/environments/built-in-props.js +31 -8
- package/dataflow/environments/built-in.d.ts +7 -2
- package/dataflow/environments/built-in.js +10 -12
- package/dataflow/environments/default-builtin-config.d.ts +46 -6
- package/dataflow/environments/default-builtin-config.js +30 -16
- package/dataflow/environments/environment.d.ts +16 -0
- package/dataflow/environments/environment.js +70 -18
- package/dataflow/environments/identifier.d.ts +6 -0
- package/dataflow/environments/identifier.js +18 -5
- package/dataflow/environments/query-fn-props.js +34 -2
- package/dataflow/environments/reference-to-maybe.js +1 -1
- package/dataflow/eval/resolve/alias-tracking.js +45 -1
- package/dataflow/eval/resolve/resolve-argument.js +25 -17
- package/dataflow/eval/resolve/resolve-strings.d.ts +17 -0
- package/dataflow/eval/resolve/resolve-strings.js +16 -9
- package/dataflow/eval/resolve/resolve.js +3 -1
- package/dataflow/graph/call-graph.d.ts +7 -0
- package/dataflow/graph/call-graph.js +103 -0
- package/dataflow/graph/df-helper.d.ts +2 -0
- package/dataflow/graph/graph.d.ts +5 -8
- package/dataflow/internal/linker.d.ts +5 -5
- package/dataflow/internal/linker.js +31 -92
- package/dataflow/internal/process/functions/call/built-in/built-in-access.js +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +3 -9
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +4 -30
- package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +7 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-load.js +3 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-pipe.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-pipe.js +5 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-with.d.ts +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-with.js +5 -6
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +32 -14
- package/dataflow/internal/process/functions/call/known-call-handling.d.ts +16 -4
- package/dataflow/internal/process/functions/call/known-call-handling.js +29 -8
- package/documentation/doc-util/doc-sigdb.d.ts +9 -0
- package/documentation/doc-util/doc-sigdb.js +32 -0
- package/documentation/wiki-interface.js +13 -2
- package/documentation/wiki-query.js +3 -0
- package/documentation/wiki-signature-database.js +2 -5
- package/gas.d.ts +6 -0
- package/gas.js +7 -1
- package/package.json +1 -1
- package/project/attached-packages.d.ts +13 -0
- package/project/attached-packages.js +30 -0
- package/project/context/flowr-analyzer-context.d.ts +15 -0
- package/project/context/flowr-analyzer-context.js +14 -3
- package/project/context/flowr-analyzer-files-context.d.ts +11 -0
- package/project/context/flowr-analyzer-files-context.js +3 -0
- package/project/context/flowr-analyzer-incremental-analysis-context.d.ts +4 -0
- package/project/context/flowr-analyzer-incremental-analysis-context.js +69 -0
- package/project/dependency-version-space.d.ts +33 -11
- package/project/dependency-version-space.js +58 -32
- package/project/plugins/file-plugins/files/flowr-namespace-file.js +52 -24
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-library-plugin.d.ts +22 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-library-plugin.js +101 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.d.ts +30 -11
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +79 -37
- package/project/plugins/plugin-registry.d.ts +2 -1
- package/project/plugins/plugin-registry.js +2 -0
- package/project/sigdb/manifest.js +9 -5
- package/project/sigdb/signature-match.d.ts +5 -18
- package/project/sigdb/signature-match.js +5 -18
- package/queries/catalog/call-graph-query/call-graph-query-executor.js +3 -1
- package/queries/catalog/call-graph-query/call-graph-query-format.d.ts +4 -0
- package/queries/catalog/call-graph-query/call-graph-query-format.js +4 -0
- package/queries/catalog/dependencies-query/dependencies-query-executor.js +10 -3
- package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +19 -1
- package/queries/catalog/dependencies-query/dependencies-query-format.js +22 -2
- package/queries/catalog/dependencies-query/function-info/library-functions.js +7 -1
- package/queries/catalog/dependencies-query/function-info/read-functions.js +5 -5
- package/queries/catalog/dependencies-query/function-info/remote-functions.d.ts +18 -0
- package/queries/catalog/dependencies-query/function-info/remote-functions.js +46 -0
- package/queries/catalog/dependencies-query/function-info/visualize-functions.js +52 -2
- package/queries/catalog/dependencies-query/function-info/write-functions.js +8 -4
- package/queries/catalog/dependencies-query/link-devices.d.ts +12 -0
- package/queries/catalog/dependencies-query/link-devices.js +58 -0
- package/queries/catalog/dice-query/dice-query-format.d.ts +2 -0
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.js +25 -6
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.d.ts +37 -6
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.js +17 -4
- package/queries/catalog/input-sources-query/input-sources-query-format.js +4 -0
- package/queries/catalog/input-sources-query/input-types.d.ts +10 -0
- package/queries/catalog/input-sources-query/input-types.js +10 -0
- package/queries/catalog/location-map-query/location-map-query-executor.js +16 -6
- package/queries/catalog/location-map-query/location-map-query-format.d.ts +15 -1
- package/queries/catalog/location-map-query/location-map-query-format.js +22 -5
- package/queries/catalog/signature-query/signature-query-executor.js +3 -0
- package/queries/catalog/signature-query/signature-query-format.d.ts +5 -0
- package/queries/query.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/model/model.d.ts +14 -2
- package/r-bridge/lang-4.x/ast/model/model.js +32 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-access.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-argument.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-break.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-comment.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.d.ts +7 -8
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.js +9 -46
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-logical.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-next.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-number.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/processing/node-id.d.ts +0 -5
- package/r-bridge/lang-4.x/ast/model/processing/node-id.js +6 -3
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +1 -1
- package/search/flowr-search-filters.d.ts +17 -1
- package/search/flowr-search-filters.js +23 -0
- package/slicing/criterion/parse.d.ts +5 -25
- package/slicing/criterion/parse.js +15 -20
- package/slicing/static/fingerprint.js +18 -6
- package/slicing/static/slicer-types.d.ts +10 -0
- package/slicing/static/static-slicer.d.ts +1 -1
- package/slicing/static/static-slicer.js +29 -6
- package/slicing/static/visiting-queue.d.ts +12 -2
- package/slicing/static/visiting-queue.js +28 -3
- package/util/arg-matching.d.ts +18 -0
- package/util/arg-matching.js +70 -0
- package/util/r-regex.js +19 -1
- package/util/range.d.ts +7 -8
- package/util/range.js +10 -11
- 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
|
|
346
|
-
|
|
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
|
-
|
|
272
|
-
|
|
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
|
-
|
|
404
|
-
|
|
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.'),
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
79
|
+
env.writableMemory.delete(key);
|
|
80
80
|
}
|
|
81
81
|
else {
|
|
82
|
-
env.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 ((
|
|
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 ?
|
|
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) => (
|
|
62
|
-
nse ??= (layout.any & built_in_props_1.ArgProp.Nse) !== 0 ?
|
|
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
|
-
|
|
66
|
-
|
|
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
|
|
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
|
-
|
|
145
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
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: [
|
|
979
|
+
readonly names: Identifier[];
|
|
959
980
|
readonly processor: BuiltInProcName.Default;
|
|
960
981
|
readonly config: {
|
|
961
982
|
readonly libFn: true;
|
|
@@ -2270,6 +2291,16 @@ export declare const WrittenBuiltinDefinitions: [{
|
|
|
2270
2291
|
readonly sig: [["path", ArgProp.Resource]];
|
|
2271
2292
|
};
|
|
2272
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;
|
|
2273
2304
|
}, {
|
|
2274
2305
|
readonly type: "function";
|
|
2275
2306
|
readonly names: Identifier[];
|
|
@@ -2336,6 +2367,15 @@ export declare const WrittenBuiltinDefinitions: [{
|
|
|
2336
2367
|
readonly props: CallProp.Ambient;
|
|
2337
2368
|
};
|
|
2338
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;
|
|
2339
2379
|
}, {
|
|
2340
2380
|
readonly type: "function";
|
|
2341
2381
|
readonly names: Identifier[];
|