@abaplint/core 2.99.3 → 2.99.4
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.
|
@@ -239,7 +239,7 @@ class CurrentScope {
|
|
|
239
239
|
return undefined;
|
|
240
240
|
}
|
|
241
241
|
const typePoolName = name.split("_")[0];
|
|
242
|
-
if (typePoolName.length
|
|
242
|
+
if (typePoolName.length <= 2 || typePoolName.length > 5) {
|
|
243
243
|
return undefined;
|
|
244
244
|
}
|
|
245
245
|
const typePool = this.reg.getObject("TYPE", typePoolName);
|
|
@@ -256,7 +256,10 @@ class CurrentScope {
|
|
|
256
256
|
return undefined;
|
|
257
257
|
}
|
|
258
258
|
const typePoolName = name.split("_")[0];
|
|
259
|
-
if (typePoolName.length
|
|
259
|
+
if (typePoolName.length <= 2 || typePoolName.length > 5) {
|
|
260
|
+
return undefined;
|
|
261
|
+
}
|
|
262
|
+
if (new ddic_1.DDIC(this.reg).lookupNoVoid(name) !== undefined) {
|
|
260
263
|
// this is tricky, it should not do recursion when parsing the type pool itself,
|
|
261
264
|
// think about DTEL ABAP_ENCOD vs TYPE ABAP
|
|
262
265
|
return undefined;
|
package/build/src/registry.js
CHANGED