@eagleoutice/flowr 2.10.10 → 2.11.0
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 +37 -29
- package/cli/common/options.d.ts +2 -108
- package/cli/common/options.js +3 -27
- package/cli/common/scripts-info.d.ts +2 -123
- package/cli/common/scripts-info.js +0 -17
- package/cli/flowr-main-options.d.ts +5 -0
- package/cli/flowr-main-options.js +10 -0
- package/cli/flowr.js +1 -1
- package/cli/repl/print-version.d.ts +3 -1
- package/cli/repl/print-version.js +21 -2
- package/cli/repl/server/connection.d.ts +2 -0
- package/cli/repl/server/connection.js +40 -31
- package/cli/script-core/summarizer-core.js +13 -32
- package/cli/wiki.d.ts +2 -1
- package/cli/wiki.js +2 -0
- package/config.d.ts +13 -0
- package/config.js +8 -0
- package/control-flow/semantic-cfg-guided-visitor.js +1 -0
- package/core/steps/pipeline/default-pipelines.d.ts +146 -146
- package/data/pkgdb/pkgdb-latest.json.br +0 -0
- package/data/pkgdb/pkgdb-tiny.json.br +0 -0
- package/dataflow/environments/append.d.ts +1 -2
- package/dataflow/environments/append.js +3 -10
- package/dataflow/environments/apply-kill.d.ts +21 -0
- package/dataflow/environments/apply-kill.js +155 -0
- 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 +63 -3
- package/dataflow/environments/default-builtin-config.js +40 -8
- package/dataflow/environments/environment.d.ts +49 -32
- package/dataflow/environments/environment.js +133 -18
- package/dataflow/environments/identifier.d.ts +10 -0
- package/dataflow/environments/identifier.js +23 -0
- package/dataflow/environments/overwrite.js +2 -10
- package/dataflow/environments/resolve-by-name.d.ts +1 -1
- package/dataflow/environments/resolve-by-name.js +10 -2
- package/dataflow/environments/scoping.d.ts +9 -2
- package/dataflow/environments/scoping.js +15 -2
- package/dataflow/extractor.js +23 -2
- package/dataflow/graph/df-helper.d.ts +8 -0
- package/dataflow/graph/df-helper.js +8 -0
- package/dataflow/graph/graph.d.ts +4 -1
- package/dataflow/graph/graph.js +5 -1
- package/dataflow/info.d.ts +26 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-access.js +7 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +19 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.d.ts +1 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +7 -13
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +9 -48
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +30 -47
- package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +17 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +6 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.d.ts +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +8 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +9 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-library.d.ts +37 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +391 -21
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.d.ts +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +131 -48
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +25 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +94 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +10 -3
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +30 -0
- package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +279 -0
- package/dataflow/internal/process/functions/call/named-call-handling.d.ts +1 -1
- package/dataflow/internal/process/functions/call/named-call-handling.js +17 -0
- package/documentation/data/faq/faqs.js +3 -0
- package/documentation/data/interface/doc-writing-code.js +4 -80
- package/documentation/doc-util/doc-structure.js +1 -2
- package/documentation/wiki-core.js +2 -1
- package/documentation/wiki-dataflow-graph.js +35 -1
- package/documentation/wiki-interface.js +3 -2
- package/documentation/wiki-linter.js +2 -0
- package/documentation/wiki-overview.js +1 -14
- package/documentation/wiki-package-database.d.ts +9 -0
- package/documentation/wiki-package-database.js +63 -0
- package/documentation/wiki-query.js +1 -0
- package/linter/linter-rules.d.ts +23 -0
- package/linter/linter-rules.js +3 -1
- package/linter/rules/absolute-path.js +2 -1
- package/linter/rules/undefined-symbol.d.ts +39 -0
- package/linter/rules/undefined-symbol.js +80 -0
- package/package.json +3 -4
- package/project/cache/flowr-analyzer-cache.d.ts +2 -0
- package/project/cache/flowr-analyzer-cache.js +9 -1
- package/project/context/flowr-analyzer-dependencies-context.d.ts +16 -8
- package/project/context/flowr-analyzer-dependencies-context.js +36 -4
- package/project/context/flowr-analyzer-environment-context.d.ts +2 -4
- package/project/context/flowr-analyzer-environment-context.js +3 -4
- package/project/context/flowr-analyzer-files-context.d.ts +1 -0
- package/project/context/flowr-file.d.ts +2 -0
- package/project/context/flowr-file.js +2 -0
- package/project/flowr-analyzer-builder.js +3 -0
- package/project/flowr-analyzer.d.ts +2 -1
- package/project/flowr-analyzer.js +3 -1
- package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +13 -15
- package/project/plugins/file-plugins/files/flowr-namespace-file.js +36 -13
- package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.d.ts +27 -0
- package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.js +41 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.d.ts +18 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +62 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-pkgdb-plugin.d.ts +63 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-pkgdb-plugin.js +174 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.d.ts +10 -0
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.js +6 -0
- package/project/plugins/package-version-plugins/package.d.ts +3 -0
- package/project/plugins/package-version-plugins/package.js +12 -0
- package/project/plugins/package-version-plugins/pkgdb.d.ts +133 -0
- package/project/plugins/package-version-plugins/pkgdb.js +370 -0
- package/project/plugins/plugin-registry.d.ts +4 -1
- package/project/plugins/plugin-registry.js +7 -0
- package/queries/catalog/call-context-query/call-context-query-executor.js +8 -0
- package/queries/catalog/call-context-query/call-context-query-format.d.ts +2 -0
- package/queries/catalog/call-context-query/call-context-query-format.js +1 -0
- package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +8 -0
- package/queries/catalog/dependencies-query/dependencies-query-executor.js +31 -3
- package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +3 -1
- package/queries/catalog/dependencies-query/dependencies-query-format.js +3 -2
- package/queries/catalog/dependencies-query/function-info/function-info.d.ts +1 -1
- package/queries/catalog/dependencies-query/function-info/other-path-functions.d.ts +2 -0
- package/queries/catalog/dependencies-query/function-info/other-path-functions.js +27 -0
- package/queries/catalog/dependencies-query/function-info/read-functions.js +5 -4
- package/queries/catalog/dependencies-query/function-info/visualize-functions.js +3 -1
- package/queries/catalog/linter-query/linter-query-executor.js +1 -0
- package/r-bridge/data/data.d.ts +2 -2
- package/r-bridge/data/data.js +2 -2
- package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +13 -4
- package/search/search-executor/search-enrichers.d.ts +1 -1
- package/search/search-executor/search-enrichers.js +7 -4
- package/util/mermaid/mermaid.d.ts +4 -0
- package/util/mermaid/mermaid.js +8 -1
- package/util/version.js +10 -2
- package/cli/common/features.d.ts +0 -9
- package/cli/common/features.js +0 -35
- package/cli/script-core/statistics-core.d.ts +0 -6
- package/cli/script-core/statistics-core.js +0 -104
- package/cli/script-core/statistics-helper-core.d.ts +0 -6
- package/cli/script-core/statistics-helper-core.js +0 -86
- package/cli/statistics-app.d.ts +0 -11
- package/cli/statistics-app.js +0 -16
- package/cli/statistics-helper-app.d.ts +0 -11
- package/cli/statistics-helper-app.js +0 -14
- package/statistics/features/common-syntax-probability.d.ts +0 -38
- package/statistics/features/common-syntax-probability.js +0 -169
- package/statistics/features/feature.d.ts +0 -179
- package/statistics/features/feature.js +0 -38
- package/statistics/features/post-processing.d.ts +0 -18
- package/statistics/features/post-processing.js +0 -26
- package/statistics/features/supported/assignments/assignments.d.ts +0 -12
- package/statistics/features/supported/assignments/assignments.js +0 -56
- package/statistics/features/supported/assignments/post-process.d.ts +0 -6
- package/statistics/features/supported/assignments/post-process.js +0 -126
- package/statistics/features/supported/comments/comments.d.ts +0 -18
- package/statistics/features/supported/comments/comments.js +0 -143
- package/statistics/features/supported/comments/post-process.d.ts +0 -6
- package/statistics/features/supported/comments/post-process.js +0 -51
- package/statistics/features/supported/control-flow/control-flow.d.ts +0 -17
- package/statistics/features/supported/control-flow/control-flow.js +0 -69
- package/statistics/features/supported/control-flow/post-process.d.ts +0 -6
- package/statistics/features/supported/control-flow/post-process.js +0 -66
- package/statistics/features/supported/data-access/data-access.d.ts +0 -15
- package/statistics/features/supported/data-access/data-access.js +0 -122
- package/statistics/features/supported/data-access/post-process.d.ts +0 -6
- package/statistics/features/supported/data-access/post-process.js +0 -108
- package/statistics/features/supported/defined-functions/defined-functions.d.ts +0 -34
- package/statistics/features/supported/defined-functions/defined-functions.js +0 -145
- package/statistics/features/supported/defined-functions/post-process.d.ts +0 -6
- package/statistics/features/supported/defined-functions/post-process.js +0 -168
- package/statistics/features/supported/expression-list/post-process.d.ts +0 -6
- package/statistics/features/supported/expression-list/post-process.js +0 -45
- package/statistics/features/supported/expression-list/statistics-expression-list.d.ts +0 -9
- package/statistics/features/supported/expression-list/statistics-expression-list.js +0 -37
- package/statistics/features/supported/loops/loops.d.ts +0 -20
- package/statistics/features/supported/loops/loops.js +0 -81
- package/statistics/features/supported/loops/post-process.d.ts +0 -6
- package/statistics/features/supported/loops/post-process.js +0 -73
- package/statistics/features/supported/used-functions/post-process.d.ts +0 -6
- package/statistics/features/supported/used-functions/post-process.js +0 -176
- package/statistics/features/supported/used-functions/used-functions.d.ts +0 -24
- package/statistics/features/supported/used-functions/used-functions.js +0 -99
- package/statistics/features/supported/used-packages/post-process.d.ts +0 -6
- package/statistics/features/supported/used-packages/post-process.js +0 -122
- package/statistics/features/supported/used-packages/used-packages.d.ts +0 -16
- package/statistics/features/supported/used-packages/used-packages.js +0 -140
- package/statistics/features/supported/values/post-process.d.ts +0 -6
- package/statistics/features/supported/values/post-process.js +0 -73
- package/statistics/features/supported/values/values.d.ts +0 -14
- package/statistics/features/supported/values/values.js +0 -111
- package/statistics/features/supported/variables/post-process.d.ts +0 -15
- package/statistics/features/supported/variables/post-process.js +0 -126
- package/statistics/features/supported/variables/variables.d.ts +0 -15
- package/statistics/features/supported/variables/variables.js +0 -62
- package/statistics/meta-statistics.d.ts +0 -32
- package/statistics/meta-statistics.js +0 -16
- package/statistics/output/file-provider.d.ts +0 -36
- package/statistics/output/file-provider.js +0 -96
- package/statistics/output/print-stats.d.ts +0 -29
- package/statistics/output/print-stats.js +0 -81
- package/statistics/output/statistics-file.d.ts +0 -36
- package/statistics/output/statistics-file.js +0 -68
- package/statistics/statistics.d.ts +0 -29
- package/statistics/statistics.js +0 -108
- package/statistics/summarizer/auto-detect.d.ts +0 -5
- package/statistics/summarizer/auto-detect.js +0 -34
- package/statistics/summarizer/first-phase/process.d.ts +0 -6
- package/statistics/summarizer/first-phase/process.js +0 -81
- package/statistics/summarizer/post-process/clusterer.d.ts +0 -25
- package/statistics/summarizer/post-process/clusterer.js +0 -40
- package/statistics/summarizer/post-process/file-based-count.d.ts +0 -16
- package/statistics/summarizer/post-process/file-based-count.js +0 -47
- package/statistics/summarizer/post-process/histogram.d.ts +0 -57
- package/statistics/summarizer/post-process/histogram.js +0 -126
- package/statistics/summarizer/post-process/post-process-output.d.ts +0 -14
- package/statistics/summarizer/post-process/post-process-output.js +0 -102
- package/statistics/summarizer/second-phase/process.d.ts +0 -15
- package/statistics/summarizer/second-phase/process.js +0 -118
- package/statistics/summarizer/summarizer.d.ts +0 -34
- package/statistics/summarizer/summarizer.js +0 -141
|
@@ -7,28 +7,6 @@ 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
|
-
} | {
|
|
32
10
|
readonly name: "parse";
|
|
33
11
|
readonly humanReadableName: "parse with R shell";
|
|
34
12
|
readonly description: "Parse the given R code into an AST";
|
|
@@ -61,6 +39,28 @@ export declare const DEFAULT_SLICING_PIPELINE: import("./pipeline").Pipeline<{
|
|
|
61
39
|
};
|
|
62
40
|
readonly dependencies: readonly ["parse"];
|
|
63
41
|
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,28 +91,6 @@ 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
|
-
} | {
|
|
116
94
|
readonly name: "parse";
|
|
117
95
|
readonly humanReadableName: "parse with R shell";
|
|
118
96
|
readonly description: "Parse the given R code into an AST";
|
|
@@ -145,6 +123,28 @@ export declare const DEFAULT_SLICE_AND_RECONSTRUCT_PIPELINE: import("./pipeline"
|
|
|
145
123
|
};
|
|
146
124
|
readonly dependencies: readonly ["parse"];
|
|
147
125
|
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,28 +175,6 @@ 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
|
-
} | {
|
|
200
178
|
readonly name: "parse";
|
|
201
179
|
readonly humanReadableName: "parse with R shell";
|
|
202
180
|
readonly description: "Parse the given R code into an AST";
|
|
@@ -229,6 +207,28 @@ export declare const DEFAULT_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./pipel
|
|
|
229
207
|
};
|
|
230
208
|
readonly dependencies: readonly ["parse"];
|
|
231
209
|
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,38 +245,6 @@ 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
|
-
} | {
|
|
280
248
|
readonly humanReadableName: "dataflow";
|
|
281
249
|
readonly processor: (results: {
|
|
282
250
|
normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
|
|
@@ -326,8 +294,7 @@ export declare const TREE_SITTER_SLICING_PIPELINE: import("./pipeline").Pipeline
|
|
|
326
294
|
};
|
|
327
295
|
readonly dependencies: readonly ["slice"];
|
|
328
296
|
readonly requiredInput: import("../all/static-slicing/10-reconstruct").ReconstructRequiredInput;
|
|
329
|
-
}
|
|
330
|
-
export declare const TREE_SITTER_SLICE_AND_RECONSTRUCT_PIPELINE: import("./pipeline").Pipeline<{
|
|
297
|
+
} | {
|
|
331
298
|
readonly name: "parse";
|
|
332
299
|
readonly humanReadableName: "parse with tree-sitter";
|
|
333
300
|
readonly description: "Parse the given R code into an AST using tree-sitter";
|
|
@@ -359,7 +326,8 @@ export declare const TREE_SITTER_SLICE_AND_RECONSTRUCT_PIPELINE: import("./pipel
|
|
|
359
326
|
};
|
|
360
327
|
readonly dependencies: readonly ["parse"];
|
|
361
328
|
readonly requiredInput: import("../all/core/10-normalize").NormalizeRequiredInput;
|
|
362
|
-
}
|
|
329
|
+
}>;
|
|
330
|
+
export declare const TREE_SITTER_SLICE_AND_RECONSTRUCT_PIPELINE: import("./pipeline").Pipeline<{
|
|
363
331
|
readonly humanReadableName: "dataflow";
|
|
364
332
|
readonly processor: (results: {
|
|
365
333
|
normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
|
|
@@ -409,8 +377,7 @@ export declare const TREE_SITTER_SLICE_AND_RECONSTRUCT_PIPELINE: import("./pipel
|
|
|
409
377
|
};
|
|
410
378
|
readonly dependencies: readonly ["slice"];
|
|
411
379
|
readonly requiredInput: import("../all/static-slicing/10-reconstruct").ReconstructRequiredInput;
|
|
412
|
-
}
|
|
413
|
-
export declare const TREE_SITTER_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./pipeline").Pipeline<{
|
|
380
|
+
} | {
|
|
414
381
|
readonly name: "parse";
|
|
415
382
|
readonly humanReadableName: "parse with tree-sitter";
|
|
416
383
|
readonly description: "Parse the given R code into an AST using tree-sitter";
|
|
@@ -442,7 +409,8 @@ export declare const TREE_SITTER_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./p
|
|
|
442
409
|
};
|
|
443
410
|
readonly dependencies: readonly ["parse"];
|
|
444
411
|
readonly requiredInput: import("../all/core/10-normalize").NormalizeRequiredInput;
|
|
445
|
-
}
|
|
412
|
+
}>;
|
|
413
|
+
export declare const TREE_SITTER_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./pipeline").Pipeline<{
|
|
446
414
|
readonly humanReadableName: "dataflow";
|
|
447
415
|
readonly processor: (results: {
|
|
448
416
|
normalize?: import("../../../r-bridge/lang-4.x/ast/model/processing/decorate").NormalizedAst;
|
|
@@ -478,39 +446,11 @@ export declare const TREE_SITTER_SLICE_WITHOUT_RECONSTRUCT_PIPELINE: import("./p
|
|
|
478
446
|
};
|
|
479
447
|
readonly dependencies: readonly ["dataflow"];
|
|
480
448
|
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"];
|
|
509
449
|
} | {
|
|
510
450
|
readonly name: "parse";
|
|
511
|
-
readonly humanReadableName: "parse with
|
|
512
|
-
readonly description: "Parse the given R code into an AST";
|
|
513
|
-
readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<
|
|
451
|
+
readonly humanReadableName: "parse with tree-sitter";
|
|
452
|
+
readonly description: "Parse the given R code into an AST using tree-sitter";
|
|
453
|
+
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>>;
|
|
514
454
|
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
515
455
|
readonly printer: {
|
|
516
456
|
readonly 0: typeof import("../../print/print").internalPrinter;
|
|
@@ -518,16 +458,15 @@ export declare const DEFAULT_DATAFLOW_PIPELINE: import("./pipeline").Pipeline<{
|
|
|
518
458
|
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
519
459
|
(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
|
520
460
|
};
|
|
521
|
-
readonly 5: (p: import("../../../r-bridge/parser").ParseStepOutput<string>, config: import("../../../util/quads").QuadSerializationConfiguration) => string;
|
|
522
461
|
};
|
|
523
462
|
readonly dependencies: readonly [];
|
|
524
|
-
readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<
|
|
463
|
+
readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<import("web-tree-sitter").Tree>;
|
|
525
464
|
} | {
|
|
526
465
|
readonly name: "normalize";
|
|
527
|
-
readonly humanReadableName: "normalize";
|
|
466
|
+
readonly humanReadableName: "normalize tree-sitter tree";
|
|
528
467
|
readonly description: "Normalize the AST to flowR's AST";
|
|
529
468
|
readonly processor: (results: {
|
|
530
|
-
parse?: import("../../../r-bridge/parser").ParseStepOutput<
|
|
469
|
+
parse?: import("../../../r-bridge/parser").ParseStepOutput<import("web-tree-sitter").Tree>;
|
|
531
470
|
}, 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>>;
|
|
532
471
|
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
533
472
|
readonly printer: {
|
|
@@ -540,11 +479,16 @@ export declare const DEFAULT_DATAFLOW_PIPELINE: import("./pipeline").Pipeline<{
|
|
|
540
479
|
readonly dependencies: readonly ["parse"];
|
|
541
480
|
readonly requiredInput: import("../all/core/10-normalize").NormalizeRequiredInput;
|
|
542
481
|
}>;
|
|
543
|
-
|
|
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<{
|
|
544
488
|
readonly name: "parse";
|
|
545
|
-
readonly humanReadableName: "parse with
|
|
546
|
-
readonly description: "Parse the given R code into an AST
|
|
547
|
-
readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<
|
|
489
|
+
readonly humanReadableName: "parse with R shell";
|
|
490
|
+
readonly description: "Parse the given R code into an AST";
|
|
491
|
+
readonly processor: (_results: unknown, input: Partial<import("../../../r-bridge/parser").ParseRequiredInput<string>>) => Promise<import("../../../r-bridge/parser").ParseStepOutput<string>>;
|
|
548
492
|
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
549
493
|
readonly printer: {
|
|
550
494
|
readonly 0: typeof import("../../print/print").internalPrinter;
|
|
@@ -552,15 +496,16 @@ export declare const TREE_SITTER_DATAFLOW_PIPELINE: import("./pipeline").Pipelin
|
|
|
552
496
|
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
553
497
|
(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
|
554
498
|
};
|
|
499
|
+
readonly 5: (p: import("../../../r-bridge/parser").ParseStepOutput<string>, config: import("../../../util/quads").QuadSerializationConfiguration) => string;
|
|
555
500
|
};
|
|
556
501
|
readonly dependencies: readonly [];
|
|
557
|
-
readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<
|
|
502
|
+
readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<string>;
|
|
558
503
|
} | {
|
|
559
504
|
readonly name: "normalize";
|
|
560
|
-
readonly humanReadableName: "normalize
|
|
505
|
+
readonly humanReadableName: "normalize";
|
|
561
506
|
readonly description: "Normalize the AST to flowR's AST";
|
|
562
507
|
readonly processor: (results: {
|
|
563
|
-
parse?: import("../../../r-bridge/parser").ParseStepOutput<
|
|
508
|
+
parse?: import("../../../r-bridge/parser").ParseStepOutput<string>;
|
|
564
509
|
}, 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>>;
|
|
565
510
|
readonly executed: import("../pipeline-step").PipelineStepStage.OncePerFile;
|
|
566
511
|
readonly printer: {
|
|
@@ -595,6 +540,61 @@ export declare const TREE_SITTER_DATAFLOW_PIPELINE: import("./pipeline").Pipelin
|
|
|
595
540
|
};
|
|
596
541
|
readonly dependencies: readonly ["normalize"];
|
|
597
542
|
}>;
|
|
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";
|
|
Binary file
|
|
Binary file
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { type REnvironmentInformation } from './environment';
|
|
2
2
|
import type { IdentifierDefinition } from './identifier';
|
|
3
3
|
/**
|
|
4
|
-
* Merges two arrays of identifier definitions
|
|
5
|
-
* Returns a copy, the input arrays are not modified (they may be shared with other environments).
|
|
4
|
+
* Merges two arrays of identifier definitions into a fresh array, unique by `nodeId` and `definedAt`.
|
|
6
5
|
*/
|
|
7
6
|
export declare function uniqueMergeValuesInDefinitions(old: readonly IdentifierDefinition[], value: readonly IdentifierDefinition[]): IdentifierDefinition[];
|
|
8
7
|
/**
|
|
@@ -4,8 +4,7 @@ exports.uniqueMergeValuesInDefinitions = uniqueMergeValuesInDefinitions;
|
|
|
4
4
|
exports.appendEnvironment = appendEnvironment;
|
|
5
5
|
const scoping_1 = require("./scoping");
|
|
6
6
|
/**
|
|
7
|
-
* Merges two arrays of identifier definitions
|
|
8
|
-
* Returns a copy, the input arrays are not modified (they may be shared with other environments).
|
|
7
|
+
* Merges two arrays of identifier definitions into a fresh array, unique by `nodeId` and `definedAt`.
|
|
9
8
|
*/
|
|
10
9
|
function uniqueMergeValuesInDefinitions(old, value) {
|
|
11
10
|
const result = old.slice();
|
|
@@ -24,14 +23,8 @@ function appendEnvironment(base, next) {
|
|
|
24
23
|
else if (next === undefined) {
|
|
25
24
|
return base;
|
|
26
25
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
next = (0, scoping_1.pushLocalEnvironment)(next);
|
|
30
|
-
}
|
|
31
|
-
while (next.level > base.level) {
|
|
32
|
-
base = (0, scoping_1.pushLocalEnvironment)(base);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
26
|
+
({ base, next } = (0, scoping_1.padToCommonScope)(base, next));
|
|
27
|
+
// packages attached below the global env are unified branch-wise by Environment#append
|
|
35
28
|
return {
|
|
36
29
|
current: base.current.append(next.current),
|
|
37
30
|
level: base.level,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Applying {@link KillReference|kills} (e.g., produced by `rm`) to an {@link REnvironmentInformation}.
|
|
3
|
+
* @module
|
|
4
|
+
*/
|
|
5
|
+
import type { ControlDependency, KillReference } from '../info';
|
|
6
|
+
import type { REnvironmentInformation } from './environment';
|
|
7
|
+
import type { IdentifierReference } from './identifier';
|
|
8
|
+
/**
|
|
9
|
+
* Drops the kills that a later write revives: a re-definition cancels a pending `named` removal of that name,
|
|
10
|
+
* and any write cancels a wholesale (`all`/`unknown`) removal. Used when bubbling kills out of an expression
|
|
11
|
+
* list so a merging parent only sees the removals still in effect at the list's exit.
|
|
12
|
+
*/
|
|
13
|
+
export declare function cancelRevivedKills(kills: readonly KillReference[], writes: readonly IdentifierReference[]): KillReference[];
|
|
14
|
+
/**
|
|
15
|
+
* Applies the given {@link KillReference|kills} to a copy of `env`. `named` kills remove (or, when conditional,
|
|
16
|
+
* weaken to maybe) a single definition; `all` kills clear the current frame; `unknown` kills weaken every
|
|
17
|
+
* in-scope definition to maybe. Returns `env` unchanged when there is nothing to apply.
|
|
18
|
+
*/
|
|
19
|
+
export declare function applyKills(env: REnvironmentInformation, kills: readonly KillReference[] | undefined): REnvironmentInformation;
|
|
20
|
+
/** Attaches `cds` to a list of kills, turning them into conditional (maybe) kills. */
|
|
21
|
+
export declare function makeKillsMaybe(kills: readonly KillReference[] | undefined, cds: readonly ControlDependency[]): KillReference[];
|