@abaplint/cli 2.102.29 → 2.102.30

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 +9 -3
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -9613,7 +9613,7 @@ class CallFunction {
9613
9613
  const update = (0, combi_1.verNot)(version_1.Version.Cloud, (0, combi_1.str)("IN UPDATE TASK"));
9614
9614
  const unit = (0, combi_1.seq)("UNIT", expressions_1.Source);
9615
9615
  const background = (0, combi_1.verNot)(version_1.Version.Cloud, (0, combi_1.seq)("IN BACKGROUND", (0, combi_1.altPrio)("TASK", unit)));
9616
- const calling = (0, combi_1.seq)("CALLING", expressions_1.MethodName, "ON END OF TASK");
9616
+ const calling = (0, combi_1.seq)("CALLING", expressions_1.MethodSource, "ON END OF TASK");
9617
9617
  const performing = (0, combi_1.seq)("PERFORMING", expressions_1.FormName, "ON END OF TASK");
9618
9618
  const separate = (0, combi_1.str)("AS SEPARATE UNIT");
9619
9619
  const keeping = (0, combi_1.str)("KEEPING LOGICAL UNIT OF WORK");
@@ -20516,6 +20516,9 @@ class CurrentScope {
20516
20516
  if (this.current.getData().types[upper] !== undefined) {
20517
20517
  throw new Error(`Type name "${name}" already defined`);
20518
20518
  }
20519
+ else if (this.isOO() && this.current.getData().vars[upper] !== undefined) {
20520
+ throw new Error(`"${name}" already defined`);
20521
+ }
20519
20522
  this.current.getData().types[upper] = type;
20520
20523
  }
20521
20524
  addExtraLikeType(type) {
@@ -20565,6 +20568,9 @@ class CurrentScope {
20565
20568
  if (this.current.getData().vars[upper] !== undefined) {
20566
20569
  throw new Error(`Variable name "${name}" already defined`);
20567
20570
  }
20571
+ else if (this.isOO() && this.current.getData().types[upper] !== undefined) {
20572
+ throw new Error(`"${name}" already defined`);
20573
+ }
20568
20574
  this.current.getData().vars[upper] = identifier;
20569
20575
  }
20570
20576
  addIdentifier(identifier) {
@@ -20831,7 +20837,7 @@ class CurrentScope {
20831
20837
  while (curr !== undefined) {
20832
20838
  const stype = curr.getIdentifier().stype;
20833
20839
  if (stype === _scope_type_1.ScopeType.ClassDefinition
20834
- || stype === _scope_type_1.ScopeType.ClassImplementation
20840
+ // || stype === ScopeType.ClassImplementation
20835
20841
  || stype === _scope_type_1.ScopeType.Interface) {
20836
20842
  return true;
20837
20843
  }
@@ -48743,7 +48749,7 @@ class Registry {
48743
48749
  }
48744
48750
  static abaplintVersion() {
48745
48751
  // magic, see build script "version.sh"
48746
- return "2.102.29";
48752
+ return "2.102.30";
48747
48753
  }
48748
48754
  getDDICReferences() {
48749
48755
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.102.29",
3
+ "version": "2.102.30",
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.102.29",
41
+ "@abaplint/core": "^2.102.30",
42
42
  "@types/chai": "^4.3.5",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.2",