@abaplint/transpiler-cli 2.7.78 → 2.7.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/bundle.js +5 -4
  2. 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
- return (0, combi_1.seq)(start, something, fields);
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.27";
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();
@@ -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.78",
3
+ "version": "2.7.79",
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.78",
29
+ "@abaplint/transpiler": "^2.7.79",
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.3",
34
- "@abaplint/core": "^2.102.27",
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",