@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.
Files changed (220) hide show
  1. package/README.md +37 -29
  2. package/cli/common/options.d.ts +2 -108
  3. package/cli/common/options.js +3 -27
  4. package/cli/common/scripts-info.d.ts +2 -123
  5. package/cli/common/scripts-info.js +0 -17
  6. package/cli/flowr-main-options.d.ts +5 -0
  7. package/cli/flowr-main-options.js +10 -0
  8. package/cli/flowr.js +1 -1
  9. package/cli/repl/print-version.d.ts +3 -1
  10. package/cli/repl/print-version.js +21 -2
  11. package/cli/repl/server/connection.d.ts +2 -0
  12. package/cli/repl/server/connection.js +40 -31
  13. package/cli/script-core/summarizer-core.js +13 -32
  14. package/cli/wiki.d.ts +2 -1
  15. package/cli/wiki.js +2 -0
  16. package/config.d.ts +13 -0
  17. package/config.js +8 -0
  18. package/control-flow/semantic-cfg-guided-visitor.js +1 -0
  19. package/core/steps/pipeline/default-pipelines.d.ts +146 -146
  20. package/data/pkgdb/pkgdb-latest.json.br +0 -0
  21. package/data/pkgdb/pkgdb-tiny.json.br +0 -0
  22. package/dataflow/environments/append.d.ts +1 -2
  23. package/dataflow/environments/append.js +3 -10
  24. package/dataflow/environments/apply-kill.d.ts +21 -0
  25. package/dataflow/environments/apply-kill.js +155 -0
  26. package/dataflow/environments/built-in-proc-name.d.ts +2 -0
  27. package/dataflow/environments/built-in-proc-name.js +2 -0
  28. package/dataflow/environments/built-in.d.ts +2 -0
  29. package/dataflow/environments/built-in.js +2 -0
  30. package/dataflow/environments/default-builtin-config.d.ts +63 -3
  31. package/dataflow/environments/default-builtin-config.js +40 -8
  32. package/dataflow/environments/environment.d.ts +49 -32
  33. package/dataflow/environments/environment.js +133 -18
  34. package/dataflow/environments/identifier.d.ts +10 -0
  35. package/dataflow/environments/identifier.js +23 -0
  36. package/dataflow/environments/overwrite.js +2 -10
  37. package/dataflow/environments/resolve-by-name.d.ts +1 -1
  38. package/dataflow/environments/resolve-by-name.js +10 -2
  39. package/dataflow/environments/scoping.d.ts +9 -2
  40. package/dataflow/environments/scoping.js +15 -2
  41. package/dataflow/extractor.js +23 -2
  42. package/dataflow/graph/df-helper.d.ts +8 -0
  43. package/dataflow/graph/df-helper.js +8 -0
  44. package/dataflow/graph/graph.d.ts +4 -1
  45. package/dataflow/graph/graph.js +5 -1
  46. package/dataflow/info.d.ts +26 -0
  47. package/dataflow/internal/process/functions/call/built-in/built-in-access.js +7 -5
  48. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +19 -0
  49. package/dataflow/internal/process/functions/call/built-in/built-in-attach.d.ts +1 -8
  50. package/dataflow/internal/process/functions/call/built-in/built-in-attach.js +7 -13
  51. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +9 -48
  52. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +30 -47
  53. package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +17 -0
  54. package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +6 -1
  55. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.d.ts +2 -2
  56. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +8 -1
  57. package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +9 -0
  58. package/dataflow/internal/process/functions/call/built-in/built-in-library.d.ts +37 -3
  59. package/dataflow/internal/process/functions/call/built-in/built-in-library.js +391 -21
  60. package/dataflow/internal/process/functions/call/built-in/built-in-rm.d.ts +2 -1
  61. package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +131 -48
  62. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +25 -0
  63. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +94 -0
  64. package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +10 -3
  65. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +30 -0
  66. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +279 -0
  67. package/dataflow/internal/process/functions/call/named-call-handling.d.ts +1 -1
  68. package/dataflow/internal/process/functions/call/named-call-handling.js +17 -0
  69. package/documentation/data/faq/faqs.js +3 -0
  70. package/documentation/data/interface/doc-writing-code.js +4 -80
  71. package/documentation/doc-util/doc-structure.js +1 -2
  72. package/documentation/wiki-core.js +2 -1
  73. package/documentation/wiki-dataflow-graph.js +35 -1
  74. package/documentation/wiki-interface.js +3 -2
  75. package/documentation/wiki-linter.js +2 -0
  76. package/documentation/wiki-overview.js +1 -14
  77. package/documentation/wiki-package-database.d.ts +9 -0
  78. package/documentation/wiki-package-database.js +63 -0
  79. package/documentation/wiki-query.js +1 -0
  80. package/linter/linter-rules.d.ts +23 -0
  81. package/linter/linter-rules.js +3 -1
  82. package/linter/rules/absolute-path.js +2 -1
  83. package/linter/rules/undefined-symbol.d.ts +39 -0
  84. package/linter/rules/undefined-symbol.js +80 -0
  85. package/package.json +3 -4
  86. package/project/cache/flowr-analyzer-cache.d.ts +2 -0
  87. package/project/cache/flowr-analyzer-cache.js +9 -1
  88. package/project/context/flowr-analyzer-dependencies-context.d.ts +16 -8
  89. package/project/context/flowr-analyzer-dependencies-context.js +36 -4
  90. package/project/context/flowr-analyzer-environment-context.d.ts +2 -4
  91. package/project/context/flowr-analyzer-environment-context.js +3 -4
  92. package/project/context/flowr-analyzer-files-context.d.ts +1 -0
  93. package/project/context/flowr-file.d.ts +2 -0
  94. package/project/context/flowr-file.js +2 -0
  95. package/project/flowr-analyzer-builder.js +3 -0
  96. package/project/flowr-analyzer.d.ts +2 -1
  97. package/project/flowr-analyzer.js +3 -1
  98. package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +13 -15
  99. package/project/plugins/file-plugins/files/flowr-namespace-file.js +36 -13
  100. package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.d.ts +27 -0
  101. package/project/plugins/file-plugins/flowr-analyzer-virtualenv-file-plugin.js +41 -0
  102. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.d.ts +18 -0
  103. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-lockfile-plugin.js +62 -0
  104. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-pkgdb-plugin.d.ts +63 -0
  105. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-pkgdb-plugin.js +174 -0
  106. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.d.ts +10 -0
  107. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-plugin.js +6 -0
  108. package/project/plugins/package-version-plugins/package.d.ts +3 -0
  109. package/project/plugins/package-version-plugins/package.js +12 -0
  110. package/project/plugins/package-version-plugins/pkgdb.d.ts +133 -0
  111. package/project/plugins/package-version-plugins/pkgdb.js +370 -0
  112. package/project/plugins/plugin-registry.d.ts +4 -1
  113. package/project/plugins/plugin-registry.js +7 -0
  114. package/queries/catalog/call-context-query/call-context-query-executor.js +8 -0
  115. package/queries/catalog/call-context-query/call-context-query-format.d.ts +2 -0
  116. package/queries/catalog/call-context-query/call-context-query-format.js +1 -0
  117. package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +8 -0
  118. package/queries/catalog/dependencies-query/dependencies-query-executor.js +31 -3
  119. package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +3 -1
  120. package/queries/catalog/dependencies-query/dependencies-query-format.js +3 -2
  121. package/queries/catalog/dependencies-query/function-info/function-info.d.ts +1 -1
  122. package/queries/catalog/dependencies-query/function-info/other-path-functions.d.ts +2 -0
  123. package/queries/catalog/dependencies-query/function-info/other-path-functions.js +27 -0
  124. package/queries/catalog/dependencies-query/function-info/read-functions.js +5 -4
  125. package/queries/catalog/dependencies-query/function-info/visualize-functions.js +3 -1
  126. package/queries/catalog/linter-query/linter-query-executor.js +1 -0
  127. package/r-bridge/data/data.d.ts +2 -2
  128. package/r-bridge/data/data.js +2 -2
  129. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +13 -4
  130. package/search/search-executor/search-enrichers.d.ts +1 -1
  131. package/search/search-executor/search-enrichers.js +7 -4
  132. package/util/mermaid/mermaid.d.ts +4 -0
  133. package/util/mermaid/mermaid.js +8 -1
  134. package/util/version.js +10 -2
  135. package/cli/common/features.d.ts +0 -9
  136. package/cli/common/features.js +0 -35
  137. package/cli/script-core/statistics-core.d.ts +0 -6
  138. package/cli/script-core/statistics-core.js +0 -104
  139. package/cli/script-core/statistics-helper-core.d.ts +0 -6
  140. package/cli/script-core/statistics-helper-core.js +0 -86
  141. package/cli/statistics-app.d.ts +0 -11
  142. package/cli/statistics-app.js +0 -16
  143. package/cli/statistics-helper-app.d.ts +0 -11
  144. package/cli/statistics-helper-app.js +0 -14
  145. package/statistics/features/common-syntax-probability.d.ts +0 -38
  146. package/statistics/features/common-syntax-probability.js +0 -169
  147. package/statistics/features/feature.d.ts +0 -179
  148. package/statistics/features/feature.js +0 -38
  149. package/statistics/features/post-processing.d.ts +0 -18
  150. package/statistics/features/post-processing.js +0 -26
  151. package/statistics/features/supported/assignments/assignments.d.ts +0 -12
  152. package/statistics/features/supported/assignments/assignments.js +0 -56
  153. package/statistics/features/supported/assignments/post-process.d.ts +0 -6
  154. package/statistics/features/supported/assignments/post-process.js +0 -126
  155. package/statistics/features/supported/comments/comments.d.ts +0 -18
  156. package/statistics/features/supported/comments/comments.js +0 -143
  157. package/statistics/features/supported/comments/post-process.d.ts +0 -6
  158. package/statistics/features/supported/comments/post-process.js +0 -51
  159. package/statistics/features/supported/control-flow/control-flow.d.ts +0 -17
  160. package/statistics/features/supported/control-flow/control-flow.js +0 -69
  161. package/statistics/features/supported/control-flow/post-process.d.ts +0 -6
  162. package/statistics/features/supported/control-flow/post-process.js +0 -66
  163. package/statistics/features/supported/data-access/data-access.d.ts +0 -15
  164. package/statistics/features/supported/data-access/data-access.js +0 -122
  165. package/statistics/features/supported/data-access/post-process.d.ts +0 -6
  166. package/statistics/features/supported/data-access/post-process.js +0 -108
  167. package/statistics/features/supported/defined-functions/defined-functions.d.ts +0 -34
  168. package/statistics/features/supported/defined-functions/defined-functions.js +0 -145
  169. package/statistics/features/supported/defined-functions/post-process.d.ts +0 -6
  170. package/statistics/features/supported/defined-functions/post-process.js +0 -168
  171. package/statistics/features/supported/expression-list/post-process.d.ts +0 -6
  172. package/statistics/features/supported/expression-list/post-process.js +0 -45
  173. package/statistics/features/supported/expression-list/statistics-expression-list.d.ts +0 -9
  174. package/statistics/features/supported/expression-list/statistics-expression-list.js +0 -37
  175. package/statistics/features/supported/loops/loops.d.ts +0 -20
  176. package/statistics/features/supported/loops/loops.js +0 -81
  177. package/statistics/features/supported/loops/post-process.d.ts +0 -6
  178. package/statistics/features/supported/loops/post-process.js +0 -73
  179. package/statistics/features/supported/used-functions/post-process.d.ts +0 -6
  180. package/statistics/features/supported/used-functions/post-process.js +0 -176
  181. package/statistics/features/supported/used-functions/used-functions.d.ts +0 -24
  182. package/statistics/features/supported/used-functions/used-functions.js +0 -99
  183. package/statistics/features/supported/used-packages/post-process.d.ts +0 -6
  184. package/statistics/features/supported/used-packages/post-process.js +0 -122
  185. package/statistics/features/supported/used-packages/used-packages.d.ts +0 -16
  186. package/statistics/features/supported/used-packages/used-packages.js +0 -140
  187. package/statistics/features/supported/values/post-process.d.ts +0 -6
  188. package/statistics/features/supported/values/post-process.js +0 -73
  189. package/statistics/features/supported/values/values.d.ts +0 -14
  190. package/statistics/features/supported/values/values.js +0 -111
  191. package/statistics/features/supported/variables/post-process.d.ts +0 -15
  192. package/statistics/features/supported/variables/post-process.js +0 -126
  193. package/statistics/features/supported/variables/variables.d.ts +0 -15
  194. package/statistics/features/supported/variables/variables.js +0 -62
  195. package/statistics/meta-statistics.d.ts +0 -32
  196. package/statistics/meta-statistics.js +0 -16
  197. package/statistics/output/file-provider.d.ts +0 -36
  198. package/statistics/output/file-provider.js +0 -96
  199. package/statistics/output/print-stats.d.ts +0 -29
  200. package/statistics/output/print-stats.js +0 -81
  201. package/statistics/output/statistics-file.d.ts +0 -36
  202. package/statistics/output/statistics-file.js +0 -68
  203. package/statistics/statistics.d.ts +0 -29
  204. package/statistics/statistics.js +0 -108
  205. package/statistics/summarizer/auto-detect.d.ts +0 -5
  206. package/statistics/summarizer/auto-detect.js +0 -34
  207. package/statistics/summarizer/first-phase/process.d.ts +0 -6
  208. package/statistics/summarizer/first-phase/process.js +0 -81
  209. package/statistics/summarizer/post-process/clusterer.d.ts +0 -25
  210. package/statistics/summarizer/post-process/clusterer.js +0 -40
  211. package/statistics/summarizer/post-process/file-based-count.d.ts +0 -16
  212. package/statistics/summarizer/post-process/file-based-count.js +0 -47
  213. package/statistics/summarizer/post-process/histogram.d.ts +0 -57
  214. package/statistics/summarizer/post-process/histogram.js +0 -126
  215. package/statistics/summarizer/post-process/post-process-output.d.ts +0 -14
  216. package/statistics/summarizer/post-process/post-process-output.js +0 -102
  217. package/statistics/summarizer/second-phase/process.d.ts +0 -15
  218. package/statistics/summarizer/second-phase/process.js +0 -118
  219. package/statistics/summarizer/summarizer.d.ts +0 -34
  220. 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 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>>;
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<string>;
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<string>;
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
- export declare const TREE_SITTER_DATAFLOW_PIPELINE: import("./pipeline").Pipeline<{
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 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>>;
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<import("web-tree-sitter").Tree>;
502
+ readonly requiredInput: import("../../../r-bridge/parser").ParseRequiredInput<string>;
558
503
  } | {
559
504
  readonly name: "normalize";
560
- readonly humanReadableName: "normalize tree-sitter tree";
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<import("web-tree-sitter").Tree>;
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, ensuring uniqueness based on `nodeId` and `definedAt`.
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, ensuring uniqueness based on `nodeId` and `definedAt`.
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
- if (base.level !== next.level) {
28
- while (next.level < base.level) {
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[];