@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
|
-
|
|
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
|
}
|
package/build/src/registry.js
CHANGED