@abaplint/cli 2.115.7 → 2.115.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 +52 -5
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -13339,14 +13339,16 @@ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@a
13339
13339
  const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules/@abaplint/core/build/src/abap/1_lexer/tokens/index.js");
13340
13340
  class Field {
13341
13341
  getMatcher() {
13342
- const module = (0, combi_1.seq)("MODULE", expressions_1.FormName, (0, combi_1.opt)((0, combi_1.alt)("ON INPUT", "ON REQUEST", "ON CHAIN-REQUEST", "AT CURSOR-SELECTION")));
13342
+ const moduleOptions = (0, combi_1.alt)("ON INPUT", "ON REQUEST", "ON CHAIN-REQUEST", "ON CHAIN-INPUT", "AT CURSOR-SELECTION");
13343
+ const module = (0, combi_1.seq)("MODULE", expressions_1.FormName, (0, combi_1.opt)(moduleOptions));
13344
+ const moduleStrange = (0, combi_1.seq)(moduleOptions, "MODULE", expressions_1.FormName);
13343
13345
  const values = (0, combi_1.seq)("VALUES", (0, combi_1.tok)(tokens_1.WParenLeft), "BETWEEN", expressions_1.Constant, "AND", expressions_1.Constant, (0, combi_1.tok)(tokens_1.ParenRightW));
13344
- const wit = (0, combi_1.seq)("WITH", expressions_1.FieldChain);
13346
+ const wit = (0, combi_1.seq)("WITH", (0, combi_1.altPrio)(expressions_1.FieldChain, expressions_1.Constant));
13345
13347
  const cond = (0, combi_1.seq)(expressions_1.FieldChain, "=", expressions_1.FieldChain);
13346
13348
  const where = (0, combi_1.seq)(cond, (0, combi_1.starPrio)((0, combi_1.seq)("AND", cond)));
13347
13349
  const into = (0, combi_1.seq)("INTO", expressions_1.FieldChain);
13348
13350
  const select = (0, combi_1.seq)("SELECT * FROM", expressions_1.FieldChain, "WHERE", where, (0, combi_1.opt)(into), (0, combi_1.opt)("WHENEVER NOT FOUND SEND ERRORMESSAGE"));
13349
- const ret = (0, combi_1.seq)("FIELD", expressions_1.FieldChain, (0, combi_1.opt)((0, combi_1.altPrio)(module, values, wit, select)));
13351
+ const ret = (0, combi_1.seq)("FIELD", expressions_1.FieldChain, (0, combi_1.opt)((0, combi_1.altPrio)(module, moduleStrange, values, wit, select)));
13350
13352
  return (0, combi_1.verNot)(version_1.Version.Cloud, ret);
13351
13353
  }
13352
13354
  }
@@ -19500,7 +19502,7 @@ const types_1 = __webpack_require__(/*! ./types */ "./node_modules/@abaplint/cor
19500
19502
  const define_1 = __webpack_require__(/*! ./define */ "./node_modules/@abaplint/core/build/src/abap/3_structures/structures/define.js");
19501
19503
  class Data {
19502
19504
  getMatcher() {
19503
- return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.DataBegin), (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sta)(Statements.Data), (0, _combi_1.sub)(Data), (0, _combi_1.sta)(Statements.Include), (0, _combi_1.sta)(Statements.Ranges), (0, _combi_1.sta)(Statements.Constant), (0, _combi_1.sub)(constants_1.Constants), (0, _combi_1.sta)(Statements.Type), (0, _combi_1.sub)(types_1.Types), (0, _combi_1.sub)(enhancement_1.Enhancement), (0, _combi_1.sub)(define_1.Define), (0, _combi_1.sta)(Statements.IncludeType), (0, _combi_1.sta)(Statements.TypePools), (0, _combi_1.sta)(Statements.EnhancementPoint))), (0, _combi_1.sta)(Statements.DataEnd));
19505
+ return (0, _combi_1.beginEnd)((0, _combi_1.sta)(Statements.DataBegin), (0, _combi_1.star)((0, _combi_1.alt)((0, _combi_1.sta)(Statements.Data), (0, _combi_1.sub)(Data), (0, _combi_1.sta)(Statements.Include), (0, _combi_1.sta)(Statements.Ranges), (0, _combi_1.sta)(Statements.Constant), (0, _combi_1.sub)(constants_1.Constants), (0, _combi_1.sta)(Statements.Type), (0, _combi_1.sub)(types_1.Types), (0, _combi_1.sub)(enhancement_1.Enhancement), (0, _combi_1.sub)(define_1.Define), (0, _combi_1.sta)(Statements.IncludeType), (0, _combi_1.sta)(Statements.Parameter), (0, _combi_1.sta)(Statements.SelectionScreen), (0, _combi_1.sta)(Statements.SelectOption), (0, _combi_1.sta)(Statements.TypePools), (0, _combi_1.sta)(Statements.EnhancementPoint))), (0, _combi_1.sta)(Statements.DataEnd));
19504
19506
  }
19505
19507
  }
19506
19508
  exports.Data = Data;
