@abaplint/core 2.89.11 → 2.89.12

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.
@@ -8,6 +8,7 @@ const basic_1 = require("../../types/basic");
8
8
  const _typed_identifier_1 = require("../../types/_typed_identifier");
9
9
  const _reference_1 = require("../_reference");
10
10
  const enum_type_1 = require("../../types/basic/enum_type");
11
+ const _scope_type_1 = require("../_scope_type");
11
12
  class TypeEnum {
12
13
  runSyntax(node, scope, filename) {
13
14
  var _a;
@@ -48,7 +49,12 @@ class TypeEnum {
48
49
  }
49
50
  const name = begin.findFirstExpression(Expressions.NamespaceSimpleName);
50
51
  if (name) {
51
- const id = new _typed_identifier_1.TypedIdentifier(name.getFirstToken(), filename, new enum_type_1.EnumType(), ["enum" /* Enum */]);
52
+ let qualifiedName = name.concatTokens();
53
+ if (scope.getType() === _scope_type_1.ScopeType.ClassDefinition
54
+ || scope.getType() === _scope_type_1.ScopeType.Interface) {
55
+ qualifiedName = scope.getName() + "=>" + qualifiedName;
56
+ }
57
+ const id = new _typed_identifier_1.TypedIdentifier(name.getFirstToken(), filename, new enum_type_1.EnumType(qualifiedName), ["enum" /* Enum */]);
52
58
  scope.addType(id);
53
59
  types.push(id);
54
60
  }
@@ -10,7 +10,7 @@ class EnumType extends _abstract_type_1.AbstractType {
10
10
  return false;
11
11
  }
12
12
  toABAP() {
13
- return "enum";
13
+ return this.getQualifiedName() || "enum";
14
14
  }
15
15
  containsVoid() {
16
16
  return false;
@@ -68,7 +68,7 @@ class Registry {
68
68
  }
69
69
  static abaplintVersion() {
70
70
  // magic, see build script "version.sh"
71
- return "2.89.11";
71
+ return "2.89.12";
72
72
  }
73
73
  getDDICReferences() {
74
74
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.89.11",
3
+ "version": "2.89.12",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",