@abaplint/cli 2.112.7 → 2.112.9

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 +59 -7
  2. package/package.json +4 -4
package/build/cli.js CHANGED
@@ -6974,7 +6974,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
6974
6974
  class ParameterException extends combi_1.Expression {
6975
6975
  getRunnable() {
6976
6976
  const name = (0, combi_1.altPrio)("OTHERS", _1.ParameterName);
6977
- return (0, combi_1.seq)(name, "=", _1.SimpleName, (0, combi_1.optPrio)((0, combi_1.seq)("MESSAGE", _1.Target)));
6977
+ return (0, combi_1.seq)(name, "=", (0, combi_1.altPrio)(_1.Integer, _1.SimpleFieldChain), (0, combi_1.optPrio)((0, combi_1.seq)("MESSAGE", _1.Target)));
6978
6978
  }
6979
6979
  }
6980
6980
  exports.ParameterException = ParameterException;
@@ -23734,7 +23734,7 @@ class BasicTypes {
23734
23734
  const attr = token.getStr();
23735
23735
  const c = new _object_oriented_1.ObjectOriented(this.input.scope).searchConstantName(obj, attr);
23736
23736
  if (c instanceof class_constant_1.ClassConstant) {
23737
- this.input.scope.addReference(firstToken, obj, _reference_1.ReferenceType.ObjectOrientedReference, this.input.filename);
23737
+ this.input.scope.addReference(firstToken, obj, _reference_1.ReferenceType.ObjectOrientedReference, this.input.filename, { ooName: obj.getName() });
23738
23738
  this.input.scope.addReference(token, c, _reference_1.ReferenceType.DataReadReference, this.input.filename);
23739
23739
  const val = c.getValue();
23740
23740
  if (typeof val === "string") {
@@ -39665,6 +39665,9 @@ class CDSParser {
39665
39665
  if (res === undefined || !(res[0] instanceof nodes_1.ExpressionNode)) {
39666
39666
  res = combi_1.Combi.run(new Expressions.CDSDefineCustom(), tokens, version_1.defaultVersion);
39667
39667
  }
39668
+ if (res === undefined || !(res[0] instanceof nodes_1.ExpressionNode)) {
39669
+ res = combi_1.Combi.run(new Expressions.CDSExtendView(), tokens, version_1.defaultVersion);
39670
+ }
39668
39671
  if (res === undefined || !(res[0] instanceof nodes_1.ExpressionNode)) {
39669
39672
  return undefined;
39670
39673
  }
@@ -40135,6 +40138,31 @@ exports.CDSElement = CDSElement;
40135
40138
 
40136
40139
  /***/ }),
40137
40140
 
40141
+ /***/ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_extend_view.js":
40142
+ /*!**********************************************************************************!*\
40143
+ !*** ./node_modules/@abaplint/core/build/src/cds/expressions/cds_extend_view.js ***!
40144
+ \**********************************************************************************/
40145
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
40146
+
40147
+ "use strict";
40148
+
40149
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
40150
+ exports.CDSExtendView = void 0;
40151
+ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/cds/expressions/index.js");
40152
+ const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
40153
+ const cds_name_1 = __webpack_require__(/*! ./cds_name */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_name.js");
40154
+ class CDSExtendView extends combi_1.Expression {
40155
+ getRunnable() {
40156
+ const namedot = (0, combi_1.seq)(cds_name_1.CDSName, (0, combi_1.opt)((0, combi_1.seq)(".", cds_name_1.CDSName)), (0, combi_1.opt)(_1.CDSAs));
40157
+ const valueNested = (0, combi_1.seq)("{", namedot, (0, combi_1.star)((0, combi_1.seq)(",", namedot)), "}");
40158
+ return (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), (0, combi_1.str)("EXTEND VIEW"), (0, combi_1.opt)((0, combi_1.str)("ENTITY")), cds_name_1.CDSName, (0, combi_1.str)("WITH"), (0, combi_1.opt)(cds_name_1.CDSName), valueNested, (0, combi_1.opt)(";"));
40159
+ }
40160
+ }
40161
+ exports.CDSExtendView = CDSExtendView;
40162
+ //# sourceMappingURL=cds_extend_view.js.map
40163
+
40164
+ /***/ }),
40165
+
40138
40166
  /***/ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_function.js":