@@ -35788,6 +35790,8 @@ const include_type_1 = __webpack_require__(/*! ../statements/include_type */ "./
35788
35790
  const constant_1 = __webpack_require__(/*! ../statements/constant */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/constant.js");
35789
35791
  const constants_1 = __webpack_require__(/*! ./constants */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/structures/constants.js");
35790
35792
  const ranges_1 = __webpack_require__(/*! ../statements/ranges */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/ranges.js");
35793
+ const selectoption_1 = __webpack_require__(/*! ../statements/selectoption */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/selectoption.js");
35794
+ const parameter_1 = __webpack_require__(/*! ../statements/parameter */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/statements/parameter.js");
35791
35795
  class Data {
35792
35796
  static runSyntax(node, input) {
35793
35797
  var _a;
@@ -35887,6 +35891,12 @@ class Data {
35887
35891
  else if (c instanceof nodes_1.StatementNode && ctyp instanceof Statements.Ranges) {
35888
35892
  new ranges_1.Ranges().runSyntax(c, input);
35889
35893
  }
35894
+ else if (c instanceof nodes_1.StatementNode && ctyp instanceof Statements.SelectOption) {
35895
+ new selectoption_1.SelectOption().runSyntax(c, input);
35896
+ }
35897
+ else if (c instanceof nodes_1.StatementNode && ctyp instanceof Statements.Parameter) {
35898
+ new parameter_1.Parameter().runSyntax(c, input);
35899
+ }
35890
35900
  else if (c instanceof nodes_1.StructureNode && ctyp instanceof Structures.Constants) {
35891
35901
  const { type: found, values: _ } = new constants_1.Constants().runSyntax(c, input);
35892
35902
  if (found) {
@@ -39797,6 +39807,7 @@ const _object_oriented_1 = __webpack_require__(/*! ../5_syntax/_object_oriented
39797
39807
  const _reference_1 = __webpack_require__(/*! ../5_syntax/_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
39798
39808
  class ClassDefinition extends _identifier_1.Identifier {
39799
39809
  constructor(node, input) {
39810
+ var _a;
39800
39811
  if (!(node.get() instanceof Structures.ClassDefinition)) {
39801
39812
  throw new Error("ClassDefinition, unexpected node type");
39802
39813
  }
@@ -39819,6 +39830,10 @@ class ClassDefinition extends _identifier_1.Identifier {
39819
39830
  this.aliases = this.attributes.getAliases();
39820
39831
  const events = node.findAllStatements(Statements.Events);
39821
39832
  for (const e of events) {
39833
+ const eventName = (_a = e.findDirectExpression(Expressions.EventName)) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase();
39834
+ if (this.events.find(ev => ev.getName().toUpperCase() === eventName) !== undefined) {
39835
+ throw new Error("Event " + eventName + " already defined");
39836
+ }
39822
39837
  this.events.push(new event_definition_1.EventDefinition(e, visibility_1.Visibility.Public, input)); // todo, all these are not Public
39823
39838
  }
39824
39839
  this.methodDefs = new method_definitions_1.MethodDefinitions(node, input);
@@ -48716,6 +48731,37 @@ exports.DataElement = DataElement;
48716
48731
 
48717
48732
  /***/ },
48718
48733
 
48734
+ /***/ "./node_modules/@abaplint/core/build/src/objects/datastore_object.js"
48735
+ /*!***************************************************************************!*\
48736
+ !*** ./node_modules/@abaplint/core/build/src/objects/datastore_object.js ***!
48737
+ \***************************************************************************/
48738
+ (__unused_webpack_module, exports, __webpack_require__) {
48739
+
48740
+ "use strict";
48741
+
48742
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
48743
+ exports.DatastoreObject = void 0;
48744
+ const _abstract_object_1 = __webpack_require__(/*! ./_abstract_object */ "./node_modules/@abaplint/core/build/src/objects/_abstract_object.js");
48745
+ class DatastoreObject extends _abstract_object_1.AbstractObject {
48746
+ getType() {
48747
+ return "ODSO";
48748
+ }
48749
+ getAllowedNaming() {
48750
+ return {
48751
+ maxLength: 200,
48752
+ allowNamespace: true,
48753
+ };
48754
+ }
48755
+ getDescription() {
48756
+ // todo
48757
+ return undefined;
48758
+ }
48759
+ }
48760
+ exports.DatastoreObject = DatastoreObject;
48761
+ //# sourceMappingURL=datastore_object.js.map
48762
+
48763
+ /***/ },
48764
+
48719
48765
  /***/ "./node_modules/@abaplint/core/build/src/objects/dialog_module.js"
48720
48766
  /*!************************************************************************!*\
48721
48767
  !*** ./node_modules/@abaplint/core/build/src/objects/dialog_module.js ***!
@@ -50322,6 +50368,7 @@ __exportStar(__webpack_require__(/*! ./customizing_transaction */ "./node_module
50322
50368
  __exportStar(__webpack_require__(/*! ./data_control */ "./node_modules/@abaplint/core/build/src/objects/data_control.js"), exports);
50323
50369
  __exportStar(__webpack_require__(/*! ./data_definition */ "./node_modules/@abaplint/core/build/src/objects/data_definition.js"), exports);
50324
50370
  __exportStar(__webpack_require__(/*! ./data_element */ "./node_modules/@abaplint/core/build/src/objects/data_element.js"), exports);
50371
+ __exportStar(__webpack_require__(/*! ./datastore_object */ "./node_modules/@abaplint/core/build/src/objects/datastore_object.js"), exports);
50325
50372
  __exportStar(__webpack_require__(/*! ./dialog_module */ "./node_modules/@abaplint/core/build/src/objects/dialog_module.js"), exports);
50326
50373
  __exportStar(__webpack_require__(/*! ./documentation */ "./node_modules/@abaplint/core/build/src/objects/documentation.js"), exports);
50327
50374
  __exportStar(__webpack_require__(/*! ./domain */ "./node_modules/@abaplint/core/build/src/objects/domain.js"), exports);
@@ -55252,7 +55299,7 @@ class Registry {
55252
55299
  }
55253
55300
  static abaplintVersion() {
55254
55301
  // magic, see build script "version.sh"
55255
- return "2.115.7";
55302
+ return "2.115.9";
55256
55303
  }
55257
55304
  getDDICReferences() {
55258
55305
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.115.7",
3
+ "version": "2.115.9",
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.115.7",
41
+ "@abaplint/core": "^2.115.9",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",