@abaplint/transpiler-cli 2.7.78 → 2.7.80
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/build/bundle.js +7 -6
- package/package.json +4 -4
package/build/bundle.js
CHANGED
|
@@ -6007,7 +6007,8 @@ class SimpleTarget extends combi_1.Expression {
|
|
|
6007
6007
|
const clas = (0, combi_1.seq)(_1.ClassName, (0, combi_1.tok)(tokens_1.StaticArrow), attribute_name_1.AttributeName);
|
|
6008
6008
|
const start = (0, combi_1.altPrio)(cast, clas, _1.TargetField, _1.TargetFieldSymbol);
|
|
6009
6009
|
const fields = (0, combi_1.seq)((0, combi_1.optPrio)(_1.FieldOffset), (0, combi_1.optPrio)(_1.FieldLength));
|
|
6010
|
-
|
|
6010
|
+
const optional = (0, combi_1.altPrio)(_1.TableBody, fields);
|
|
6011
|
+
return (0, combi_1.seq)(start, something, optional);
|
|
6011
6012
|
}
|
|
6012
6013
|
}
|
|
6013
6014
|
exports.SimpleTarget = SimpleTarget;
|
|
@@ -47791,7 +47792,7 @@ class Registry {
|
|
|
47791
47792
|
}
|
|
47792
47793
|
static abaplintVersion() {
|
|
47793
47794
|
// magic, see build script "version.sh"
|
|
47794
|
-
return "2.102.
|
|
47795
|
+
return "2.102.28";
|
|
47795
47796
|
}
|
|
47796
47797
|
getDDICReferences() {
|
|
47797
47798
|
return this.ddicReferences;
|
|
@@ -53638,7 +53639,7 @@ ${indentation}CREATE OBJECT ${uniqueName2} EXPORTING textid = ${uniqueName1}.\n`
|
|
|
53638
53639
|
return undefined;
|
|
53639
53640
|
}
|
|
53640
53641
|
const sourceRef = (_a = high.findFirstExpression(Expressions.Source)) === null || _a === void 0 ? void 0 : _a.findFirstExpression(Expressions.CorrespondingBody);
|
|
53641
|
-
if ((sourceRef === null || sourceRef === void 0 ? void 0 : sourceRef.getChildren().length) === 1) {
|
|
53642
|
+
if ((sourceRef === null || sourceRef === void 0 ? void 0 : sourceRef.getChildren().length) === 1 && target.concatTokens().toUpperCase().startsWith("DATA(") === false) {
|
|
53642
53643
|
const code = `MOVE-CORRESPONDING ${sourceRef.concatTokens()} TO ${target.concatTokens()}`;
|
|
53643
53644
|
const start = high.getFirstToken().getStart();
|
|
53644
53645
|
const end = high.getLastToken().getStart();
|
|
@@ -70184,11 +70185,11 @@ class CompareTranspiler {
|
|
|
70184
70185
|
if (concat.endsWith(" IS REQUESTED")) {
|
|
70185
70186
|
const field = concat.replace(" IS REQUESTED", "").toLowerCase();
|
|
70186
70187
|
// yea, for function modules the naming is revereed, using "importing"
|
|
70187
|
-
return new chunk_1.Chunk().appendString(pre + "INPUT && (INPUT." + field + " || INPUT.importing
|
|
70188
|
+
return new chunk_1.Chunk().appendString(pre + "INPUT && (INPUT." + field + " || INPUT.importing?." + field + ")");
|
|
70188
70189
|
}
|
|
70189
70190
|
else if (concat.endsWith(" IS NOT REQUESTED")) {
|
|
70190
70191
|
const field = concat.replace(" IS NOT REQUESTED", "").toLowerCase();
|
|
70191
|
-
return new chunk_1.Chunk().appendString(pre + "INPUT && INPUT." + field + " === undefined && INPUT.importing
|
|
70192
|
+
return new chunk_1.Chunk().appendString(pre + "INPUT && INPUT." + field + " === undefined && INPUT.importing?." + field + " === undefined");
|
|
70192
70193
|
}
|
|
70193
70194
|
if (concat.startsWith("NOT ") || concat.includes(" IS NOT INSTANCE OF ")) {
|
|
70194
70195
|
const cname = (_a = node.findDirectExpression(core_1.Expressions.ClassName)) === null || _a === void 0 ? void 0 : _a.concatTokens();
|
|
@@ -78109,7 +78110,7 @@ class SelectTranspiler {
|
|
|
78109
78110
|
for await (const ${unique} of abap.statements.loop(${faeTranspiled})) {
|
|
78110
78111
|
await abap.statements.select(${target}, {select: "${select.trim()}"${extra}}, {appending: true});
|
|
78111
78112
|
}
|
|
78112
|
-
if (!(${target} instanceof abap.types.HashedTable)) {
|
|
78113
|
+
if (!(${target} instanceof abap.types.HashedTable) && ${target}.getOptions()?.primaryKey?.type !== "SORTED") {
|
|
78113
78114
|
abap.statements.sort(${target}, {by: ${by}.map(k => { return {component: k}; })});
|
|
78114
78115
|
await abap.statements.deleteInternal(${target}, {adjacent: true, by: ${by}});
|
|
78115
78116
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.80",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"author": "abaplint",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@abaplint/transpiler": "^2.7.
|
|
29
|
+
"@abaplint/transpiler": "^2.7.80",
|
|
30
30
|
"@types/glob": "^7.2.0",
|
|
31
31
|
"glob": "=7.2.0",
|
|
32
32
|
"@types/progress": "^2.0.5",
|
|
33
|
-
"@types/node": "^20.5.
|
|
34
|
-
"@abaplint/core": "^2.102.
|
|
33
|
+
"@types/node": "^20.5.4",
|
|
34
|
+
"@abaplint/core": "^2.102.28",
|
|
35
35
|
"progress": "^2.0.3",
|
|
36
36
|
"webpack": "^5.88.2",
|
|
37
37
|
"webpack-cli": "^5.1.4",
|