@abaplint/cli 2.102.26 → 2.102.28

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/cli.js +9 -6
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -6953,7 +6953,8 @@ class SimpleTarget extends combi_1.Expression {
6953
6953
  const clas = (0, combi_1.seq)(_1.ClassName, (0, combi_1.tok)(tokens_1.StaticArrow), attribute_name_1.AttributeName);
6954
6954
  const start = (0, combi_1.altPrio)(cast, clas, _1.TargetField, _1.TargetFieldSymbol);
6955
6955
  const fields = (0, combi_1.seq)((0, combi_1.optPrio)(_1.FieldOffset), (0, combi_1.optPrio)(_1.FieldLength));
6956
- return (0, combi_1.seq)(start, something, fields);
6956
+ const optional = (0, combi_1.altPrio)(_1.TableBody, fields);
6957
+ return (0, combi_1.seq)(start, something, optional);
6957
6958
  }
6958
6959
  }
6959
6960
  exports.SimpleTarget = SimpleTarget;
@@ -7306,7 +7307,7 @@ exports.SQLCompareOperator = void 0;
7306
7307
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
7307
7308
  class SQLCompareOperator extends combi_1.Expression {
7308
7309
  getRunnable() {
7309
- const operator = (0, combi_1.altPrio)("=", "<>", "<", ">", "<=", ">=", "EQ", "NE", "GE", "GT", "LT", "LE", "><", "=>");
7310
+ const operator = (0, combi_1.altPrio)("=", "<>", "<", ">", "<=", ">=", "EQ", "NE", "GE", "GT", "LT", "LE", "><", "=>", "=<");
7310
7311
  return operator;
7311
7312
  }
7312
7313
  }
@@ -14004,7 +14005,9 @@ class MoveCorresponding {
14004
14005
  getMatcher() {
14005
14006
  const keeping = (0, combi_1.ver)(version_1.Version.v740sp05, "KEEPING TARGET LINES");
14006
14007
  const expanding = (0, combi_1.ver)(version_1.Version.v740sp05, "EXPANDING NESTED TABLES");
14007
- const move = (0, combi_1.seq)("MOVE-CORRESPONDING", (0, combi_1.optPrio)("EXACT"), expressions_1.Source, "TO", expressions_1.Target, (0, combi_1.optPrio)(expanding), (0, combi_1.optPrio)(keeping));
14008
+ const move = (0, combi_1.seq)("MOVE-CORRESPONDING", (0, combi_1.optPrio)("EXACT"), expressions_1.Source, "TO",
14009
+ // inline defintions not possible in this position,
14010
+ expressions_1.SimpleTarget, (0, combi_1.optPrio)(expanding), (0, combi_1.optPrio)(keeping));
14008
14011
  return move;
14009
14012
  }
14010
14013
  }
@@ -29908,7 +29911,7 @@ const basic_1 = __webpack_require__(/*! ../../types/basic */ "./node_modules/@ab
29908
29911
  class MoveCorresponding {
29909
29912
  runSyntax(node, scope, filename) {
29910
29913
  const s = node.findDirectExpression(Expressions.Source);
29911
- const t = node.findDirectExpression(Expressions.Target);
29914
+ const t = node.findDirectExpression(Expressions.SimpleTarget);
29912
29915
  if (s === undefined || t === undefined) {
29913
29916
  throw new Error("MoveCorresponding, source or target not found");
29914
29917
  }
@@ -48735,7 +48738,7 @@ class Registry {
48735
48738
  }
48736
48739
  static abaplintVersion() {
48737
48740
  // magic, see build script "version.sh"
48738
- return "2.102.26";
48741
+ return "2.102.28";
48739
48742
  }
48740
48743
  getDDICReferences() {
48741
48744
  return this.ddicReferences;
@@ -54582,7 +54585,7 @@ ${indentation}CREATE OBJECT ${uniqueName2} EXPORTING textid = ${uniqueName1}.\n`
54582
54585
  return undefined;
54583
54586
  }
54584
54587
  const sourceRef = (_a = high.findFirstExpression(Expressions.Source)) === null || _a === void 0 ? void 0 : _a.findFirstExpression(Expressions.CorrespondingBody);
54585
- if ((sourceRef === null || sourceRef === void 0 ? void 0 : sourceRef.getChildren().length) === 1) {
54588
+ if ((sourceRef === null || sourceRef === void 0 ? void 0 : sourceRef.getChildren().length) === 1 && target.concatTokens().toUpperCase().startsWith("DATA(") === false) {
54586
54589
  const code = `MOVE-CORRESPONDING ${sourceRef.concatTokens()} TO ${target.concatTokens()}`;
54587
54590
  const start = high.getFirstToken().getStart();
54588
54591
  const end = high.getLastToken().getStart();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.102.26",
3
+ "version": "2.102.28",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,12 +38,12 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.102.26",
41
+ "@abaplint/core": "^2.102.28",
42
42
  "@types/chai": "^4.3.5",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.2",
45
45
  "@types/mocha": "^10.0.1",
46
- "@types/node": "^20.5.2",
46
+ "@types/node": "^20.5.4",
47
47
  "@types/progress": "^2.0.5",
48
48
  "chai": "^4.3.7",
49
49
  "chalk": "^5.3.0",