@abaplint/core 2.82.11 → 2.82.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.
@@ -44,6 +44,18 @@ class ObjectOriented {
44
44
  }
45
45
  }
46
46
  }
47
+ addAliasedTypes(aliases) {
48
+ for (const alias of aliases.getAll()) {
49
+ const comp = alias.getComponent();
50
+ const idef = this.scope.findInterfaceDefinition(comp.split("~")[0]);
51
+ if (idef) {
52
+ const found = idef.getTypeDefinitions().getByName(comp.split("~")[1]);
53
+ if (found) {
54
+ this.scope.addTypeNamed(alias.getName(), found);
55
+ }
56
+ }
57
+ }
58
+ }
47
59
  findMethodInInterface(interfaceName, methodName) {
48
60
  const idef = this.scope.findInterfaceDefinition(interfaceName);
49
61
  if (idef) {
@@ -32,6 +32,7 @@ class ClassDefinition extends _identifier_1.Identifier {
32
32
  this.parse(filename, scope);
33
33
  const helper = new _object_oriented_1.ObjectOriented(scope);
34
34
  helper.fromSuperClassesAndInterfaces(this);
35
+ helper.addAliasedTypes(this.aliases);
35
36
  this.attributes = new class_attributes_1.Attributes(this.node, this.filename, scope);
36
37
  this.types = this.attributes.getTypes();
37
38
  this.methodDefs = new method_definitions_1.MethodDefinitions(this.node, this.filename, scope);
@@ -68,7 +68,7 @@ class Registry {
68
68
  }
69
69
  static abaplintVersion() {
70
70
  // magic, see build script "version.sh"
71
- return "2.82.11";
71
+ return "2.82.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.82.11",
3
+ "version": "2.82.12",
4
4
  "description": "abaplint - Core API",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/abaplint.d.ts",