@eagleoutice/flowr 2.13.13 → 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 +31 -28
- package/abstract-interpretation/data-frame/resolve-args.js +11 -12
- package/benchmark/calibration.d.ts +18 -0
- package/benchmark/calibration.js +63 -0
- package/benchmark/slicer.d.ts +19 -0
- package/benchmark/slicer.js +84 -1
- package/benchmark/stats/feature-counts.d.ts +6 -0
- package/benchmark/stats/feature-counts.js +61 -0
- package/benchmark/stats/print.js +20 -0
- package/benchmark/stats/sigdb-counts.d.ts +7 -0
- package/benchmark/stats/sigdb-counts.js +219 -0
- package/benchmark/stats/size-of.d.ts +6 -0
- package/benchmark/stats/size-of.js +8 -0
- package/benchmark/stats/stats.d.ts +79 -0
- package/benchmark/stats/stats.js +7 -1
- package/benchmark/stopwatch.d.ts +4 -0
- package/benchmark/stopwatch.js +12 -1
- package/benchmark/summarizer/data.d.ts +17 -1
- package/benchmark/summarizer/first-phase/input.js +5 -0
- package/benchmark/summarizer/first-phase/process.js +12 -2
- package/benchmark/summarizer/second-phase/graph.d.ts +24 -1
- package/benchmark/summarizer/second-phase/graph.js +249 -18
- package/benchmark/summarizer/second-phase/process.js +56 -0
- package/benchmark/summarizer/summarizer.js +1 -2
- package/cli/benchmark-app.d.ts +1 -0
- package/cli/benchmark-app.js +2 -1
- package/cli/benchmark-helper-app.d.ts +1 -0
- package/cli/benchmark-helper-app.js +12 -2
- package/cli/common/options.d.ts +10 -0
- package/cli/common/options.js +3 -1
- package/cli/common/scripts-info.d.ts +10 -0
- 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-builder.d.ts +30 -0
- package/control-flow/cfg-builder.js +79 -0
- package/control-flow/cfg-dead-code.js +5 -29
- package/control-flow/diff-cfg.js +2 -56
- package/control-flow/extract-cfg.js +17 -10
- 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/apply-kill.d.ts +3 -3
- package/dataflow/environments/apply-kill.js +60 -31
- 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/environments/reference-to-maybe.d.ts +5 -3
- package/dataflow/environments/reference-to-maybe.js +17 -52
- package/dataflow/environments/resolve-helper.d.ts +2 -1
- package/dataflow/environments/resolve-helper.js +2 -1
- 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/df-helper.d.ts +2 -1
- 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/info.d.ts +7 -1
- package/dataflow/info.js +36 -7
- 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-expression-list.js +33 -10
- package/dataflow/internal/process/functions/call/built-in/built-in-for-loop.js +4 -1
- 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-local.js +6 -2
- 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-repeat-loop.js +2 -1
- package/dataflow/internal/process/functions/call/built-in/built-in-replacement.js +7 -2
- 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 +9 -28
- 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-readme.js +5 -2
- package/documentation/doc-util/doc-issue.d.ts +2 -0
- package/documentation/doc-util/doc-issue.js +3 -1
- package/documentation/doc-util/doc-types.js +15 -9
- package/documentation/wiki-dataflow-graph.js +4 -0
- package/documentation/wiki-faq.js +6 -2
- package/documentation/wiki-onboarding.js +11 -1
- package/documentation/wiki-setup.js +2 -1
- 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 +9 -4
- 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/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +11 -9
- 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/slicing/static/slice-call.js +4 -4
- package/util/diff-graph.d.ts +13 -0
- package/util/diff-graph.js +64 -1
- package/util/files.js +9 -8
- package/util/node-version.d.ts +4 -0
- package/util/node-version.js +29 -0
- package/util/r-base-packages.d.ts +2 -0
- package/util/r-base-packages.js +3 -1
- package/util/version.js +1 -1
|
@@ -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
|
|
@@ -6,9 +6,9 @@ import type { ControlDependency, KillReference } from '../info';
|
|
|
6
6
|
import type { REnvironmentInformation } from './environment';
|
|
7
7
|
import type { IdentifierReference } from './identifier';
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* Accounts for the writes after a kill: a re-definition revives a `named` removal (dropping it), a conditional
|
|
10
|
+
* one only revives it in its branch, and a wholesale (`all`/`unknown`) removal stays but spares the names written
|
|
11
|
+
* after it.
|
|
12
12
|
*/
|
|
13
13
|
export declare function cancelRevivedKills(kills: readonly KillReference[], writes: readonly IdentifierReference[]): KillReference[];
|
|
14
14
|
/**
|
|
@@ -5,38 +5,64 @@ exports.applyKills = applyKills;
|
|
|
5
5
|
exports.makeKillsMaybe = makeKillsMaybe;
|
|
6
6
|
const info_1 = require("../info");
|
|
7
7
|
const identifier_1 = require("./identifier");
|
|
8
|
+
const reference_to_maybe_1 = require("./reference-to-maybe");
|
|
8
9
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* Accounts for the writes after a kill: a re-definition revives a `named` removal (dropping it), a conditional
|
|
11
|
+
* one only revives it in its branch, and a wholesale (`all`/`unknown`) removal stays but spares the names written
|
|
12
|
+
* after it.
|
|
12
13
|
*/
|
|
13
14
|
function cancelRevivedKills(kills, writes) {
|
|
14
15
|
const written = new Set();
|
|
16
|
+
const writtenMaybe = new Map();
|
|
15
17
|
for (const w of writes) {
|
|
16
|
-
if (w.name
|
|
17
|
-
|
|
18
|
+
if (w.name === undefined) {
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
const name = identifier_1.Identifier.getName(w.name);
|
|
22
|
+
written.add(name);
|
|
23
|
+
if (!(0, info_1.happensInEveryBranch)(w.cds)) {
|
|
24
|
+
const cds = writtenMaybe.get(name);
|
|
25
|
+
if (cds) {
|
|
26
|
+
cds.push(...w.cds);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
writtenMaybe.set(name, [...w.cds]);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
writtenMaybe.delete(name);
|
|
18
34
|
}
|
|
19
35
|
}
|
|
20
36
|
if (written.size === 0) {
|
|
21
37
|
return kills;
|
|
22
38
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
function mergeCds(base, toAdd) {
|
|
29
|
-
const result = base ? Array.from(base) : [];
|
|
30
|
-
for (const c of toAdd) {
|
|
31
|
-
if (!result.some(e => e.id === c.id && e.when === c.when)) {
|
|
32
|
-
result.push(c);
|
|
39
|
+
/* conditional writes that cover every branch together revive the name just as an unconditional one does */
|
|
40
|
+
for (const [name, cds] of writtenMaybe) {
|
|
41
|
+
if ((0, info_1.happensInEveryBranch)(cds)) {
|
|
42
|
+
writtenMaybe.delete(name);
|
|
33
43
|
}
|
|
34
44
|
}
|
|
35
|
-
|
|
45
|
+
const remaining = [];
|
|
46
|
+
for (const kill of kills) {
|
|
47
|
+
if (kill.kind === 'named') {
|
|
48
|
+
const name = kill.reference.name === undefined ? undefined : identifier_1.Identifier.getName(kill.reference.name);
|
|
49
|
+
const maybeCds = name === undefined ? undefined : writtenMaybe.get(name);
|
|
50
|
+
if (maybeCds !== undefined) {
|
|
51
|
+
/* the removal still stands wherever the conditional re-definition did not happen */
|
|
52
|
+
remaining.push({ kind: 'named', reference: { ...kill.reference, cds: (0, info_1.withCds)(kill.reference.cds, maybeCds.map(info_1.negateControlDependency)) } });
|
|
53
|
+
}
|
|
54
|
+
else if (name === undefined || !written.has(name)) {
|
|
55
|
+
remaining.push(kill);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
remaining.push({ ...kill, except: kill.except ? written.union(kill.except) : written });
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return remaining;
|
|
36
63
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return { ...def, cds: mergeCds(def.cds, cds) };
|
|
64
|
+
function isBuiltInDef(d) {
|
|
65
|
+
return d.type === identifier_1.ReferenceType.BuiltInFunction || d.type === identifier_1.ReferenceType.BuiltInConstant;
|
|
40
66
|
}
|
|
41
67
|
/** attaches `cds` to every user definition of `name` along the environment chain */
|
|
42
68
|
function weakenName(env, name, cds) {
|
|
@@ -46,32 +72,35 @@ function weakenName(env, name, cds) {
|
|
|
46
72
|
if (ns === undefined || current.n === ns) {
|
|
47
73
|
const defs = current.memory.get(plainName);
|
|
48
74
|
if (defs !== undefined && defs.some(d => !isBuiltInDef(d))) {
|
|
49
|
-
current.writableMemory.set(plainName, defs.map(d => isBuiltInDef(d) ? d :
|
|
75
|
+
current.writableMemory.set(plainName, defs.map(d => isBuiltInDef(d) ? d : (0, reference_to_maybe_1.withAppliedCds)(d, cds)));
|
|
50
76
|
current.cache?.delete(plainName);
|
|
51
77
|
}
|
|
52
78
|
}
|
|
53
79
|
current = current.parent;
|
|
54
80
|
}
|
|
55
81
|
}
|
|
56
|
-
/** attaches `cds` to every user definition in the current frame */
|
|
57
|
-
function weakenAll(env, cds) {
|
|
82
|
+
/** attaches `cds` to every user definition in the current frame, except the re-defined names */
|
|
83
|
+
function weakenAll(env, cds, except) {
|
|
58
84
|
if (env.builtInEnv) {
|
|
59
85
|
return;
|
|
60
86
|
}
|
|
61
87
|
for (const [key, defs] of env.memory) {
|
|
88
|
+
if (except?.has(key)) {
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
62
91
|
if (defs.some(d => !isBuiltInDef(d))) {
|
|
63
|
-
env.writableMemory.set(key, defs.map(d => isBuiltInDef(d) ? d :
|
|
92
|
+
env.writableMemory.set(key, defs.map(d => isBuiltInDef(d) ? d : (0, reference_to_maybe_1.withAppliedCds)(d, cds)));
|
|
64
93
|
}
|
|
65
94
|
}
|
|
66
95
|
env.cache?.clear();
|
|
67
96
|
}
|
|
68
|
-
/** removes every user definition from the current frame (e.g., `rm(list = ls())`) */
|
|
69
|
-
function removeAllInFrame(env) {
|
|
97
|
+
/** removes every user definition from the current frame (e.g., `rm(list = ls())`), except the re-defined names */
|
|
98
|
+
function removeAllInFrame(env, except) {
|
|
70
99
|
if (env.builtInEnv) {
|
|
71
100
|
return;
|
|
72
101
|
}
|
|
73
102
|
for (const [key, defs] of env.memory) {
|
|
74
|
-
if (defs.every(isBuiltInDef)) {
|
|
103
|
+
if (except?.has(key) || defs.every(isBuiltInDef)) {
|
|
75
104
|
continue;
|
|
76
105
|
}
|
|
77
106
|
const kept = defs.filter(isBuiltInDef);
|
|
@@ -124,14 +153,14 @@ function applyKills(env, kills) {
|
|
|
124
153
|
break;
|
|
125
154
|
case 'all':
|
|
126
155
|
if ((0, info_1.happensInEveryBranch)(kill.cds)) {
|
|
127
|
-
removeAllInFrame(current);
|
|
156
|
+
removeAllInFrame(current, kill.except);
|
|
128
157
|
}
|
|
129
158
|
else {
|
|
130
|
-
weakenAll(current, (kill.cds ?? []).map(info_1.negateControlDependency));
|
|
159
|
+
weakenAll(current, (kill.cds ?? []).map(info_1.negateControlDependency), kill.except);
|
|
131
160
|
}
|
|
132
161
|
break;
|
|
133
162
|
case 'unknown':
|
|
134
|
-
weakenAll(current, kill.cds ?? []);
|
|
163
|
+
weakenAll(current, kill.cds ?? [], kill.except);
|
|
135
164
|
break;
|
|
136
165
|
}
|
|
137
166
|
}
|
|
@@ -147,9 +176,9 @@ function makeKillsMaybe(kills, cds) {
|
|
|
147
176
|
}
|
|
148
177
|
return kills.map(k => {
|
|
149
178
|
if (k.kind === 'named') {
|
|
150
|
-
return { kind: 'named', reference: { ...k.reference, cds:
|
|
179
|
+
return { kind: 'named', reference: { ...k.reference, cds: (0, info_1.withCds)(k.reference.cds, cds) } };
|
|
151
180
|
}
|
|
152
|
-
return { ...k, cds:
|
|
181
|
+
return { ...k, cds: (0, info_1.withCds)(k.cds, cds) };
|
|
153
182
|
});
|
|
154
183
|
}
|
|
155
184
|
//# sourceMappingURL=apply-kill.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} */
|
|
@@ -26,6 +26,8 @@ var BuiltInProcName;
|
|
|
26
26
|
BuiltInProcName["DefaultReadAllArgs"] = "builtin:d-ra";
|
|
27
27
|
/** for `eval` calls, see {@link processEvalCall} */
|
|
28
28
|
BuiltInProcName["Eval"] = "builtin:eval";
|
|
29
|
+
/** for string templates carrying R code, see {@link processStringTemplate} */
|
|
30
|
+
BuiltInProcName["StringTemplate"] = "builtin:string-template";
|
|
29
31
|
/** for expression lists, see {@link processExpressionList} */
|
|
30
32
|
BuiltInProcName["ExpressionList"] = "builtin:el";
|
|
31
33
|
/** for `for` loops, see {@link processForLoop} */
|
|
@@ -168,6 +168,8 @@ export interface BuiltInFnInfo {
|
|
|
168
168
|
readonly sig?: FnSig;
|
|
169
169
|
/** bitfield of {@link CallProp} */
|
|
170
170
|
readonly props?: CallProps;
|
|
171
|
+
/** keep the environment on the call vertex, for a later pass to look names up in */
|
|
172
|
+
readonly keepEnvironment?: boolean;
|
|
171
173
|
}
|
|
172
174
|
/** A {@link FnSig} in the form the call processors use it, see {@link sigLayout}. */
|
|
173
175
|
export interface SigLayout {
|
|
@@ -189,6 +191,8 @@ declare function sigLayout(this: void, sig: FnSig): SigLayout;
|
|
|
189
191
|
declare function argProp(this: void, { props, rest }: SigLayout, index: number): ArgProps;
|
|
190
192
|
/** The positions of the first `count` arguments that carry any of `prop`. */
|
|
191
193
|
declare function argsWith(this: void, layout: SigLayout, count: number, prop: ArgProps): number[];
|
|
194
|
+
/** the callees that make the calling function itself a generic ({@link CallProp.Generic}) */
|
|
195
|
+
export declare const DispatchCallees: ReadonlySet<string>;
|
|
192
196
|
/**
|
|
193
197
|
* The part of a {@link BuiltInFnInfo} that the signature database already knows: the parameter names in order
|
|
194
198
|
* (`...` included) with the ones R always forces, plus the properties listed in {@link SigDbProps}. Everything
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FnSig = exports.PropagatedProps = exports.FileInputProps = exports.SigDbInferable = exports.InputProps = exports.ExclusiveCallProps = exports.ImpureProps = exports.CallProp = exports.ArgProp = void 0;
|
|
3
|
+
exports.DispatchCallees = exports.FnSig = exports.PropagatedProps = exports.FileInputProps = exports.SigDbInferable = exports.InputProps = exports.ExclusiveCallProps = exports.ImpureProps = exports.CallProp = exports.ArgProp = void 0;
|
|
4
4
|
exports.fnInfoFromSignature = fnInfoFromSignature;
|
|
5
5
|
/**
|
|
6
6
|
* What a single argument of a call is used for, as a bitmask.
|
|
@@ -205,7 +205,7 @@ const SigDbProps = {
|
|
|
205
205
|
's3-method': CallProp.Method
|
|
206
206
|
};
|
|
207
207
|
/** the callees that make the calling function itself a generic ({@link CallProp.Generic}) */
|
|
208
|
-
|
|
208
|
+
exports.DispatchCallees = new Set(['UseMethod', 'standardGeneric', 'S7_dispatch']);
|
|
209
209
|
/**
|
|
210
210
|
* The part of a {@link BuiltInFnInfo} that the signature database already knows: the parameter names in order
|
|
211
211
|
* (`...` included) with the ones R always forces, plus the properties listed in {@link SigDbProps}. Everything
|
|
@@ -218,7 +218,7 @@ function fnInfoFromSignature(fn) {
|
|
|
218
218
|
props |= SigDbProps[name] ?? 0;
|
|
219
219
|
}
|
|
220
220
|
/* a function whose own body dispatches is the generic, which no property of the database states */
|
|
221
|
-
if (fn.callees.some(c => DispatchCallees.has(c))) {
|
|
221
|
+
if (fn.callees.some(c => exports.DispatchCallees.has(c))) {
|
|
222
222
|
props |= CallProp.Generic;
|
|
223
223
|
}
|
|
224
224
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DataflowProcessorInformation } from '../processor';
|
|
2
2
|
import type { DataflowInformation, ExitPointType } from '../info';
|
|
3
|
-
import
|
|
3
|
+
import { NseArguments } from '../internal/process/functions/call/known-call-handling';
|
|
4
4
|
import { processAccess } from '../internal/process/functions/call/built-in/built-in-access';
|
|
5
5
|
import { processIfThenElse } from '../internal/process/functions/call/built-in/built-in-if-then-else';
|
|
6
6
|
import { processAssignment, processAssignmentLike, processDefineArgument } from '../internal/process/functions/call/built-in/built-in-assignment';
|
|
@@ -53,6 +53,7 @@ import { processAttach } from '../internal/process/functions/call/built-in/built
|
|
|
53
53
|
import { processWithEnv } from '../internal/process/functions/call/built-in/built-in-with';
|
|
54
54
|
import { processNamespaceAccess } from '../internal/process/functions/call/built-in/built-in-namespace-access';
|
|
55
55
|
import { processLoadCall } from '../internal/process/functions/call/built-in/built-in-load';
|
|
56
|
+
import { processStringTemplate } from '../internal/process/functions/call/built-in/built-in-string-template';
|
|
56
57
|
import { type BuiltInFnInfo } from './built-in-props';
|
|
57
58
|
export type BuiltInIdentifierProcessor = <OtherInfo>(name: RSymbol<OtherInfo & ParentInformation>, args: readonly PotentiallyEmptyRArgument<OtherInfo & ParentInformation>[], rootId: NodeId, data: DataflowProcessorInformation<OtherInfo & ParentInformation>) => DataflowInformation;
|
|
58
59
|
export type BuiltInIdentifierProcessorWithConfig<Config> = <OtherInfo>(name: RSymbol<OtherInfo & ParentInformation>, args: readonly PotentiallyEmptyRArgument<OtherInfo & ParentInformation>[], rootId: NodeId, data: DataflowProcessorInformation<OtherInfo & ParentInformation>, config: Config) => DataflowInformation;
|
|
@@ -60,7 +61,7 @@ export interface BuiltInIdentifierDefinition extends IdentifierReference {
|
|
|
60
61
|
type: ReferenceType.BuiltInFunction;
|
|
61
62
|
definedAt: BuiltIn;
|
|
62
63
|
processor: BuiltInIdentifierProcessor;
|
|
63
|
-
config?: ConfigOfBuiltInMappingName<keyof typeof BuiltInProcessorMapper> & {
|
|
64
|
+
config?: ConfigOfBuiltInMappingName<keyof typeof BuiltInProcessorMapper> & BuiltInFnInfo & {
|
|
64
65
|
libFn?: boolean;
|
|
65
66
|
};
|
|
66
67
|
/** folds a call to this function to a constant, see {@link BuiltInEvalHandlerMapper} */
|
|
@@ -111,6 +112,7 @@ export declare const BuiltInProcessorMapper: {
|
|
|
111
112
|
readonly "builtin:define-arg": typeof processDefineArgument;
|
|
112
113
|
readonly "builtin:d": typeof defaultBuiltInProcessor;
|
|
113
114
|
readonly "builtin:d-ra": typeof defaultBuiltInProcessorReadallArgs;
|
|
115
|
+
readonly "builtin:string-template": typeof processStringTemplate;
|
|
114
116
|
readonly "builtin:eval": typeof processEvalCall;
|
|
115
117
|
readonly "builtin:el": typeof processExpressionList;
|
|
116
118
|
readonly "builtin:fl": typeof processForLoop;
|