@eagleoutice/flowr 2.17.0 → 2.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/config.d.ts +32 -0
- package/config.js +22 -2
- package/dataflow/environments/built-in-props.d.ts +16 -2
- package/dataflow/environments/built-in-props.js +23 -3
- package/dataflow/environments/built-in.js +13 -3
- package/dataflow/environments/default-builtin-config.d.ts +268 -7
- package/dataflow/environments/default-builtin-config.js +72 -13
- package/dataflow/environments/identifier.d.ts +7 -1
- package/dataflow/extractor.js +49 -14
- package/dataflow/fn/function-semantics.d.ts +1 -0
- package/linter/rules/network-functions.js +10 -2
- package/linter/rules/unused-import.js +11 -1
- package/package.json +1 -1
- package/project/cache/flowr-analyzer-cache.d.ts +4 -0
- package/project/cache/flowr-analyzer-cache.js +11 -0
- package/project/context/flowr-analyzer-dependencies-context.d.ts +3 -0
- package/project/context/flowr-analyzer-dependencies-context.js +6 -0
- package/project/context/flowr-file.d.ts +2 -2
- package/project/context/flowr-file.js +2 -2
- package/project/plugins/file-plugins/files/flowr-manifest-files.d.ts +39 -4
- package/project/plugins/file-plugins/files/flowr-manifest-files.js +134 -30
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-manifest-file-plugin.d.ts +7 -0
- package/project/plugins/file-plugins/flowr-analyzer-manifest-file-plugin.js +14 -1
- package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.d.ts +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.js +3 -3
- package/project/plugins/package-version-plugins/flowr-analyzer-meta-manifest-file-plugin.d.ts +18 -5
- package/project/plugins/package-version-plugins/flowr-analyzer-meta-manifest-file-plugin.js +43 -15
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.d.ts +12 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +31 -2
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-on-demand-plugin.d.ts +58 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-on-demand-plugin.js +237 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.d.ts +8 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.js +8 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.d.ts +7 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +24 -18
- package/project/plugins/plugin-registry.d.ts +5 -4
- package/project/plugins/plugin-registry.js +6 -0
- package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +4 -4
- package/project/sigdb/decode.js +13 -3
- package/project/sigdb/memory-source.d.ts +6 -4
- package/project/sigdb/memory-source.js +6 -5
- package/project/sigdb/on-demand/fetch.d.ts +18 -0
- package/project/sigdb/on-demand/fetch.js +127 -0
- package/project/sigdb/on-demand/package-sources.d.ts +40 -0
- package/project/sigdb/on-demand/package-sources.js +263 -0
- package/project/sigdb/on-demand/recoverer.d.ts +40 -0
- package/project/sigdb/on-demand/recoverer.js +169 -0
- package/project/sigdb/on-demand/remote-sources.d.ts +72 -0
- package/project/sigdb/on-demand/remote-sources.js +132 -0
- package/project/sigdb/on-demand/tar.d.ts +19 -0
- package/project/sigdb/on-demand/tar.js +119 -0
- package/queries/catalog/dependencies-query/function-info/derived-functions.d.ts +5 -0
- package/queries/catalog/dependencies-query/function-info/derived-functions.js +17 -1
- package/queries/catalog/dependencies-query/function-info/read-functions.js +3 -1
- package/queries/catalog/dependencies-query/function-info/write-functions.js +11 -1
- package/r-bridge/data/data.d.ts +29 -0
- package/r-bridge/data/data.js +23 -0
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.d.ts +4 -0
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +8 -0
- package/taint-analysis/predefined/secret-analysis.js +7 -2
- package/taint-analysis/taint-mapping.d.ts +5 -2
- package/taint-analysis/taint-mapping.js +17 -6
- package/util/flowr-version.d.ts +1 -1
- package/util/flowr-version.js +2 -2
- package/util/r-version.js +4 -2
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ It offers a wide variety of features, for example:
|
|
|
38
38
|
|
|
39
39
|
```shell
|
|
40
40
|
$ docker run -it --rm eagleoutice/flowr # or npm run flowr
|
|
41
|
-
flowR repl v2.
|
|
41
|
+
flowR repl v2.17.0, R grammar v14 (tree-sitter engine)
|
|
42
42
|
R> :query @linter "read.csv(\"/root/x.txt\")"
|
|
43
43
|
```
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@ It offers a wide variety of features, for example:
|
|
|
46
46
|
<summary style='color:gray'>Output</summary>
|
|
47
47
|
|
|
48
48
|
```text
|
|
49
|
-
Query: linter (
|
|
49
|
+
Query: linter (21 ms)
|
|
50
50
|
╰ Deprecated Functions (deprecated-functions): no findings
|
|
51
51
|
╰ File Path Validity (file-path-validity):
|
|
52
52
|
╰ certain:
|
|
@@ -72,7 +72,7 @@ It offers a wide variety of features, for example:
|
|
|
72
72
|
╰ Namespace Access Validity (namespace-access): no findings
|
|
73
73
|
╰ Secret Exfiltration (secret-exfiltration): no findings
|
|
74
74
|
╰ Process State in Session (process-state-in-session): no findings
|
|
75
|
-
All queries together required ≈
|
|
75
|
+
All queries together required ≈21 ms (1ms accuracy, total 22 ms)
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
The linter will analyze the code and return any issues found.
|
|
@@ -86,7 +86,7 @@ It offers a wide variety of features, for example:
|
|
|
86
86
|
|
|
87
87
|
_Results (prettified and summarized):_
|
|
88
88
|
|
|
89
|
-
Query: **linter** (
|
|
89
|
+
Query: **linter** (23 ms)\
|
|
90
90
|
╰ **Deprecated Functions** (deprecated-functions): _no findings_\
|
|
91
91
|
╰ **File Path Validity** (file-path-validity):\
|
|
92
92
|
╰ certain:\
|
|
@@ -205,7 +205,7 @@ It offers a wide variety of features, for example:
|
|
|
205
205
|
|
|
206
206
|
```shell
|
|
207
207
|
$ docker run -it --rm eagleoutice/flowr # or npm run flowr
|
|
208
|
-
flowR repl v2.
|
|
208
|
+
flowR repl v2.17.0, R grammar v14 (tree-sitter engine)
|
|
209
209
|
R> :query @static-slice (11@sum) file://test/testfiles/example.R
|
|
210
210
|
```
|
|
211
211
|
|
|
@@ -218,7 +218,7 @@ It offers a wide variety of features, for example:
|
|
|
218
218
|
N <- 10
|
|
219
219
|
for(i in 1:(N-1)) sum <- sum + i + w
|
|
220
220
|
sum
|
|
221
|
-
All queries together required ≈
|
|
221
|
+
All queries together required ≈4 ms (1ms accuracy, total 4 ms)
|
|
222
222
|
```
|
|
223
223
|
|
|
224
224
|
</details>
|
|
@@ -226,7 +226,7 @@ It offers a wide variety of features, for example:
|
|
|
226
226
|
</details>
|
|
227
227
|
|
|
228
228
|
* 🚀 **fast call-graph, data-, and control-flow graphs**\
|
|
229
|
-
Within just [<i><span title="This measurement is automatically fetched from the latest benchmark!">
|
|
229
|
+
Within just [<i><span title="This measurement is automatically fetched from the latest benchmark!">129.1 ms</span></i> (as of Nov 3, 2026)](https://flowr-analysis.github.io/flowr/wiki/stats/benchmark),
|
|
230
230
|
_flowR_ can analyze the data- and control-flow of the average real-world R script. See the [benchmarks](https://flowr-analysis.github.io/flowr/wiki/stats/benchmark) for more information,
|
|
231
231
|
and consult the [wiki pages](https://github.com/flowr-analysis/flowr/wiki/Dataflow-Graph) for more details on the [dataflow graphs](https://github.com/flowr-analysis/flowr/wiki/Dataflow-Graph) as well as [call graphs](https://github.com/flowr-analysis/flowr/wiki/Dataflow-Graph#perspectives-cg).
|
|
232
232
|
( [▶ Explore in Browser](https://flowr-analysis.github.io/flowr/wiki/playground/#c=zDYSwRgTghhCeAUATADsWECUAoLBnAxlMAKYD6ALgPakC2UAHgAQA8AtIwGYCuAdvuSEo949DIyYB6RnXojsWaAHdGKlW0aIo5KADoO0GsXghEjALyMAjAC4AbABpGANyJdi5xvngBmRwA5HAHZHACZHAE5HABYMbHwSKB5VdQ4QYHJiCHglRxdgN0YAPkYQuISeABICImJTdWqSCmoZeHjiRIq8t3lcLho6OFJcbXJcFnZe-pgQXCM2xMdDRI8l4Qba2KxeLlnEJu1gNQm%2B7KhFTtdieUUIEAydfFwneEmB2CGR3EcAIleYWAeT2%2B2FQlHIrXKVUIJEQIMoIB4owh7UqJgwQA&p=13:1 "run this script in flowR's playground, no setup") )
|
|
@@ -257,7 +257,7 @@ It offers a wide variety of features, for example:
|
|
|
257
257
|
|
|
258
258
|
```shell
|
|
259
259
|
$ docker run -it --rm eagleoutice/flowr # or npm run flowr
|
|
260
|
-
flowR repl v2.
|
|
260
|
+
flowR repl v2.17.0, R grammar v14 (tree-sitter engine)
|
|
261
261
|
R> :dataflow* test/testfiles/example.R
|
|
262
262
|
```
|
|
263
263
|
|
package/config.d.ts
CHANGED
|
@@ -199,6 +199,38 @@ export interface FlowrConfig {
|
|
|
199
199
|
readonly maxDepth?: number;
|
|
200
200
|
readonly packages?: string[];
|
|
201
201
|
};
|
|
202
|
+
/**
|
|
203
|
+
* Recovering a package no signature database knows from its source, fetched when the analyzed code uses
|
|
204
|
+
* it: from CRAN, Bioconductor, or the GitHub repository the project installs it from. Opt-in, as it
|
|
205
|
+
* accesses the network. What it fetched is cached, so a later analysis can work offline.
|
|
206
|
+
*/
|
|
207
|
+
readonly onDemand?: {
|
|
208
|
+
readonly enabled: boolean;
|
|
209
|
+
/** where to look, in order (default `github`, `cran`, `bioconductor`), a plugin may add sources of its own */
|
|
210
|
+
readonly sources?: string[];
|
|
211
|
+
/** GitHub repositories (`owner/repo[/subdir][@ref]`) to fetch packages from, by package name */
|
|
212
|
+
readonly repositories?: Record<string, string>;
|
|
213
|
+
/** only recover packages whose name matches one of these regular expressions, empty means any */
|
|
214
|
+
readonly packages?: string[];
|
|
215
|
+
/** the CRAN `src/contrib/` to fetch from (default `https://cloud.r-project.org/src/contrib/`) */
|
|
216
|
+
readonly cranMirror?: string;
|
|
217
|
+
/** the Bioconductor host (default `https://bioconductor.org`) */
|
|
218
|
+
readonly bioconductorMirror?: string;
|
|
219
|
+
/** the Bioconductor release to fetch from (default `release`) */
|
|
220
|
+
readonly bioconductorRelease?: string;
|
|
221
|
+
/** whether to use the GitHub mirrors of CRAN and Bioconductor (`cran/<pkg>`, `bioc/<pkg>`, default true) */
|
|
222
|
+
readonly githubMirrors?: boolean;
|
|
223
|
+
/** the most packages to fetch for one analysis (default 25) */
|
|
224
|
+
readonly maxPackages?: number;
|
|
225
|
+
/** the most MiB a package archive may have (default 32), it may unpack to three times that */
|
|
226
|
+
readonly maxArchiveMb?: number;
|
|
227
|
+
/** only use what was fetched before, never the network (default false) */
|
|
228
|
+
readonly offline?: boolean;
|
|
229
|
+
/** how many hours to wait before asking again for a package no source had (default 24) */
|
|
230
|
+
readonly retryAfterHours?: number;
|
|
231
|
+
/** where to cache what was fetched (default the `on-demand` directory of the signature cache) */
|
|
232
|
+
readonly cacheDir?: string;
|
|
233
|
+
};
|
|
202
234
|
};
|
|
203
235
|
readonly versionManagement?: {
|
|
204
236
|
readonly linkedVersionGroups?: string[][];
|
package/config.js
CHANGED
|
@@ -137,10 +137,12 @@ exports.FlowrDefaultPlugins = [
|
|
|
137
137
|
'versions:description',
|
|
138
138
|
'versions:sigdb',
|
|
139
139
|
'versions:library',
|
|
140
|
+
'versions:on-demand',
|
|
140
141
|
'versions:namespace',
|
|
141
142
|
'versions:renv',
|
|
142
143
|
'versions:rv',
|
|
143
144
|
'versions:uvr',
|
|
145
|
+
'versions:rig',
|
|
144
146
|
'versions:packrat',
|
|
145
147
|
'versions:session-info',
|
|
146
148
|
'loading-order:description',
|
|
@@ -150,6 +152,8 @@ exports.FlowrDefaultPlugins = [
|
|
|
150
152
|
'meta:description',
|
|
151
153
|
'meta:rproject',
|
|
152
154
|
'meta:uvr',
|
|
155
|
+
'meta:rig',
|
|
156
|
+
'meta:rig-script',
|
|
153
157
|
'file-roles:vignette',
|
|
154
158
|
'file-roles:test',
|
|
155
159
|
'file-roles:inst',
|
|
@@ -173,6 +177,7 @@ exports.FlowrDefaultPlugins = [
|
|
|
173
177
|
'file:virtualenv',
|
|
174
178
|
'file:rproject',
|
|
175
179
|
'file:uvr',
|
|
180
|
+
'file:rig',
|
|
176
181
|
'file:rprofile',
|
|
177
182
|
];
|
|
178
183
|
/** deep-merge two config overwrites with `own` winning; objects merge, arrays/scalars replace (matching {@link specialize}'s array-as-leaf treatment) */
|
|
@@ -329,7 +334,7 @@ exports.FlowrConfig = {
|
|
|
329
334
|
variables: VariableResolve.Alias,
|
|
330
335
|
evalStrings: true,
|
|
331
336
|
trackEnvironments: true,
|
|
332
|
-
sigdb: { enabled: true, loadProjectDependencies: true, eagerlyLoad: false, eagerlyLoadExports: false, blobCacheBudgetMb: 16, 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: [] } },
|
|
337
|
+
sigdb: { enabled: true, loadProjectDependencies: true, eagerlyLoad: false, eagerlyLoadExports: false, blobCacheBudgetMb: 16, 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: [] }, onDemand: { enabled: false } },
|
|
333
338
|
versionManagement: { linkedVersionGroups: [] },
|
|
334
339
|
resolveSource: {
|
|
335
340
|
dropPaths: DropPathsOption.No,
|
|
@@ -461,7 +466,7 @@ exports.FlowrConfig = {
|
|
|
461
466
|
trackEnvironments: joi_1.default.boolean().optional().description('Track user-created environments (new.env, assign/get/local with envir=, dollar-assign, attach). When false, all envir-style calls fall through conservatively.'),
|
|
462
467
|
sigdb: joi_1.default.object({
|
|
463
468
|
enabled: joi_1.default.boolean().optional().description('Resolve library()/use() exports from a signature database (default true); when false no database is consulted.'),
|
|
464
|
-
loadProjectDependencies: joi_1.default.boolean().optional().description('Load the project\'s declared dependencies from its metadata files (DESCRIPTION Imports/Depends, rproject.toml, uvr.toml, renv.lock, rv.lock, uvr.lock) (default true); when false these files are not read for dependencies.'),
|
|
469
|
+
loadProjectDependencies: joi_1.default.boolean().optional().description('Load the project\'s declared dependencies from its metadata files (DESCRIPTION Imports/Depends, rproject.toml, uvr.toml, rig rproj.toml and script blocks, renv.lock, rv.lock, uvr.lock, rig lockfiles) (default true); when false these files are not read for dependencies.'),
|
|
465
470
|
eagerlyLoad: joi_1.default.boolean().optional().description('Parse the database up front rather than on the first package load (default false, ignored if disabled).'),
|
|
466
471
|
eagerlyLoadExports: joi_1.default.boolean().optional().description('Add a vertex for every export on load rather than on demand (default false); keeps the dataflow graph small.'),
|
|
467
472
|
assumedRVersion: joi_1.default.string().optional().description('R version assumed when resolving versioned (base-R) exports: a pin like "4.5" or "auto" to detect the installed R (default "auto").'),
|
|
@@ -481,6 +486,21 @@ exports.FlowrConfig = {
|
|
|
481
486
|
maxDepth: joi_1.default.number().optional().description('How far to descend into the nested layout of a project-local library (default 3).'),
|
|
482
487
|
packages: regexOption(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.')
|
|
483
488
|
}).optional().description('Recovering packages no signature database knows from the copy installed on this machine.'),
|
|
489
|
+
onDemand: joi_1.default.object({
|
|
490
|
+
enabled: securitySensitive(joi_1.default.boolean().required()).description('Fetch and recover the sources of packages no signature database knows when the analyzed code uses them (default false, accesses the network).'),
|
|
491
|
+
sources: joi_1.default.array().items(joi_1.default.string()).optional().description('Where to look, in order: github, cran, bioconductor, or a source a plugin adds (default ["github", "cran", "bioconductor"]).'),
|
|
492
|
+
repositories: securitySensitive(joi_1.default.object().pattern(joi_1.default.string(), joi_1.default.string()).optional()).description('GitHub repositories (owner/repo[/subdir][@ref]) to fetch packages from, by package name. The analyzed project may name more (DESCRIPTION Remotes, install_github calls).'),
|
|
493
|
+
packages: regexOption(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.'),
|
|
494
|
+
cranMirror: securitySensitive(joi_1.default.string().optional()).description('The CRAN src/contrib/ to fetch from, over https (default https://cloud.r-project.org/src/contrib/). It may be on the local network.'),
|
|
495
|
+
bioconductorMirror: securitySensitive(joi_1.default.string().optional()).description('The Bioconductor host, over https (default https://bioconductor.org). It may be on the local network.'),
|
|
496
|
+
bioconductorRelease: joi_1.default.string().pattern(/^(release|devel|\d+\.\d+)$/).optional().description('The Bioconductor release to fetch from: release, devel, or a number like 3.20 (default release).'),
|
|
497
|
+
githubMirrors: joi_1.default.boolean().optional().description('Use the GitHub mirrors of CRAN (cran/<pkg>) and Bioconductor (bioc/<pkg>) (default true).'),
|
|
498
|
+
maxPackages: joi_1.default.number().min(0).optional().description('The most packages to fetch for one analysis (default 25).'),
|
|
499
|
+
maxArchiveMb: joi_1.default.number().min(0).optional().description('The most MiB a package archive may have (default 32). It may unpack to three times that, at most 128 MiB.'),
|
|
500
|
+
offline: joi_1.default.boolean().optional().description('Only use what was fetched before, never the network (default false).'),
|
|
501
|
+
retryAfterHours: joi_1.default.number().min(0).optional().description('How many hours to wait before asking again for a package no source had (default 24).'),
|
|
502
|
+
cacheDir: securitySensitive(joi_1.default.string().optional()).description('Where to cache what was fetched (default the on-demand directory of the signature cache).')
|
|
503
|
+
}).optional().description('Recovering packages no signature database knows from their sources on CRAN, Bioconductor, or GitHub.'),
|
|
484
504
|
blobCacheBudgetMb: joi_1.default.number().min(0).optional().description('How many MiB of decoded package blobs every open bundle may hold together (default 16).'),
|
|
485
505
|
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.'),
|
|
486
506
|
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 {}).')
|
|
@@ -21,9 +21,15 @@ export declare enum ArgProp {
|
|
|
21
21
|
Shape = 16,
|
|
22
22
|
/** selects a behavior instead of carrying data, like `na.rm` in `sum(x, na.rm = TRUE)` */
|
|
23
23
|
Flag = 32,
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* names the resource the call reads or writes, like `file` in `write.csv(x, file)`. A call that reads some
|
|
26
|
+
* files and writes others marks the ones it writes {@link ArgProp.Written} as well, see {@link FnSig.resources}.
|
|
27
|
+
*/
|
|
25
28
|
Resource = 64,
|
|
26
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* what it refers to may be modified, like `envir` in `assign(x, v, envir = e)`, or the file `to` names in
|
|
31
|
+
* `file.copy(from, to)`
|
|
32
|
+
*/
|
|
27
33
|
Written = 128,
|
|
28
34
|
/** quoted or evaluated in another frame, like `expr` in `quote(expr)` */
|
|
29
35
|
Nse = 256,
|
|
@@ -289,6 +295,12 @@ export declare const CallProps: {
|
|
|
289
295
|
* by their full name only.
|
|
290
296
|
*/
|
|
291
297
|
export type FnSig = [name: string, props: ArgProps][];
|
|
298
|
+
/**
|
|
299
|
+
* The signature with only the {@link ArgProp.Resource} arguments the call reads (`writes` false) or writes. Only
|
|
300
|
+
* a call that reads and writes marks the ones it writes {@link ArgProp.Written}, like `exdir` in
|
|
301
|
+
* `unzip(zipfile, exdir = "out")`. One that marks none does whatever it does to every resource argument.
|
|
302
|
+
*/
|
|
303
|
+
declare function resourcesOf(sig: FnSig, writes: boolean): FnSig;
|
|
292
304
|
/**
|
|
293
305
|
* Utility functions for {@link FnSig|function signatures}.
|
|
294
306
|
*/
|
|
@@ -309,6 +321,8 @@ export declare const FnSig: {
|
|
|
309
321
|
readonly every: FnSig;
|
|
310
322
|
/** A signature saying only that the call evaluates one argument; see {@link forcingOnly}. */
|
|
311
323
|
readonly only: typeof forcingOnly;
|
|
324
|
+
/** The signature keeping only the resources the call reads or writes, see {@link resourcesOf}. */
|
|
325
|
+
readonly resources: typeof resourcesOf;
|
|
312
326
|
};
|
|
313
327
|
/**
|
|
314
328
|
* Utility functions for {@link ArgProps|argument property bitfields}.
|
|
@@ -27,9 +27,15 @@ var ArgProp;
|
|
|
27
27
|
ArgProp[ArgProp["Shape"] = 16] = "Shape";
|
|
28
28
|
/** selects a behavior instead of carrying data, like `na.rm` in `sum(x, na.rm = TRUE)` */
|
|
29
29
|
ArgProp[ArgProp["Flag"] = 32] = "Flag";
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* names the resource the call reads or writes, like `file` in `write.csv(x, file)`. A call that reads some
|
|
32
|
+
* files and writes others marks the ones it writes {@link ArgProp.Written} as well, see {@link FnSig.resources}.
|
|
33
|
+
*/
|
|
31
34
|
ArgProp[ArgProp["Resource"] = 64] = "Resource";
|
|
32
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* what it refers to may be modified, like `envir` in `assign(x, v, envir = e)`, or the file `to` names in
|
|
37
|
+
* `file.copy(from, to)`
|
|
38
|
+
*/
|
|
33
39
|
ArgProp[ArgProp["Written"] = 128] = "Written";
|
|
34
40
|
/** quoted or evaluated in another frame, like `expr` in `quote(expr)` */
|
|
35
41
|
ArgProp[ArgProp["Nse"] = 256] = "Nse";
|
|
@@ -377,6 +383,18 @@ exports.CallProps = {
|
|
|
377
383
|
* about a callee flowR cannot resolve.
|
|
378
384
|
*/
|
|
379
385
|
const ForcingEvery = [['...', ArgProp.Forced]];
|
|
386
|
+
/**
|
|
387
|
+
* The signature with only the {@link ArgProp.Resource} arguments the call reads (`writes` false) or writes. Only
|
|
388
|
+
* a call that reads and writes marks the ones it writes {@link ArgProp.Written}, like `exdir` in
|
|
389
|
+
* `unzip(zipfile, exdir = "out")`. One that marks none does whatever it does to every resource argument.
|
|
390
|
+
*/
|
|
391
|
+
function resourcesOf(sig, writes) {
|
|
392
|
+
const written = ArgProp.Resource | ArgProp.Written;
|
|
393
|
+
if (!sig.some(([, p]) => (p & written) === written)) {
|
|
394
|
+
return sig;
|
|
395
|
+
}
|
|
396
|
+
return sig.map(([n, p]) => (p & ArgProp.Resource) === 0 || ((p & ArgProp.Written) !== 0) === writes ? [n, p] : [n, p & ~ArgProp.Resource]);
|
|
397
|
+
}
|
|
380
398
|
/**
|
|
381
399
|
* Utility functions for {@link FnSig|function signatures}.
|
|
382
400
|
*/
|
|
@@ -396,7 +414,9 @@ exports.FnSig = {
|
|
|
396
414
|
/** A signature saying only that the call evaluates every argument; see {@link ForcingEvery}. */
|
|
397
415
|
every: ForcingEvery,
|
|
398
416
|
/** A signature saying only that the call evaluates one argument; see {@link forcingOnly}. */
|
|
399
|
-
only: forcingOnly
|
|
417
|
+
only: forcingOnly,
|
|
418
|
+
/** The signature keeping only the resources the call reads or writes, see {@link resourcesOf}. */
|
|
419
|
+
resources: resourcesOf
|
|
400
420
|
};
|
|
401
421
|
/** the {@link ArgProp} bits as words; integer keys iterate in ascending bit order */
|
|
402
422
|
const ArgPropWords = {
|
|
@@ -219,16 +219,26 @@ function defaultBuiltInProcessorReadallArgs(name, args, rootId, data, { useAsPro
|
|
|
219
219
|
/**
|
|
220
220
|
* A call that reads or writes the files its arguments name accesses the {@link AmbientStateName.files|files on disk} as well.
|
|
221
221
|
* Closing a device writes the file its opening already wrote, and only a device's file name may number its pages (`plot%03d.png`).
|
|
222
|
+
* A call reading some files and writing others (`unzip(zipfile, exdir = "out")`) does both, each with its own files.
|
|
222
223
|
*/
|
|
223
224
|
function withFileAccess(config) {
|
|
224
225
|
const { tags, ambient, sig } = (config ?? {});
|
|
225
|
-
|
|
226
|
+
if (!tags?.includes(built_in_props_1.SemanticCallTag.File)) {
|
|
227
|
+
return config;
|
|
228
|
+
}
|
|
229
|
+
const writes = tags.includes(built_in_props_1.SemanticCallTag.Writes);
|
|
230
|
+
const split = writes && tags.includes(built_in_props_1.SemanticCallTag.Reads) && sig !== undefined && built_in_props_1.FnSig.resources(sig, true) !== sig;
|
|
231
|
+
/* reading first, so the files read are the ones written before, not the call's own */
|
|
232
|
+
const types = [...split || !writes && tags.includes(built_in_props_1.SemanticCallTag.Reads) ? ["read-files" /* AmbientStateAccessType.ReadFiles */] : [], ...writes ? ["write-files" /* AmbientStateAccessType.WriteFiles */] : []];
|
|
226
233
|
const stated = [ambient ?? []].flat();
|
|
227
|
-
if (
|
|
234
|
+
if (types.length === 0 || stated.some(a => types.includes(a.type) || a.type === "close-device" /* AmbientStateAccessType.CloseDevice */)) {
|
|
228
235
|
return config;
|
|
229
236
|
}
|
|
230
237
|
const numbered = stated.some(a => a.type === "open-device" /* AmbientStateAccessType.OpenDevice */);
|
|
231
|
-
|
|
238
|
+
const glob = tags.includes(built_in_props_1.SemanticCallTag.Glob);
|
|
239
|
+
return { ...config, ambient: [...stated, ...types.map(type => ({
|
|
240
|
+
type, numbered, sig: glob || sig === undefined ? undefined : split ? built_in_props_1.FnSig.resources(sig, type === "write-files" /* AmbientStateAccessType.WriteFiles */) : sig
|
|
241
|
+
}))] };
|
|
232
242
|
}
|
|
233
243
|
exports.BuiltInProcessorMapper = {
|
|
234
244
|
[built_in_proc_name_1.BuiltInProcName.Access]: built_in_access_1.processAccess,
|
|
@@ -52,7 +52,7 @@ export declare const PlotFunctionPackages: Readonly<Record<string, readonly stri
|
|
|
52
52
|
export declare function plotFunctionOwners(name: string): readonly string[];
|
|
53
53
|
/** `names` under every package exporting each: base R from the shipped data, the rest from {@link PlotFunctionPackages}. */
|
|
54
54
|
export declare function namespacePlotFunctions(names: readonly string[]): (Identifier | string)[];
|
|
55
|
-
export declare const GgPlotCreate: readonly ["ggplot", "ggplotly", "ggMarginal", "ggcorrplot", "ggseasonplot", "ggdendrogram", "qmap", "qplot", "quickplot", "autoplot", "grid.arrange", "fviz_pca_biplot", "fviz_pca", "fviz_pca_ind", "fviz_pca_var", "fviz_screeplot", "fviz_mca_biplot", "fviz_mca", "fviz_mca_ind", "fviz_mca_var", "fviz_cluster", "fviz_dend", "ggsurvplot"];
|
|
55
|
+
export declare const GgPlotCreate: readonly ["ggplot", "ggplotly", "ggMarginal", "ggcorrplot", "ggseasonplot", "ggdendrogram", "qmap", "qplot", "quickplot", "autoplot", "grid.arrange", "fviz_pca_biplot", "fviz_pca", "fviz_pca_ind", "fviz_pca_var", "fviz_screeplot", "fviz_mca_biplot", "fviz_mca", "fviz_mca_ind", "fviz_mca_var", "fviz_cluster", "fviz_dend", "ggsurvplot", "conRelPlot", "itemDist", "itemInfoPlot", "itemfitPlot", "itempersonMap", "personDist", "personfitPlot", "scaleCharPlot", "summaryPlot", "testInfoCompare", "testInfoPlot", "tracePlot", "ggbivariate", "ggcoef", "ggcoef_compare", "ggcoef_model", "ggcorr", "ggduo", "ggnet2", "ggnostic", "ggpairs", "ggparcoord", "ggscatmat", "ggsurv", "ggtable", "ggts", "ggbarstats", "ggbetweenstats", "ggcoefstats", "ggcorrmat", "ggdotplotstats", "gghistostats", "ggpiestats", "ggscatterstats", "ggwithinstats", "grouped_ggbarstats", "grouped_ggbetweenstats", "grouped_ggcorrmat", "grouped_ggdotplotstats", "grouped_gghistostats", "grouped_ggpiestats", "grouped_ggscatterstats", "grouped_ggwithinstats", "ggbarplot", "ggdensity", "ggdotchart", "ggdotplot", "ggecdf", "ggerrorplot", "gghistogram", "ggline", "ggmaplot", "ggpaired", "ggpie", "ggdonutchart", "ggqqplot", "ggscatterhist", "ggstripchart", "ggviolin", "ggballoonplot", "plot_frq", "plot_grpfrq", "plot_likert", "plot_models", "plot_residuals", "plot_scatter", "plot_stackfrq", "plot_xtab", "EnhancedVolcano", "centralityPlot", "clusteringPlot"];
|
|
56
56
|
export declare const TinyPlotCrate: readonly ["tinyplot", "plt"];
|
|
57
57
|
export declare const GraphicsPlotCreate: string[];
|
|
58
58
|
export declare const PlotCreate: string[];
|
|
@@ -2862,6 +2862,16 @@ export declare const WrittenBuiltinDefinitions: [{
|
|
|
2862
2862
|
readonly sig: [["url", number], ["...", number]];
|
|
2863
2863
|
};
|
|
2864
2864
|
readonly assumePrimitive: false;
|
|
2865
|
+
}, {
|
|
2866
|
+
readonly type: "function";
|
|
2867
|
+
readonly names: [Identifier];
|
|
2868
|
+
readonly processor: BuiltInProcName.Default;
|
|
2869
|
+
readonly config: {
|
|
2870
|
+
readonly libFn: true;
|
|
2871
|
+
readonly tags: SemanticCallTag[];
|
|
2872
|
+
readonly sig: [["url", number], ["path", number], ["handle", number]];
|
|
2873
|
+
};
|
|
2874
|
+
readonly assumePrimitive: false;
|
|
2865
2875
|
}, {
|
|
2866
2876
|
readonly type: "function";
|
|
2867
2877
|
readonly names: [Identifier];
|
|
@@ -2869,7 +2879,7 @@ export declare const WrittenBuiltinDefinitions: [{
|
|
|
2869
2879
|
readonly config: {
|
|
2870
2880
|
readonly props: CallProp.Invisible;
|
|
2871
2881
|
readonly libFn: true;
|
|
2872
|
-
readonly tags: [
|
|
2882
|
+
readonly tags: SemanticCallTag[];
|
|
2873
2883
|
readonly sig: [["url", number], ["destfile", number], ["quiet", number], ["mode", number], ["handle", number]];
|
|
2874
2884
|
};
|
|
2875
2885
|
readonly assumePrimitive: false;
|
|
@@ -2879,7 +2889,7 @@ export declare const WrittenBuiltinDefinitions: [{
|
|
|
2879
2889
|
readonly processor: BuiltInProcName.Default;
|
|
2880
2890
|
readonly config: {
|
|
2881
2891
|
readonly libFn: true;
|
|
2882
|
-
readonly tags: [
|
|
2892
|
+
readonly tags: SemanticCallTag[];
|
|
2883
2893
|
readonly sig: [["urls", number], ["destfiles", number], ["...", number]];
|
|
2884
2894
|
};
|
|
2885
2895
|
readonly assumePrimitive: false;
|
|
@@ -2940,7 +2950,7 @@ export declare const WrittenBuiltinDefinitions: [{
|
|
|
2940
2950
|
readonly config: {
|
|
2941
2951
|
readonly props: CallProp.Invisible;
|
|
2942
2952
|
readonly libFn: true;
|
|
2943
|
-
readonly tags: [
|
|
2953
|
+
readonly tags: SemanticCallTag[];
|
|
2944
2954
|
readonly sig: [["url", number], ["file", number], ["...", number]];
|
|
2945
2955
|
};
|
|
2946
2956
|
readonly assumePrimitive: false;
|
|
@@ -3041,10 +3051,104 @@ export declare const WrittenBuiltinDefinitions: [{
|
|
|
3041
3051
|
readonly processor: BuiltInProcName.Default;
|
|
3042
3052
|
readonly config: {
|
|
3043
3053
|
readonly libFn: true;
|
|
3044
|
-
readonly tags: [
|
|
3054
|
+
readonly tags: SemanticCallTag[];
|
|
3045
3055
|
readonly sig: [["object_name", number], ["saveToDisk", number], ["...", number]];
|
|
3046
3056
|
};
|
|
3047
3057
|
readonly assumePrimitive: false;
|
|
3058
|
+
}, {
|
|
3059
|
+
readonly type: "function";
|
|
3060
|
+
readonly names: [Identifier];
|
|
3061
|
+
readonly processor: BuiltInProcName.Default;
|
|
3062
|
+
readonly config: {
|
|
3063
|
+
readonly props: CallProp.Invisible;
|
|
3064
|
+
readonly libFn: true;
|
|
3065
|
+
readonly tags: SemanticCallTag[];
|
|
3066
|
+
readonly sig: [["file", number], ["path", number], ["type", ArgProp.Value], ["overwrite", ArgProp.Flag], ["verbose", ArgProp.Flag]];
|
|
3067
|
+
};
|
|
3068
|
+
readonly assumePrimitive: false;
|
|
3069
|
+
}, {
|
|
3070
|
+
readonly type: "function";
|
|
3071
|
+
readonly names: [Identifier];
|
|
3072
|
+
readonly processor: BuiltInProcName.Default;
|
|
3073
|
+
readonly config: {
|
|
3074
|
+
readonly libFn: true;
|
|
3075
|
+
readonly tags: SemanticCallTag[];
|
|
3076
|
+
readonly sig: [["req", number], ["path", number], ["verbosity", ArgProp.Value], ["mock", ArgProp.Value], ["error_call", ArgProp.Value]];
|
|
3077
|
+
};
|
|
3078
|
+
readonly assumePrimitive: false;
|
|
3079
|
+
}, {
|
|
3080
|
+
readonly type: "function";
|
|
3081
|
+
readonly names: [Identifier];
|
|
3082
|
+
readonly processor: BuiltInProcName.Default;
|
|
3083
|
+
readonly config: {
|
|
3084
|
+
readonly libFn: true;
|
|
3085
|
+
readonly tags: [SemanticCallTag.Network, SemanticCallTag.File, SemanticCallTag.Writes];
|
|
3086
|
+
readonly sig: [["pkgs", number], ["destdir", number], ["...", number]];
|
|
3087
|
+
};
|
|
3088
|
+
readonly assumePrimitive: false;
|
|
3089
|
+
}, {
|
|
3090
|
+
readonly type: "function";
|
|
3091
|
+
readonly names: [Identifier];
|
|
3092
|
+
readonly processor: BuiltInProcName.Default;
|
|
3093
|
+
readonly config: {
|
|
3094
|
+
readonly libFn: true;
|
|
3095
|
+
readonly tags: SemanticCallTag[];
|
|
3096
|
+
readonly sig: [["url", number], ["output", number], ["...", number]];
|
|
3097
|
+
};
|
|
3098
|
+
readonly assumePrimitive: false;
|
|
3099
|
+
}, {
|
|
3100
|
+
readonly type: "function";
|
|
3101
|
+
readonly names: [Identifier];
|
|
3102
|
+
readonly processor: BuiltInProcName.Default;
|
|
3103
|
+
readonly config: {
|
|
3104
|
+
readonly props: CallProp.Invisible;
|
|
3105
|
+
readonly libFn: true;
|
|
3106
|
+
readonly tags: SemanticCallTag[];
|
|
3107
|
+
readonly sig: [["url", number], ["...", number], ["destfile", number]];
|
|
3108
|
+
};
|
|
3109
|
+
readonly assumePrimitive: false;
|
|
3110
|
+
}, {
|
|
3111
|
+
readonly type: "function";
|
|
3112
|
+
readonly names: [Identifier];
|
|
3113
|
+
readonly processor: BuiltInProcName.Default;
|
|
3114
|
+
readonly config: {
|
|
3115
|
+
readonly props: CallProp.Invisible;
|
|
3116
|
+
readonly libFn: true;
|
|
3117
|
+
readonly tags: SemanticCallTag[];
|
|
3118
|
+
readonly sig: [["file", number], ["dest", number], ["repo", number], ["...", number]];
|
|
3119
|
+
};
|
|
3120
|
+
readonly assumePrimitive: false;
|
|
3121
|
+
}, {
|
|
3122
|
+
readonly type: "function";
|
|
3123
|
+
readonly names: [Identifier];
|
|
3124
|
+
readonly processor: BuiltInProcName.Default;
|
|
3125
|
+
readonly config: {
|
|
3126
|
+
readonly libFn: true;
|
|
3127
|
+
readonly tags: SemanticCallTag[];
|
|
3128
|
+
readonly sig: [["x", number], ["path", number], ["...", number]];
|
|
3129
|
+
};
|
|
3130
|
+
readonly assumePrimitive: false;
|
|
3131
|
+
}, {
|
|
3132
|
+
readonly type: "function";
|
|
3133
|
+
readonly names: [Identifier];
|
|
3134
|
+
readonly processor: BuiltInProcName.Default;
|
|
3135
|
+
readonly config: {
|
|
3136
|
+
readonly libFn: true;
|
|
3137
|
+
readonly tags: SemanticCallTag[];
|
|
3138
|
+
readonly sig: [["object", number], ["bucket", number], ["file", number], ["...", number]];
|
|
3139
|
+
};
|
|
3140
|
+
readonly assumePrimitive: false;
|
|
3141
|
+
}, {
|
|
3142
|
+
readonly type: "function";
|
|
3143
|
+
readonly names: [Identifier];
|
|
3144
|
+
readonly processor: BuiltInProcName.Default;
|
|
3145
|
+
readonly config: {
|
|
3146
|
+
readonly props: CallProp.Invisible;
|
|
3147
|
+
readonly libFn: true;
|
|
3148
|
+
readonly tags: SemanticCallTag[];
|
|
3149
|
+
readonly sig: [["doi", number], ["path", number], ["...", number]];
|
|
3150
|
+
};
|
|
3151
|
+
readonly assumePrimitive: false;
|
|
3048
3152
|
}, {
|
|
3049
3153
|
readonly type: "function";
|
|
3050
3154
|
readonly names: [Identifier, Identifier];
|
|
@@ -3501,7 +3605,7 @@ export declare const WrittenBuiltinDefinitions: [{
|
|
|
3501
3605
|
readonly processor: BuiltInProcName.DefaultReadAllArgs;
|
|
3502
3606
|
readonly config: {
|
|
3503
3607
|
readonly props: CallProp.Invisible;
|
|
3504
|
-
readonly tags: [
|
|
3608
|
+
readonly tags: SemanticCallTag[];
|
|
3505
3609
|
readonly sig: [["url", number], ["destfile", number]];
|
|
3506
3610
|
};
|
|
3507
3611
|
readonly assumePrimitive: false;
|
|
@@ -6389,6 +6493,163 @@ export declare const WrittenBuiltinDefinitions: [{
|
|
|
6389
6493
|
readonly tags: [SemanticCallTag.File, SemanticCallTag.Writes];
|
|
6390
6494
|
};
|
|
6391
6495
|
readonly assumePrimitive: false;
|
|
6496
|
+
}, {
|
|
6497
|
+
readonly type: "function";
|
|
6498
|
+
readonly names: Identifier[];
|
|
6499
|
+
readonly processor: BuiltInProcName.Default;
|
|
6500
|
+
readonly config: {
|
|
6501
|
+
readonly tags: SemanticCallTag[];
|
|
6502
|
+
readonly sig: [["from", number], ["to", number], ["overwrite", ArgProp.Flag], ["recursive", ArgProp.Flag], ["copy.mode", ArgProp.Flag], ["copy.date", ArgProp.Flag]];
|
|
6503
|
+
};
|
|
6504
|
+
readonly assumePrimitive: false;
|
|
6505
|
+
}, {
|
|
6506
|
+
readonly type: "function";
|
|
6507
|
+
readonly names: [Identifier];
|
|
6508
|
+
readonly processor: BuiltInProcName.Default;
|
|
6509
|
+
readonly config: {
|
|
6510
|
+
readonly hasUnknownSideEffects: true;
|
|
6511
|
+
readonly tags: SemanticCallTag[];
|
|
6512
|
+
readonly sig: [["from", number], ["to", number]];
|
|
6513
|
+
};
|
|
6514
|
+
readonly assumePrimitive: false;
|
|
6515
|
+
}, {
|
|
6516
|
+
readonly type: "function";
|
|
6517
|
+
readonly names: [Identifier];
|
|
6518
|
+
readonly processor: BuiltInProcName.Default;
|
|
6519
|
+
readonly config: {
|
|
6520
|
+
readonly hasUnknownSideEffects: true;
|
|
6521
|
+
readonly props: CallProp.Invisible;
|
|
6522
|
+
readonly libFn: true;
|
|
6523
|
+
readonly tags: SemanticCallTag[];
|
|
6524
|
+
readonly sig: [["path", number], ["new_path", number]];
|
|
6525
|
+
};
|
|
6526
|
+
readonly assumePrimitive: false;
|
|
6527
|
+
}, {
|
|
6528
|
+
readonly type: "function";
|
|
6529
|
+
readonly names: [Identifier];
|
|
6530
|
+
readonly processor: BuiltInProcName.Default;
|
|
6531
|
+
readonly config: {
|
|
6532
|
+
readonly tags: SemanticCallTag[];
|
|
6533
|
+
readonly sig: [["file1", number], ["file2", number]];
|
|
6534
|
+
};
|
|
6535
|
+
readonly assumePrimitive: false;
|
|
6536
|
+
}, {
|
|
6537
|
+
readonly type: "function";
|
|
6538
|
+
readonly names: Identifier[];
|
|
6539
|
+
readonly processor: BuiltInProcName.Default;
|
|
6540
|
+
readonly config: {
|
|
6541
|
+
readonly props: CallProp.Invisible;
|
|
6542
|
+
readonly libFn: true;
|
|
6543
|
+
readonly tags: SemanticCallTag[];
|
|
6544
|
+
readonly sig: [["path", number], ["new_path", number], ["...", ArgProp.Flag]];
|
|
6545
|
+
};
|
|
6546
|
+
readonly assumePrimitive: false;
|
|
6547
|
+
}, {
|
|
6548
|
+
readonly type: "function";
|
|
6549
|
+
readonly names: [Identifier];
|
|
6550
|
+
readonly processor: BuiltInProcName.Default;
|
|
6551
|
+
readonly config: {
|
|
6552
|
+
readonly props: CallProp.Invisible;
|
|
6553
|
+
readonly tags: SemanticCallTag[];
|
|
6554
|
+
readonly sig: [["zipfile", number], ["files", ArgProp.Value], ["list", ArgProp.Flag], ["overwrite", ArgProp.Flag], ["junkpaths", ArgProp.Flag], ["exdir", number], ["unzip", ArgProp.Value], ["setTimes", ArgProp.Flag]];
|
|
6555
|
+
};
|
|
6556
|
+
readonly assumePrimitive: false;
|
|
6557
|
+
}, {
|
|
6558
|
+
readonly type: "function";
|
|
6559
|
+
readonly names: [Identifier];
|
|
6560
|
+
readonly processor: BuiltInProcName.Default;
|
|
6561
|
+
readonly config: {
|
|
6562
|
+
readonly props: CallProp.Invisible;
|
|
6563
|
+
readonly tags: SemanticCallTag[];
|
|
6564
|
+
readonly sig: [["tarfile", number], ["files", ArgProp.Value], ["list", ArgProp.Flag], ["exdir", number], ["compressed", ArgProp.Flag], ["extras", ArgProp.Value], ["verbose", ArgProp.Flag], ["restore_times", ArgProp.Flag], ["support_old_tars", ArgProp.Flag], ["tar", ArgProp.Value]];
|
|
6565
|
+
};
|
|
6566
|
+
readonly assumePrimitive: false;
|
|
6567
|
+
}, {
|
|
6568
|
+
readonly type: "function";
|
|
6569
|
+
readonly names: [Identifier];
|
|
6570
|
+
readonly processor: BuiltInProcName.Default;
|
|
6571
|
+
readonly config: {
|
|
6572
|
+
readonly props: CallProp.Invisible;
|
|
6573
|
+
readonly tags: SemanticCallTag[];
|
|
6574
|
+
readonly sig: [["zipfile", number], ["files", number], ["flags", ArgProp.Flag], ["extras", ArgProp.Value], ["zip", ArgProp.Value]];
|
|
6575
|
+
};
|
|
6576
|
+
readonly assumePrimitive: false;
|
|
6577
|
+
}, {
|
|
6578
|
+
readonly type: "function";
|
|
6579
|
+
readonly names: [Identifier];
|
|
6580
|
+
readonly processor: BuiltInProcName.Default;
|
|
6581
|
+
readonly config: {
|
|
6582
|
+
readonly props: CallProp.Invisible;
|
|
6583
|
+
readonly tags: SemanticCallTag[];
|
|
6584
|
+
readonly sig: [["tarfile", number], ["files", ArgProp.Resource], ["compression", ArgProp.Flag], ["compression_level", ArgProp.Value], ["tar", ArgProp.Value], ["extra_flags", ArgProp.Value]];
|
|
6585
|
+
};
|
|
6586
|
+
readonly assumePrimitive: false;
|
|
6587
|
+
}, {
|
|
6588
|
+
readonly type: "function";
|
|
6589
|
+
readonly names: Identifier[];
|
|
6590
|
+
readonly processor: BuiltInProcName.Default;
|
|
6591
|
+
readonly config: {
|
|
6592
|
+
readonly props: CallProp.Invisible;
|
|
6593
|
+
readonly libFn: true;
|
|
6594
|
+
readonly tags: SemanticCallTag[];
|
|
6595
|
+
readonly sig: [["zipfile", number], ["files", number], ["recurse", ArgProp.Flag], ["compression_level", ArgProp.Value], ["include_directories", ArgProp.Flag], ["root", ArgProp.Value], ["mode", ArgProp.Flag], ["keys", ArgProp.Value], ["password", ArgProp.Value], ["encryption", ArgProp.Flag]];
|
|
6596
|
+
};
|
|
6597
|
+
readonly assumePrimitive: false;
|
|
6598
|
+
}, {
|
|
6599
|
+
readonly type: "function";
|
|
6600
|
+
readonly names: [Identifier];
|
|
6601
|
+
readonly processor: BuiltInProcName.Default;
|
|
6602
|
+
readonly config: {
|
|
6603
|
+
readonly props: CallProp.Invisible;
|
|
6604
|
+
readonly libFn: true;
|
|
6605
|
+
readonly tags: SemanticCallTag[];
|
|
6606
|
+
readonly sig: [["zipfile", number], ["files", ArgProp.Value], ["overwrite", ArgProp.Flag], ["junkpaths", ArgProp.Flag], ["exdir", number], ["encoding", ArgProp.Value], ["password", ArgProp.Value]];
|
|
6607
|
+
};
|
|
6608
|
+
readonly assumePrimitive: false;
|
|
6609
|
+
}, {
|
|
6610
|
+
readonly type: "function";
|
|
6611
|
+
readonly names: [Identifier];
|
|
6612
|
+
readonly processor: BuiltInProcName.Default;
|
|
6613
|
+
readonly config: {
|
|
6614
|
+
readonly props: CallProp.Invisible;
|
|
6615
|
+
readonly libFn: true;
|
|
6616
|
+
readonly tags: SemanticCallTag[];
|
|
6617
|
+
readonly sig: [["archive", number], ["dir", number], ["files", ArgProp.Value], ["options", ArgProp.Value], ["strip_components", ArgProp.Value], ["password", ArgProp.Value]];
|
|
6618
|
+
};
|
|
6619
|
+
readonly assumePrimitive: false;
|
|
6620
|
+
}, {
|
|
6621
|
+
readonly type: "function";
|
|
6622
|
+
readonly names: [Identifier];
|
|
6623
|
+
readonly processor: BuiltInProcName.Default;
|
|
6624
|
+
readonly config: {
|
|
6625
|
+
readonly props: CallProp.Invisible;
|
|
6626
|
+
readonly libFn: true;
|
|
6627
|
+
readonly tags: SemanticCallTag[];
|
|
6628
|
+
readonly sig: [["archive", number], ["files", number], ["format", ArgProp.Flag], ["filter", ArgProp.Flag], ["options", ArgProp.Value], ["password", ArgProp.Value]];
|
|
6629
|
+
};
|
|
6630
|
+
readonly assumePrimitive: false;
|
|
6631
|
+
}, {
|
|
6632
|
+
readonly type: "function";
|
|
6633
|
+
readonly names: [Identifier];
|
|
6634
|
+
readonly processor: BuiltInProcName.Default;
|
|
6635
|
+
readonly config: {
|
|
6636
|
+
readonly props: CallProp.Invisible;
|
|
6637
|
+
readonly libFn: true;
|
|
6638
|
+
readonly tags: SemanticCallTag[];
|
|
6639
|
+
readonly sig: [["archive", number], ["dir", number], ["format", ArgProp.Flag], ["filter", ArgProp.Flag], ["options", ArgProp.Value], ["password", ArgProp.Value], ["...", ArgProp.Value], ["recursive", ArgProp.Flag], ["full.names", ArgProp.Flag]];
|
|
6640
|
+
};
|
|
6641
|
+
readonly assumePrimitive: false;
|
|
6642
|
+
}, {
|
|
6643
|
+
readonly type: "function";
|
|
6644
|
+
readonly names: Identifier[];
|
|
6645
|
+
readonly processor: BuiltInProcName.Default;
|
|
6646
|
+
readonly config: {
|
|
6647
|
+
readonly props: CallProp.Invisible;
|
|
6648
|
+
readonly libFn: true;
|
|
6649
|
+
readonly tags: SemanticCallTag[];
|
|
6650
|
+
readonly sig: [["filename", number], ["destname", number], ["...", ArgProp.Value]];
|
|
6651
|
+
};
|
|
6652
|
+
readonly assumePrimitive: false;
|
|
6392
6653
|
}, {
|
|
6393
6654
|
readonly type: "function";
|
|
6394
6655
|
readonly names: [Identifier];
|
|
@@ -7590,7 +7851,7 @@ export declare const WrittenBuiltinDefinitions: [{
|
|
|
7590
7851
|
readonly processor: BuiltInProcName.DefaultReadAllArgs;
|
|
7591
7852
|
readonly config: {
|
|
7592
7853
|
readonly props: CallProp.Invisible;
|
|
7593
|
-
readonly tags: [
|
|
7854
|
+
readonly tags: SemanticCallTag[];
|
|
7594
7855
|
readonly sig: [["url", number], ["destfile", number], ["method", number], ["quiet", number], ["mode", number], ["cacheOK", number], ["extra", number], ["headers", number], ["...", number]];
|
|
7595
7856
|
};
|
|
7596
7857
|
readonly assumePrimitive: false;
|