@abaplint/cli 2.113.210 → 2.113.212

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 +31 -8
  2. package/package.json +4 -4
package/build/cli.js CHANGED
@@ -9462,13 +9462,14 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
9462
9462
  exports.Type = void 0;
9463
9463
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
9464
9464
  const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
9465
+ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
9465
9466
  class Type extends combi_1.Expression {
9466
9467
  getRunnable() {
9467
- const indicators = (0, combi_1.seq)("WITH INDICATORS", _1.ComponentName, "TYPE", _1.TypeName);
9468
+ const indicators = (0, combi_1.seq)("WITH INDICATORS", _1.ComponentName, (0, combi_1.optPrio)((0, combi_1.seq)("TYPE", _1.TypeName)));
9468
9469
  const typeType = (0, combi_1.seq)(_1.TypeName, (0, combi_1.optPrio)(_1.Default));
9469
9470
  const like = (0, combi_1.altPrio)((0, combi_1.seq)("LINE OF", _1.FieldChain), (0, combi_1.seq)("REF TO", _1.FieldChain), _1.FieldChain);
9470
9471
  const type = (0, combi_1.altPrio)((0, combi_1.seq)("LINE OF", typeType), (0, combi_1.seq)("REF TO", typeType), (0, combi_1.seq)(typeType, (0, combi_1.optPrio)(_1.LOBHandle)));
9471
- const ret = (0, combi_1.seq)((0, combi_1.altPrio)((0, combi_1.seq)("LIKE", like), (0, combi_1.seq)("TYPE", type)), (0, combi_1.optPrio)(indicators));
9472
+ const ret = (0, combi_1.seq)((0, combi_1.altPrio)((0, combi_1.seq)("LIKE", like), (0, combi_1.seq)("TYPE", type)), (0, combi_1.optPrio)((0, combi_1.ver)(version_1.Version.v755, indicators)));
9472
9473
  return ret;
9473
9474
  }
9474
9475
  }
@@ -11877,6 +11878,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
11877
11878
  exports.CreateObject = void 0;
11878
11879
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
11879
11880
  const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
