@abaplint/cli 2.115.8 → 2.115.10

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 +54 -4
  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
  }
@@ -28059,6 +28061,7 @@ const sql_order_by_1 = __webpack_require__(/*! ./sql_order_by */ "./node_modules
28059
28061
  const dynamic_1 = __webpack_require__(/*! ./dynamic */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/expressions/dynamic.js");
28060
28062
  const _reference_1 = __webpack_require__(/*! ../_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
28061
28063
  const _syntax_input_1 = __webpack_require__(/*! ../_syntax_input */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_syntax_input.js");
28064
+ const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
28062
28065
  const isSimple = /^\w+$/;
28063
28066
  class Select {
28064
28067
  static runSyntax(node, input, skipImplicitInto = false) {
@@ -28310,6 +28313,16 @@ class Select {
28310
28313
  if (field) {
28311
28314
  return field;
28312
28315
  }
28316
+ else if (fields[0].code === "COUNT(*)") {
28317
+ if (scope.getVersion() >= version_1.Version.v750
28318
+ || scope.getVersion() === version_1.Version.OpenABAP
28319
+ || scope.getVersion() === version_1.Version.Cloud) {
28320
+ return new basic_1.Integer8Type();
28321
+ }
28322
+ else {
28323
+ return basic_1.IntegerType.get();
28324
+ }
28325
+ }
28313
28326
  else {
28314
28327
  // todo: aggregated/calculated values
28315
28328
  return basic_1.VoidType.get("SELECT_todo11");
@@ -39805,6 +39818,7 @@ const _object_oriented_1 = __webpack_require__(/*! ../5_syntax/_object_oriented
39805
39818
  const _reference_1 = __webpack_require__(/*! ../5_syntax/_reference */ "./node_modules/@abaplint/core/build/src/abap/5_syntax/_reference.js");
39806
39819
  class ClassDefinition extends _identifier_1.Identifier {
39807
39820
  constructor(node, input) {
39821
+ var _a;
39808
39822
  if (!(node.get() instanceof Structures.ClassDefinition)) {
39809
39823
  throw new Error("ClassDefinition, unexpected node type");
39810
39824
  }
@@ -39827,6 +39841,10 @@ class ClassDefinition extends _identifier_1.Identifier {
39827
39841
  this.aliases = this.attributes.getAliases();
39828
39842
  const events = node.findAllStatements(Statements.Events);
39829
39843
  for (const e of events) {
39844
+ const eventName = (_a = e.findDirectExpression(Expressions.EventName)) === null || _a === void 0 ? void 0 : _a.concatTokens().toUpperCase();
39845
+ if (this.events.find(ev => ev.getName().toUpperCase() === eventName) !== undefined) {
39846
+ throw new Error("Event " + eventName + " already defined");
39847
+ }
39830
39848
  this.events.push(new event_definition_1.EventDefinition(e, visibility_1.Visibility.Public, input)); // todo, all these are not Public
39831
39849
  }
39832
39850
  this.methodDefs = new method_definitions_1.MethodDefinitions(node, input);
@@ -48724,6 +48742,37 @@ exports.DataElement = DataElement;
48724
48742
 
48725
48743
  /***/ },
48726
48744
 
48745
+ /***/ "./node_modules/@abaplint/core/build/src/objects/datastore_object.js"
48746
+ /*!***************************************************************************!*\
48747
+ !*** ./node_modules/@abaplint/core/build/src/objects/datastore_object.js ***!
48748
+ \***************************************************************************/
48749
+ (__unused_webpack_module, exports, __webpack_require__) {
48750
+
48751
+ "use strict";
48752
+
48753
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
48754
+ exports.DatastoreObject = void 0;
48755
+ const _abstract_object_1 = __webpack_require__(/*! ./_abstract_object */ "./node_modules/@abaplint/core/build/src/objects/_abstract_object.js");
48756
+ class DatastoreObject extends _abstract_object_1.AbstractObject {
48757
+ getType() {
48758
+ return "ODSO";
48759
+ }
48760
+ getAllowedNaming() {
48761
+ return {
48762
+ maxLength: 200,
48763
+ allowNamespace: true,
48764
+ };
48765
+ }
48766
+ getDescription() {
48767
+ // todo
48768
+ return undefined;
48769
+ }
48770
+ }
48771
+ exports.DatastoreObject = DatastoreObject;
48772
+ //# sourceMappingURL=datastore_object.js.map
48773
+
48774
+ /***/ },
48775
+
48727
48776
  /***/ "./node_modules/@abaplint/core/build/src/objects/dialog_module.js"
48728
48777
  /*!************************************************************************!*\
48729
48778
  !*** ./node_modules/@abaplint/core/build/src/objects/dialog_module.js ***!
@@ -50330,6 +50379,7 @@ __exportStar(__webpack_require__(/*! ./customizing_transaction */ "./node_module
50330
50379
  __exportStar(__webpack_require__(/*! ./data_control */ "./node_modules/@abaplint/core/build/src/objects/data_control.js"), exports);
50331
50380
  __exportStar(__webpack_require__(/*! ./data_definition */ "./node_modules/@abaplint/core/build/src/objects/data_definition.js"), exports);
50332
50381
  __exportStar(__webpack_require__(/*! ./data_element */ "./node_modules/@abaplint/core/build/src/objects/data_element.js"), exports);
50382
+ __exportStar(__webpack_require__(/*! ./datastore_object */ "./node_modules/@abaplint/core/build/src/objects/datastore_object.js"), exports);
50333
50383
  __exportStar(__webpack_require__(/*! ./dialog_module */ "./node_modules/@abaplint/core/build/src/objects/dialog_module.js"), exports);
50334
50384
  __exportStar(__webpack_require__(/*! ./documentation */ "./node_modules/@abaplint/core/build/src/objects/documentation.js"), exports);
50335
50385
  __exportStar(__webpack_require__(/*! ./domain */ "./node_modules/@abaplint/core/build/src/objects/domain.js"), exports);
@@ -55260,7 +55310,7 @@ class Registry {
55260
55310
  }
55261
55311
  static abaplintVersion() {
55262
55312
  // magic, see build script "version.sh"
55263
- return "2.115.8";
55313
+ return "2.115.10";
55264
55314
  }
55265
55315
  getDDICReferences() {
55266
55316
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.115.8",
3
+ "version": "2.115.10",
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.8",
41
+ "@abaplint/core": "^2.115.10",
42
42
  "@types/chai": "^4.3.20",
43
43
  "@types/minimist": "^1.2.5",
44
44
  "@types/mocha": "^10.0.10",