@abaplint/core 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.
@@ -15,7 +15,8 @@ class SimpleTarget extends combi_1.Expression {
15
15
  const clas = (0, combi_1.seq)(_1.ClassName, (0, combi_1.tok)(tokens_1.StaticArrow), attribute_name_1.AttributeName);
16
16
  const start = (0, combi_1.altPrio)(cast, clas, _1.TargetField, _1.TargetFieldSymbol);
17
17
  const fields = (0, combi_1.seq)((0, combi_1.optPrio)(_1.FieldOffset), (0, combi_1.optPrio)(_1.FieldLength));
18
- return (0, combi_1.seq)(start, something, fields);
18
+ const optional = (0, combi_1.altPrio)(_1.TableBody, fields);
19
+ return (0, combi_1.seq)(start, something, optional);
19
20
  }
20
21
  }
21
22
  exports.SimpleTarget = SimpleTarget;
@@ -4,7 +4,7 @@ exports.SQLCompareOperator = void 0;
4
4
  const combi_1 = require("../combi");
5
5
  class SQLCompareOperator extends combi_1.Expression {
6
6
  getRunnable() {
7
- const operator = (0, combi_1.altPrio)("=", "<>", "<", ">", "<=", ">=", "EQ", "NE", "GE", "GT", "LT", "LE", "><", "=>");
7
+ const operator = (0, combi_1.altPrio)("=", "<>", "<", ">", "<=", ">=", "EQ", "NE", "GE", "GT", "LT", "LE", "><", "=>", "=<");
8
8
  return operator;
9
9
  }
10
10
  }
@@ -8,7 +8,9 @@ class MoveCorresponding {
8
8
  getMatcher() {
9
9
  const keeping = (0, combi_1.ver)(version_1.Version.v740sp05, "KEEPING TARGET LINES");
10
10
  const expanding = (0, combi_1.ver)(version_1.Version.v740sp05, "EXPANDING NESTED TABLES");
11
- 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));
11
+ const move = (0, combi_1.seq)("MOVE-CORRESPONDING", (0, combi_1.optPrio)("EXACT"), expressions_1.Source, "TO",
12
+ // inline defintions not possible in this position,
13
+ expressions_1.SimpleTarget, (0, combi_1.optPrio)(expanding), (0, combi_1.optPrio)(keeping));
12
14
  return move;
13
15
  }
14
16
  }
@@ -9,7 +9,7 @@ const basic_1 = require("../../types/basic");
9
9
  class MoveCorresponding {
10
10
  runSyntax(node, scope, filename) {
11
11
  const s = node.findDirectExpression(Expressions.Source);
12
- const t = node.findDirectExpression(Expressions.Target);
12
+ const t = node.findDirectExpression(Expressions.SimpleTarget);
13
13
  if (s === undefined || t === undefined) {
14
14
  throw new Error("MoveCorresponding, source or target not found");
15
15
  }
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.102.26";
68
+ return "2.102.28";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
@@ -1236,7 +1236,7 @@ ${indentation}CREATE OBJECT ${uniqueName2} EXPORTING textid = ${uniqueName1}.\n`
1236
1236
  return undefined;
1237
1237
  }
1238
1238
  const sourceRef = (_a = high.findFirstExpression(Expressions.Source)) === null || _a === void 0 ? void 0 : _a.findFirstExpression(Expressions.CorrespondingBody);
1239
- if ((sourceRef === null || sourceRef === void 0 ? void 0 : sourceRef.getChildren().length) === 1) {
1239
+ if ((sourceRef === null || sourceRef === void 0 ? void 0 : sourceRef.getChildren().length) === 1 && target.concatTokens().toUpperCase().startsWith("DATA(") === false) {
1240
1240
  const code = `MOVE-CORRESPONDING ${sourceRef.concatTokens()} TO ${target.concatTokens()}`;
1241
1241
  const start = high.getFirstToken().getStart();
1242
1242
  const end = high.getLastToken().getStart();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.102.26",
3
+ "version": "2.102.28",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",
@@ -53,7 +53,7 @@
53
53
  "@microsoft/api-extractor": "^7.36.4",
54
54
  "@types/chai": "^4.3.5",
55
55
  "@types/mocha": "^10.0.1",
56
- "@types/node": "^20.5.2",
56
+ "@types/node": "^20.5.3",
57
57
  "chai": "^4.3.7",
58
58
  "eslint": "^8.47.0",
59
59
  "mocha": "^10.2.0",