11881
+ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
11880
11882
  class CreateObject {
11881
11883
  getMatcher() {
11882
11884
  const exporting = (0, combi_1.seq)("EXPORTING", expressions_1.ParameterListS);
@@ -11885,7 +11887,7 @@ class CreateObject {
11885
11887
  const etable = (0, combi_1.seq)("EXCEPTION-TABLE", expressions_1.Source);
11886
11888
  const area = (0, combi_1.seq)("AREA HANDLE", expressions_1.Source);
11887
11889
  const type = (0, combi_1.seq)("TYPE", (0, combi_1.altPrio)(expressions_1.ClassName, expressions_1.Dynamic));
11888
- const ret = (0, combi_1.seq)("CREATE OBJECT", expressions_1.Target, (0, combi_1.optPrio)((0, combi_1.per)(type, area)), (0, combi_1.optPrio)((0, combi_1.altPrio)(exporting, ptable)), (0, combi_1.optPrio)((0, combi_1.altPrio)(exceptions, etable)));
11890
+ const ret = (0, combi_1.seq)("CREATE OBJECT", expressions_1.Target, (0, combi_1.optPrio)((0, combi_1.per)(type, (0, combi_1.verNot)(version_1.Version.Cloud, area))), (0, combi_1.optPrio)((0, combi_1.altPrio)(exporting, ptable)), (0, combi_1.optPrio)((0, combi_1.altPrio)(exceptions, etable)));
11889
11891
  return ret;
11890
11892
  }
11891
11893
  }
@@ -18367,12 +18369,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
18367
18369
  exports.UpdateDatabase = void 0;
18368
18370
  const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
18369
18371
  const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
18372
+ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
18370
18373
  class UpdateDatabase {
18371
18374
  getMatcher() {
18372
18375
  const parameters = (0, combi_1.seq)(expressions_1.SQLFieldAndValue, (0, combi_1.star)((0, combi_1.seq)((0, combi_1.opt)(","), expressions_1.SQLFieldAndValue)));
18373
18376
  const set = (0, combi_1.seq)("SET", (0, combi_1.alt)(parameters, expressions_1.Dynamic), (0, combi_1.opt)((0, combi_1.seq)("WHERE", expressions_1.SQLCond)));
18374
18377
  const indicators = (0, combi_1.seq)("INDICATORS SET STRUCTURE", expressions_1.ComponentName);
18375
- const fromTable = (0, combi_1.seq)("FROM", (0, combi_1.opt)("TABLE"), expressions_1.SQLSource, (0, combi_1.opt)(indicators));
18378
+ const fromTable = (0, combi_1.seq)("FROM", (0, combi_1.opt)("TABLE"), expressions_1.SQLSource, (0, combi_1.opt)((0, combi_1.ver)(version_1.Version.v755, indicators)));
18376
18379
  const ret = (0, combi_1.seq)("UPDATE", expressions_1.DatabaseTable, (0, combi_1.opt)(expressions_1.SQLClient), (0, combi_1.opt)(expressions_1.DatabaseConnection), (0, combi_1.opt)((0, combi_1.alt)(fromTable, set)));
18377
18380
  return ret;
18378
18381
  }
@@ -22914,6 +22917,15 @@ class ObjectOriented {
22914
22917
  if (search) {
22915
22918
  return search;
22916
22919
  }
22920
+ for (const a of def.getAliases()) {
22921
+ if (a.getName().toUpperCase() === name.toUpperCase()) {
22922
+ const comp = a.getComponent();
22923
+ const res = this.searchTypeName(this.scope.findObjectDefinition(comp.split("~")[0]), comp.split("~")[1]);
22924
+ if (res) {
22925
+ return res;
22926
+ }
22927
+ }
22928
+ }
22917
22929
  if (name.includes("~")) {
22918
22930
  const interfaceName = name.split("~")[0];
22919
22931
  if (def.getImplementing().some((a) => a.name.toUpperCase() === interfaceName.toUpperCase())) {
@@ -24396,7 +24408,7 @@ class BasicTypes {
24396
24408
  return this.parseType(node, name);
24397
24409
  }
24398
24410
  parseType(node, qualifiedName) {
24399
- var _a, _b, _c, _d, _e, _f;
24411
+ var _a, _b, _c, _d, _e, _f, _g, _h;
24400
24412
  const typeName = node.findFirstExpression(Expressions.TypeName);
24401
24413
  let text = (_a = node.findFirstExpression(Expressions.Type)) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase();
24402
24414
  if (text === undefined) {
@@ -24534,6 +24546,17 @@ class BasicTypes {
24534
24546
  }
24535
24547
  }
24536
24548
  }
24549
+ if (text.includes(" WITH INDICATORS ")) {
24550
+ const componentName = (_h = (_g = node.findFirstExpression(Expressions.Type)) === null || _g === void 0 ? void 0 : _g.findDirectExpression(Expressions.ComponentName)) === null || _h === void 0 ? void 0 : _h.concatTokens().toUpperCase();
24551
+ if (componentName === undefined) {
24552
+ throw new Error("parseType, componentName expected");
24553
+ }
24554
+ if (found instanceof Types.StructureType) {
24555
+ const newComponents = found.getComponents();
24556
+ newComponents.push({ name: componentName, type: Types.VoidType.get("INDICATORStodo") });
24557
+ found = new Types.StructureType(newComponents, qualifiedName);
24558
+ }
24559
+ }
24537
24560
  return found;
24538
24561
  }
24539
24562
  /////////////////////
@@ -29963,7 +29986,7 @@ class Append {
29963
29986
  const fsTarget = node.findExpressionAfterToken("ASSIGNING");
29964
29987
  if (fsTarget && fsTarget.get() instanceof Expressions.FSTarget) {
29965
29988
  if (!(targetType instanceof basic_1.TableType) && !(targetType instanceof basic_1.VoidType)) {
29966
- const message = "APPEND to non table type";
29989
+ const message = "APPEND to non table type, " + (targetType === null || targetType === void 0 ? void 0 : targetType.constructor.name);
29967
29990
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
29968
29991
  return;
29969
29992
  }
@@ -29973,7 +29996,7 @@ class Append {
29973
29996
  const dataTarget = node.findExpressionAfterToken("INTO");
29974
29997
  if (dataTarget && node.concatTokens().toUpperCase().includes(" REFERENCE INTO DATA(")) {
29975
29998
  if (!(targetType instanceof basic_1.TableType) && !(targetType instanceof basic_1.VoidType)) {
29976
- const message = "APPEND to non table type";
29999
+ const message = "APPEND to non table type, " + (targetType === null || targetType === void 0 ? void 0 : targetType.constructor.name);
29977
30000
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
29978
30001
  return;
29979
30002
  }
@@ -54488,7 +54511,7 @@ class Registry {
54488
54511
  }
54489
54512
  static abaplintVersion() {
54490
54513
  // magic, see build script "version.sh"
54491
- return "2.113.210";
54514
+ return "2.113.212";
54492
54515
  }
54493
54516
  getDDICReferences() {
54494
54517
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.113.210",
3
+ "version": "2.113.212",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.113.210",
41
+ "@abaplint/core": "^2.113.212",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",
@@ -47,10 +47,10 @@
47
47
  "chai": "^4.5.0",
48
48
  "p-limit": "^3.1.0",
49
49
  "chalk": "^5.6.2",
50
- "eslint": "^9.35.0",
50
+ "eslint": "^9.36.0",
51
51
  "glob": "^11.0.3",
52
52
  "json5": "^2.2.3",
53
- "memfs": "^4.39.0",
53
+ "memfs": "^4.46.1",
54
54
  "minimist": "^1.2.8",
55
55
  "mocha": "^11.7.2",
56
56
  "progress": "^2.0.3",