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