@eagleoutice/flowr 2.13.4 → 2.13.5
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 +31 -31
- package/cli/repl/core.js +10 -2
- package/config.d.ts +4 -1
- package/config.js +10 -1
- package/control-flow/cfg-dead-code.js +19 -4
- package/control-flow/extract-cfg.js +12 -4
- package/dataflow/environments/built-in-config.d.ts +6 -3
- package/dataflow/environments/built-in-eval-name.d.ts +20 -0
- package/dataflow/environments/built-in-eval-name.js +25 -0
- package/dataflow/environments/built-in-props.d.ts +175 -0
- package/dataflow/environments/built-in-props.js +207 -0
- package/dataflow/environments/built-in.d.ts +26 -22
- package/dataflow/environments/built-in.js +37 -10
- package/dataflow/environments/default-builtin-config.d.ts +1046 -93
- package/dataflow/environments/default-builtin-config.js +485 -213
- package/dataflow/environments/identifier.d.ts +24 -1
- package/dataflow/environments/identifier.js +24 -2
- package/dataflow/environments/query-fn-props.d.ts +102 -0
- package/dataflow/environments/query-fn-props.js +188 -0
- package/dataflow/eval/resolve/alias-tracking.js +4 -1
- package/dataflow/eval/resolve/match-arguments.d.ts +15 -0
- package/dataflow/eval/resolve/match-arguments.js +77 -0
- package/dataflow/eval/resolve/resolve-numbers.d.ts +202 -0
- package/dataflow/eval/resolve/resolve-numbers.js +163 -0
- package/dataflow/eval/resolve/resolve-operators.d.ts +60 -0
- package/dataflow/eval/resolve/resolve-operators.js +115 -0
- package/dataflow/eval/resolve/resolve-strings.d.ts +98 -0
- package/dataflow/eval/resolve/resolve-strings.js +116 -0
- package/dataflow/eval/resolve/resolve.d.ts +5 -37
- package/dataflow/eval/resolve/resolve.js +56 -134
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +5 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-source.js +1 -1
- package/dataflow/internal/process/functions/call/known-call-handling.d.ts +2 -1
- package/dataflow/internal/process/functions/call/known-call-handling.js +2 -1
- package/documentation/data/faq/faqs.js +11 -0
- package/documentation/doc-util/doc-types.js +1 -1
- package/documentation/wiki-analyzer.js +75 -0
- package/documentation/wiki-core.js +65 -16
- package/documentation/wiki-interface.js +3 -0
- package/linter/linter-rules.d.ts +10 -11
- package/linter/rules/deprecated-functions.js +5 -3
- package/linter/rules/function-finder-util.d.ts +2 -2
- package/linter/rules/function-finder-util.js +10 -3
- package/linter/rules/network-functions.d.ts +25 -5
- package/linter/rules/network-functions.js +51 -11
- package/linter/rules/problematic-inputs.d.ts +1 -1
- package/linter/rules/problematic-inputs.js +7 -1
- package/linter/rules/seeded-randomness.d.ts +5 -8
- package/linter/rules/seeded-randomness.js +17 -9
- package/package.json +3 -2
- package/project/cache/flowr-analyzer-cache.d.ts +4 -3
- package/project/cache/flowr-analyzer-cache.js +32 -13
- package/project/cache/flowr-cache.d.ts +39 -12
- package/project/cache/flowr-cache.js +5 -3
- package/project/context/flowr-analyzer-context.d.ts +8 -1
- package/project/context/flowr-analyzer-context.js +11 -1
- package/project/context/flowr-analyzer-dependencies-context.d.ts +4 -2
- package/project/context/flowr-analyzer-dependencies-context.js +15 -1
- package/project/context/flowr-analyzer-files-context.d.ts +8 -4
- package/project/context/flowr-analyzer-files-context.js +20 -1
- package/project/context/flowr-analyzer-incremental-analysis-context.d.ts +33 -0
- package/project/context/flowr-analyzer-incremental-analysis-context.js +63 -0
- package/project/context/flowr-analyzer-meta-context.d.ts +3 -1
- package/project/context/flowr-analyzer-meta-context.js +14 -0
- package/project/context/flowr-file.d.ts +25 -3
- package/project/context/flowr-file.js +24 -2
- package/project/dependency-version-space.d.ts +37 -0
- package/project/dependency-version-space.js +118 -26
- package/project/flowr-analyzer.d.ts +6 -0
- package/project/flowr-analyzer.js +6 -2
- package/project/incremental/incremental-parse/edit-computation.d.ts +7 -0
- package/project/incremental/incremental-parse/edit-computation.js +61 -0
- package/project/incremental/incremental-parse/incremental-parse.d.ts +12 -0
- package/project/incremental/incremental-parse/incremental-parse.js +37 -0
- package/project/plugins/file-plugins/files/flowr-jupyter-file.d.ts +1 -1
- package/project/plugins/file-plugins/files/flowr-manifest-files.d.ts +57 -0
- package/project/plugins/file-plugins/files/flowr-manifest-files.js +121 -0
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +2 -2
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +2 -2
- package/project/plugins/file-plugins/files/flowr-sweave-file.d.ts +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-manifest-file-plugin.d.ts +33 -0
- package/project/plugins/file-plugins/flowr-analyzer-manifest-file-plugin.js +53 -0
- 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 +27 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-meta-manifest-file-plugin.js +47 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.d.ts +7 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +31 -3
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.d.ts +10 -4
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +17 -4
- package/project/plugins/plugin-registry.d.ts +4 -4
- package/project/plugins/plugin-registry.js +7 -4
- package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +4 -4
- package/project/sigdb/reader.d.ts +7 -0
- package/project/sigdb/reader.js +12 -0
- package/queries/catalog/dependencies-query/function-info/derived-functions.d.ts +10 -0
- package/queries/catalog/dependencies-query/function-info/derived-functions.js +41 -0
- package/queries/catalog/dependencies-query/function-info/read-functions.js +13 -12
- package/queries/catalog/dependencies-query/function-info/write-functions.js +16 -23
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.js +33 -3
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.d.ts +31 -0
- package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-format.js +9 -2
- package/queries/catalog/input-sources-query/input-source-functions.d.ts +8 -10
- package/queries/catalog/input-sources-query/input-source-functions.js +23 -388
- package/queries/catalog/input-sources-query/input-sources-query-format.d.ts +7 -0
- package/queries/catalog/input-sources-query/input-sources-query-format.js +27 -10
- package/queries/catalog/signature-query/signature-query-executor.d.ts +2 -1
- package/queries/catalog/signature-query/signature-query-executor.js +79 -3
- package/queries/catalog/signature-query/signature-query-format.d.ts +27 -0
- package/queries/catalog/signature-query/signature-query-render.js +21 -3
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.d.ts +6 -2
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +21 -2
- package/r-bridge/parser.d.ts +11 -1
- package/r-bridge/parser.js +7 -4
- package/r-bridge/shell-executor.d.ts +1 -0
- package/r-bridge/shell-executor.js +1 -0
- package/r-bridge/shell.d.ts +1 -0
- package/r-bridge/shell.js +1 -0
- package/search/flowr-search-filters.d.ts +1 -6
- package/search/flowr-search-filters.js +1 -8
- package/search/search-executor/search-enrichers.d.ts +2 -0
- package/search/search-executor/search-enrichers.js +29 -12
- package/util/version.js +1 -1
- package/project/plugins/file-plugins/files/flowr-rproject-file.d.ts +0 -31
- package/project/plugins/file-plugins/files/flowr-rproject-file.js +0 -66
- package/project/plugins/file-plugins/flowr-analyzer-rproject-file-plugin.d.ts +0 -22
- package/project/plugins/file-plugins/flowr-analyzer-rproject-file-plugin.js +0 -36
- package/project/plugins/package-version-plugins/flowr-analyzer-meta-rproject-file-plugin.d.ts +0 -13
- package/project/plugins/package-version-plugins/flowr-analyzer-meta-rproject-file-plugin.js +0 -32
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { FlowrAnalyzerFilePlugin } from './flowr-analyzer-file-plugin';
|
|
2
|
-
import { SemVer } from 'semver';
|
|
3
|
-
import type { PathLike } from 'fs';
|
|
4
|
-
import type { FlowrAnalyzerContext } from '../../context/flowr-analyzer-context';
|
|
5
|
-
import type { FlowrFileProvider } from '../../context/flowr-file';
|
|
6
|
-
/**
|
|
7
|
-
* Tags an rv project's `rproject.toml` with the {@link FileRole.Manifest} role and lifts it to a
|
|
8
|
-
* {@link FlowrRProjectFile}, so the meta plugin reading it can look it up by role.
|
|
9
|
-
*/
|
|
10
|
-
export declare class FlowrAnalyzerRProjectFilePlugin extends FlowrAnalyzerFilePlugin {
|
|
11
|
-
readonly name = "flowr-analyzer-rproject-file-plugin";
|
|
12
|
-
readonly description = "Marks the rproject.toml manifest of an rv project.";
|
|
13
|
-
readonly version: SemVer;
|
|
14
|
-
private readonly pathPattern;
|
|
15
|
-
/**
|
|
16
|
-
* Creates a new instance of the rproject file plugin.
|
|
17
|
-
* @param pathPattern - The pattern to identify the manifest, see {@link RProjectFilePattern} for the default.
|
|
18
|
-
*/
|
|
19
|
-
constructor(pathPattern?: RegExp);
|
|
20
|
-
applies(file: PathLike): boolean;
|
|
21
|
-
process(_ctx: FlowrAnalyzerContext, file: FlowrFileProvider): [FlowrFileProvider, true];
|
|
22
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FlowrAnalyzerRProjectFilePlugin = void 0;
|
|
4
|
-
const flowr_analyzer_file_plugin_1 = require("./flowr-analyzer-file-plugin");
|
|
5
|
-
const semver_1 = require("semver");
|
|
6
|
-
const flowr_file_1 = require("../../context/flowr-file");
|
|
7
|
-
const built_in_source_1 = require("../../../dataflow/internal/process/functions/call/built-in/built-in-source");
|
|
8
|
-
const flowr_rproject_file_1 = require("./files/flowr-rproject-file");
|
|
9
|
-
/** The manifest of an rv project. */
|
|
10
|
-
const RProjectFilePattern = /^rproject\.toml$/i;
|
|
11
|
-
/**
|
|
12
|
-
* Tags an rv project's `rproject.toml` with the {@link FileRole.Manifest} role and lifts it to a
|
|
13
|
-
* {@link FlowrRProjectFile}, so the meta plugin reading it can look it up by role.
|
|
14
|
-
*/
|
|
15
|
-
class FlowrAnalyzerRProjectFilePlugin extends flowr_analyzer_file_plugin_1.FlowrAnalyzerFilePlugin {
|
|
16
|
-
name = 'flowr-analyzer-rproject-file-plugin';
|
|
17
|
-
description = 'Marks the rproject.toml manifest of an rv project.';
|
|
18
|
-
version = new semver_1.SemVer('0.1.0');
|
|
19
|
-
pathPattern;
|
|
20
|
-
/**
|
|
21
|
-
* Creates a new instance of the rproject file plugin.
|
|
22
|
-
* @param pathPattern - The pattern to identify the manifest, see {@link RProjectFilePattern} for the default.
|
|
23
|
-
*/
|
|
24
|
-
constructor(pathPattern = RProjectFilePattern) {
|
|
25
|
-
super();
|
|
26
|
-
this.pathPattern = pathPattern;
|
|
27
|
-
}
|
|
28
|
-
applies(file) {
|
|
29
|
-
return this.pathPattern.test((0, built_in_source_1.platformBasename)(file.toString()));
|
|
30
|
-
}
|
|
31
|
-
process(_ctx, file) {
|
|
32
|
-
return [flowr_rproject_file_1.FlowrRProjectFile.from(file, flowr_file_1.FileRole.Manifest), true];
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.FlowrAnalyzerRProjectFilePlugin = FlowrAnalyzerRProjectFilePlugin;
|
|
36
|
-
//# sourceMappingURL=flowr-analyzer-rproject-file-plugin.js.map
|
package/project/plugins/package-version-plugins/flowr-analyzer-meta-rproject-file-plugin.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FlowrAnalyzerPackageVersionsPlugin } from './flowr-analyzer-package-versions-plugin';
|
|
2
|
-
import { SemVer } from 'semver';
|
|
3
|
-
import type { FlowrAnalyzerContext } from '../../context/flowr-analyzer-context';
|
|
4
|
-
/**
|
|
5
|
-
* Extracts the project metadata and the declared dependencies from the `rproject.toml` of an rv project.
|
|
6
|
-
* The name is contributed without a namespace: an rv project is no package, so `a::b` must not resolve against it.
|
|
7
|
-
*/
|
|
8
|
-
export declare class FlowrAnalyzerMetaRProjectFilePlugin extends FlowrAnalyzerPackageVersionsPlugin {
|
|
9
|
-
readonly name = "flowr-analyzer-meta-rproject-file-plugin";
|
|
10
|
-
readonly description = "Extracts project meta information and dependencies from an rproject.toml.";
|
|
11
|
-
readonly version: SemVer;
|
|
12
|
-
process(ctx: FlowrAnalyzerContext): void;
|
|
13
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FlowrAnalyzerMetaRProjectFilePlugin = void 0;
|
|
4
|
-
const flowr_analyzer_package_versions_plugin_1 = require("./flowr-analyzer-package-versions-plugin");
|
|
5
|
-
const semver_1 = require("semver");
|
|
6
|
-
const flowr_file_1 = require("../../context/flowr-file");
|
|
7
|
-
const flowr_analyzer_meta_context_1 = require("../../context/flowr-analyzer-meta-context");
|
|
8
|
-
/**
|
|
9
|
-
* Extracts the project metadata and the declared dependencies from the `rproject.toml` of an rv project.
|
|
10
|
-
* The name is contributed without a namespace: an rv project is no package, so `a::b` must not resolve against it.
|
|
11
|
-
*/
|
|
12
|
-
class FlowrAnalyzerMetaRProjectFilePlugin extends flowr_analyzer_package_versions_plugin_1.FlowrAnalyzerPackageVersionsPlugin {
|
|
13
|
-
name = 'flowr-analyzer-meta-rproject-file-plugin';
|
|
14
|
-
description = 'Extracts project meta information and dependencies from an rproject.toml.';
|
|
15
|
-
version = new semver_1.SemVer('0.1.0');
|
|
16
|
-
process(ctx) {
|
|
17
|
-
for (const file of ctx.files.getFilesByRole(flowr_file_1.FileRole.Manifest)) {
|
|
18
|
-
const deps = file.dependencies();
|
|
19
|
-
ctx.meta.contribute({
|
|
20
|
-
name: file.projectName(),
|
|
21
|
-
rVersion: file.rVersion(),
|
|
22
|
-
// rv does not group its dependencies, they are all needed to run the project
|
|
23
|
-
declares: { imports: deps }
|
|
24
|
-
}, flowr_analyzer_meta_context_1.MetaPriority.Manifest);
|
|
25
|
-
for (const pkg of deps) {
|
|
26
|
-
ctx.deps.addDeclaredDependency(pkg);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.FlowrAnalyzerMetaRProjectFilePlugin = FlowrAnalyzerMetaRProjectFilePlugin;
|
|
32
|
-
//# sourceMappingURL=flowr-analyzer-meta-rproject-file-plugin.js.map
|