@abaplint/core 2.82.6 → 2.82.7
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.
|
@@ -60,7 +60,6 @@ class FindGlobalDefinitions {
|
|
|
60
60
|
if (def === undefined) {
|
|
61
61
|
return 1;
|
|
62
62
|
}
|
|
63
|
-
// todo, count constants
|
|
64
63
|
let count = 0;
|
|
65
64
|
for (const t of def.getTypeDefinitions().getAll()) {
|
|
66
65
|
count = count + this.count(t.type.getType());
|
|
@@ -68,6 +67,9 @@ class FindGlobalDefinitions {
|
|
|
68
67
|
for (const a of def.getAttributes().getAll()) {
|
|
69
68
|
count = count + this.count(a.getType());
|
|
70
69
|
}
|
|
70
|
+
for (const a of def.getAttributes().getConstants()) {
|
|
71
|
+
count = count + this.count(a.getType());
|
|
72
|
+
}
|
|
71
73
|
for (const m of def.getMethodDefinitions().getAll()) {
|
|
72
74
|
for (const p of m.getParameters().getAll()) {
|
|
73
75
|
count = count + this.count(p.getType());
|
|
@@ -146,6 +146,12 @@ class Table extends _abstract_object_1.AbstractObject {
|
|
|
146
146
|
type: new basic_1.DataReference(new basic_1.AnyType())
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
|
+
else if (field.ROLLNAME === "OBJECT") {
|
|
150
|
+
components.push({
|
|
151
|
+
name: field.FIELDNAME,
|
|
152
|
+
type: new basic_1.GenericObjectReferenceType()
|
|
153
|
+
});
|
|
154
|
+
}
|
|
149
155
|
else {
|
|
150
156
|
const lookup = ddic.lookupObject(field.ROLLNAME);
|
|
151
157
|
components.push({ name: field.FIELDNAME, type: lookup.type });
|
package/build/src/registry.js
CHANGED