@abaplint/cli 2.113.210 → 2.113.211

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 +22 -8
  2. package/package.json +2 -2
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
  }
@@ -24396,7 +24399,7 @@ class BasicTypes {
24396
24399
  return this.parseType(node, name);
24397
24400
  }
24398
24401
  parseType(node, qualifiedName) {
24399
- var _a, _b, _c, _d, _e, _f;
24402
+ var _a, _b, _c, _d, _e, _f, _g, _h;
24400
24403
  const typeName = node.findFirstExpression(Expressions.TypeName);
24401
24404
  let text = (_a = node.findFirstExpression(Expressions.Type)) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase();
24402
24405
  if (text === undefined) {
@@ -24534,6 +24537,17 @@ class BasicTypes {
24534
24537
  }
24535
24538
  }
24536
24539
  }
24540
+ if (text.includes(" WITH INDICATORS ")) {
24541
+ 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();
24542
+ if (componentName === undefined) {
24543
+ throw new Error("parseType, componentName expected");
24544
+ }
24545
+ if (found instanceof Types.StructureType) {
24546
+ const newComponents = found.getComponents();
24547
+ newComponents.push({ name: componentName, type: Types.VoidType.get("INDICATORStodo") });
24548
+ found = new Types.StructureType(newComponents, qualifiedName);
24549
+ }
24550
+ }
24537
24551
  return found;
24538
24552
  }
24539
24553
  /////////////////////
@@ -29963,7 +29977,7 @@ class Append {
29963
29977
  const fsTarget = node.findExpressionAfterToken("ASSIGNING");
29964
29978
  if (fsTarget && fsTarget.get() instanceof Expressions.FSTarget) {
29965
29979
  if (!(targetType instanceof basic_1.TableType) && !(targetType instanceof basic_1.VoidType)) {
29966
- const message = "APPEND to non table type";
29980
+ const message = "APPEND to non table type, " + (targetType === null || targetType === void 0 ? void 0 : targetType.constructor.name);
29967
29981
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
29968
29982
  return;
29969
29983
  }
@@ -29973,7 +29987,7 @@ class Append {
29973
29987
  const dataTarget = node.findExpressionAfterToken("INTO");
29974
29988
  if (dataTarget && node.concatTokens().toUpperCase().includes(" REFERENCE INTO DATA(")) {
29975
29989
  if (!(targetType instanceof basic_1.TableType) && !(targetType instanceof basic_1.VoidType)) {
29976
- const message = "APPEND to non table type";
29990
+ const message = "APPEND to non table type, " + (targetType === null || targetType === void 0 ? void 0 : targetType.constructor.name);
29977
29991
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
29978
29992
  return;
29979
29993
  }
@@ -54488,7 +54502,7 @@ class Registry {
54488
54502
  }
54489
54503
  static abaplintVersion() {
54490
54504
  // magic, see build script "version.sh"
54491
- return "2.113.210";
54505
+ return "2.113.211";
54492
54506
  }
54493
54507
  getDDICReferences() {
54494
54508
  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.211",
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.211",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",