40139
40167
  /*!*******************************************************************************!*\
40140
40168
  !*** ./node_modules/@abaplint/core/build/src/cds/expressions/cds_function.js ***!
@@ -40203,6 +40231,28 @@ exports.CDSGroupBy = CDSGroupBy;
40203
40231
 
40204
40232
  /***/ }),
40205
40233
 
40234
+ /***/ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_having.js":
40235
+ /*!*****************************************************************************!*\
40236
+ !*** ./node_modules/@abaplint/core/build/src/cds/expressions/cds_having.js ***!
40237
+ \*****************************************************************************/
40238
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
40239
+
40240
+ "use strict";
40241
+
40242
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
40243
+ exports.CDSHaving = void 0;
40244
+ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/cds/expressions/index.js");
40245
+ const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
40246
+ class CDSHaving extends combi_1.Expression {
40247
+ getRunnable() {
40248
+ return (0, combi_1.seq)("HAVING", _1.CDSCondition);
40249
+ }
40250
+ }
40251
+ exports.CDSHaving = CDSHaving;
40252
+ //# sourceMappingURL=cds_having.js.map
40253
+
40254
+ /***/ }),
40255
+
40206
40256
  /***/ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_integer.js":
40207
40257
  /*!******************************************************************************!*\
40208
40258
  !*** ./node_modules/@abaplint/core/build/src/cds/expressions/cds_integer.js ***!
@@ -40381,7 +40431,7 @@ class CDSSelect extends combi_1.Expression {
40381
40431
  const fields = (0, combi_1.opt)((0, combi_1.seq)((0, combi_1.star)((0, combi_1.seq)(_1.CDSElement, ",")), _1.CDSElement));
40382
40432
  const distinct = (0, combi_1.str)("DISTINCT");
40383
40433
  const elements = (0, combi_1.seq)((0, combi_1.str)("{"), (0, combi_1.plus)(_1.CDSElement), (0, combi_1.star)((0, combi_1.seq)(",", _1.CDSElement)), (0, combi_1.str)("}"));
40384
- return (0, combi_1.seq)("SELECT", (0, combi_1.opt)(distinct), (0, combi_1.opt)(fields), "FROM", _1.CDSSource, (0, combi_1.opt)(_1.CDSParametersSelect), (0, combi_1.opt)(_1.CDSAs), (0, combi_1.star)(cds_join_1.CDSJoin), (0, combi_1.star)(_1.CDSComposition), (0, combi_1.star)(cds_association_1.CDSAssociation), (0, combi_1.star)(_1.CDSComposition), (0, combi_1.opt)(elements), (0, combi_1.opt)(_1.CDSGroupBy), (0, combi_1.opt)(_1.CDSWhere), (0, combi_1.opt)((0, combi_1.seq)("UNION", (0, combi_1.opt)("ALL"), CDSSelect)));
40434
+ return (0, combi_1.seq)("SELECT", (0, combi_1.opt)(distinct), (0, combi_1.opt)(fields), "FROM", _1.CDSSource, (0, combi_1.opt)(_1.CDSParametersSelect), (0, combi_1.opt)(_1.CDSAs), (0, combi_1.star)(cds_join_1.CDSJoin), (0, combi_1.star)(_1.CDSComposition), (0, combi_1.star)(cds_association_1.CDSAssociation), (0, combi_1.star)(_1.CDSComposition), (0, combi_1.opt)(elements), (0, combi_1.opt)(_1.CDSWhere), (0, combi_1.opt)(_1.CDSGroupBy), (0, combi_1.opt)(_1.CDSHaving), (0, combi_1.opt)((0, combi_1.seq)("UNION", (0, combi_1.opt)("ALL"), CDSSelect)));
40385
40435
  }
40386
40436
  }
40387
40437
  exports.CDSSelect = CDSSelect;
@@ -40543,14 +40593,16 @@ __exportStar(__webpack_require__(/*! ./cds_define_custom */ "./node_modules/@aba
40543
40593
  __exportStar(__webpack_require__(/*! ./cds_define_projection */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_define_projection.js"), exports);
40544
40594
  __exportStar(__webpack_require__(/*! ./cds_define_view */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_define_view.js"), exports);
40545
40595
  __exportStar(__webpack_require__(/*! ./cds_element */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_element.js"), exports);
40596
+ __exportStar(__webpack_require__(/*! ./cds_extend_view */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_extend_view.js"), exports);
40546
40597
  __exportStar(__webpack_require__(/*! ./cds_function */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_function.js"), exports);
40547
40598
  __exportStar(__webpack_require__(/*! ./cds_group_by */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_group_by.js"), exports);
40548
- __exportStar(__webpack_require__(/*! ./cds_provider_contract */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_provider_contract.js"), exports);
40599
+ __exportStar(__webpack_require__(/*! ./cds_having */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_having.js"), exports);
40549
40600
  __exportStar(__webpack_require__(/*! ./cds_integer */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_integer.js"), exports);
40550
40601
  __exportStar(__webpack_require__(/*! ./cds_join */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_join.js"), exports);
40551
40602
  __exportStar(__webpack_require__(/*! ./cds_name */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_name.js"), exports);
40552
40603
  __exportStar(__webpack_require__(/*! ./cds_parameters_select */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_parameters_select.js"), exports);
40553
40604
  __exportStar(__webpack_require__(/*! ./cds_parameters */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_parameters.js"), exports);
40605
+ __exportStar(__webpack_require__(/*! ./cds_provider_contract */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_provider_contract.js"), exports);
40554
40606
  __exportStar(__webpack_require__(/*! ./cds_relation */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_relation.js"), exports);
40555
40607
  __exportStar(__webpack_require__(/*! ./cds_select */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_select.js"), exports);
40556
40608
  __exportStar(__webpack_require__(/*! ./cds_source */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_source.js"), exports);
@@ -52331,7 +52383,7 @@ class Registry {
52331
52383
  }
52332
52384
  static abaplintVersion() {
52333
52385
  // magic, see build script "version.sh"
52334
- return "2.112.7";
52386
+ return "2.112.9";
52335
52387
  }
52336
52388
  getDDICReferences() {
52337
52389
  return this.ddicReferences;
@@ -55797,7 +55849,7 @@ class ClassicExceptionsOverlap extends _abap_rule_1.ABAPRule {
55797
55849
  for (const p of struc.findAllExpressions(Expressions.ParameterListExceptions)) {
55798
55850
  const set = new Set();
55799
55851
  for (const e of p.findAllExpressions(Expressions.ParameterException)) {
55800
- const text = (_a = e.findDirectExpression(Expressions.SimpleName)) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase();
55852
+ const text = (_a = e.findDirectExpression(Expressions.Integer)) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase();
55801
55853
  if (text === undefined) {
55802
55854
  continue;
55803
55855
  }
@@ -56421,7 +56473,7 @@ class CyclicOO {
56421
56473
  return {
56422
56474
  key: "cyclic_oo",
56423
56475
  title: "Cyclic OO",
56424
- shortDescription: `Finds cyclic OO references`,
56476
+ shortDescription: `Finds cyclic/circular OO references`,
56425
56477
  extendedInformation: `Runs for global INTF + CLAS objects
56426
56478
 
56427
56479
  Objects must be without syntax errors for this rule to take effect
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.112.7",
3
+ "version": "2.112.9",
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.112.7",
42
- "@types/chai": "^4.3.16",
41
+ "@abaplint/core": "^2.112.9",
42
+ "@types/chai": "^4.3.17",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.7",
46
- "@types/node": "^22.0.0",
46
+ "@types/node": "^22.0.2",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.5.0",
49
49
  "chalk": "^5.3.0",