@abaplint/transpiler 2.0.33 → 2.0.34
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.
- package/build/src/requires.js +19 -1
- package/package.json +1 -1
package/build/src/requires.js
CHANGED
|
@@ -8,7 +8,7 @@ class Requires {
|
|
|
8
8
|
}
|
|
9
9
|
// todo, refactor this method
|
|
10
10
|
find(obj, _node, filename) {
|
|
11
|
-
var _a, _b, _c, _d, _e;
|
|
11
|
+
var _a, _b, _c, _d, _e, _f;
|
|
12
12
|
const ret = [];
|
|
13
13
|
if (obj.getType() === "INTF") {
|
|
14
14
|
return [];
|
|
@@ -85,6 +85,24 @@ class Requires {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
+
// include global super classes for local class definitions
|
|
89
|
+
for (const f of obj.getSequencedFiles()) {
|
|
90
|
+
for (const c of f.getInfo().listClassDefinitions()) {
|
|
91
|
+
if (c.superClassName === undefined) {
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
const found = this.reg.getObject("CLAS", c.superClassName);
|
|
95
|
+
if (found && found instanceof abaplint.ABAPObject) {
|
|
96
|
+
const main = (_f = found.getMainABAPFile()) === null || _f === void 0 ? void 0 : _f.getFilename();
|
|
97
|
+
if (main) {
|
|
98
|
+
add({
|
|
99
|
+
filename: main,
|
|
100
|
+
name: found.getName().toLowerCase(),
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
88
106
|
}
|
|
89
107
|
return ret;
|
|
90
108
|
}
|