@abaplint/cli 2.112.10 → 2.112.11

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 +91 -23
  2. package/package.json +3 -3
package/build/cli.js CHANGED
@@ -6366,7 +6366,7 @@ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/co
6366
6366
  class MessageClass extends combi_1.Expression {
6367
6367
  getRunnable() {
6368
6368
  // "&1" can be used for almost anything(field names, method names etc.) in macros
6369
- return (0, combi_1.regex)(/^>?(\/\w+\/)?\w+#?@?\/?!?&?>?\$?$/);
6369
+ return (0, combi_1.regex)(/^>?[\w\/]+#?@?\/?!?&?>?\$?$/);
6370
6370
  }
6371
6371
  }
6372
6372
  exports.MessageClass = MessageClass;
@@ -15417,7 +15417,7 @@ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@a
15417
15417
  class Ranges {
15418
15418
  getMatcher() {
15419
15419
  const occurs = (0, combi_1.seq)("OCCURS", expressions_1.Source);
15420
- const ret = (0, combi_1.seq)("RANGES", expressions_1.SimpleName, "FOR", expressions_1.FieldSub, (0, combi_1.opt)(occurs));
15420
+ const ret = (0, combi_1.seq)("RANGES", expressions_1.SimpleName, "FOR", expressions_1.SimpleFieldChain2, (0, combi_1.opt)(occurs));
15421
15421
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
15422
15422
  }
15423
15423
  }
@@ -18570,7 +18570,7 @@ const protected_section_1 = __webpack_require__(/*! ./protected_section */ "./no
18570
18570
  const public_section_1 = __webpack_require__(/*! ./public_section */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/public_section.js");
18571
18571
  class ClassDefinition {
18572
18572
  getMatcher() {
18573
- const body = (0, _combi_1.seq)((0, _combi_1.opt)((0, _combi_1.sta)(Statements.SetExtendedCheck)), (0, _combi_1.star)((0, _combi_1.sta)(Statements.TypePools)), (0, _combi_1.opt)((0, _combi_1.sub)(public_section_1.PublicSection)), (0, _combi_1.star)((0, _combi_1.sta)(Statements.Include)), (0, _combi_1.opt)((0, _combi_1.sub)(protected_section_1.ProtectedSection)), (0, _combi_1.opt)((0, _combi_1.sub)(private_section_1.PrivateSection)), (0, _combi_1.opt)((0, _combi_1.sta)(Statements.SetExtendedCheck)));
18573
+ const body = (0, _combi_1.seq)((0, _combi_1.opt)((0, _combi_1.sta)(Statements.SetExtendedCheck)), (0, _combi_1.star)((0, _combi_1.sta)(Statements.TypePools)), (0, _combi_1.opt)((0, _combi_1.sub)(public_section_1.PublicSection)), (0, _combi_1.opt)((0, _combi_1.sub)(protected_section_1.ProtectedSection)), (0, _combi_1.opt)((0, _combi_1.sub)(private_section_1.PrivateSection)), (0, _combi_1.opt)((0, _combi_1.sta)(Statements.SetExtendedCheck)));
18574
18574
  return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.ClassDefinition), body, (0, _combi_1.sta)(Statements.EndClass));
18575
18575
  }
18576
18576
  }
@@ -18998,7 +18998,7 @@ __exportStar(__webpack_require__(/*! ./private_section */ "./node_modules/@abapl
18998
18998
  __exportStar(__webpack_require__(/*! ./protected_section */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/protected_section.js"), exports);
18999
18999
  __exportStar(__webpack_require__(/*! ./provide */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/provide.js"), exports);
19000
19000
  __exportStar(__webpack_require__(/*! ./public_section */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/public_section.js"), exports);
19001
- __exportStar(__webpack_require__(/*! ./section_section */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/section_section.js"), exports);
19001
+ __exportStar(__webpack_require__(/*! ./section_contents */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/section_contents.js"), exports);
19002
19002
  __exportStar(__webpack_require__(/*! ./select */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/select.js"), exports);
19003
19003
  __exportStar(__webpack_require__(/*! ./statics */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/statics.js"), exports);
19004
19004
  __exportStar(__webpack_require__(/*! ./test_injection */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/test_injection.js"), exports);
@@ -19026,10 +19026,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
19026
19026
  exports.Interface = void 0;
19027
19027
  const Statements = __webpack_require__(/*! ../../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
19028
19028
  const _combi_1 = __webpack_require__(/*! ./_combi */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/_combi.js");
19029
- const section_section_1 = __webpack_require__(/*! ./section_section */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/section_section.js");
19029
+ const section_contents_1 = __webpack_require__(/*! ./section_contents */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/section_contents.js");
19030
19030
  class Interface {
19031
19031
  getMatcher() {
19032
- const intf = (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.Interface), (0, _combi_1.star)((0, _combi_1.sub)(section_section_1.SectionContents)), (0, _combi_1.sta)(Statements.EndInterface));
19032
+ const intf = (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.Interface), (0, _combi_1.star)((0, _combi_1.sub)(section_contents_1.SectionContents)), (0, _combi_1.sta)(Statements.EndInterface));
19033
19033
  return intf;
19034
19034
  }
19035
19035
  }
@@ -19216,10 +19216,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
19216
19216
  exports.PrivateSection = void 0;
19217
19217
  const Statements = __webpack_require__(/*! ../../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
19218
19218
  const _combi_1 = __webpack_require__(/*! ./_combi */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/_combi.js");
19219
- const section_section_1 = __webpack_require__(/*! ./section_section */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/section_section.js");
19219
+ const section_contents_1 = __webpack_require__(/*! ./section_contents */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/section_contents.js");
19220
19220
  class PrivateSection {
19221
19221
  getMatcher() {
19222
- return (0, _combi_1.seq)((0, _combi_1.sta)(Statements.Private), (0, _combi_1.opt)((0, _combi_1.sub)(section_section_1.SectionContents)));
19222
+ return (0, _combi_1.seq)((0, _combi_1.sta)(Statements.Private), (0, _combi_1.opt)((0, _combi_1.sub)(section_contents_1.SectionContents)));
19223
19223
  }
19224
19224
  }
19225
19225
  exports.PrivateSection = PrivateSection;
@@ -19239,10 +19239,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
19239
19239
  exports.ProtectedSection = void 0;
19240
19240
  const Statements = __webpack_require__(/*! ../../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
19241
19241
  const _combi_1 = __webpack_require__(/*! ./_combi */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/_combi.js");
19242
- const section_section_1 = __webpack_require__(/*! ./section_section */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/section_section.js");
19242
+ const section_contents_1 = __webpack_require__(/*! ./section_contents */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/section_contents.js");
19243
19243
  class ProtectedSection {
19244
19244
  getMatcher() {
19245
- return (0, _combi_1.seq)((0, _combi_1.sta)(Statements.Protected), (0, _combi_1.opt)((0, _combi_1.sub)(section_section_1.SectionContents)));
19245
+ return (0, _combi_1.seq)((0, _combi_1.sta)(Statements.Protected), (0, _combi_1.opt)((0, _combi_1.sub)(section_contents_1.SectionContents)));
19246
19246
  }
19247
19247
  }
19248
19248
  exports.ProtectedSection = ProtectedSection;
@@ -19285,10 +19285,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
19285
19285
  exports.PublicSection = void 0;
19286
19286
  const Statements = __webpack_require__(/*! ../../2_statements/statements */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/index.js");
19287
19287
  const _combi_1 = __webpack_require__(/*! ./_combi */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/_combi.js");
19288
- const section_section_1 = __webpack_require__(/*! ./section_section */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/section_section.js");
19288
+ const section_contents_1 = __webpack_require__(/*! ./section_contents */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/section_contents.js");
19289
19289
  class PublicSection {
19290
19290
  getMatcher() {
19291
- return (0, _combi_1.seq)((0, _combi_1.sta)(Statements.Public), (0, _combi_1.opt)((0, _combi_1.sub)(section_section_1.SectionContents)));
19291
+ return (0, _combi_1.seq)((0, _combi_1.sta)(Statements.Public), (0, _combi_1.opt)((0, _combi_1.sub)(section_contents_1.SectionContents)));
19292
19292
  }
19293
19293
  }
19294
19294
  exports.PublicSection = PublicSection;
@@ -19296,10 +19296,10 @@ exports.PublicSection = PublicSection;
19296
19296
 
19297
19297
  /***/ }),
19298
19298
 
19299
- /***/ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/section_section.js":
19300
- /*!***********************************************************************************************!*\
19301
- !*** ./node_modules/@abaplint/core/build/src/abap/3_structures/structures/section_section.js ***!
19302
- \***********************************************************************************************/
19299
+ /***/ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/section_contents.js":
19300
+ /*!************************************************************************************************!*\
19301
+ !*** ./node_modules/@abaplint/core/build/src/abap/3_structures/structures/section_contents.js ***!
19302
+ \************************************************************************************************/
19303
19303
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
19304
19304
 
19305
19305
  "use strict";
@@ -19316,11 +19316,11 @@ const data_1 = __webpack_require__(/*! ./data */ "./node_modules/@abaplint/core/
19316
19316
  const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/index.js");
19317
19317
  class SectionContents {
19318
19318
  getMatcher() {
19319
- return (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sta)(Statements.MethodDef), (0, _combi_1.sta)(Statements.InterfaceDef), (0, _combi_1.sta)(Statements.Data), (0, _combi_1.sta)(Statements.ClassData), (0, _combi_1.sta)(Statements.Events), (0, _combi_1.sta)(Statements.Constant), (0, _combi_1.sta)(Statements.Aliases), (0, _combi_1.sta)(Statements.TypePools), (0, _combi_1.sta)(Statements.InterfaceLoad), (0, _combi_1.sta)(Statements.ClassDefinitionLoad), (0, _combi_1.sub)(types_1.Types), (0, _combi_1.sub)(constants_1.Constants), (0, _combi_1.sub)(type_enum_1.TypeEnum), (0, _combi_1.sub)(_1.TypeMesh), (0, _combi_1.sub)(data_1.Data), (0, _combi_1.sub)(class_data_1.ClassData), (0, _combi_1.sta)(Statements.Type)));
19319
+ return (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sta)(Statements.MethodDef), (0, _combi_1.sta)(Statements.InterfaceDef), (0, _combi_1.sta)(Statements.Data), (0, _combi_1.sta)(Statements.ClassData), (0, _combi_1.sta)(Statements.Events), (0, _combi_1.sta)(Statements.Constant), (0, _combi_1.sta)(Statements.Aliases), (0, _combi_1.sta)(Statements.TypePools), (0, _combi_1.sta)(Statements.InterfaceLoad), (0, _combi_1.sta)(Statements.ClassDefinitionLoad), (0, _combi_1.sta)(Statements.Include), (0, _combi_1.sub)(types_1.Types), (0, _combi_1.sub)(constants_1.Constants), (0, _combi_1.sub)(type_enum_1.TypeEnum), (0, _combi_1.sub)(_1.TypeMesh), (0, _combi_1.sub)(data_1.Data), (0, _combi_1.sub)(class_data_1.ClassData), (0, _combi_1.sta)(Statements.Type)));
19320
19320
  }
19321
19321
  }
19322
19322
  exports.SectionContents = SectionContents;
19323
- //# sourceMappingURL=section_section.js.map
19323
+ //# sourceMappingURL=section_contents.js.map
19324
19324
 
19325
19325
  /***/ }),
19326
19326
 
@@ -27741,7 +27741,7 @@ class StringTemplate {
27741
27741
  && !(type instanceof basic_1.NumericGenericType)
27742
27742
  && !(type instanceof basic_1.NumericType)
27743
27743
  && !(type instanceof basic_1.AnyType)) {
27744
- const message = "Cannot apply ALPHA to this type";
27744
+ const message = `Cannot apply ALPHA to this type (${type.constructor.name})`;
27745
27745
  input.issues.push((0, _syntax_input_1.syntaxIssue)(input, format.getFirstToken(), message));
27746
27746
  return new basic_1.VoidType(_syntax_input_1.CheckSyntaxKey);
27747
27747
  }
@@ -31402,8 +31402,11 @@ class Loop {
31402
31402
  let rowType = undefined;
31403
31403
  const concat = node.concatTokens().toUpperCase();
31404
31404
  if (sourceType === undefined) {
31405
- const message = "No source type determined";
31406
- input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
31405
+ // if its a dynpro table control loop, then dont issue error
31406
+ if (concat !== "LOOP.") {
31407
+ const message = "No source type determined";
31408
+ input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
31409
+ }
31407
31410
  return;
31408
31411
  }
31409
31412
  else if (sourceType instanceof basic_1.UnknownType) {
@@ -32256,7 +32259,7 @@ class Ranges {
32256
32259
  runSyntax(node, input) {
32257
32260
  var _a;
32258
32261
  const nameToken = (_a = node.findFirstExpression(Expressions.SimpleName)) === null || _a === void 0 ? void 0 : _a.getFirstToken();
32259
- const typeExpression = node.findFirstExpression(Expressions.FieldSub);
32262
+ const typeExpression = node.findFirstExpression(Expressions.SimpleFieldChain2);
32260
32263
  if (typeExpression === undefined) {
32261
32264
  throw new assert_error_1.AssertError("Ranges, unexpected node");
32262
32265
  }
@@ -41104,6 +41107,7 @@ class DDIC {
41104
41107
  switch (text) {
41105
41108
  case "DEC": // 1 <= len <= 31
41106
41109
  case "D16F": // 1 <= len <= 31
41110
+ case "D16D":
41107
41111
  case "D34F": // 1 <= len <= 31
41108
41112
  case "DF16_DEC": // 1 <= len <= 31
41109
41113
  case "DF34_DEC": // 1 <= len <= 31
@@ -44762,6 +44766,68 @@ exports.UnknownObject = UnknownObject;
44762
44766
 
44763
44767
  /***/ }),
44764
44768
 
44769
+ /***/ "./node_modules/@abaplint/core/build/src/objects/abap_query_functional_area.js":
44770
+ /*!*************************************************************************************!*\
44771
+ !*** ./node_modules/@abaplint/core/build/src/objects/abap_query_functional_area.js ***!
44772
+ \*************************************************************************************/
44773
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
44774
+
44775
+ "use strict";
44776
+
44777
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
44778
+ exports.ABAPQueryFunctionalArea = void 0;
44779
+ const _abstract_object_1 = __webpack_require__(/*! ./_abstract_object */ "./node_modules/@abaplint/core/build/src/objects/_abstract_object.js");
44780
+ class ABAPQueryFunctionalArea extends _abstract_object_1.AbstractObject {
44781
+ getType() {
44782
+ return "AQSG";
44783
+ }
44784
+ getAllowedNaming() {
44785
+ return {
44786
+ maxLength: 60, // todo
44787
+ allowNamespace: true,
44788
+ };
44789
+ }
44790
+ getDescription() {
44791
+ // todo
44792
+ return undefined;
44793
+ }
44794
+ }
44795
+ exports.ABAPQueryFunctionalArea = ABAPQueryFunctionalArea;
44796
+ //# sourceMappingURL=abap_query_functional_area.js.map
44797
+
44798
+ /***/ }),
44799
+
44800
+ /***/ "./node_modules/@abaplint/core/build/src/objects/abap_query_query.js":
44801
+ /*!***************************************************************************!*\
44802
+ !*** ./node_modules/@abaplint/core/build/src/objects/abap_query_query.js ***!
44803
+ \***************************************************************************/
44804
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
44805
+
44806
+ "use strict";
44807
+
44808
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
44809
+ exports.ABAPQueryQuery = void 0;
44810
+ const _abstract_object_1 = __webpack_require__(/*! ./_abstract_object */ "./node_modules/@abaplint/core/build/src/objects/_abstract_object.js");
44811
+ class ABAPQueryQuery extends _abstract_object_1.AbstractObject {
44812
+ getType() {
44813
+ return "AQQU";
44814
+ }
44815
+ getAllowedNaming() {
44816
+ return {
44817
+ maxLength: 60, // todo
44818
+ allowNamespace: true,
44819
+ };
44820
+ }
44821
+ getDescription() {
44822
+ // todo
44823
+ return undefined;
44824
+ }
44825
+ }
44826
+ exports.ABAPQueryQuery = ABAPQueryQuery;
44827
+ //# sourceMappingURL=abap_query_query.js.map
44828
+
44829
+ /***/ }),
44830
+
44765
44831
  /***/ "./node_modules/@abaplint/core/build/src/objects/activation_variant.js":
44766
44832
  /*!*****************************************************************************!*\
44767
44833
  !*** ./node_modules/@abaplint/core/build/src/objects/activation_variant.js ***!
@@ -47869,6 +47935,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
47869
47935
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
47870
47936
  };
47871
47937
  Object.defineProperty(exports, "__esModule", ({ value: true }));
47938
+ __exportStar(__webpack_require__(/*! ./abap_query_functional_area */ "./node_modules/@abaplint/core/build/src/objects/abap_query_functional_area.js"), exports);
47939
+ __exportStar(__webpack_require__(/*! ./abap_query_query */ "./node_modules/@abaplint/core/build/src/objects/abap_query_query.js"), exports);
47872
47940
  __exportStar(__webpack_require__(/*! ./activation_variant */ "./node_modules/@abaplint/core/build/src/objects/activation_variant.js"), exports);
47873
47941
  __exportStar(__webpack_require__(/*! ./api_release_state */ "./node_modules/@abaplint/core/build/src/objects/api_release_state.js"), exports);
47874
47942
  __exportStar(__webpack_require__(/*! ./application_job_catalog_entry */ "./node_modules/@abaplint/core/build/src/objects/application_job_catalog_entry.js"), exports);
@@ -52400,7 +52468,7 @@ class Registry {
52400
52468
  }
52401
52469
  static abaplintVersion() {
52402
52470
  // magic, see build script "version.sh"
52403
- return "2.112.10";
52471
+ return "2.112.11";
52404
52472
  }
52405
52473
  getDDICReferences() {
52406
52474
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.112.10",
3
+ "version": "2.112.11",
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.10",
41
+ "@abaplint/core": "^2.112.11",
42
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.2",
46
+ "@types/node": "^22.1.0",
47
47
  "@types/progress": "^2.0.7",
48
48
  "chai": "^4.5.0",
49
49
  "chalk": "^5.3.0",