@abaplint/cli 2.120.20 → 2.120.21

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 +13 -2
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -16769,11 +16769,12 @@ class ModifyEntities {
16769
16769
  const reported = (0, combi_1.seq)("REPORTED", expressions_1.Target);
16770
16770
  const end = (0, combi_1.optPrio)((0, combi_1.per)(failed, result, mapped, reported));
16771
16771
  const entities = (0, combi_1.seq)((0, combi_1.optPrio)("AUGMENTING"), "ENTITIES OF", expressions_1.NamespaceSimpleName, (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.plusPrio)((0, combi_1.seq)("ENTITY", expressions_1.NamespaceSimpleName, (0, combi_1.plus)(operation))));
16772
+ const dynamic = (0, combi_1.seq)("ENTITIES", (0, combi_1.optPrio)((0, combi_1.altPrio)("IN LOCAL MODE", (0, combi_1.seq)((0, combi_1.opt)("FORWARDING"), "PRIVILEGED"))), "OPERATIONS", expressions_1.Source);
16772
16773
  const create2 = (0, combi_1.seq)("CREATE", fieldsWith, (0, combi_1.opt)((0, combi_1.seq)("CREATE BY", expressions_1.EMLEntityPath, fieldsWith)));
16773
16774
  const create3 = (0, combi_1.seq)("CREATE BY", expressions_1.EMLEntityPath, fieldsWith);
16774
16775
  const create4 = (0, combi_1.seq)("CREATE FROM", expressions_1.Source, (0, combi_1.plus)((0, combi_1.seq)("CREATE BY", expressions_1.EMLEntityPath, "FROM", expressions_1.Source)));
16775
16776
  const entity = (0, combi_1.seq)("ENTITY", (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.alt)(expressions_1.NamespaceSimpleName, expressions_1.EntityAssociation), (0, combi_1.alt)(execute, create, updateFields, deleteFrom, updateSetFields, updateFrom, create2, create3, create4));
16776
- return (0, combi_1.ver)(version_1.Release.v754, (0, combi_1.seq)("MODIFY", (0, combi_1.alt)(entities, entity), end), { also: combi_1.AlsoIn.OpenABAP });
16777
+ return (0, combi_1.ver)(version_1.Release.v754, (0, combi_1.seq)("MODIFY", (0, combi_1.alt)(entities, dynamic, entity), end), { also: combi_1.AlsoIn.OpenABAP });
16777
16778
  }
16778
16779
  }
16779
16780
  exports.ModifyEntities = ModifyEntities;
@@ -51711,6 +51712,7 @@ class ClassDefinition extends _identifier_1.Identifier {
51711
51712
  this.checkInterfaceVisibility(input, node);
51712
51713
  this.checkMethodsFromSuperClasses(input);
51713
51714
  this.checkMethodNameConflicts(input);
51715
+ this.checkEventNameConflicts(input);
51714
51716
  this.checkClassNameLength(input);
51715
51717
  this.checkMethodNameLength(input);
51716
51718
  this.checkClassConstructorStatic(input);
@@ -51850,6 +51852,15 @@ class ClassDefinition extends _identifier_1.Identifier {
51850
51852
  }
51851
51853
  }
51852
51854
  }
51855
+ checkEventNameConflicts(input) {
51856
+ for (const e of this.events) {
51857
+ if (this.attributes.findByName(e.getName()) !== undefined
51858
+ || this.types.getByName(e.getName()) !== undefined
51859
+ || this.methodDefs.getByName(e.getName()) !== undefined) {
51860
+ input.issues.push((0, _syntax_input_1.syntaxIssue)(input, e.getToken(), `"${e.getName()}" already defined`));
51861
+ }
51862
+ }
51863
+ }
51853
51864
  findFriends(def, input) {
51854
51865
  var _a;
51855
51866
  const result = [];
@@ -69650,7 +69661,7 @@ class Registry {
69650
69661
  }
69651
69662
  static abaplintVersion() {
69652
69663
  // magic, see build script "version.js"
69653
- return "2.120.20";
69664
+ return "2.120.21";
69654
69665
  }
69655
69666
  getDDICReferences() {
69656
69667
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.120.20",
3
+ "version": "2.120.21",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "homepage": "https://abaplint.org",
41
41
  "devDependencies": {
42
- "@abaplint/core": "^2.120.20",
42
+ "@abaplint/core": "^2.120.21",
43
43
  "@types/chai": "^4.3.20",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.10",