@abaplint/cli 2.102.27 → 2.102.29

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 +11 -5
  2. package/package.json +6 -6
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;
@@ -8518,7 +8519,8 @@ class TypeTableKey extends combi_1.Expression {
8518
8519
  const defaultKey = "DEFAULT KEY";
8519
8520
  const emptyKey = (0, combi_1.ver)(version_1.Version.v740sp02, "EMPTY KEY");
8520
8521
  const components = (0, combi_1.plus)((0, combi_1.alt)((0, combi_1.seq)("WITH", (0, combi_1.failStar)()), _1.FieldSub));
8521
- const key = (0, combi_1.seq)("WITH", (0, combi_1.opt)(uniqueness), (0, combi_1.altPrio)(defaultKey, emptyKey, (0, combi_1.seq)((0, combi_1.opt)((0, combi_1.alt)("SORTED", "HASHED")), "KEY", (0, combi_1.alt)((0, combi_1.seq)(_1.Field, "COMPONENTS", components), components))), (0, combi_1.optPrio)("READ-ONLY"));
8522
+ const further = (0, combi_1.seq)((0, combi_1.alt)("WITHOUT", "WITH"), "FURTHER SECONDARY KEYS");
8523
+ const key = (0, combi_1.seq)("WITH", (0, combi_1.opt)(uniqueness), (0, combi_1.altPrio)(defaultKey, emptyKey, (0, combi_1.seq)((0, combi_1.opt)((0, combi_1.alt)("SORTED", "HASHED")), "KEY", (0, combi_1.alt)((0, combi_1.seq)(_1.Field, "COMPONENTS", components), components))), (0, combi_1.optPrio)(further), (0, combi_1.optPrio)("READ-ONLY"));
8522
8524
  return key;
8523
8525
  }
8524
8526
  }
@@ -16645,7 +16647,7 @@ class TypeMesh {
16645
16647
  const on = (0, combi_1.seq)("ON", expressions_1.NamespaceSimpleName, "=", expressions_1.NamespaceSimpleName, (0, combi_1.star)((0, combi_1.seq)("AND", expressions_1.NamespaceSimpleName, "=", expressions_1.NamespaceSimpleName)));
16646
16648
  const using = (0, combi_1.seq)("USING KEY", expressions_1.NamespaceSimpleName);
16647
16649
  const association = (0, combi_1.seq)("ASSOCIATION", expressions_1.NamespaceSimpleName, "TO", expressions_1.NamespaceSimpleName, (0, combi_1.plus)(on));
16648
- const ret = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("TYPES", expressions_1.NamespaceSimpleName, "TYPE", expressions_1.TypeName, (0, combi_1.plus)(association), (0, combi_1.opt)(using)));
16650
+ const ret = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("TYPES", expressions_1.NamespaceSimpleName, "TYPE", (0, combi_1.opt)("REF TO"), expressions_1.TypeName, (0, combi_1.plus)(association), (0, combi_1.opt)(using)));
16649
16651
  return ret;
16650
16652
  }
16651
16653
  }
@@ -30976,6 +30978,7 @@ const dynamic_1 = __webpack_require__(/*! ../expressions/dynamic */ "./node_modu
30976
30978
  const basic_1 = __webpack_require__(/*! ../../types/basic */ "./node_modules/@abaplint/core/build/src/abap/types/basic/index.js");
30977
30979
  class Sort {
30978
30980
  runSyntax(node, scope, filename) {
30981
+ var _a, _b;
30979
30982
  for (const s of node.findDirectExpressions(Expressions.Dynamic)) {
30980
30983
  new dynamic_1.Dynamic().runSyntax(s, scope, filename);
30981
30984
  }
@@ -30983,6 +30986,9 @@ class Sort {
30983
30986
  if (tnode) {
30984
30987
  const ttype = new target_1.Target().runSyntax(tnode, scope, filename);
30985
30988
  if (ttype instanceof basic_1.TableType) {
30989
+ if (((_b = (_a = ttype.getOptions()) === null || _a === void 0 ? void 0 : _a.primaryKey) === null || _b === void 0 ? void 0 : _b.type) === basic_1.TableAccessType.sorted) {
30990
+ throw new Error(`Sorted table, already sorted`);
30991
+ }
30986
30992
  const rowType = ttype.getRowType();
30987
30993
  if (!(rowType instanceof basic_1.VoidType)
30988
30994
  && !(rowType instanceof basic_1.UnknownType)
@@ -48737,7 +48743,7 @@ class Registry {
48737
48743
  }
48738
48744
  static abaplintVersion() {
48739
48745
  // magic, see build script "version.sh"
48740
- return "2.102.27";
48746
+ return "2.102.29";
48741
48747
  }
48742
48748
  getDDICReferences() {
48743
48749
  return this.ddicReferences;
@@ -54584,7 +54590,7 @@ ${indentation}CREATE OBJECT ${uniqueName2} EXPORTING textid = ${uniqueName1}.\n`
54584
54590
  return undefined;
54585
54591
  }
54586
54592
  const sourceRef = (_a = high.findFirstExpression(Expressions.Source)) === null || _a === void 0 ? void 0 : _a.findFirstExpression(Expressions.CorrespondingBody);
54587
- if ((sourceRef === null || sourceRef === void 0 ? void 0 : sourceRef.getChildren().length) === 1) {
54593
+ if ((sourceRef === null || sourceRef === void 0 ? void 0 : sourceRef.getChildren().length) === 1 && target.concatTokens().toUpperCase().startsWith("DATA(") === false) {
54588
54594
  const code = `MOVE-CORRESPONDING ${sourceRef.concatTokens()} TO ${target.concatTokens()}`;
54589
54595
  const start = high.getFirstToken().getStart();
54590
54596
  const end = high.getLastToken().getStart();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.102.27",
3
+ "version": "2.102.29",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,23 +38,23 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.102.27",
41
+ "@abaplint/core": "^2.102.29",
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.7",
47
47
  "@types/progress": "^2.0.5",
48
- "chai": "^4.3.7",
48
+ "chai": "^4.3.8",
49
49
  "chalk": "^5.3.0",
50
- "eslint": "^8.47.0",
50
+ "eslint": "^8.48.0",
51
51
  "glob": "^7.2.3",
52
52
  "json5": "^2.2.3",
53
53
  "memfs": "^4.2.1",
54
54
  "minimist": "^1.2.8",
55
55
  "mocha": "^10.2.0",
56
56
  "progress": "^2.0.3",
57
- "typescript": "^5.1.6",
57
+ "typescript": "^5.2.2",
58
58
  "webpack": "^5.88.2",
59
59
  "webpack-cli": "^5.1.4",
60
60
  "xml-js": "^1.6.11"