@eagleoutice/flowr 2.13.14 → 2.13.15
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 +23 -23
- package/abstract-interpretation/data-frame/resolve-args.js +11 -12
- package/benchmark/summarizer/second-phase/graph.d.ts +23 -0
- package/benchmark/summarizer/second-phase/graph.js +47 -14
- package/cli/repl/commands/repl-cfg.js +2 -42
- package/cli/repl/commands/repl-clipboard.d.ts +7 -0
- package/cli/repl/commands/repl-clipboard.js +53 -0
- package/cli/repl/commands/repl-dataflow.js +5 -70
- package/cli/repl/commands/repl-normalize.js +3 -51
- package/control-flow/cfg-dead-code.js +5 -29
- package/control-flow/diff-cfg.js +2 -56
- package/control-flow/semantic-cfg-guided-visitor.d.ts +7 -0
- package/control-flow/semantic-cfg-guided-visitor.js +14 -0
- package/control-flow/useless-loop.js +4 -26
- package/core/steps/all/core/10-normalize.d.ts +8 -0
- package/core/steps/all/core/10-normalize.js +10 -8
- package/core/steps/all/core/11-normalize-tree-sitter.d.ts +5 -7
- package/core/steps/all/core/11-normalize-tree-sitter.js +2 -9
- package/data/r-base-packages.generated.d.ts +1 -0
- package/data/r-base-packages.generated.js +5 -3
- package/dataflow/environments/built-in-config.d.ts +9 -1
- package/dataflow/environments/built-in-proc-name.d.ts +2 -0
- package/dataflow/environments/built-in-proc-name.js +2 -0
- package/dataflow/environments/built-in-props.d.ts +4 -0
- package/dataflow/environments/built-in-props.js +3 -3
- package/dataflow/environments/built-in.d.ts +4 -2
- package/dataflow/environments/built-in.js +53 -3
- package/dataflow/environments/data-masking-functions.d.ts +3 -4
- package/dataflow/environments/data-masking-functions.js +7 -8
- package/dataflow/environments/default-builtin-config.d.ts +92 -12
- package/dataflow/environments/default-builtin-config.js +86 -43
- package/dataflow/environments/environment.d.ts +5 -0
- package/dataflow/environments/environment.js +17 -12
- package/dataflow/environments/identifier.d.ts +3 -0
- package/dataflow/eval/resolve/alias-tracking.js +4 -7
- package/dataflow/eval/resolve/node-value.d.ts +51 -0
- package/dataflow/eval/resolve/node-value.js +71 -0
- package/dataflow/eval/resolve/resolve-argument.js +10 -7
- package/dataflow/eval/resolve/resolve-operators.js +1 -2
- package/dataflow/eval/values/general.d.ts +4 -0
- package/dataflow/eval/values/general.js +11 -0
- package/dataflow/eval/values/r-value.d.ts +15 -0
- package/dataflow/eval/values/r-value.js +27 -1
- package/dataflow/extractor.js +2 -0
- package/dataflow/fn/higher-order-function.js +2 -3
- package/dataflow/graph/diff-dataflow-graph.js +3 -55
- package/dataflow/graph/graph.d.ts +5 -0
- package/dataflow/graph/graph.js +27 -0
- package/dataflow/internal/linker.d.ts +23 -0
- package/dataflow/internal/linker.js +70 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-access.js +4 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-apply.d.ts +2 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +8 -29
- package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +39 -6
- package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +10 -22
- package/dataflow/internal/process/functions/call/built-in/built-in-eval.js +29 -53
- package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +4 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-library.js +7 -7
- package/dataflow/internal/process/functions/call/built-in/built-in-load.js +2 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-pipe.js +19 -12
- package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-quote.d.ts +3 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-quote.js +69 -52
- package/dataflow/internal/process/functions/call/built-in/built-in-recall.js +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-register-hook.js +2 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +2 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.js +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.js +2 -2
- package/dataflow/internal/process/functions/call/built-in/built-in-source.d.ts +5 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-source.js +23 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-special-bin-op.d.ts +5 -4
- package/dataflow/internal/process/functions/call/built-in/built-in-special-bin-op.js +7 -10
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +6 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +20 -3
- package/dataflow/internal/process/functions/call/built-in/built-in-stop-if-not.js +6 -8
- package/dataflow/internal/process/functions/call/built-in/built-in-string-template.d.ts +25 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-string-template.js +105 -0
- package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +1 -27
- package/dataflow/internal/process/functions/call/built-in/built-in-while-loop.js +4 -5
- package/dataflow/internal/process/functions/call/built-in/built-in-with.js +1 -1
- package/dataflow/internal/process/functions/call/deferred.d.ts +41 -0
- package/dataflow/internal/process/functions/call/deferred.js +127 -0
- package/dataflow/internal/process/functions/call/known-call-handling.d.ts +13 -12
- package/dataflow/internal/process/functions/call/known-call-handling.js +35 -35
- package/dataflow/internal/process/functions/call/named-call-handling.d.ts +1 -1
- package/dataflow/internal/process/functions/call/named-call-handling.js +8 -4
- package/dataflow/internal/process/functions/call/nse.d.ts +28 -0
- package/dataflow/internal/process/functions/call/nse.js +87 -0
- package/dataflow/internal/process/functions/call/quoted.d.ts +29 -0
- package/dataflow/internal/process/functions/call/quoted.js +188 -0
- package/documentation/doc-util/doc-types.js +15 -9
- package/linter/rules/deprecated-functions.js +9 -3
- package/linter/rules/seeded-randomness.js +2 -3
- package/linter/rules/undefined-symbol.js +10 -1
- package/package.json +1 -1
- package/project/plugins/file-plugins/flowr-analyzer-description-file-plugin.d.ts +6 -0
- package/project/plugins/file-plugins/flowr-analyzer-description-file-plugin.js +17 -1
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.d.ts +2 -11
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-qmd-file-plugin.js +3 -15
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmarkdown-file-plugin.d.ts +16 -0
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmarkdown-file-plugin.js +26 -0
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.d.ts +2 -11
- package/project/plugins/file-plugins/notebooks/flowr-analyzer-rmd-file-plugin.js +3 -15
- package/project/plugins/loading-order-plugins/flowr-analyzer-loading-order-description-file-plugin.js +4 -10
- package/project/plugins/package-version-plugins/flowr-analyzer-meta-description-file-plugin.js +2 -9
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-description-file-plugin.js +2 -9
- package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +1 -1
- package/project/sigdb/reader.d.ts +9 -0
- package/project/sigdb/reader.js +30 -0
- package/queries/catalog/input-sources-query/input-sources-query-format.js +1 -1
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-executor.d.ts +0 -12
- package/queries/catalog/inspect-exceptions-query/inspect-exception-query-executor.js +2 -37
- package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-executor.js +2 -23
- package/queries/catalog/inspect-recursion-query/inspect-recursion-query-executor.js +2 -2
- package/queries/query-function-filter.d.ts +21 -0
- package/queries/query-function-filter.js +48 -0
- package/r-bridge/data/data.d.ts +13 -3
- package/r-bridge/data/data.js +15 -3
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.d.ts +2 -0
- package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.js +4 -0
- package/search/flowr-search-filters.d.ts +5 -1
- package/search/flowr-search-filters.js +31 -21
- package/search/search-executor/search-enrichers.d.ts +24 -4
- package/search/search-executor/search-enrichers.js +22 -9
- package/search/search-executor/search-transformer.js +1 -1
- package/util/diff-graph.d.ts +13 -0
- package/util/diff-graph.js +64 -1
- package/util/files.js +9 -8
- package/util/r-base-packages.d.ts +2 -0
- package/util/r-base-packages.js +3 -1
- package/util/version.js +1 -1
|
@@ -1,42 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
3
|
exports.normalizeHashCommand = exports.normalizeStarCommand = exports.normalizeCommand = void 0;
|
|
37
4
|
const ast_1 = require("../../../util/mermaid/ast");
|
|
38
5
|
const ansi_1 = require("../../../util/text/ansi");
|
|
39
6
|
const core_1 = require("../core");
|
|
7
|
+
const repl_clipboard_1 = require("./repl-clipboard");
|
|
40
8
|
const defaultmap_1 = require("../../../util/collections/defaultmap");
|
|
41
9
|
const r_project_1 = require("../../../r-bridge/lang-4.x/ast/model/nodes/r-project");
|
|
42
10
|
function formatInfo(out, type, meta) {
|
|
@@ -52,15 +20,7 @@ exports.normalizeCommand = {
|
|
|
52
20
|
fn: async ({ output, analyzer }) => {
|
|
53
21
|
const result = await analyzer.normalize();
|
|
54
22
|
const mermaid = (0, ast_1.normalizedAstToMermaid)(result.ast);
|
|
55
|
-
|
|
56
|
-
if (output.allowClipboard !== false) {
|
|
57
|
-
try {
|
|
58
|
-
const clipboard = await Promise.resolve().then(() => __importStar(require('clipboardy')));
|
|
59
|
-
clipboard.default.writeSync(mermaid);
|
|
60
|
-
output.stdout(formatInfo(output, 'mermaid url', result));
|
|
61
|
-
}
|
|
62
|
-
catch { /* do nothing this is a service thing */ }
|
|
63
|
-
}
|
|
23
|
+
await repl_clipboard_1.ReplClipboard.print(output, mermaid, formatInfo(output, 'mermaid url', result));
|
|
64
24
|
}
|
|
65
25
|
};
|
|
66
26
|
exports.normalizeStarCommand = {
|
|
@@ -73,15 +33,7 @@ exports.normalizeStarCommand = {
|
|
|
73
33
|
fn: async ({ output, analyzer }) => {
|
|
74
34
|
const result = await analyzer.normalize();
|
|
75
35
|
const mermaid = (0, ast_1.normalizedAstToMermaidUrl)(result.ast);
|
|
76
|
-
|
|
77
|
-
if (output.allowClipboard !== false) {
|
|
78
|
-
try {
|
|
79
|
-
const clipboard = await Promise.resolve().then(() => __importStar(require('clipboardy')));
|
|
80
|
-
clipboard.default.writeSync(mermaid);
|
|
81
|
-
output.stdout(formatInfo(output, 'mermaid url', result));
|
|
82
|
-
}
|
|
83
|
-
catch { /* do nothing this is a service thing */ }
|
|
84
|
-
}
|
|
36
|
+
await repl_clipboard_1.ReplClipboard.print(output, mermaid, formatInfo(output, 'mermaid url', result));
|
|
85
37
|
}
|
|
86
38
|
};
|
|
87
39
|
exports.normalizeHashCommand = {
|
|
@@ -6,11 +6,10 @@ const logic_1 = require("../util/logic");
|
|
|
6
6
|
const semantic_cfg_guided_visitor_1 = require("./semantic-cfg-guided-visitor");
|
|
7
7
|
const vertex_1 = require("../dataflow/graph/vertex");
|
|
8
8
|
const graph_1 = require("../dataflow/graph/graph");
|
|
9
|
-
const
|
|
9
|
+
const node_value_1 = require("../dataflow/eval/resolve/node-value");
|
|
10
10
|
const built_in_proc_name_1 = require("../dataflow/environments/built-in-proc-name");
|
|
11
11
|
const log_1 = require("../util/log");
|
|
12
12
|
const r_function_call_1 = require("../r-bridge/lang-4.x/ast/model/nodes/r-function-call");
|
|
13
|
-
const general_1 = require("../dataflow/eval/values/general");
|
|
14
13
|
const r_value_1 = require("../dataflow/eval/values/r-value");
|
|
15
14
|
const simple_visitor_1 = require("./simple-visitor");
|
|
16
15
|
const convert_values_1 = require("../r-bridge/lang-4.x/convert-values");
|
|
@@ -95,19 +94,13 @@ class CfgConditionalDeadCodeRemoval extends semantic_cfg_guided_visitor_1.Semant
|
|
|
95
94
|
if (this.cachedConditions.has(id)) {
|
|
96
95
|
return;
|
|
97
96
|
}
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
full: true,
|
|
101
|
-
idMap: this.config.normalizedAst.idMap,
|
|
102
|
-
resolve: this.config.ctx.config.solver.variables,
|
|
103
|
-
ctx: this.config.ctx,
|
|
104
|
-
}));
|
|
105
|
-
if (values === undefined || values.elements.length !== 1 || values.elements[0].type !== 'logical' || !(0, r_value_1.isValue)(values.elements[0].value)) {
|
|
97
|
+
const value = node_value_1.NodeValue.inGraph.soleOf(valueId, this.config.dfg, this.config.ctx, 'logical', { idMap: this.config.normalizedAst.idMap });
|
|
98
|
+
if (value === undefined || !(0, r_value_1.isValue)(value.value)) {
|
|
106
99
|
this.unableToCalculateValue(id);
|
|
107
100
|
return;
|
|
108
101
|
}
|
|
109
102
|
/* we should translate this to truthy later */
|
|
110
|
-
this.storeDefiniteValue(id, Boolean(
|
|
103
|
+
this.storeDefiniteValue(id, Boolean(value.value));
|
|
111
104
|
}
|
|
112
105
|
handleWithCondition(data) {
|
|
113
106
|
const id = data.call.id;
|
|
@@ -117,21 +110,6 @@ class CfgConditionalDeadCodeRemoval extends semantic_cfg_guided_visitor_1.Semant
|
|
|
117
110
|
}
|
|
118
111
|
this.handleValuesFor(id, typeof data.condition === 'object' ? data.condition.nodeId : data.condition);
|
|
119
112
|
}
|
|
120
|
-
getBoolArgValue(data) {
|
|
121
|
-
if (data.call.args.length !== 1 || data.call.args[0] === r_function_call_1.EmptyArgument) {
|
|
122
|
-
return undefined;
|
|
123
|
-
}
|
|
124
|
-
const values = (0, general_1.valueSetGuard)((0, alias_tracking_1.resolveIdToValue)(data.call.args[0].nodeId, {
|
|
125
|
-
graph: this.config.dfg,
|
|
126
|
-
full: true,
|
|
127
|
-
idMap: this.config.normalizedAst.idMap,
|
|
128
|
-
ctx: this.config.ctx,
|
|
129
|
-
}));
|
|
130
|
-
if (values === undefined || values.elements.length !== 1 || values.elements[0].type !== 'logical' || !(0, r_value_1.isValue)(values.elements[0].value)) {
|
|
131
|
-
return undefined;
|
|
132
|
-
}
|
|
133
|
-
return Boolean(values.elements[0].value);
|
|
134
|
-
}
|
|
135
113
|
onIfThenElseCall(data) {
|
|
136
114
|
this.handleWithCondition(data);
|
|
137
115
|
}
|
|
@@ -191,9 +169,7 @@ class CfgConditionalDeadCodeRemoval extends semantic_cfg_guided_visitor_1.Semant
|
|
|
191
169
|
return result;
|
|
192
170
|
}
|
|
193
171
|
computeSelectedSwitchArm(v) {
|
|
194
|
-
const target =
|
|
195
|
-
graph: this.config.dfg, full: true, idMap: this.config.normalizedAst.idMap, resolve: this.config.ctx.config.solver.variables, ctx: this.config.ctx
|
|
196
|
-
});
|
|
172
|
+
const target = node_value_1.NodeValue.inGraph.singleStringOf(graph_1.FunctionArgument.getReference(v.args[0]), this.config.dfg, this.config.ctx, { idMap: this.config.normalizedAst.idMap });
|
|
197
173
|
if (target === undefined) {
|
|
198
174
|
return 'unknown';
|
|
199
175
|
}
|
package/control-flow/diff-cfg.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.diffOfControlFlowGraphs = diffOfControlFlowGraphs;
|
|
4
|
-
const json_1 = require("../util/json");
|
|
5
4
|
const diff_graph_1 = require("../util/diff-graph");
|
|
6
5
|
const diff_1 = require("../util/diff");
|
|
7
6
|
const control_flow_graph_1 = require("./control-flow-graph");
|
|
@@ -22,7 +21,7 @@ function diffOfControlFlowGraphs(left, right, config) {
|
|
|
22
21
|
function diffDataflowGraphs(ctx) {
|
|
23
22
|
diffRootVertices(ctx);
|
|
24
23
|
diffVertices(ctx);
|
|
25
|
-
|
|
24
|
+
diff_graph_1.GraphDiff.outgoingEdges(ctx, diffEdges);
|
|
26
25
|
}
|
|
27
26
|
function diffRootVertices(ctx) {
|
|
28
27
|
(0, diff_1.setDifference)(ctx.left.rootIds(), ctx.right.rootIds(), {
|
|
@@ -90,38 +89,6 @@ function diffVertices(ctx) {
|
|
|
90
89
|
});
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
|
-
function diffOutgoingEdges(ctx) {
|
|
94
|
-
const lEdges = new Map([...ctx.left.edges()]);
|
|
95
|
-
const rEdges = new Map([...ctx.right.edges()]);
|
|
96
|
-
if (lEdges.size < rEdges.size && !ctx.config.leftIsSubgraph || lEdges.size > rEdges.size && !ctx.config.rightIsSubgraph) {
|
|
97
|
-
ctx.report.addComment(`Detected different number of edges! ${ctx.leftname} has ${lEdges.size} (${JSON.stringify(lEdges, json_1.jsonReplacer)}). ${ctx.rightname} has ${rEdges.size} ${JSON.stringify(rEdges, json_1.jsonReplacer)}`);
|
|
98
|
-
}
|
|
99
|
-
for (const [id, edge] of lEdges) {
|
|
100
|
-
/* This has nothing to do with the subset relation as we verify this in the same graph.
|
|
101
|
-
* Yet we still do the check as a subgraph may not have to have all source vertices for edges.
|
|
102
|
-
*/
|
|
103
|
-
if (!ctx.left.hasVertex(id)) {
|
|
104
|
-
if (!ctx.config.leftIsSubgraph) {
|
|
105
|
-
ctx.report.addComment(`The source ${id} of edges ${JSON.stringify(edge, json_1.jsonReplacer)} is not present in ${ctx.leftname}. This means that the graph contains an edge but not the corresponding vertex.`);
|
|
106
|
-
continue;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
diffEdges(ctx, id, edge, rEdges.get(id));
|
|
110
|
-
}
|
|
111
|
-
// just to make it both ways in case the length differs
|
|
112
|
-
for (const [id, edge] of rEdges) {
|
|
113
|
-
if (!ctx.right.hasVertex(id)) {
|
|
114
|
-
if (!ctx.config.rightIsSubgraph) {
|
|
115
|
-
ctx.report.addComment(`The source ${id} of edges ${JSON.stringify(edge, json_1.jsonReplacer)} is not present in ${ctx.rightname}. This means that the graph contains an edge but not the corresponding vertex.`);
|
|
116
|
-
continue;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
if (!ctx.config.leftIsSubgraph && !lEdges.has(id)) {
|
|
120
|
-
diffEdges(ctx, id, undefined, edge);
|
|
121
|
-
}
|
|
122
|
-
/* otherwise, we already cover the edge above */
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
92
|
function diffEdge(edge, otherEdge, ctx, id, target) {
|
|
126
93
|
const el = control_flow_graph_1.CfgEdge.getType(edge);
|
|
127
94
|
const ol = control_flow_graph_1.CfgEdge.getType(otherEdge);
|
|
@@ -140,27 +107,6 @@ function diffEdge(edge, otherEdge, ctx, id, target) {
|
|
|
140
107
|
}
|
|
141
108
|
}
|
|
142
109
|
function diffEdges(ctx, id, lEdges, rEdges) {
|
|
143
|
-
|
|
144
|
-
if ((lEdges === undefined && !ctx.config.leftIsSubgraph)
|
|
145
|
-
|| (rEdges === undefined && !ctx.config.rightIsSubgraph)) {
|
|
146
|
-
ctx.report.addComment(`Vertex ${id} has undefined outgoing edges. ${ctx.leftname}: ${JSON.stringify(lEdges, json_1.jsonReplacer)} vs ${ctx.rightname}: ${JSON.stringify(rEdges, json_1.jsonReplacer)}`, { tag: 'vertex', id });
|
|
147
|
-
}
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
if (lEdges.size < rEdges.size && !ctx.config.leftIsSubgraph
|
|
151
|
-
|| lEdges.size > rEdges.size && !ctx.config.rightIsSubgraph) {
|
|
152
|
-
ctx.report.addComment(`Vertex ${id} differs in number of outgoing edges. ${ctx.leftname}: [${[...lEdges.keys()].join(',')}] vs ${ctx.rightname}: [${[...rEdges.keys()].join(',')}] `, { tag: 'vertex', id });
|
|
153
|
-
}
|
|
154
|
-
// order independent compare
|
|
155
|
-
for (const [target, edge] of lEdges) {
|
|
156
|
-
const otherEdge = rEdges.get(target);
|
|
157
|
-
if (otherEdge === undefined) {
|
|
158
|
-
if (!ctx.config.rightIsSubgraph) {
|
|
159
|
-
ctx.report.addComment(`Target of ${id}->${target} in ${ctx.leftname} is not present in ${ctx.rightname}`, { tag: 'edge', from: id, to: target });
|
|
160
|
-
}
|
|
161
|
-
continue;
|
|
162
|
-
}
|
|
163
|
-
diffEdge(edge, otherEdge, ctx, id, target);
|
|
164
|
-
}
|
|
110
|
+
diff_graph_1.GraphDiff.edges(ctx, id, lEdges, rEdges, diffEdge);
|
|
165
111
|
}
|
|
166
112
|
//# sourceMappingURL=diff-cfg.js.map
|
|
@@ -46,6 +46,13 @@ export declare class SemanticCfgGuidedVisitor<OtherInfo = NoInfo, ControlFlow ex
|
|
|
46
46
|
* A helper function to get the normalized AST node for the given id or fail if it does not exist.
|
|
47
47
|
*/
|
|
48
48
|
protected getNormalizedAst(id: NodeId | undefined): RNode<OtherInfo & ParentInformation> | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* The logical the call's only argument resolves to, `undefined` if the call does not take exactly one
|
|
51
|
+
* argument or if that argument does not resolve to a single logical.
|
|
52
|
+
*/
|
|
53
|
+
protected getBoolArgValue(data: {
|
|
54
|
+
call: DataflowGraphVertexFunctionCall;
|
|
55
|
+
}): boolean | undefined;
|
|
49
56
|
/**
|
|
50
57
|
* See {@link DataflowAwareCfgGuidedVisitor#visitValue} for the base implementation.
|
|
51
58
|
* This now dispatches the value to the appropriate event handler based on its type.
|
|
@@ -10,6 +10,8 @@ const r_function_call_1 = require("../r-bridge/lang-4.x/ast/model/nodes/r-functi
|
|
|
10
10
|
const convert_values_1 = require("../r-bridge/lang-4.x/convert-values");
|
|
11
11
|
const df_helper_1 = require("../dataflow/graph/df-helper");
|
|
12
12
|
const built_in_proc_name_1 = require("../dataflow/environments/built-in-proc-name");
|
|
13
|
+
const node_value_1 = require("../dataflow/eval/resolve/node-value");
|
|
14
|
+
const r_value_1 = require("../dataflow/eval/values/r-value");
|
|
13
15
|
/**
|
|
14
16
|
* This visitor extends on the {@link DataflowAwareCfgGuidedVisitor} by dispatching visitors for separate function calls as well,
|
|
15
17
|
* providing more information!
|
|
@@ -40,6 +42,17 @@ class SemanticCfgGuidedVisitor extends dfg_cfg_guided_visitor_1.DataflowAwareCfg
|
|
|
40
42
|
getNormalizedAst(id) {
|
|
41
43
|
return id === undefined ? undefined : this.config.normalizedAst.idMap.get(id);
|
|
42
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* The logical the call's only argument resolves to, `undefined` if the call does not take exactly one
|
|
47
|
+
* argument or if that argument does not resolve to a single logical.
|
|
48
|
+
*/
|
|
49
|
+
getBoolArgValue(data) {
|
|
50
|
+
if (data.call.args.length !== 1 || data.call.args[0] === r_function_call_1.EmptyArgument) {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
const value = node_value_1.NodeValue.inGraph.soleOf(data.call.args[0].nodeId, this.config.dfg, this.config.ctx, 'logical', { idMap: this.config.normalizedAst.idMap });
|
|
54
|
+
return value !== undefined && (0, r_value_1.isValue)(value.value) ? Boolean(value.value) : undefined;
|
|
55
|
+
}
|
|
43
56
|
/**
|
|
44
57
|
* See {@link DataflowAwareCfgGuidedVisitor#visitValue} for the base implementation.
|
|
45
58
|
* This now dispatches the value to the appropriate event handler based on its type.
|
|
@@ -262,6 +275,7 @@ class SemanticCfgGuidedVisitor extends dfg_cfg_guided_visitor_1.DataflowAwareCfg
|
|
|
262
275
|
case built_in_proc_name_1.BuiltInProcName.DefaultReadAllArgs:
|
|
263
276
|
case built_in_proc_name_1.BuiltInProcName.Function:
|
|
264
277
|
case built_in_proc_name_1.BuiltInProcName.FunctionDefinition:
|
|
278
|
+
case built_in_proc_name_1.BuiltInProcName.StringTemplate:
|
|
265
279
|
case built_in_proc_name_1.BuiltInProcName.S7MakeConstructor:
|
|
266
280
|
case built_in_proc_name_1.BuiltInProcName.ClassGenerator:
|
|
267
281
|
case built_in_proc_name_1.BuiltInProcName.DefineArgument:
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loopyFunctions = void 0;
|
|
4
4
|
exports.onlyLoopsOnce = onlyLoopsOnce;
|
|
5
|
-
const
|
|
6
|
-
const general_1 = require("../dataflow/eval/values/general");
|
|
5
|
+
const node_value_1 = require("../dataflow/eval/resolve/node-value");
|
|
7
6
|
const r_value_1 = require("../dataflow/eval/values/r-value");
|
|
8
7
|
const vertex_1 = require("../dataflow/graph/vertex");
|
|
9
8
|
const info_1 = require("../dataflow/info");
|
|
@@ -38,16 +37,11 @@ function onlyLoopsOnce(loop, dataflow, controlflow, ast, ctx) {
|
|
|
38
37
|
if (vectorOfLoop === r_function_call_1.EmptyArgument) {
|
|
39
38
|
return undefined;
|
|
40
39
|
}
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
idMap: dataflow.idMap,
|
|
44
|
-
resolve: ctx.config.solver.variables,
|
|
45
|
-
ctx: ctx
|
|
46
|
-
}));
|
|
47
|
-
if (values?.elements.length !== 1 || values.elements[0].type !== 'vector' || !(0, r_value_1.isValue)(values.elements[0].elements)) {
|
|
40
|
+
const vector = node_value_1.NodeValue.inGraph.soleOf(vectorOfLoop.nodeId, dataflow, ctx, 'vector');
|
|
41
|
+
if (vector === undefined || !(0, r_value_1.isValue)(vector.elements)) {
|
|
48
42
|
return undefined;
|
|
49
43
|
}
|
|
50
|
-
if (
|
|
44
|
+
if (vector.elements.length === 1) {
|
|
51
45
|
return true;
|
|
52
46
|
}
|
|
53
47
|
}
|
|
@@ -70,22 +64,6 @@ class CfgSingleIterationLoopDetector extends semantic_cfg_guided_visitor_1.Seman
|
|
|
70
64
|
super(config);
|
|
71
65
|
this.loopToCheck = loop;
|
|
72
66
|
}
|
|
73
|
-
getBoolArgValue(data) {
|
|
74
|
-
if (data.call.args.length !== 1 || data.call.args[0] === r_function_call_1.EmptyArgument) {
|
|
75
|
-
return undefined;
|
|
76
|
-
}
|
|
77
|
-
const values = (0, general_1.valueSetGuard)((0, alias_tracking_1.resolveIdToValue)(data.call.args[0].nodeId, {
|
|
78
|
-
graph: this.config.dfg,
|
|
79
|
-
full: true,
|
|
80
|
-
idMap: this.config.normalizedAst.idMap,
|
|
81
|
-
resolve: this.config.ctx.config.solver.variables,
|
|
82
|
-
ctx: this.config.ctx
|
|
83
|
-
}));
|
|
84
|
-
if (values?.elements.length !== 1 || values.elements[0].type != 'logical' || !(0, r_value_1.isValue)(values.elements[0].value)) {
|
|
85
|
-
return undefined;
|
|
86
|
-
}
|
|
87
|
-
return Boolean(values.elements[0].value);
|
|
88
|
-
}
|
|
89
67
|
startVisitor(_) {
|
|
90
68
|
const g = this.config.controlFlow.graph;
|
|
91
69
|
const ingoing = (i) => g.ingoingEdges(i);
|
|
@@ -10,6 +10,14 @@ export interface NormalizeRequiredInput {
|
|
|
10
10
|
readonly getId?: IdGenerator<NoInfo>;
|
|
11
11
|
readonly context: FlowrAnalyzerContext;
|
|
12
12
|
}
|
|
13
|
+
/** The output formats shared by every normalization step. */
|
|
14
|
+
export declare const NormalizePrinters: {
|
|
15
|
+
readonly 0: typeof internalPrinter;
|
|
16
|
+
readonly 2: typeof normalizedAstToJson;
|
|
17
|
+
readonly 5: typeof normalizedAstToQuads;
|
|
18
|
+
readonly 3: typeof printNormalizedAstToMermaid;
|
|
19
|
+
readonly 4: typeof printNormalizedAstToMermaidUrl;
|
|
20
|
+
};
|
|
13
21
|
declare function processor(results: {
|
|
14
22
|
parse?: ParseStepOutput<string>;
|
|
15
23
|
}, input: Partial<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>>;
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NORMALIZE = void 0;
|
|
3
|
+
exports.NORMALIZE = exports.NormalizePrinters = void 0;
|
|
4
4
|
const print_1 = require("../../../print/print");
|
|
5
5
|
const normalize_printer_1 = require("../../../print/normalize-printer");
|
|
6
6
|
const parser_1 = require("../../../../r-bridge/lang-4.x/ast/parser/json/parser");
|
|
7
|
+
/** The output formats shared by every normalization step. */
|
|
8
|
+
exports.NormalizePrinters = {
|
|
9
|
+
[0 /* StepOutputFormat.Internal */]: print_1.internalPrinter,
|
|
10
|
+
[2 /* StepOutputFormat.Json */]: normalize_printer_1.normalizedAstToJson,
|
|
11
|
+
[5 /* StepOutputFormat.RdfQuads */]: normalize_printer_1.normalizedAstToQuads,
|
|
12
|
+
[3 /* StepOutputFormat.Mermaid */]: normalize_printer_1.printNormalizedAstToMermaid,
|
|
13
|
+
[4 /* StepOutputFormat.MermaidUrl */]: normalize_printer_1.printNormalizedAstToMermaidUrl
|
|
14
|
+
};
|
|
7
15
|
function processor(results, input) {
|
|
8
16
|
return (0, parser_1.normalize)(results.parse, input.getId);
|
|
9
17
|
}
|
|
@@ -13,13 +21,7 @@ exports.NORMALIZE = {
|
|
|
13
21
|
description: 'Normalize the AST to flowR\'s AST',
|
|
14
22
|
processor,
|
|
15
23
|
executed: 0 /* PipelineStepStage.OncePerFile */,
|
|
16
|
-
printer:
|
|
17
|
-
[0 /* StepOutputFormat.Internal */]: print_1.internalPrinter,
|
|
18
|
-
[2 /* StepOutputFormat.Json */]: normalize_printer_1.normalizedAstToJson,
|
|
19
|
-
[5 /* StepOutputFormat.RdfQuads */]: normalize_printer_1.normalizedAstToQuads,
|
|
20
|
-
[3 /* StepOutputFormat.Mermaid */]: normalize_printer_1.printNormalizedAstToMermaid,
|
|
21
|
-
[4 /* StepOutputFormat.MermaidUrl */]: normalize_printer_1.printNormalizedAstToMermaidUrl
|
|
22
|
-
},
|
|
24
|
+
printer: exports.NormalizePrinters,
|
|
23
25
|
dependencies: ['parse'],
|
|
24
26
|
requiredInput: undefined
|
|
25
27
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { internalPrinter } from '../../../print/print';
|
|
2
|
-
import { normalizedAstToJson, normalizedAstToQuads, printNormalizedAstToMermaid, printNormalizedAstToMermaidUrl } from '../../../print/normalize-printer';
|
|
3
1
|
import { PipelineStepStage } from '../../pipeline-step';
|
|
4
2
|
import type { NormalizeRequiredInput } from './10-normalize';
|
|
5
3
|
import type { ParseStepOutput } from '../../../../r-bridge/parser';
|
|
@@ -14,11 +12,11 @@ export declare const NORMALIZE_TREE_SITTER: {
|
|
|
14
12
|
readonly processor: typeof processor;
|
|
15
13
|
readonly executed: PipelineStepStage.OncePerFile;
|
|
16
14
|
readonly printer: {
|
|
17
|
-
readonly 0: typeof internalPrinter;
|
|
18
|
-
readonly 2: typeof normalizedAstToJson;
|
|
19
|
-
readonly 5: typeof normalizedAstToQuads;
|
|
20
|
-
readonly 3: typeof printNormalizedAstToMermaid;
|
|
21
|
-
readonly 4: typeof printNormalizedAstToMermaidUrl;
|
|
15
|
+
readonly 0: typeof import("../../../print/print").internalPrinter;
|
|
16
|
+
readonly 2: typeof import("../../../print/normalize-printer").normalizedAstToJson;
|
|
17
|
+
readonly 5: typeof import("../../../print/normalize-printer").normalizedAstToQuads;
|
|
18
|
+
readonly 3: typeof import("../../../print/normalize-printer").printNormalizedAstToMermaid;
|
|
19
|
+
readonly 4: typeof import("../../../print/normalize-printer").printNormalizedAstToMermaidUrl;
|
|
22
20
|
};
|
|
23
21
|
readonly dependencies: readonly ["parse"];
|
|
24
22
|
readonly requiredInput: NormalizeRequiredInput;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NORMALIZE_TREE_SITTER = void 0;
|
|
4
|
-
const print_1 = require("../../../print/print");
|
|
5
|
-
const normalize_printer_1 = require("../../../print/normalize-printer");
|
|
6
4
|
const parser_1 = require("../../../../r-bridge/lang-4.x/ast/parser/json/parser");
|
|
5
|
+
const _10_normalize_1 = require("./10-normalize");
|
|
7
6
|
function processor(results, input) {
|
|
8
7
|
return (0, parser_1.normalizeTreeSitter)(results.parse, input.getId, input.context.config);
|
|
9
8
|
}
|
|
@@ -13,13 +12,7 @@ exports.NORMALIZE_TREE_SITTER = {
|
|
|
13
12
|
description: 'Normalize the AST to flowR\'s AST',
|
|
14
13
|
processor,
|
|
15
14
|
executed: 0 /* PipelineStepStage.OncePerFile */,
|
|
16
|
-
printer:
|
|
17
|
-
[0 /* StepOutputFormat.Internal */]: print_1.internalPrinter,
|
|
18
|
-
[2 /* StepOutputFormat.Json */]: normalize_printer_1.normalizedAstToJson,
|
|
19
|
-
[5 /* StepOutputFormat.RdfQuads */]: normalize_printer_1.normalizedAstToQuads,
|
|
20
|
-
[3 /* StepOutputFormat.Mermaid */]: normalize_printer_1.printNormalizedAstToMermaid,
|
|
21
|
-
[4 /* StepOutputFormat.MermaidUrl */]: normalize_printer_1.printNormalizedAstToMermaidUrl
|
|
22
|
-
},
|
|
15
|
+
printer: _10_normalize_1.NormalizePrinters,
|
|
23
16
|
dependencies: ['parse'],
|
|
24
17
|
requiredInput: undefined
|
|
25
18
|
};
|
|
@@ -41,4 +41,5 @@ export declare const RBasePackageStore: {
|
|
|
41
41
|
readonly tools: readonly [".print.via.format", "Adobe_glyphs", "CRAN_aliases_db", "CRAN_archive_db", "CRAN_authors_db", "CRAN_check_details", "CRAN_check_issues", "CRAN_check_results", "CRAN_current_db", "CRAN_package_db", "CRAN_rdxrefs_db", "HTMLheader", "R", "R_user_dir", "Rcmd", "Rd2HTML", "Rd2ex", "Rd2latex", "Rd2txt", "Rd2txt_options", "RdTextFilter", "Rd_db", "Rdiff", "Rdindex", "SIGCHLD", "SIGCONT", "SIGHUP", "SIGINT", "SIGKILL", "SIGQUIT", "SIGSTOP", "SIGTERM", "SIGTSTP", "SIGUSR1", "SIGUSR2", "SweaveTeXFilter", "[.check_details_changes", "add_datalist", "analyze_license", "as.Rconcordance", "as.Rconcordance.default", "as.character.Rconcordance", "as.character.Rd", "as.matrix.check_url_db", "assertCondition", "assertError", "assertWarning", "base_aliases_db", "base_rdxrefs_db", "bibstyle", "buildVignette", "buildVignettes", "charset_to_Unicode", "checkDocFiles", "checkDocStyle", "checkFF", "checkMD5sums", "checkPoFile", "checkPoFiles", "checkRd", "checkRdContents", "checkRdaFiles", "checkReplaceFuns", "checkS3methods", "checkTnF", "checkVignettes", "check_package_dois", "check_package_urls", "check_packages_in_dir", "check_packages_in_dir_changes", "check_packages_in_dir_details", "codoc", "codocClasses", "codocData", "compactPDF", "delimMatch", "deparseLatex", "dependsOnPkgs", "encoded_text_to_latex", "file_ext", "file_path_as_absolute", "file_path_sans_ext", "findHTMLlinks", "find_gs_cmd", "followConcordance", "format.CRAN_package_reverse_dependencies_and_views", "format.checkDocFiles", "format.checkDocStyle", "format.checkFF", "format.checkRdContents", "format.checkReplaceFuns", "format.checkS3methods", "format.checkTnF", "format.checkVignettes", "format.check_Rd_line_widths", "format.check_Rd_metadata", "format.check_Rd_xrefs", "format.check_RegSym_calls", "format.check_S3_methods_needing_delayed_registration", "format.check_T_and_F", "format.check_bogus_return", "format.check_code_usage_in_package", "format.check_compiled_code", "format.check_depdef", "format.check_details", "format.check_details_changes", "format.check_doi_db", "format.check_dotInternal", "format.check_make_vars", "format.check_nonAPI_calls", "format.check_package_CRAN_incoming", "format.check_package_code_assign_to_globalenv", "format.check_package_code_attach", "format.check_package_code_startup_functions", "format.check_package_datalist", "format.check_package_datasets", "format.check_package_depends", "format.check_package_description", "format.check_package_description2", "format.check_package_description_encoding", "format.check_package_license", "format.check_packages_used", "format.check_so_symbols", "format.check_url_db", "format.codocClasses", "format.codocData", "format.compactPDF", "format.news_db_from_md", "format.subdir_tests", "format.summarize_CRAN_check_status", "format.undoc", "getBibstyle", "getDepList", "getVignetteInfo", "installFoundDepends", "langElts", "latexToUtf8", "list_files_with_exts", "list_files_with_type", "loadPkgRdMacros", "loadRdMacros", "make_translations_pkg", "makevars_site", "makevars_user", "matchConcordance", "md5sum", "nonS3methods", "package.dependencies", "package_dependencies", "package_native_routine_registration_skeleton", "parseLatex", "parse_Rd", "parse_URI_reference", "pkg2HTML", "pkgDepends", "pkgVignettes", "print.CRAN_package_reverse_dependencies_and_views", "print.LaTeX", "print.Rconcordance", "print.Rd", "print.activeConcordance", "print.checkRd", "print.check_demo_index", "print.check_details", "print.check_details_changes", "print.check_doi_db", "print.check_package_CRAN_incoming", "print.check_package_code_syntax", "print.check_package_compact_datasets", "print.check_package_description", "print.check_packages_in_dir", "print.check_po_files", "print.check_pragmas", "print.check_url_db", "print.check_vignette_index", "print.codoc", "print.summarize_CRAN_check_status", "print.xgettext", "print.xngettext", "pskill", "psnice", "read.00Index", "resaveRdaFiles", "sha256sum", "showNonASCII", "showNonASCIIfile", "standard_package_names", "startDynamicHelp", "summarize_CRAN_check_status", "summarize_check_packages_in_dir_depends", "summarize_check_packages_in_dir_results", "summarize_check_packages_in_dir_timings", "summary.check_packages_in_dir", "testInstalledBasic", "testInstalledPackage", "testInstalledPackages", "texi2dvi", "texi2pdf", "toHTML", "toHTML.citation", "toHTML.news_db", "toHTML.news_db_from_md", "toHTML.packageIQR", "toRd", "toRd.bibentry", "toRd.default", "toTitleCase", "undoc", "update_PACKAGES", "update_pkg_po", "vignetteDepends", "vignetteEngine", "vignetteInfo", "write_PACKAGES", "xgettext", "xgettext2pot", "xngettext"];
|
|
42
42
|
readonly utils: readonly ["$.bibentry", "$.person", "$<-.bibentry", "$<-.citation", "$<-.person", ".AtNames", ".AtNames.default", ".DollarNames", ".DollarNames.default", ".DollarNames.environment", ".DollarNames.list", ".RtangleCodeLabel", ".S3methods", ".checkHT", ".romans", "?", "DLL.version", "Filters", "Ops.roman", "RShowDoc", "RSiteSearch", "Rprof", "Rprofmem", "Rtangle", "RtangleFinish", "RtangleRuncode", "RtangleSetup", "RtangleWritedoc", "RweaveChunkPrefix", "RweaveEvalWithOpt", "RweaveLatex", "RweaveLatexFinish", "RweaveLatexOptions", "RweaveLatexSetup", "RweaveLatexWritedoc", "RweaveTryStop", "Stangle", "Summary.roman", "Sweave", "SweaveHooks", "SweaveSyntConv", "SweaveSyntaxLatex", "SweaveSyntaxNoweb", "URLdecode", "URLencode", "View", "[.bibentry", "[.getAnywhere", "[.news_db", "[.person", "[.roman", "[<-.bibentry", "[<-.person", "[[.bibentry", "[[.hashtab", "[[.person", "[[<-.bibentry", "[[<-.hashtab", "[[<-.person", "adist", "alarm", "apropos", "aregexec", "argsAnywhere", "arrangeWindows", "as.character.person", "as.character.roman", "as.data.frame.bibentry", "as.data.frame.citation", "as.data.frame.person", "as.environment.hashtab", "as.person", "as.person.default", "as.personList", "as.personList.default", "as.personList.person", "as.relistable", "as.roman", "asDateBuilt", "askYesNo", "aspell", "aspell_package_C_files", "aspell_package_R_files", "aspell_package_Rd_files", "aspell_package_vignettes", "aspell_write_personal_dictionary_file", "assignInMyNamespace", "assignInNamespace", "available.packages", "bibentry", "browseEnv", "browseURL", "browseVignettes", "bug.report", "c.bibentry", "c.person", "capture.output", "changedFiles", "charClass", "checkCRAN", "choose.dir", "choose.files", "chooseBioCmirror", "chooseCRANmirror", "citEntry", "citFooter", "citHeader", "citation", "cite", "citeNatbib", "close.socket", "close.txtProgressBar", "close.winProgressBar", "clrhash", "combn", "compareVersion", "contrib.url", "count.fields", "create.post", "data.entry", "dataentry", "de", "de.ncols", "de.restore", "de.setup", "debugcall", "debugger", "demo", "download.file", "download.packages", "dump.frames", "edit", "edit.data.frame", "edit.default", "edit.matrix", "edit.vignette", "emacs", "example", "file.edit", "fileSnapshot", "file_test", "find", "findCRANmirror", "findLineNum", "findMatches", "fix", "fixInNamespace", "flush.console", "format.MethodsFunction", "format.aspell", "format.aspell_inspect_context", "format.bibentry", "format.citation", "format.hashtab", "format.news_db", "format.object_size", "format.person", "format.roman", "formatOL", "formatUL", "getAnywhere", "getCRANmirrors", "getClipboardFormats", "getFromNamespace", "getIdentification", "getParseData", "getParseText", "getRcode.vignette", "getS3method", "getSrcDirectory", "getSrcFilename", "getSrcLocation", "getSrcref", "getTxtProgressBar", "getWinProgressBar", "getWindowTitle", "getWindowsHandle", "getWindowsHandles", "gethash", "glob2rx", "globalVariables", "hasName", "hashtab", "head", "head.array", "head.default", "head.ftable", "head.function", "head.matrix", "help", "help.request", "help.search", "help.start", "history", "hsearch_db", "hsearch_db_concepts", "hsearch_db_keywords", "install.packages", "installed.packages", "is.hashtab", "is.relistable", "isS3method", "isS3stdGeneric", "length.hashtab", "limitedLabels", "loadRconsole", "loadhistory", "localeToCharset", "ls.str", "lsf.str", "maintainer", "make.packages.html", "make.socket", "makeRweaveLatexCodeRunner", "maphash", "memory.limit", "memory.size", "menu", "mirror2html", "modifyList", "new.packages", "news", "nsl", "numhash", "object.size", "old.packages", "package.skeleton", "packageDate", "packageDescription", "packageName", "packageStatus", "packageVersion", "page", "person", "personList", "pico", "print.Bibtex", "print.Latex", "print.MethodsFunction", "print.aspell", "print.aspell_inspect_context", "print.bibentry", "print.browseVignettes", "print.changedFiles", "print.citation", "print.fileSnapshot", "print.findLineNumResult", "print.getAnywhere", "print.hashtab", "print.help_files_with_topic", "print.hsearch", "print.hsearch_db", "print.ls_str", "print.news_db", "print.object_size", "print.packageDescription", "print.packageIQR", "print.packageStatus", "print.person", "print.roman", "print.sessionInfo", "print.socket", "print.summary.packageStatus", "print.vignette", "process.events", "prompt", "prompt.data.frame", "prompt.default", "promptData", "promptImport", "promptPackage", "rc.getOption", "rc.options", "rc.settings", "rc.status", "read.DIF", "read.csv", "read.csv2", "read.delim", "read.delim2", "read.fortran", "read.fwf", "read.socket", "read.table", "readCitationFile", "readClipboard", "readRegistry", "recover", "relist", "relist.default", "relist.factor", "relist.list", "relist.matrix", "remhash", "remove.packages", "removeSource", "rep.bibentry", "rep.person", "rep.roman", "rtags", "savehistory", "select.list", "sessionInfo", "setBreakpoint", "setInternet2", "setRepositories", "setStatusBar", "setTxtProgressBar", "setWinProgressBar", "setWindowTitle", "sethash", "shortPathName", "sort.bibentry", "stack", "stack.data.frame", "stack.default", "str", "str.Date", "str.POSIXt", "str.data.frame", "str.default", "str.hashtab", "strOptions", "strcapture", "subset.news_db", "summary.aspell", "summary.packageStatus", "summaryRprof", "suppressForeignCheck", "tail", "tail.array", "tail.default", "tail.ftable", "tail.function", "tail.matrix", "tar", "timestamp", "toBibtex", "toBibtex.bibentry", "toBibtex.person", "toLatex", "toLatex.sessionInfo", "transform.bibentry", "txtProgressBar", "type.convert", "type.convert.data.frame", "type.convert.default", "type.convert.list", "typhash", "undebugcall", "unique.bibentry", "unique.person", "unlist.relistable", "unstack", "unstack.data.frame", "unstack.default", "untar", "unzip", "update.packages", "upgrade", "upgrade.packageStatus", "url.show", "vi", "vignette", "warnErrList", "win.version", "winDialog", "winDialogString", "winMenuAdd", "winMenuAddItem", "winMenuDel", "winMenuDelItem", "winMenuItems", "winMenuNames", "winProgressBar", "write.csv", "write.csv2", "write.socket", "write.table", "writeClipboard", "xedit", "xemacs", "zip", "zip.unpack"];
|
|
43
43
|
};
|
|
44
|
+
readonly generics: readonly [".AtNames", ".DollarNames", "AIC", "Axis", "BIC", "NLSstAsymptotic", "NLSstClosestX", "NLSstLfAsymptote", "NLSstRtAsymptote", "SSD", "TukeyHSD", "add1", "aggregate", "alias", "all.equal", "anova", "ansari.test", "anyDuplicated", "aperm", "ar.burg", "ar.yw", "as.Date", "as.POSIXct", "as.POSIXlt", "as.array", "as.data.frame", "as.dendrogram", "as.dist", "as.expression", "as.function", "as.hclust", "as.list", "as.matrix", "as.null", "as.person", "as.personList", "as.raster", "as.single", "as.stepfun", "as.table", "as.ts", "barplot", "bartlett.test", "biplot", "boxplot", "by", "case.names", "cdplot", "chol", "chooseOpsMethod", "close", "coef", "coefficients", "conditionCall", "conditionMessage", "confint", "contour", "cooks.distance", "cophenetic", "cor.test", "cut", "cycle", "deltat", "density", "deriv", "deriv3", "determinant", "deviance", "df.residual", "dfbeta", "dfbetas", "diff", "diffinv", "drop1", "droplevels", "dummy.coef", "duplicated", "edit", "effects", "end", "estVar", "extractAIC", "family", "fitted", "fitted.values", "fligner.test", "flush", "format", "formula", "frequency", "friedman.test", "ftable", "fx", "getCall", "getDLLRegisteredRoutines", "getInitial", "glyphJust", "hatvalues", "head", "hist", "identify", "image", "influence", "is.na<-", "isSymmetric", "julian", "kappa", "kernapply", "knots", "kruskal.test", "ks.test", "labels", "lag", "levels", "lines", "logLik", "makeStandardGeneric", "makepredictcall", "mauchly.test", "mean", "median", "merge", "model.frame", "model.matrix", "model.tables", "monthplot", "months", "mood.test", "mosaicplot", "mtfrm", "na.action", "na.contiguous", "na.exclude", "na.fail", "na.omit", "nameOfClass", "napredict", "naprint", "naresid", "nobs", "open", "pacf", "pairs", "persp", "plot", "points", "ppr", "prcomp", "predict", "preplot", "pretty", "princomp", "print", "profile", "proj", "prompt", "qqnorm", "qr", "quade.test", "quantile", "quarters", "relevel", "relist", "reorder", "resid", "residuals", "rev", "row.names", "row.names<-", "rowsum", "rstandard", "rstudent", "scale", "screeplot", "se.contrast", "seek", "selfStart", "seq", "sequence", "setGeneric", "sigma", "simulate", "solve", "sort", "sort_by", "sortedXyData", "spineplot", "split", "split<-", "stack", "start", "str", "stripchart", "subset", "summary", "sunflowerplot", "t", "t.test", "tail", "terms", "text", "time", "toBibtex", "toLatex", "toString", "transform", "truncate", "tsSmooth", "tsdiag", "type.convert", "unique", "units", "units<-", "unstack", "update", "upgrade", "var.test", "variable.names", "vcov", "weekdays", "weighted.mean", "weights", "wilcox.test", "window", "window<-", "with", "within"];
|
|
44
45
|
};
|
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RBasePackageStore = void 0;
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
/*
|
|
6
|
-
* GENERATED from the flowr-sigdb bundle by scripts/gen-base-packages.ts on 2026-
|
|
7
|
-
* bundle:
|
|
6
|
+
* GENERATED from the flowr-sigdb bundle by scripts/gen-base-packages.ts on 2026-08-13 -- do not edit.
|
|
7
|
+
* bundle: v7|2026-07-19|a3cdbf4d8e58dde2,cc4093180737bbaf,e1390711ba58c661,c0a7ca9838d56152
|
|
8
8
|
* newestRVersion: newest R release in the database. current: its base packages. packages: [first, last]
|
|
9
9
|
* core R-version per package. exportsByPackage: each current base package to its exported names
|
|
10
10
|
* (inverted to an export -> owning-package lookup on first use, so a package name is not repeated).
|
|
11
|
+
* generics: the exports of the attached base packages whose body dispatches (UseMethod and friends).
|
|
11
12
|
*/
|
|
12
13
|
exports.RBasePackageStore = {
|
|
13
14
|
newestRVersion: "4.5.3",
|
|
@@ -27,6 +28,7 @@ exports.RBasePackageStore = {
|
|
|
27
28
|
"tcltk": ["$.tclArray", "$<-.tclArray", ".Tcl", ".Tcl.args", ".Tcl.args.objv", ".Tcl.callback", ".Tcl.objv", ".Tk.ID", ".Tk.newwin", ".Tk.subwin", ".TkRoot", ".TkUp", "[[.tclArray", "[[<-.tclArray", "addTclPath", "as.character.tclObj", "as.character.tclVar", "as.double.tclObj", "as.integer.tclObj", "as.logical.tclObj", "as.raw.tclObj", "as.tclObj", "close.tkProgressBar", "getTkProgressBar", "is.tclObj", "is.tkwin", "length.tclArray", "length<-.tclArray", "names.tclArray", "names<-.tclArray", "print.tclObj", "setTkProgressBar", "tcl", "tclArray", "tclObj", "tclObj.tclVar", "tclObj<-", "tclObj<-.tclVar", "tclRequire", "tclServiceMode", "tclVar", "tclVersion", "tclclose", "tclfile.dir", "tclfile.tail", "tclopen", "tclputs", "tclread", "tclvalue", "tclvalue.default", "tclvalue.tclObj", "tclvalue.tclVar", "tclvalue<-", "tclvalue<-.default", "tclvalue<-.tclVar", "tclvar", "tkProgressBar", "tkStartGUI", "tkXselection.clear", "tkXselection.get", "tkXselection.handle", "tkXselection.own", "tk_choose.dir", "tk_choose.files", "tk_messageBox", "tk_select.list", "tkactivate", "tkadd", "tkaddtag", "tkbbox", "tkbell", "tkbind", "tkbindtags", "tkbutton", "tkcanvas", "tkcanvasx", "tkcanvasy", "tkcget", "tkcheckbutton", "tkchooseDirectory", "tkclipboard.append", "tkclipboard.clear", "tkcompare", "tkconfigure", "tkcoords", "tkcreate", "tkcurselection", "tkdchars", "tkdebug", "tkdelete", "tkdelta", "tkdeselect", "tkdestroy", "tkdialog", "tkdlineinfo", "tkdtag", "tkdump", "tkentry", "tkentrycget", "tkentryconfigure", "tkevent.add", "tkevent.delete", "tkevent.generate", "tkevent.info", "tkfind", "tkflash", "tkfocus", "tkfont.actual", "tkfont.configure", "tkfont.create", "tkfont.delete", "tkfont.families", "tkfont.measure", "tkfont.metrics", "tkfont.names", "tkfraction", "tkframe", "tkget", "tkgetOpenFile", "tkgetSaveFile", "tkgettags", "tkgrab", "tkgrab.current", "tkgrab.release", "tkgrab.set", "tkgrab.status", "tkgrid", "tkgrid.bbox", "tkgrid.columnconfigure", "tkgrid.configure", "tkgrid.forget", "tkgrid.info", "tkgrid.location", "tkgrid.propagate", "tkgrid.remove", "tkgrid.rowconfigure", "tkgrid.size", "tkgrid.slaves", "tkicursor", "tkidentify", "tkimage.create", "tkimage.delete", "tkimage.height", "tkimage.inuse", "tkimage.names", "tkimage.type", "tkimage.types", "tkimage.width", "tkindex", "tkinsert", "tkinvoke", "tkitembind", "tkitemcget", "tkitemconfigure", "tkitemfocus", "tkitemlower", "tkitemraise", "tkitemscale", "tklabel", "tklistbox", "tklower", "tkmark.gravity", "tkmark.names", "tkmark.next", "tkmark.previous", "tkmark.set", "tkmark.unset", "tkmenu", "tkmenubutton", "tkmessage", "tkmessageBox", "tkmove", "tknearest", "tkpack", "tkpack.configure", "tkpack.forget", "tkpack.info", "tkpack.propagate", "tkpack.slaves", "tkpager", "tkplace", "tkplace.configure", "tkplace.forget", "tkplace.info", "tkplace.slaves", "tkpopup", "tkpost", "tkpostcascade", "tkpostscript", "tkradiobutton", "tkraise", "tkscale", "tkscan.dragto", "tkscan.mark", "tkscrollbar", "tksearch", "tksee", "tkselect", "tkselection.adjust", "tkselection.anchor", "tkselection.clear", "tkselection.from", "tkselection.includes", "tkselection.present", "tkselection.range", "tkselection.set", "tkselection.to", "tkset", "tksize", "tktag.add", "tktag.bind", "tktag.cget", "tktag.configure", "tktag.delete", "tktag.lower", "tktag.names", "tktag.nextrange", "tktag.prevrange", "tktag.raise", "tktag.ranges", "tktag.remove", "tktext", "tktitle", "tktitle<-", "tktoggle", "tktoplevel", "tktype", "tkunpost", "tkwait.variable", "tkwait.visibility", "tkwait.window", "tkwidget", "tkwindow.cget", "tkwindow.configure", "tkwindow.create", "tkwindow.names", "tkwinfo", "tkwm.aspect", "tkwm.client", "tkwm.colormapwindows", "tkwm.command", "tkwm.deiconify", "tkwm.focusmodel", "tkwm.frame", "tkwm.geometry", "tkwm.grid", "tkwm.group", "tkwm.iconbitmap", "tkwm.iconify", "tkwm.iconmask", "tkwm.iconname", "tkwm.iconposition", "tkwm.iconwindow", "tkwm.maxsize", "tkwm.minsize", "tkwm.overrideredirect", "tkwm.positionfrom", "tkwm.protocol", "tkwm.resizable", "tkwm.sizefrom", "tkwm.state", "tkwm.title", "tkwm.transient", "tkwm.withdraw", "tkxview", "tkxview.moveto", "tkxview.scroll", "tkyposition", "tkyview", "tkyview.moveto", "tkyview.scroll", "ttkbutton", "ttkcheckbutton", "ttkcombobox", "ttkentry", "ttkframe", "ttklabel", "ttklabelframe", "ttkmenubutton", "ttknotebook", "ttkpanedwindow", "ttkprogressbar", "ttkradiobutton", "ttkscale", "ttkscrollbar", "ttkseparator", "ttksizegrip", "ttkspinbox", "ttktreeview"],
|
|
28
29
|
"tools": [".print.via.format", "Adobe_glyphs", "CRAN_aliases_db", "CRAN_archive_db", "CRAN_authors_db", "CRAN_check_details", "CRAN_check_issues", "CRAN_check_results", "CRAN_current_db", "CRAN_package_db", "CRAN_rdxrefs_db", "HTMLheader", "R", "R_user_dir", "Rcmd", "Rd2HTML", "Rd2ex", "Rd2latex", "Rd2txt", "Rd2txt_options", "RdTextFilter", "Rd_db", "Rdiff", "Rdindex", "SIGCHLD", "SIGCONT", "SIGHUP", "SIGINT", "SIGKILL", "SIGQUIT", "SIGSTOP", "SIGTERM", "SIGTSTP", "SIGUSR1", "SIGUSR2", "SweaveTeXFilter", "[.check_details_changes", "add_datalist", "analyze_license", "as.Rconcordance", "as.Rconcordance.default", "as.character.Rconcordance", "as.character.Rd", "as.matrix.check_url_db", "assertCondition", "assertError", "assertWarning", "base_aliases_db", "base_rdxrefs_db", "bibstyle", "buildVignette", "buildVignettes", "charset_to_Unicode", "checkDocFiles", "checkDocStyle", "checkFF", "checkMD5sums", "checkPoFile", "checkPoFiles", "checkRd", "checkRdContents", "checkRdaFiles", "checkReplaceFuns", "checkS3methods", "checkTnF", "checkVignettes", "check_package_dois", "check_package_urls", "check_packages_in_dir", "check_packages_in_dir_changes", "check_packages_in_dir_details", "codoc", "codocClasses", "codocData", "compactPDF", "delimMatch", "deparseLatex", "dependsOnPkgs", "encoded_text_to_latex", "file_ext", "file_path_as_absolute", "file_path_sans_ext", "findHTMLlinks", "find_gs_cmd", "followConcordance", "format.CRAN_package_reverse_dependencies_and_views", "format.checkDocFiles", "format.checkDocStyle", "format.checkFF", "format.checkRdContents", "format.checkReplaceFuns", "format.checkS3methods", "format.checkTnF", "format.checkVignettes", "format.check_Rd_line_widths", "format.check_Rd_metadata", "format.check_Rd_xrefs", "format.check_RegSym_calls", "format.check_S3_methods_needing_delayed_registration", "format.check_T_and_F", "format.check_bogus_return", "format.check_code_usage_in_package", "format.check_compiled_code", "format.check_depdef", "format.check_details", "format.check_details_changes", "format.check_doi_db", "format.check_dotInternal", "format.check_make_vars", "format.check_nonAPI_calls", "format.check_package_CRAN_incoming", "format.check_package_code_assign_to_globalenv", "format.check_package_code_attach", "format.check_package_code_startup_functions", "format.check_package_datalist", "format.check_package_datasets", "format.check_package_depends", "format.check_package_description", "format.check_package_description2", "format.check_package_description_encoding", "format.check_package_license", "format.check_packages_used", "format.check_so_symbols", "format.check_url_db", "format.codocClasses", "format.codocData", "format.compactPDF", "format.news_db_from_md", "format.subdir_tests", "format.summarize_CRAN_check_status", "format.undoc", "getBibstyle", "getDepList", "getVignetteInfo", "installFoundDepends", "langElts", "latexToUtf8", "list_files_with_exts", "list_files_with_type", "loadPkgRdMacros", "loadRdMacros", "make_translations_pkg", "makevars_site", "makevars_user", "matchConcordance", "md5sum", "nonS3methods", "package.dependencies", "package_dependencies", "package_native_routine_registration_skeleton", "parseLatex", "parse_Rd", "parse_URI_reference", "pkg2HTML", "pkgDepends", "pkgVignettes", "print.CRAN_package_reverse_dependencies_and_views", "print.LaTeX", "print.Rconcordance", "print.Rd", "print.activeConcordance", "print.checkRd", "print.check_demo_index", "print.check_details", "print.check_details_changes", "print.check_doi_db", "print.check_package_CRAN_incoming", "print.check_package_code_syntax", "print.check_package_compact_datasets", "print.check_package_description", "print.check_packages_in_dir", "print.check_po_files", "print.check_pragmas", "print.check_url_db", "print.check_vignette_index", "print.codoc", "print.summarize_CRAN_check_status", "print.xgettext", "print.xngettext", "pskill", "psnice", "read.00Index", "resaveRdaFiles", "sha256sum", "showNonASCII", "showNonASCIIfile", "standard_package_names", "startDynamicHelp", "summarize_CRAN_check_status", "summarize_check_packages_in_dir_depends", "summarize_check_packages_in_dir_results", "summarize_check_packages_in_dir_timings", "summary.check_packages_in_dir", "testInstalledBasic", "testInstalledPackage", "testInstalledPackages", "texi2dvi", "texi2pdf", "toHTML", "toHTML.citation", "toHTML.news_db", "toHTML.news_db_from_md", "toHTML.packageIQR", "toRd", "toRd.bibentry", "toRd.default", "toTitleCase", "undoc", "update_PACKAGES", "update_pkg_po", "vignetteDepends", "vignetteEngine", "vignetteInfo", "write_PACKAGES", "xgettext", "xgettext2pot", "xngettext"],
|
|
29
30
|
"utils": ["$.bibentry", "$.person", "$<-.bibentry", "$<-.citation", "$<-.person", ".AtNames", ".AtNames.default", ".DollarNames", ".DollarNames.default", ".DollarNames.environment", ".DollarNames.list", ".RtangleCodeLabel", ".S3methods", ".checkHT", ".romans", "?", "DLL.version", "Filters", "Ops.roman", "RShowDoc", "RSiteSearch", "Rprof", "Rprofmem", "Rtangle", "RtangleFinish", "RtangleRuncode", "RtangleSetup", "RtangleWritedoc", "RweaveChunkPrefix", "RweaveEvalWithOpt", "RweaveLatex", "RweaveLatexFinish", "RweaveLatexOptions", "RweaveLatexSetup", "RweaveLatexWritedoc", "RweaveTryStop", "Stangle", "Summary.roman", "Sweave", "SweaveHooks", "SweaveSyntConv", "SweaveSyntaxLatex", "SweaveSyntaxNoweb", "URLdecode", "URLencode", "View", "[.bibentry", "[.getAnywhere", "[.news_db", "[.person", "[.roman", "[<-.bibentry", "[<-.person", "[[.bibentry", "[[.hashtab", "[[.person", "[[<-.bibentry", "[[<-.hashtab", "[[<-.person", "adist", "alarm", "apropos", "aregexec", "argsAnywhere", "arrangeWindows", "as.character.person", "as.character.roman", "as.data.frame.bibentry", "as.data.frame.citation", "as.data.frame.person", "as.environment.hashtab", "as.person", "as.person.default", "as.personList", "as.personList.default", "as.personList.person", "as.relistable", "as.roman", "asDateBuilt", "askYesNo", "aspell", "aspell_package_C_files", "aspell_package_R_files", "aspell_package_Rd_files", "aspell_package_vignettes", "aspell_write_personal_dictionary_file", "assignInMyNamespace", "assignInNamespace", "available.packages", "bibentry", "browseEnv", "browseURL", "browseVignettes", "bug.report", "c.bibentry", "c.person", "capture.output", "changedFiles", "charClass", "checkCRAN", "choose.dir", "choose.files", "chooseBioCmirror", "chooseCRANmirror", "citEntry", "citFooter", "citHeader", "citation", "cite", "citeNatbib", "close.socket", "close.txtProgressBar", "close.winProgressBar", "clrhash", "combn", "compareVersion", "contrib.url", "count.fields", "create.post", "data.entry", "dataentry", "de", "de.ncols", "de.restore", "de.setup", "debugcall", "debugger", "demo", "download.file", "download.packages", "dump.frames", "edit", "edit.data.frame", "edit.default", "edit.matrix", "edit.vignette", "emacs", "example", "file.edit", "fileSnapshot", "file_test", "find", "findCRANmirror", "findLineNum", "findMatches", "fix", "fixInNamespace", "flush.console", "format.MethodsFunction", "format.aspell", "format.aspell_inspect_context", "format.bibentry", "format.citation", "format.hashtab", "format.news_db", "format.object_size", "format.person", "format.roman", "formatOL", "formatUL", "getAnywhere", "getCRANmirrors", "getClipboardFormats", "getFromNamespace", "getIdentification", "getParseData", "getParseText", "getRcode.vignette", "getS3method", "getSrcDirectory", "getSrcFilename", "getSrcLocation", "getSrcref", "getTxtProgressBar", "getWinProgressBar", "getWindowTitle", "getWindowsHandle", "getWindowsHandles", "gethash", "glob2rx", "globalVariables", "hasName", "hashtab", "head", "head.array", "head.default", "head.ftable", "head.function", "head.matrix", "help", "help.request", "help.search", "help.start", "history", "hsearch_db", "hsearch_db_concepts", "hsearch_db_keywords", "install.packages", "installed.packages", "is.hashtab", "is.relistable", "isS3method", "isS3stdGeneric", "length.hashtab", "limitedLabels", "loadRconsole", "loadhistory", "localeToCharset", "ls.str", "lsf.str", "maintainer", "make.packages.html", "make.socket", "makeRweaveLatexCodeRunner", "maphash", "memory.limit", "memory.size", "menu", "mirror2html", "modifyList", "new.packages", "news", "nsl", "numhash", "object.size", "old.packages", "package.skeleton", "packageDate", "packageDescription", "packageName", "packageStatus", "packageVersion", "page", "person", "personList", "pico", "print.Bibtex", "print.Latex", "print.MethodsFunction", "print.aspell", "print.aspell_inspect_context", "print.bibentry", "print.browseVignettes", "print.changedFiles", "print.citation", "print.fileSnapshot", "print.findLineNumResult", "print.getAnywhere", "print.hashtab", "print.help_files_with_topic", "print.hsearch", "print.hsearch_db", "print.ls_str", "print.news_db", "print.object_size", "print.packageDescription", "print.packageIQR", "print.packageStatus", "print.person", "print.roman", "print.sessionInfo", "print.socket", "print.summary.packageStatus", "print.vignette", "process.events", "prompt", "prompt.data.frame", "prompt.default", "promptData", "promptImport", "promptPackage", "rc.getOption", "rc.options", "rc.settings", "rc.status", "read.DIF", "read.csv", "read.csv2", "read.delim", "read.delim2", "read.fortran", "read.fwf", "read.socket", "read.table", "readCitationFile", "readClipboard", "readRegistry", "recover", "relist", "relist.default", "relist.factor", "relist.list", "relist.matrix", "remhash", "remove.packages", "removeSource", "rep.bibentry", "rep.person", "rep.roman", "rtags", "savehistory", "select.list", "sessionInfo", "setBreakpoint", "setInternet2", "setRepositories", "setStatusBar", "setTxtProgressBar", "setWinProgressBar", "setWindowTitle", "sethash", "shortPathName", "sort.bibentry", "stack", "stack.data.frame", "stack.default", "str", "str.Date", "str.POSIXt", "str.data.frame", "str.default", "str.hashtab", "strOptions", "strcapture", "subset.news_db", "summary.aspell", "summary.packageStatus", "summaryRprof", "suppressForeignCheck", "tail", "tail.array", "tail.default", "tail.ftable", "tail.function", "tail.matrix", "tar", "timestamp", "toBibtex", "toBibtex.bibentry", "toBibtex.person", "toLatex", "toLatex.sessionInfo", "transform.bibentry", "txtProgressBar", "type.convert", "type.convert.data.frame", "type.convert.default", "type.convert.list", "typhash", "undebugcall", "unique.bibentry", "unique.person", "unlist.relistable", "unstack", "unstack.data.frame", "unstack.default", "untar", "unzip", "update.packages", "upgrade", "upgrade.packageStatus", "url.show", "vi", "vignette", "warnErrList", "win.version", "winDialog", "winDialogString", "winMenuAdd", "winMenuAddItem", "winMenuDel", "winMenuDelItem", "winMenuItems", "winMenuNames", "winProgressBar", "write.csv", "write.csv2", "write.socket", "write.table", "writeClipboard", "xedit", "xemacs", "zip", "zip.unpack"],
|
|
30
|
-
}
|
|
31
|
+
},
|
|
32
|
+
generics: [".AtNames", ".DollarNames", "AIC", "Axis", "BIC", "NLSstAsymptotic", "NLSstClosestX", "NLSstLfAsymptote", "NLSstRtAsymptote", "SSD", "TukeyHSD", "add1", "aggregate", "alias", "all.equal", "anova", "ansari.test", "anyDuplicated", "aperm", "ar.burg", "ar.yw", "as.Date", "as.POSIXct", "as.POSIXlt", "as.array", "as.data.frame", "as.dendrogram", "as.dist", "as.expression", "as.function", "as.hclust", "as.list", "as.matrix", "as.null", "as.person", "as.personList", "as.raster", "as.single", "as.stepfun", "as.table", "as.ts", "barplot", "bartlett.test", "biplot", "boxplot", "by", "case.names", "cdplot", "chol", "chooseOpsMethod", "close", "coef", "coefficients", "conditionCall", "conditionMessage", "confint", "contour", "cooks.distance", "cophenetic", "cor.test", "cut", "cycle", "deltat", "density", "deriv", "deriv3", "determinant", "deviance", "df.residual", "dfbeta", "dfbetas", "diff", "diffinv", "drop1", "droplevels", "dummy.coef", "duplicated", "edit", "effects", "end", "estVar", "extractAIC", "family", "fitted", "fitted.values", "fligner.test", "flush", "format", "formula", "frequency", "friedman.test", "ftable", "fx", "getCall", "getDLLRegisteredRoutines", "getInitial", "glyphJust", "hatvalues", "head", "hist", "identify", "image", "influence", "is.na<-", "isSymmetric", "julian", "kappa", "kernapply", "knots", "kruskal.test", "ks.test", "labels", "lag", "levels", "lines", "logLik", "makeStandardGeneric", "makepredictcall", "mauchly.test", "mean", "median", "merge", "model.frame", "model.matrix", "model.tables", "monthplot", "months", "mood.test", "mosaicplot", "mtfrm", "na.action", "na.contiguous", "na.exclude", "na.fail", "na.omit", "nameOfClass", "napredict", "naprint", "naresid", "nobs", "open", "pacf", "pairs", "persp", "plot", "points", "ppr", "prcomp", "predict", "preplot", "pretty", "princomp", "print", "profile", "proj", "prompt", "qqnorm", "qr", "quade.test", "quantile", "quarters", "relevel", "relist", "reorder", "resid", "residuals", "rev", "row.names", "row.names<-", "rowsum", "rstandard", "rstudent", "scale", "screeplot", "se.contrast", "seek", "selfStart", "seq", "sequence", "setGeneric", "sigma", "simulate", "solve", "sort", "sort_by", "sortedXyData", "spineplot", "split", "split<-", "stack", "start", "str", "stripchart", "subset", "summary", "sunflowerplot", "t", "t.test", "tail", "terms", "text", "time", "toBibtex", "toLatex", "toString", "transform", "truncate", "tsSmooth", "tsdiag", "type.convert", "unique", "units", "units<-", "unstack", "update", "upgrade", "var.test", "variable.names", "vcov", "weekdays", "weighted.mean", "weights", "wilcox.test", "window", "window<-", "with", "within"]
|
|
31
33
|
};
|
|
32
34
|
//# sourceMappingURL=r-base-packages.generated.js.map
|
|
@@ -20,6 +20,8 @@ export interface BuiltInConstantDefinition<Value> extends BaseBuiltInDefinition
|
|
|
20
20
|
/** The constant value to define */
|
|
21
21
|
readonly value: Value;
|
|
22
22
|
}
|
|
23
|
+
/** The config a processor accepts, `unknown` for the ones taking none (they still carry {@link BuiltInFnInfo}). */
|
|
24
|
+
type ConfigOfProcessor<P extends keyof typeof BuiltInProcessorMapper> = ConfigOfBuiltInMappingName<P> extends undefined ? unknown : ConfigOfBuiltInMappingName<P>;
|
|
23
25
|
/**
|
|
24
26
|
* Define a built-in function (like `print` or `c`) and the processor to use.
|
|
25
27
|
* @template BuiltInProcessor - The processor to use for this function
|
|
@@ -27,7 +29,7 @@ export interface BuiltInConstantDefinition<Value> extends BaseBuiltInDefinition
|
|
|
27
29
|
export interface BuiltInFunctionDefinition<BuiltInProcessor extends keyof typeof BuiltInProcessorMapper> extends BaseBuiltInDefinition {
|
|
28
30
|
readonly type: 'function';
|
|
29
31
|
readonly processor: BuiltInProcessor;
|
|
30
|
-
readonly config?:
|
|
32
|
+
readonly config?: ConfigOfProcessor<BuiltInProcessor> & BuiltInFnInfo & {
|
|
31
33
|
libFn?: boolean;
|
|
32
34
|
};
|
|
33
35
|
/** the value solver to use when folding a call to this function to a constant, see {@link BuiltInEvalHandlerMapper} */
|
|
@@ -46,6 +48,11 @@ export interface BuiltInReplacementDefinition extends BaseBuiltInDefinition {
|
|
|
46
48
|
};
|
|
47
49
|
}
|
|
48
50
|
export type BuiltInDefinition<T extends keyof typeof BuiltInProcessorMapper = keyof typeof BuiltInProcessorMapper> = BuiltInConstantDefinition<unknown> | BuiltInFunctionDefinition<T> | BuiltInReplacementDefinition;
|
|
51
|
+
type AnyBuiltInFunctionDefinition = {
|
|
52
|
+
[P in keyof typeof BuiltInProcessorMapper]: BuiltInFunctionDefinition<P>;
|
|
53
|
+
}[keyof typeof BuiltInProcessorMapper];
|
|
54
|
+
/** Like {@link BuiltInDefinition} but one member per processor, so a config key of a foreign processor is rejected instead of silently allowed. */
|
|
55
|
+
export type AnyBuiltInDefinition = BuiltInConstantDefinition<unknown> | AnyBuiltInFunctionDefinition | BuiltInReplacementDefinition;
|
|
49
56
|
/**
|
|
50
57
|
* @see DefaultBuiltinConfig
|
|
51
58
|
*/
|
|
@@ -62,3 +69,4 @@ export declare function getDefaultBuiltInDefinitions(): BuiltIns;
|
|
|
62
69
|
* @param loadDefaults - whether to first add the {@link DefaultBuiltinConfig} before the given {@link definitions}
|
|
63
70
|
*/
|
|
64
71
|
export declare function getBuiltInDefinitions<Keys extends (keyof typeof BuiltInProcessorMapper)[]>(definitions: BuiltInDefinitions<Keys>, loadDefaults: boolean | undefined): BuiltIns;
|
|
72
|
+
export {};
|
|
@@ -22,6 +22,8 @@ export declare enum BuiltInProcName {
|
|
|
22
22
|
DefaultReadAllArgs = "builtin:d-ra",
|
|
23
23
|
/** for `eval` calls, see {@link processEvalCall} */
|
|
24
24
|
Eval = "builtin:eval",
|
|
25
|
+
/** for string templates carrying R code, see {@link processStringTemplate} */
|
|
26
|
+
StringTemplate = "builtin:string-template",
|
|
25
27
|
/** for expression lists, see {@link processExpressionList} */
|
|
26
28
|
ExpressionList = "builtin:el",
|
|
27
29
|
/** for `for` loops, see {@link processForLoop} */
|