@abaplint/core 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.
@@ -10,7 +10,7 @@ class CallFunction {
10
10
  const update = (0, combi_1.verNot)(version_1.Version.Cloud, (0, combi_1.str)("IN UPDATE TASK"));
11
11
  const unit = (0, combi_1.seq)("UNIT", expressions_1.Source);
12
12
  const background = (0, combi_1.verNot)(version_1.Version.Cloud, (0, combi_1.seq)("IN BACKGROUND", (0, combi_1.altPrio)("TASK", unit)));
13
- const calling = (0, combi_1.seq)("CALLING", expressions_1.MethodName, "ON END OF TASK");
13
+ const calling = (0, combi_1.seq)("CALLING", expressions_1.MethodSource, "ON END OF TASK");
14
14
  const performing = (0, combi_1.seq)("PERFORMING", expressions_1.FormName, "ON END OF TASK");
15
15
  const separate = (0, combi_1.str)("AS SEPARATE UNIT");
16
16
  const keeping = (0, combi_1.str)("KEEPING LOGICAL UNIT OF WORK");
@@ -58,6 +58,9 @@ class CurrentScope {
58
58
  if (this.current.getData().types[upper] !== undefined) {
59
59
  throw new Error(`Type name "${name}" already defined`);
60
60
  }
61
+ else if (this.isOO() && this.current.getData().vars[upper] !== undefined) {
62
+ throw new Error(`"${name}" already defined`);
63
+ }
61
64
  this.current.getData().types[upper] = type;
62
65
  }
63
66
  addExtraLikeType(type) {
@@ -107,6 +110,9 @@ class CurrentScope {
107
110
  if (this.current.getData().vars[upper] !== undefined) {
108
111
  throw new Error(`Variable name "${name}" already defined`);
109
112
  }
113
+ else if (this.isOO() && this.current.getData().types[upper] !== undefined) {
114
+ throw new Error(`"${name}" already defined`);
115
+ }
110
116
  this.current.getData().vars[upper] = identifier;
111
117
  }
112
118
  addIdentifier(identifier) {
@@ -373,7 +379,7 @@ class CurrentScope {
373
379
  while (curr !== undefined) {
374
380
  const stype = curr.getIdentifier().stype;
375
381
  if (stype === _scope_type_1.ScopeType.ClassDefinition
376
- || stype === _scope_type_1.ScopeType.ClassImplementation
382
+ // || stype === ScopeType.ClassImplementation
377
383
  || stype === _scope_type_1.ScopeType.Interface) {
378
384
  return true;
379
385
  }
@@ -65,7 +65,7 @@ class Registry {
65
65
  }
66
66
  static abaplintVersion() {
67
67
  // magic, see build script "version.sh"
68
- return "2.102.29";
68
+ return "2.102.30";
69
69
  }
70
70
  getDDICReferences() {
71
71
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.102.29",
3
+ "version": "2.102.30",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",