@eagleoutice/flowr 2.10.8 → 2.10.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/README.md +106 -36
- package/abstract-interpretation/absint-visitor.js +6 -3
- package/abstract-interpretation/domains/abstract-domain.d.ts +1 -1
- package/abstract-interpretation/domains/bounded-set-domain.d.ts +1 -1
- package/abstract-interpretation/domains/bounded-set-domain.js +1 -1
- package/abstract-interpretation/domains/interval-domain.d.ts +1 -1
- package/abstract-interpretation/domains/interval-domain.js +1 -1
- package/abstract-interpretation/domains/lattice.d.ts +1 -1
- package/abstract-interpretation/domains/partial-product-domain.d.ts +1 -1
- package/abstract-interpretation/domains/partial-product-domain.js +2 -2
- package/abstract-interpretation/domains/set-range-domain.d.ts +1 -1
- package/abstract-interpretation/domains/set-range-domain.js +1 -1
- package/abstract-interpretation/domains/set-upper-bound-domain.d.ts +1 -1
- package/abstract-interpretation/domains/set-upper-bound-domain.js +1 -1
- package/abstract-interpretation/domains/singleton-domain.d.ts +1 -1
- package/abstract-interpretation/domains/singleton-domain.js +1 -1
- package/abstract-interpretation/domains/state-abstract-domain.d.ts +1 -1
- package/abstract-interpretation/domains/state-abstract-domain.js +2 -2
- package/abstract-interpretation/unsupported-functions.d.ts +3 -2
- package/abstract-interpretation/unsupported-functions.js +38 -28
- package/cli/benchmark-app.js +2 -1
- package/cli/common/script.js +3 -2
- package/cli/flowr.js +47 -10
- package/cli/repl/commands/repl-cfg.js +9 -9
- package/cli/repl/commands/repl-commands.js +5 -0
- package/cli/repl/commands/repl-dataflow.js +31 -24
- package/cli/repl/commands/repl-main.d.ts +6 -0
- package/cli/repl/commands/repl-normalize.js +15 -12
- package/cli/repl/commands/repl-parse.js +1 -1
- package/cli/repl/commands/repl-query.js +4 -5
- package/cli/repl/commands/repl-quit.js +2 -1
- package/cli/repl/core.d.ts +11 -0
- package/cli/repl/core.js +101 -3
- package/cli/repl/execute.js +3 -2
- package/cli/repl/parser/slice-query-parser.d.ts +16 -0
- package/cli/repl/parser/slice-query-parser.js +52 -0
- package/cli/repl/server/connection.d.ts +1 -0
- package/cli/repl/server/connection.js +25 -0
- package/cli/repl/server/messages/message-analysis.d.ts +10 -0
- package/cli/repl/server/messages/message-analysis.js +6 -2
- package/cli/repl/server/messages/message-slice.d.ts +1 -1
- package/cli/script-core/statistics-core.js +2 -1
- package/cli/script-core/statistics-helper-core.js +2 -1
- package/cli/wiki.d.ts +2 -1
- package/cli/wiki.js +4 -1
- package/config.d.ts +9 -0
- package/config.js +23 -1
- package/control-flow/diff-cfg.d.ts +1 -1
- package/control-flow/diff-cfg.js +1 -1
- package/control-flow/extract-cfg.js +9 -3
- package/control-flow/semantic-cfg-guided-visitor.js +1 -0
- package/control-flow/simple-visitor.js +6 -5
- package/control-flow/useless-loop.js +2 -2
- package/core/print/dataflow-printer.d.ts +2 -2
- package/core/print/dataflow-printer.js +2 -2
- package/core/steps/all/static-slicing/00-slice.js +1 -1
- package/core/steps/pipeline/default-pipelines.d.ts +146 -146
- package/dataflow/environments/append.d.ts +2 -1
- package/dataflow/environments/append.js +2 -1
- package/dataflow/environments/built-in-proc-name.d.ts +2 -0
- package/dataflow/environments/built-in-proc-name.js +2 -0
- package/dataflow/environments/built-in.d.ts +2 -0
- package/dataflow/environments/built-in.js +2 -0
- package/dataflow/environments/default-builtin-config.d.ts +122 -66
- package/dataflow/environments/default-builtin-config.js +324 -145
- package/dataflow/environments/environment.d.ts +2 -1
- package/dataflow/environments/environment.js +13 -9
- package/dataflow/environments/identifier.d.ts +55 -2
- package/dataflow/environments/identifier.js +14 -2
- package/dataflow/environments/reference-to-maybe.d.ts +2 -0
- package/dataflow/environments/reference-to-maybe.js +56 -11
- package/dataflow/environments/resolve-by-name.js +13 -7
- package/dataflow/eval/values/general.js +4 -0
- package/dataflow/extractor.js +22 -3
- package/dataflow/graph/df-helper.d.ts +6 -0
- package/dataflow/graph/df-helper.js +33 -0
- package/dataflow/graph/graph.js +7 -3
- package/dataflow/info.d.ts +1 -1
- package/dataflow/info.js +3 -1
- package/dataflow/internal/linker.d.ts +5 -1
- package/dataflow/internal/linker.js +34 -9
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +3 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +53 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-namespace-access.d.ts +13 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-namespace-access.js +58 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.js +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.d.ts +1 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +38 -14
- package/dataflow/internal/process/functions/call/built-in/built-in-source.js +19 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +1 -1
- package/dataflow/internal/process/functions/call/known-call-handling.js +4 -3
- package/dataflow/internal/process/functions/call/named-call-handling.js +6 -0
- package/dataflow/origin/dfg-get-origin.d.ts +1 -1
- package/dataflow/origin/dfg-get-origin.js +1 -1
- package/dataflow/processor.d.ts +6 -0
- package/documentation/data/faq/faqs.d.ts +2 -1
- package/documentation/data/faq/faqs.js +75 -57
- package/documentation/data/server/doc-data-server-messages.d.ts +2 -1
- package/documentation/data/server/doc-data-server-messages.js +15 -7
- package/documentation/doc-readme.js +15 -15
- package/documentation/doc-util/doc-cfg.d.ts +3 -1
- package/documentation/doc-util/doc-cfg.js +3 -3
- package/documentation/doc-util/doc-dfg.d.ts +3 -1
- package/documentation/doc-util/doc-dfg.js +3 -3
- package/documentation/doc-util/doc-files.d.ts +3 -1
- package/documentation/doc-util/doc-files.js +9 -6
- package/documentation/doc-util/doc-normalized-ast.d.ts +3 -1
- package/documentation/doc-util/doc-normalized-ast.js +2 -2
- package/documentation/doc-util/doc-query.d.ts +2 -1
- package/documentation/doc-util/doc-query.js +2 -2
- package/documentation/doc-util/doc-repl.js +1 -0
- package/documentation/doc-util/doc-types.d.ts +6 -6
- package/documentation/doc-util/doc-types.js +11 -9
- package/documentation/issue-linting-rule.js +1 -2
- package/documentation/wiki-analyzer.js +9 -9
- package/documentation/wiki-cfg.js +40 -41
- package/documentation/wiki-core.js +119 -31
- package/documentation/wiki-create-linting-rules.d.ts +6 -0
- package/documentation/wiki-create-linting-rules.js +95 -0
- package/documentation/wiki-dataflow-graph.js +77 -76
- package/documentation/wiki-engine.js +1 -2
- package/documentation/wiki-faq.d.ts +2 -1
- package/documentation/wiki-faq.js +4 -4
- package/documentation/wiki-interface.js +19 -6
- package/documentation/wiki-linter.d.ts +1 -1
- package/documentation/wiki-linter.js +14 -6
- package/documentation/wiki-linting-and-testing.js +2 -2
- package/documentation/wiki-mk/doc-context.d.ts +3 -3
- package/documentation/wiki-mk/doc-maker.d.ts +2 -0
- package/documentation/wiki-mk/doc-maker.js +7 -1
- package/documentation/wiki-normalized-ast.js +5 -5
- package/documentation/wiki-onboarding.d.ts +2 -1
- package/documentation/wiki-onboarding.js +5 -5
- package/documentation/wiki-overview.js +3 -3
- package/documentation/wiki-query.js +85 -84
- package/documentation/wiki-search.js +4 -5
- package/documentation/wiki-setup.js +6 -7
- package/gas.d.ts +74 -0
- package/gas.js +18 -0
- package/linter/linter-executor.js +2 -8
- package/linter/linter-format.d.ts +4 -11
- package/linter/linter-rules.d.ts +88 -86
- package/linter/linter-rules.js +7 -1
- package/linter/rules/absolute-path.d.ts +2 -7
- package/linter/rules/absolute-path.js +6 -4
- package/linter/rules/dataframe-access-validation.d.ts +1 -6
- package/linter/rules/dataframe-access-validation.js +8 -6
- package/linter/rules/dead-code.d.ts +2 -11
- package/linter/rules/dead-code.js +16 -11
- package/linter/rules/deprecated-functions.d.ts +3 -3
- package/linter/rules/file-path-validity.d.ts +1 -6
- package/linter/rules/file-path-validity.js +5 -5
- package/linter/rules/function-finder-util.d.ts +7 -11
- package/linter/rules/function-finder-util.js +9 -6
- package/linter/rules/naming-convention.d.ts +2 -7
- package/linter/rules/naming-convention.js +3 -2
- package/linter/rules/network-functions.d.ts +2 -7
- package/linter/rules/network-functions.js +14 -12
- package/linter/rules/no-leaked-credentials.d.ts +36 -0
- package/linter/rules/no-leaked-credentials.js +75 -0
- package/linter/rules/problematic-inputs.d.ts +1 -8
- package/linter/rules/problematic-inputs.js +5 -4
- package/linter/rules/roxygen-arguments.d.ts +2 -7
- package/linter/rules/roxygen-arguments.js +13 -20
- package/linter/rules/seeded-randomness.d.ts +2 -7
- package/linter/rules/seeded-randomness.js +7 -4
- package/linter/rules/software-has-license.d.ts +31 -0
- package/linter/rules/software-has-license.js +46 -0
- package/linter/rules/software-has-tests.d.ts +38 -0
- package/linter/rules/software-has-tests.js +48 -0
- package/linter/rules/stop-with-call-arg.d.ts +2 -7
- package/linter/rules/stop-with-call-arg.js +3 -2
- package/linter/rules/unused-definition.d.ts +3 -8
- package/linter/rules/unused-definition.js +7 -5
- package/linter/rules/useless-loop.d.ts +2 -7
- package/linter/rules/useless-loop.js +5 -2
- package/package.json +3 -2
- package/project/context/flowr-analyzer-context.d.ts +13 -14
- package/project/context/flowr-analyzer-context.js +4 -0
- package/project/context/flowr-analyzer-files-context.d.ts +12 -0
- package/project/context/flowr-analyzer-files-context.js +12 -2
- package/project/context/flowr-analyzer-gas-context.d.ts +28 -0
- package/project/context/flowr-analyzer-gas-context.js +101 -0
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +13 -7
- package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +56 -11
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.d.ts +1 -1
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.js +2 -2
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.d.ts +2 -1
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.js +5 -5
- package/project/plugins/flowr-analyzer-plugin.d.ts +15 -8
- package/project/plugins/flowr-analyzer-plugin.js +14 -7
- package/project/plugins/gas-plugins/flowr-analyzer-gas-plugin.d.ts +19 -0
- package/project/plugins/gas-plugins/flowr-analyzer-gas-plugin.js +35 -0
- package/project/plugins/plugin-registry.d.ts +2 -1
- package/project/plugins/plugin-registry.js +3 -1
- package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.d.ts +22 -0
- package/project/plugins/project-discovery/flowr-analyzer-gitignore-project-discovery-plugin.js +47 -0
- package/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.js +1 -1
- package/queries/catalog/call-context-query/call-context-query-executor.js +54 -8
- package/queries/catalog/call-context-query/call-context-query-format.d.ts +2 -2
- package/queries/catalog/dependencies-query/function-info/test-functions.d.ts +2 -0
- package/queries/catalog/dependencies-query/function-info/test-functions.js +18 -177
- package/queries/catalog/df-shape-query/df-shape-query-format.js +1 -1
- package/queries/catalog/dice-query/dice-query-executor.d.ts +8 -0
- package/queries/catalog/dice-query/dice-query-executor.js +52 -0
- package/queries/catalog/dice-query/dice-query-format.d.ts +53 -0
- package/queries/catalog/dice-query/dice-query-format.js +102 -0
- package/queries/catalog/happens-before-query/happens-before-query-executor.js +2 -2
- package/queries/catalog/input-sources-query/input-sources-query-format.d.ts +2 -0
- package/queries/catalog/input-sources-query/input-sources-query-format.js +1 -0
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.d.ts +2 -0
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.js +1 -0
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.d.ts +2 -0
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.js +1 -0
- package/queries/catalog/linter-query/linter-query-executor.js +7 -0
- package/queries/catalog/location-map-query/location-map-query-format.d.ts +2 -0
- package/queries/catalog/location-map-query/location-map-query-format.js +1 -0
- package/queries/catalog/origin-query/origin-query-format.d.ts +2 -0
- package/queries/catalog/origin-query/origin-query-format.js +1 -0
- package/queries/catalog/provenance-query/provenance-query-format.d.ts +2 -0
- package/queries/catalog/provenance-query/provenance-query-format.js +1 -0
- package/queries/catalog/resolve-value-query/resolve-value-query-format.d.ts +2 -0
- package/queries/catalog/resolve-value-query/resolve-value-query-format.js +1 -0
- package/queries/catalog/static-slice-query/static-slice-query-executor.js +1 -1
- package/queries/catalog/static-slice-query/static-slice-query-format.d.ts +2 -0
- package/queries/catalog/static-slice-query/static-slice-query-format.js +1 -0
- package/queries/query.d.ts +18 -1
- package/queries/query.js +3 -1
- package/r-bridge/data/data.d.ts +5 -0
- package/r-bridge/data/data.js +6 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +0 -1
- package/r-bridge/lang-4.x/ast/model/processing/decorate.js +10 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-number.js +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.d.ts +1 -1
- package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-string.js +1 -1
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +63 -44
- package/r-bridge/parser.js +2 -9
- package/r-bridge/shell.d.ts +8 -1
- package/r-bridge/shell.js +26 -7
- package/search/flowr-search-builder.d.ts +2 -2
- package/search/flowr-search-builder.js +1 -1
- package/search/flowr-search-filters.d.ts +30 -9
- package/search/flowr-search-filters.js +26 -21
- package/search/search-executor/search-enrichers.d.ts +600 -0
- package/search/search-executor/search-enrichers.js +23 -2
- package/slicing/static/static-slicer.d.ts +39 -11
- package/slicing/static/static-slicer.js +44 -14
- package/util/collections/queue.d.ts +16 -0
- package/util/collections/queue.js +38 -0
- package/util/log.d.ts +1 -1
- package/util/log.js +1 -1
- package/util/mermaid/dfg.d.ts +2 -2
- package/util/mermaid/dfg.js +2 -2
- package/util/objects.d.ts +9 -0
- package/util/objects.js +57 -1
- package/util/proc.d.ts +6 -0
- package/util/proc.js +20 -0
- package/util/version.js +1 -1
|
@@ -7,6 +7,28 @@ import { PipelineExecutor } from '../../pipeline-executor';
|
|
|
7
7
|
import type { RShell } from '../../../r-bridge/shell';
|
|
8
8
|
import type { TreeSitterExecutor } from '../../../r-bridge/lang-4.x/tree-sitter/tree-sitter-executor';
|
|
9
9
|
export declare const DEFAULT_SLICING_PIPELINE: import("./pipeline").Pipeline<{
|
|
10
|
+
readonly humanReadableName: "dataflow";
|
|
11
|
+
readonly processor: (results: {
|
|
12
|
+
normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
|
|
13
|
+
}, input: {
|
|
14
|
+
parser?: Parser<import("../../../r-bridge/parser").KnownParserType>;
|
|
15
|
+
context?: import("../../../project/context/flowr-analyzer-context").FlowrAnalyzerContext;
|
|
16
|
+
}) => import("../../../dataflow/info").DataflowInformation & {
|
|
17
|
+
cfgQuick: import("../../../control-flow/control-flow-graph").ControlFlowInformation | undefined;
|
|
18
|
+
};
|
|
19
|
+
readonly requiredInput: {};
|
|
20
|
+
readonly name: "dataflow";
|
|
21
|
+
readonly description: "Construct the dataflow graph";
|
|
22
|
+
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
23
|
+
readonly printer: {
|
|
24
|
+
readonly 0: typeof import("../../print/print").internalPrinter;
|
|
25
|
+
readonly 2: typeof import("../../print/dataflow-printer").dataflowGraphToJson;
|
|
26
|
+
readonly 5: typeof import("../../print/dataflow-printer").dataflowGraphToQuads;
|
|
27
|
+
readonly 3: (this: void, graph: import("../../../dataflow/graph/graph").DataflowGraph | import("../../../dataflow/info").DataflowInformation, includeEnvironments?: boolean, mark?: ReadonlySet<import("../../../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId>, simplified?: boolean) => string;
|
|
28
|
+
readonly 4: (this: void, graph: import("../../../dataflow/graph/graph").DataflowGraph | import("../../../dataflow/info").DataflowInformation, includeEnvironments?: boolean, mark?: ReadonlySet<import("../../../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId>, simplified?: boolean) => string;
|
|
29
|
+
};
|
|
30
|
+
readonly dependencies: readonly ["normalize"];
|
|
31
|
+
} | {
|
|
10
32
|
readonly name: "parse";
|
|
11
33
|
readonly humanReadableName: "parse with R shell";
|
|
12
34
|
readonly description: "Parse the given R code into an AST";
|
|
@@ -39,28 +61,6 @@ export declare const DEFAULT_SLICING_PIPELINE: import("./pipeline").Pipeline<{
|
|
|
39
61
|
};
|
|
40
62
|
readonly dependencies: readonly ["parse"];
|
|
41
63
|
readonly requiredInput: import("../all/core/10-normalize").NormalizeRequiredInput;
|
|
42
|
-
} | {
|
|
43
|
-
readonly humanReadableName: "dataflow";
|
|
44
|
-
readonly processor: (results: {
|
|
45
|
-
normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
|
|
46
|
-
}, input: {
|
|
47
|
-
parser?: Parser<import("../../../r-bridge/parser").KnownParserType>;
|
|
48
|
-
context?: import("../../../project/context/flowr-analyzer-context").FlowrAnalyzerContext;
|
|
49
|
-
}) => import("../../../dataflow/info").DataflowInformation & {
|
|
50
|
-
cfgQuick: import("../../../control-flow/control-flow-graph").ControlFlowInformation | undefined;
|
|
51
|
-
};
|
|
52
|
-
readonly requiredInput: {};
|
|
53
|
-
readonly name: "dataflow";
|
|
54
|
-
readonly description: "Construct the dataflow graph";
|
|
55
|
-
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
56
|
-
readonly printer: {
|
|
57
|
-
readonly 0: typeof import("../../print/print").internalPrinter;
|
|
58
|
-
readonly 2: typeof import("../../print/dataflow-printer").dataflowGraphToJson;
|
|
59
|
-
readonly 5: typeof import("../../print/dataflow-printer").dataflowGraphToQuads;
|
|
60
|
-
readonly 3: (this: void, graph: import("../../../dataflow/graph/graph").DataflowGraph | import("../../../dataflow/info").DataflowInformation, includeEnvironments?: boolean, mark?: ReadonlySet<import("../../../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId>, simplified?: boolean) => string;
|
|
61
|
-
readonly 4: (this: void, graph: import("../../../dataflow/graph/graph").DataflowGraph | import("../../../dataflow/info").DataflowInformation, includeEnvironments?: boolean, mark?: ReadonlySet<import("../../../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId>, simplified?: boolean) => string;
|
|
62
|
-
};
|
|
63
|
-
readonly dependencies: readonly ["normalize"];
|
|
64
64
|
} | {
|
|
65
65
|
readonly name: "slice";
|
|
66
66
|
readonly humanReadableName: "static slice";
|
|
@@ -91,6 +91,28 @@ export declare const DEFAULT_SLICING_PIPELINE: import("./pipeline").Pipeline<{
|
|
|
91
91
|
readonly requiredInput: import("../all/static-slicing/10-reconstruct").ReconstructRequiredInput;
|
|
92
92
|
}>;
|
|
93
93
|
export declare const DEFAULT_SLICE_AND_RECONSTRUCT_PIPELINE: import("./pipeline").Pipeline<{
|
|
94
|
+
readonly humanReadableName: "dataflow";
|
|
95
|
+
readonly processor: (results: {
|
|
96
|
+
normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
|
|
97
|
+
}, input: {
|
|
98
|
+
parser?: Parser<import("../../../r-bridge/parser").KnownParserType>;
|
|
99
|
+
context?: import("../../../project/context/flowr-analyzer-context").FlowrAnalyzerContext;
|
|
100
|
+
}) => import("../../../dataflow/info").DataflowInformation & {
|
|
101
|
+
cfgQuick: import("../../../control-flow/control-flow-graph").ControlFlowInformation | undefined;
|
|
102
|
+
};
|
|
103
|
+
readonly requiredInput: {};
|
|
104
|
+
readonly name: "dataflow";
|
|
105
|
+
readonly description: "Construct the dataflow graph";
|
|
106
|
+
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
107
|
+
readonly printer: {
|
|
108
|
+
readonly 0: typeof import("../../print/print").internalPrinter;
|
|
109
|
+
readonly 2: typeof import("../../print/dataflow-printer").dataflowGraphToJson;
|
|
110
|
+
readonly 5: typeof import("../../print/dataflow-printer").dataflowGraphToQuads;
|
|
111
|
+
readonly 3: (this: void, graph: import("../../../dataflow/graph/graph").DataflowGraph | import("../../../dataflow/info").DataflowInformation, includeEnvironments?: boolean, mark?: ReadonlySet<import("../../../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId>, simplified?: boolean) => string;
|
|
112
|
+
readonly 4: (this: void, graph: import("../../../dataflow/graph/graph").DataflowGraph | import("../../../dataflow/info").DataflowInformation, includeEnvironments?: boolean, mark?: ReadonlySet<import("../../../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId>, simplified?: boolean) => string;
|
|
113
|
+
};
|
|
114
|
+
readonly dependencies: readonly ["normalize"];
|
|
115
|
+
} | {
|
|
94
116
|
readonly name: "parse";
|
|
95
117
|
readonly humanReadableName: "parse with R shell";
|
|
96
118
|
readonly description: "Parse the given R code into an AST";
|
|
@@ -123,28 +145,6 @@ export declare const DEFAULT_SLICE_AND_RECONSTRUCT_PIPELINE: import("./pipeline"
|
|
|
123
145
|
};
|
|
124
146
|
readonly dependencies: readonly ["parse"];
|
|
125
147
|
readonly requiredInput: import("../all/core/10-normalize").NormalizeRequiredInput;
|
|
126
|
-
} | {
|
|
127
|
-
readonly humanReadableName: "dataflow";
|
|
128
|
-
readonly processor: (results: {
|
|
129
|
-
normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
|
|
130
|
-
}, input: {
|
|
131
|
-
parser?: Parser<import("../../../r-bridge/parser").KnownParserType>;
|
|
132
|
-
context?: import("../../../project/context/flowr-analyzer-context").FlowrAnalyzerContext;
|
|
133
|
-
}) => import("../../../dataflow/info").DataflowInformation & {
|
|
134
|
-
cfgQuick: import("../../../control-flow/control-flow-graph").ControlFlowInformation | undefined;
|
|
135
|
-
};
|
|
136
|
-
readonly requiredInput: {};
|
|
137
|
-
readonly name: "dataflow";
|
|
138
|
-
readonly description: "Construct the dataflow graph";
|
|
139
|
-
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
140
|
-
readonly printer: {
|
|
141
|
-
readonly 0: typeof import("../../print/print").internalPrinter;
|
|
142
|
-
readonly 2: typeof import("../../print/dataflow-printer").dataflowGraphToJson;
|
|
143
|
-
readonly 5: typeof import("../../print/dataflow-printer").dataflowGraphToQuads;
|
|
144
|
-
readonly 3: (this: void, graph: import("../../../dataflow/graph/graph").DataflowGraph | import("../../../dataflow/info").DataflowInformation, includeEnvironments?: boolean, mark?: ReadonlySet<import("../../../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId>, simplified?: boolean) => string;
|
|
145
|
-
readonly 4: (this: void, graph: import("../../../dataflow/graph/graph").DataflowGraph | import("../../../dataflow/info").DataflowInformation, includeEnvironments?: boolean, mark?: ReadonlySet<import("../../../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId>, simplified?: boolean) => string;
|
|
146
|
-
};
|
|
147
|
-
readonly dependencies: readonly ["normalize"];
|
|
148
148
|
} | {
|
|
149
149
|
readonly name: "slice";
|
|
150
150
|
readonly humanReadableName: "static slice";
|
|
@@ -175,6 +175,28 @@ export declare const DEFAULT_SLICE_AND_RECONSTRUCT_PIPELINE: import("./pipeline"
|
|
|
175
175
|
readonly requiredInput: import("../all/static-slicing/10-reconstruct").ReconstructRequiredInput;
|
|
176
176
|
}>;
|
|
177
177
|
export declare const DEFAULT_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./pipeline").Pipeline<{
|
|
178
|
+
readonly humanReadableName: "dataflow";
|
|
179
|
+
readonly processor: (results: {
|
|
180
|
+
normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
|
|
181
|
+
}, input: {
|
|
182
|
+
parser?: Parser<import("../../../r-bridge/parser").KnownParserType>;
|
|
183
|
+
context?: import("../../../project/context/flowr-analyzer-context").FlowrAnalyzerContext;
|
|
184
|
+
}) => import("../../../dataflow/info").DataflowInformation & {
|
|
185
|
+
cfgQuick: import("../../../control-flow/control-flow-graph").ControlFlowInformation | undefined;
|
|
186
|
+
};
|
|
187
|
+
readonly requiredInput: {};
|
|
188
|
+
readonly name: "dataflow";
|
|
189
|
+
readonly description: "Construct the dataflow graph";
|
|
190
|
+
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
191
|
+
readonly printer: {
|
|
192
|
+
readonly 0: typeof import("../../print/print").internalPrinter;
|
|
193
|
+
readonly 2: typeof import("../../print/dataflow-printer").dataflowGraphToJson;
|
|
194
|
+
readonly 5: typeof import("../../print/dataflow-printer").dataflowGraphToQuads;
|
|
195
|
+
readonly 3: (this: void, graph: import("../../../dataflow/graph/graph").DataflowGraph | import("../../../dataflow/info").DataflowInformation, includeEnvironments?: boolean, mark?: ReadonlySet<import("../../../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId>, simplified?: boolean) => string;
|
|
196
|
+
readonly 4: (this: void, graph: import("../../../dataflow/graph/graph").DataflowGraph | import("../../../dataflow/info").DataflowInformation, includeEnvironments?: boolean, mark?: ReadonlySet<import("../../../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId>, simplified?: boolean) => string;
|
|
197
|
+
};
|
|
198
|
+
readonly dependencies: readonly ["normalize"];
|
|
199
|
+
} | {
|
|
178
200
|
readonly name: "parse";
|
|
179
201
|
readonly humanReadableName: "parse with R shell";
|
|
180
202
|
readonly description: "Parse the given R code into an AST";
|
|
@@ -207,28 +229,6 @@ export declare const DEFAULT_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./pipel
|
|
|
207
229
|
};
|
|
208
230
|
readonly dependencies: readonly ["parse"];
|
|
209
231
|
readonly requiredInput: import("../all/core/10-normalize").NormalizeRequiredInput;
|
|
210
|
-
} | {
|
|
211
|
-
readonly humanReadableName: "dataflow";
|
|
212
|
-
readonly processor: (results: {
|
|
213
|
-
normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
|
|
214
|
-
}, input: {
|
|
215
|
-
parser?: Parser<import("../../../r-bridge/parser").KnownParserType>;
|
|
216
|
-
context?: import("../../../project/context/flowr-analyzer-context").FlowrAnalyzerContext;
|
|
217
|
-
}) => import("../../../dataflow/info").DataflowInformation & {
|
|
218
|
-
cfgQuick: import("../../../control-flow/control-flow-graph").ControlFlowInformation | undefined;
|
|
219
|
-
};
|
|
220
|
-
readonly requiredInput: {};
|
|
221
|
-
readonly name: "dataflow";
|
|
222
|
-
readonly description: "Construct the dataflow graph";
|
|
223
|
-
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
224
|
-
readonly printer: {
|
|
225
|
-
readonly 0: typeof import("../../print/print").internalPrinter;
|
|
226
|
-
readonly 2: typeof import("../../print/dataflow-printer").dataflowGraphToJson;
|
|
227
|
-
readonly 5: typeof import("../../print/dataflow-printer").dataflowGraphToQuads;
|
|
228
|
-
readonly 3: (this: void, graph: import("../../../dataflow/graph/graph").DataflowGraph | import("../../../dataflow/info").DataflowInformation, includeEnvironments?: boolean, mark?: ReadonlySet<import("../../../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId>, simplified?: boolean) => string;
|
|
229
|
-
readonly 4: (this: void, graph: import("../../../dataflow/graph/graph").DataflowGraph | import("../../../dataflow/info").DataflowInformation, includeEnvironments?: boolean, mark?: ReadonlySet<import("../../../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId>, simplified?: boolean) => string;
|
|
230
|
-
};
|
|
231
|
-
readonly dependencies: readonly ["normalize"];
|
|
232
232
|
} | {
|
|
233
233
|
readonly name: "slice";
|
|
234
234
|
readonly humanReadableName: "static slice";
|
|
@@ -245,6 +245,38 @@ export declare const DEFAULT_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./pipel
|
|
|
245
245
|
readonly requiredInput: import("../all/static-slicing/00-slice").SliceRequiredInput;
|
|
246
246
|
}>;
|
|
247
247
|
export declare const TREE_SITTER_SLICING_PIPELINE: import("./pipeline").Pipeline<{
|
|
248
|
+
readonly name: "parse";
|
|
249
|
+
readonly humanReadableName: "parse with tree-sitter";
|
|
250
|
+
readonly description: "Parse the given R code into an AST using tree-sitter";
|
|
251
|
+
readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<import("web-tree-sitter").Tree>>;
|
|
252
|
+
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
253
|
+
readonly printer: {
|
|
254
|
+
readonly 0: typeof import("../../print/print").internalPrinter;
|
|
255
|
+
readonly 2: {
|
|
256
|
+
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
257
|
+
(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
readonly dependencies: readonly [];
|
|
261
|
+
readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>;
|
|
262
|
+
} | {
|
|
263
|
+
readonly name: "normalize";
|
|
264
|
+
readonly humanReadableName: "normalize tree-sitter tree";
|
|
265
|
+
readonly description: "Normalize the AST to flowR's AST";
|
|
266
|
+
readonly processor: (results: {
|
|
267
|
+
parse?: import("../../../r-bridge/parser").ParseStepOutput<import("web-tree-sitter").Tree>;
|
|
268
|
+
}, input: Partial<import("../all/core/10-normalize").NormalizeRequiredInput>) => import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../../r-bridge/lang-4.x/ast/model/nodes/r-project").RProject<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>>;
|
|
269
|
+
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
270
|
+
readonly printer: {
|
|
271
|
+
readonly 0: typeof import("../../print/print").internalPrinter;
|
|
272
|
+
readonly 2: typeof import("../../print/normalize-printer").normalizedAstToJson;
|
|
273
|
+
readonly 5: typeof import("../../print/normalize-printer").normalizedAstToQuads;
|
|
274
|
+
readonly 3: typeof import("../../print/normalize-printer").printNormalizedAstToMermaid;
|
|
275
|
+
readonly 4: typeof import("../../print/normalize-printer").printNormalizedAstToMermaidUrl;
|
|
276
|
+
};
|
|
277
|
+
readonly dependencies: readonly ["parse"];
|
|
278
|
+
readonly requiredInput: import("../all/core/10-normalize").NormalizeRequiredInput;
|
|
279
|
+
} | {
|
|
248
280
|
readonly humanReadableName: "dataflow";
|
|
249
281
|
readonly processor: (results: {
|
|
250
282
|
normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
|
|
@@ -294,7 +326,8 @@ export declare const TREE_SITTER_SLICING_PIPELINE: import("./pipeline").Pipeline
|
|
|
294
326
|
};
|
|
295
327
|
readonly dependencies: readonly ["slice"];
|
|
296
328
|
readonly requiredInput: import("../all/static-slicing/10-reconstruct").ReconstructRequiredInput;
|
|
297
|
-
}
|
|
329
|
+
}>;
|
|
330
|
+
export declare const TREE_SITTER_SLICE_AND_RECONSTRUCT_PIPELINE: import("./pipeline").Pipeline<{
|
|
298
331
|
readonly name: "parse";
|
|
299
332
|
readonly humanReadableName: "parse with tree-sitter";
|
|
300
333
|
readonly description: "Parse the given R code into an AST using tree-sitter";
|
|
@@ -326,8 +359,7 @@ export declare const TREE_SITTER_SLICING_PIPELINE: import("./pipeline").Pipeline
|
|
|
326
359
|
};
|
|
327
360
|
readonly dependencies: readonly ["parse"];
|
|
328
361
|
readonly requiredInput: import("../all/core/10-normalize").NormalizeRequiredInput;
|
|
329
|
-
}
|
|
330
|
-
export declare const TREE_SITTER_SLICE_AND_RECONSTRUCT_PIPELINE: import("./pipeline").Pipeline<{
|
|
362
|
+
} | {
|
|
331
363
|
readonly humanReadableName: "dataflow";
|
|
332
364
|
readonly processor: (results: {
|
|
333
365
|
normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
|
|
@@ -377,7 +409,8 @@ export declare const TREE_SITTER_SLICE_AND_RECONSTRUCT_PIPELINE: import("./pipel
|
|
|
377
409
|
};
|
|
378
410
|
readonly dependencies: readonly ["slice"];
|
|
379
411
|
readonly requiredInput: import("../all/static-slicing/10-reconstruct").ReconstructRequiredInput;
|
|
380
|
-
}
|
|
412
|
+
}>;
|
|
413
|
+
export declare const TREE_SITTER_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./pipeline").Pipeline<{
|
|
381
414
|
readonly name: "parse";
|
|
382
415
|
readonly humanReadableName: "parse with tree-sitter";
|
|
383
416
|
readonly description: "Parse the given R code into an AST using tree-sitter";
|
|
@@ -409,8 +442,7 @@ export declare const TREE_SITTER_SLICE_AND_RECONSTRUCT_PIPELINE: import("./pipel
|
|
|
409
442
|
};
|
|
410
443
|
readonly dependencies: readonly ["parse"];
|
|
411
444
|
readonly requiredInput: import("../all/core/10-normalize").NormalizeRequiredInput;
|
|
412
|
-
}
|
|
413
|
-
export declare const TREE_SITTER_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./pipeline").Pipeline<{
|
|
445
|
+
} | {
|
|
414
446
|
readonly humanReadableName: "dataflow";
|
|
415
447
|
readonly processor: (results: {
|
|
416
448
|
normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
|
|
@@ -446,11 +478,39 @@ export declare const TREE_SITTER_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./p
|
|
|
446
478
|
};
|
|
447
479
|
readonly dependencies: readonly ["dataflow"];
|
|
448
480
|
readonly requiredInput: import("../all/static-slicing/00-slice").SliceRequiredInput;
|
|
481
|
+
}>;
|
|
482
|
+
/**
|
|
483
|
+
* The default pipeline for working with flowR, including the dataflow step.
|
|
484
|
+
* See the {@link DEFAULT_NORMALIZE_PIPELINE} for the pipeline without the dataflow step
|
|
485
|
+
* and the {@link DEFAULT_SLICE_AND_RECONSTRUCT_PIPELINE} for the pipeline with slicing and reconstructing steps
|
|
486
|
+
*/
|
|
487
|
+
export declare const DEFAULT_DATAFLOW_PIPELINE: import("./pipeline").Pipeline<{
|
|
488
|
+
readonly humanReadableName: "dataflow";
|
|
489
|
+
readonly processor: (results: {
|
|
490
|
+
normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
|
|
491
|
+
}, input: {
|
|
492
|
+
parser?: Parser<import("../../../r-bridge/parser").KnownParserType>;
|
|
493
|
+
context?: import("../../../project/context/flowr-analyzer-context").FlowrAnalyzerContext;
|
|
494
|
+
}) => import("../../../dataflow/info").DataflowInformation & {
|
|
495
|
+
cfgQuick: import("../../../control-flow/control-flow-graph").ControlFlowInformation | undefined;
|
|
496
|
+
};
|
|
497
|
+
readonly requiredInput: {};
|
|
498
|
+
readonly name: "dataflow";
|
|
499
|
+
readonly description: "Construct the dataflow graph";
|
|
500
|
+
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
501
|
+
readonly printer: {
|
|
502
|
+
readonly 0: typeof import("../../print/print").internalPrinter;
|
|
503
|
+
readonly 2: typeof import("../../print/dataflow-printer").dataflowGraphToJson;
|
|
504
|
+
readonly 5: typeof import("../../print/dataflow-printer").dataflowGraphToQuads;
|
|
505
|
+
readonly 3: (this: void, graph: import("../../../dataflow/graph/graph").DataflowGraph | import("../../../dataflow/info").DataflowInformation, includeEnvironments?: boolean, mark?: ReadonlySet<import("../../../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId>, simplified?: boolean) => string;
|
|
506
|
+
readonly 4: (this: void, graph: import("../../../dataflow/graph/graph").DataflowGraph | import("../../../dataflow/info").DataflowInformation, includeEnvironments?: boolean, mark?: ReadonlySet<import("../../../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId>, simplified?: boolean) => string;
|
|
507
|
+
};
|
|
508
|
+
readonly dependencies: readonly ["normalize"];
|
|
449
509
|
} | {
|
|
450
510
|
readonly name: "parse";
|
|
451
|
-
readonly humanReadableName: "parse with
|
|
452
|
-
readonly description: "Parse the given R code into an AST
|
|
453
|
-
readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<
|
|
511
|
+
readonly humanReadableName: "parse with R shell";
|
|
512
|
+
readonly description: "Parse the given R code into an AST";
|
|
513
|
+
readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<string>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<string>>;
|
|
454
514
|
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
455
515
|
readonly printer: {
|
|
456
516
|
readonly 0: typeof import("../../print/print").internalPrinter;
|
|
@@ -458,15 +518,16 @@ export declare const TREE_SITTER_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./p
|
|
|
458
518
|
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
459
519
|
(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
|
460
520
|
};
|
|
521
|
+
readonly 5: (p: import("../../../r-bridge/parser").ParseStepOutput<string>, config: import("../../../util/quads").QuadSerializationConfiguration) => string;
|
|
461
522
|
};
|
|
462
523
|
readonly dependencies: readonly [];
|
|
463
|
-
readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<
|
|
524
|
+
readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<string>;
|
|
464
525
|
} | {
|
|
465
526
|
readonly name: "normalize";
|
|
466
|
-
readonly humanReadableName: "normalize
|
|
527
|
+
readonly humanReadableName: "normalize";
|
|
467
528
|
readonly description: "Normalize the AST to flowR's AST";
|
|
468
529
|
readonly processor: (results: {
|
|
469
|
-
parse?: import("../../../r-bridge/parser").ParseStepOutput<
|
|
530
|
+
parse?: import("../../../r-bridge/parser").ParseStepOutput<string>;
|
|
470
531
|
}, input: Partial<import("../all/core/10-normalize").NormalizeRequiredInput>) => import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../../r-bridge/lang-4.x/ast/model/nodes/r-project").RProject<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>>;
|
|
471
532
|
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
472
533
|
readonly printer: {
|
|
@@ -479,16 +540,11 @@ export declare const TREE_SITTER_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./p
|
|
|
479
540
|
readonly dependencies: readonly ["parse"];
|
|
480
541
|
readonly requiredInput: import("../all/core/10-normalize").NormalizeRequiredInput;
|
|
481
542
|
}>;
|
|
482
|
-
|
|
483
|
-
* The default pipeline for working with flowR, including the dataflow step.
|
|
484
|
-
* See the {@link DEFAULT_NORMALIZE_PIPELINE} for the pipeline without the dataflow step
|
|
485
|
-
* and the {@link DEFAULT_SLICE_AND_RECONSTRUCT_PIPELINE} for the pipeline with slicing and reconstructing steps
|
|
486
|
-
*/
|
|
487
|
-
export declare const DEFAULT_DATAFLOW_PIPELINE: import("./pipeline").Pipeline<{
|
|
543
|
+
export declare const TREE_SITTER_DATAFLOW_PIPELINE: import("./pipeline").Pipeline<{
|
|
488
544
|
readonly name: "parse";
|
|
489
|
-
readonly humanReadableName: "parse with
|
|
490
|
-
readonly description: "Parse the given R code into an AST";
|
|
491
|
-
readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<
|
|
545
|
+
readonly humanReadableName: "parse with tree-sitter";
|
|
546
|
+
readonly description: "Parse the given R code into an AST using tree-sitter";
|
|
547
|
+
readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<import("web-tree-sitter").Tree>>;
|
|
492
548
|
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
493
549
|
readonly printer: {
|
|
494
550
|
readonly 0: typeof import("../../print/print").internalPrinter;
|
|
@@ -496,16 +552,15 @@ export declare const DEFAULT_DATAFLOW_PIPELINE: import("./pipeline").Pipeline<{
|
|
|
496
552
|
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
497
553
|
(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
|
498
554
|
};
|
|
499
|
-
readonly 5: (p: import("../../../r-bridge/parser").ParseStepOutput<string>, config: import("../../../util/quads").QuadSerializationConfiguration) => string;
|
|
500
555
|
};
|
|
501
556
|
readonly dependencies: readonly [];
|
|
502
|
-
readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<
|
|
557
|
+
readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>;
|
|
503
558
|
} | {
|
|
504
559
|
readonly name: "normalize";
|
|
505
|
-
readonly humanReadableName: "normalize";
|
|
560
|
+
readonly humanReadableName: "normalize tree-sitter tree";
|
|
506
561
|
readonly description: "Normalize the AST to flowR's AST";
|
|
507
562
|
readonly processor: (results: {
|
|
508
|
-
parse?: import("../../../r-bridge/parser").ParseStepOutput<
|
|
563
|
+
parse?: import("../../../r-bridge/parser").ParseStepOutput<import("web-tree-sitter").Tree>;
|
|
509
564
|
}, input: Partial<import("../all/core/10-normalize").NormalizeRequiredInput>) => import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../../r-bridge/lang-4.x/ast/model/nodes/r-project").RProject<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>>;
|
|
510
565
|
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
511
566
|
readonly printer: {
|
|
@@ -540,61 +595,6 @@ export declare const DEFAULT_DATAFLOW_PIPELINE: import("./pipeline").Pipeline<{
|
|
|
540
595
|
};
|
|
541
596
|
readonly dependencies: readonly ["normalize"];
|
|
542
597
|
}>;
|
|
543
|
-
export declare const TREE_SITTER_DATAFLOW_PIPELINE: import("./pipeline").Pipeline<{
|
|
544
|
-
readonly humanReadableName: "dataflow";
|
|
545
|
-
readonly processor: (results: {
|
|
546
|
-
normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
|
|
547
|
-
}, input: {
|
|
548
|
-
parser?: Parser<import("../../../r-bridge/parser").KnownParserType>;
|
|
549
|
-
context?: import("../../../project/context/flowr-analyzer-context").FlowrAnalyzerContext;
|
|
550
|
-
}) => import("../../../dataflow/info").DataflowInformation & {
|
|
551
|
-
cfgQuick: import("../../../control-flow/control-flow-graph").ControlFlowInformation | undefined;
|
|
552
|
-
};
|
|
553
|
-
readonly requiredInput: {};
|
|
554
|
-
readonly name: "dataflow";
|
|
555
|
-
readonly description: "Construct the dataflow graph";
|
|
556
|
-
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
557
|
-
readonly printer: {
|
|
558
|
-
readonly 0: typeof import("../../print/print").internalPrinter;
|
|
559
|
-
readonly 2: typeof import("../../print/dataflow-printer").dataflowGraphToJson;
|
|
560
|
-
readonly 5: typeof import("../../print/dataflow-printer").dataflowGraphToQuads;
|
|
561
|
-
readonly 3: (this: void, graph: import("../../../dataflow/graph/graph").DataflowGraph | import("../../../dataflow/info").DataflowInformation, includeEnvironments?: boolean, mark?: ReadonlySet<import("../../../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId>, simplified?: boolean) => string;
|
|
562
|
-
readonly 4: (this: void, graph: import("../../../dataflow/graph/graph").DataflowGraph | import("../../../dataflow/info").DataflowInformation, includeEnvironments?: boolean, mark?: ReadonlySet<import("../../../r-bridge/lang-4.x/ast/model/processing/node-id").NodeId>, simplified?: boolean) => string;
|
|
563
|
-
};
|
|
564
|
-
readonly dependencies: readonly ["normalize"];
|
|
565
|
-
} | {
|
|
566
|
-
readonly name: "parse";
|
|
567
|
-
readonly humanReadableName: "parse with tree-sitter";
|
|
568
|
-
readonly description: "Parse the given R code into an AST using tree-sitter";
|
|
569
|
-
readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<import("web-tree-sitter").Tree>>;
|
|
570
|
-
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
571
|
-
readonly printer: {
|
|
572
|
-
readonly 0: typeof import("../../print/print").internalPrinter;
|
|
573
|
-
readonly 2: {
|
|
574
|
-
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
575
|
-
(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
|
576
|
-
};
|
|
577
|
-
};
|
|
578
|
-
readonly dependencies: readonly [];
|
|
579
|
-
readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>;
|
|
580
|
-
} | {
|
|
581
|
-
readonly name: "normalize";
|
|
582
|
-
readonly humanReadableName: "normalize tree-sitter tree";
|
|
583
|
-
readonly description: "Normalize the AST to flowR's AST";
|
|
584
|
-
readonly processor: (results: {
|
|
585
|
-
parse?: import("../../../r-bridge/parser").ParseStepOutput<import("web-tree-sitter").Tree>;
|
|
586
|
-
}, input: Partial<import("../all/core/10-normalize").NormalizeRequiredInput>) => import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation, import("../../../r-bridge/lang-4.x/ast/model/nodes/r-project").RProject<import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").ParentInformation>>;
|
|
587
|
-
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
588
|
-
readonly printer: {
|
|
589
|
-
readonly 0: typeof import("../../print/print").internalPrinter;
|
|
590
|
-
readonly 2: typeof import("../../print/normalize-printer").normalizedAstToJson;
|
|
591
|
-
readonly 5: typeof import("../../print/normalize-printer").normalizedAstToQuads;
|
|
592
|
-
readonly 3: typeof import("../../print/normalize-printer").printNormalizedAstToMermaid;
|
|
593
|
-
readonly 4: typeof import("../../print/normalize-printer").printNormalizedAstToMermaidUrl;
|
|
594
|
-
};
|
|
595
|
-
readonly dependencies: readonly ["parse"];
|
|
596
|
-
readonly requiredInput: import("../all/core/10-normalize").NormalizeRequiredInput;
|
|
597
|
-
}>;
|
|
598
598
|
/** The pipeline to use when you want to parse and normalize your R file, see {@link DEFAULT_DATAFLOW_PIPELINE} for the additional `dataflow` step */
|
|
599
599
|
export declare const DEFAULT_NORMALIZE_PIPELINE: import("./pipeline").Pipeline<{
|
|
600
600
|
readonly name: "parse";
|
|
@@ -2,8 +2,9 @@ import { type REnvironmentInformation } from './environment';
|
|
|
2
2
|
import type { IdentifierDefinition } from './identifier';
|
|
3
3
|
/**
|
|
4
4
|
* Merges two arrays of identifier definitions, ensuring uniqueness based on `nodeId` and `definedAt`.
|
|
5
|
+
* Returns a copy, the input arrays are not modified (they may be shared with other environments).
|
|
5
6
|
*/
|
|
6
|
-
export declare function uniqueMergeValuesInDefinitions(old: IdentifierDefinition[], value: readonly IdentifierDefinition[]): IdentifierDefinition[];
|
|
7
|
+
export declare function uniqueMergeValuesInDefinitions(old: readonly IdentifierDefinition[], value: readonly IdentifierDefinition[]): IdentifierDefinition[];
|
|
7
8
|
/**
|
|
8
9
|
* Adds all writes of `next` to `base` (i.e., the operations of `next` *might* happen).
|
|
9
10
|
*/
|
|
@@ -5,9 +5,10 @@ exports.appendEnvironment = appendEnvironment;
|
|
|
5
5
|
const scoping_1 = require("./scoping");
|
|
6
6
|
/**
|
|
7
7
|
* Merges two arrays of identifier definitions, ensuring uniqueness based on `nodeId` and `definedAt`.
|
|
8
|
+
* Returns a copy, the input arrays are not modified (they may be shared with other environments).
|
|
8
9
|
*/
|
|
9
10
|
function uniqueMergeValuesInDefinitions(old, value) {
|
|
10
|
-
const result = old;
|
|
11
|
+
const result = old.slice();
|
|
11
12
|
for (const v of value) {
|
|
12
13
|
const find = result.findIndex(o => o.nodeId === v.nodeId && o.definedAt === v.definedAt);
|
|
13
14
|
if (find < 0) {
|
|
@@ -38,6 +38,8 @@ export declare enum BuiltInProcName {
|
|
|
38
38
|
List = "builtin:list",
|
|
39
39
|
/** for `local` calls, see {@link processLocal} */
|
|
40
40
|
Local = "builtin:local",
|
|
41
|
+
/** for `::` and `:::` called as a function, see {@link processNamespaceAccess} */
|
|
42
|
+
NamespaceAccess = "builtin:ns-access",
|
|
41
43
|
/** for the pipe operators, see {@link processPipe} */
|
|
42
44
|
Pipe = "builtin:pipe",
|
|
43
45
|
/**
|
|
@@ -42,6 +42,8 @@ var BuiltInProcName;
|
|
|
42
42
|
BuiltInProcName["List"] = "builtin:list";
|
|
43
43
|
/** for `local` calls, see {@link processLocal} */
|
|
44
44
|
BuiltInProcName["Local"] = "builtin:local";
|
|
45
|
+
/** for `::` and `:::` called as a function, see {@link processNamespaceAccess} */
|
|
46
|
+
BuiltInProcName["NamespaceAccess"] = "builtin:ns-access";
|
|
45
47
|
/** for the pipe operators, see {@link processPipe} */
|
|
46
48
|
BuiltInProcName["Pipe"] = "builtin:pipe";
|
|
47
49
|
/**
|
|
@@ -47,6 +47,7 @@ import { processPurrrFormula } from '../internal/process/functions/call/built-in
|
|
|
47
47
|
import { processNewEnv } from '../internal/process/functions/call/built-in/built-in-new-env';
|
|
48
48
|
import { processAttach } from '../internal/process/functions/call/built-in/built-in-attach';
|
|
49
49
|
import { processWithEnv } from '../internal/process/functions/call/built-in/built-in-with';
|
|
50
|
+
import { processNamespaceAccess } from '../internal/process/functions/call/built-in/built-in-namespace-access';
|
|
50
51
|
export type BuiltInIdentifierProcessor = <OtherInfo>(name: RSymbol<OtherInfo & ParentInformation>, args: readonly PotentiallyEmptyRArgument<OtherInfo & ParentInformation>[], rootId: NodeId, data: DataflowProcessorInformation<OtherInfo & ParentInformation>) => DataflowInformation;
|
|
51
52
|
export type BuiltInIdentifierProcessorWithConfig<Config> = <OtherInfo>(name: RSymbol<OtherInfo & ParentInformation>, args: readonly PotentiallyEmptyRArgument<OtherInfo & ParentInformation>[], rootId: NodeId, data: DataflowProcessorInformation<OtherInfo & ParentInformation>, config: Config) => DataflowInformation;
|
|
52
53
|
export interface BuiltInIdentifierDefinition extends IdentifierReference {
|
|
@@ -103,6 +104,7 @@ export declare const BuiltInProcessorMapper: {
|
|
|
103
104
|
readonly "builtin:lib": typeof processLibrary;
|
|
104
105
|
readonly "builtin:list": typeof processList;
|
|
105
106
|
readonly "builtin:local": typeof processLocal;
|
|
107
|
+
readonly "builtin:ns-access": typeof processNamespaceAccess;
|
|
106
108
|
readonly "builtin:pipe": typeof processPipe;
|
|
107
109
|
readonly "builtin:purrr-f": typeof processPurrrFormula;
|
|
108
110
|
readonly "builtin:quote": typeof processQuote;
|
|
@@ -45,6 +45,7 @@ const built_in_purrr_formula_1 = require("../internal/process/functions/call/bui
|
|
|
45
45
|
const built_in_new_env_1 = require("../internal/process/functions/call/built-in/built-in-new-env");
|
|
46
46
|
const built_in_attach_1 = require("../internal/process/functions/call/built-in/built-in-attach");
|
|
47
47
|
const built_in_with_1 = require("../internal/process/functions/call/built-in/built-in-with");
|
|
48
|
+
const built_in_namespace_access_1 = require("../internal/process/functions/call/built-in/built-in-namespace-access");
|
|
48
49
|
function defaultBuiltInProcessor(name, args, rootId, data, { returnsNthArgument, useAsProcessor = built_in_proc_name_1.BuiltInProcName.Default, forceArgs, readAllArguments, cfg, hasUnknownSideEffects, treatAsFnCall }) {
|
|
49
50
|
const { information: res, processedArguments } = (0, known_call_handling_1.processKnownFunctionCall)({ name, args, rootId, data, forceArgs, origin: useAsProcessor });
|
|
50
51
|
if (returnsNthArgument !== undefined) {
|
|
@@ -130,6 +131,7 @@ exports.BuiltInProcessorMapper = {
|
|
|
130
131
|
[built_in_proc_name_1.BuiltInProcName.Library]: built_in_library_1.processLibrary,
|
|
131
132
|
[built_in_proc_name_1.BuiltInProcName.List]: built_in_list_1.processList,
|
|
132
133
|
[built_in_proc_name_1.BuiltInProcName.Local]: built_in_local_1.processLocal,
|
|
134
|
+
[built_in_proc_name_1.BuiltInProcName.NamespaceAccess]: built_in_namespace_access_1.processNamespaceAccess,
|
|
133
135
|
[built_in_proc_name_1.BuiltInProcName.Pipe]: built_in_pipe_1.processPipe,
|
|
134
136
|
[built_in_proc_name_1.BuiltInProcName.PurrrFormula]: built_in_purrr_formula_1.processPurrrFormula,
|
|
135
137
|
[built_in_proc_name_1.BuiltInProcName.Quote]: built_in_quote_1.processQuote,
|