pmcf 4.22.4 → 4.22.6
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/package.json
CHANGED
|
@@ -191,6 +191,19 @@ export class InitializationContext {
|
|
|
191
191
|
Object.assign(object._properties, data.properties);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
this._read(object, data, type);
|
|
195
|
+
|
|
196
|
+
if (data.extends) {
|
|
197
|
+
//console.log("EXTENDS", type.name, object.fullName, data.extends);
|
|
198
|
+
object.materializeExtends();
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
_read(object, data, type = object.constructor.typeDefinition) {
|
|
203
|
+
if (type.extends) {
|
|
204
|
+
this._read(object, data, type.extends);
|
|
205
|
+
}
|
|
206
|
+
|
|
194
207
|
for (const [path, attribute] of attributeIterator(type.attributes)) {
|
|
195
208
|
if (attribute.writable) {
|
|
196
209
|
const name = path.join(".");
|
|
@@ -226,20 +239,6 @@ export class InitializationContext {
|
|
|
226
239
|
this.instantiateAndAssign(object, name, attribute, value);
|
|
227
240
|
}
|
|
228
241
|
}
|
|
229
|
-
|
|
230
|
-
if (object.name === undefined && data.name) {
|
|
231
|
-
// TODO
|
|
232
|
-
object.name = data.name;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
if (type.extends) {
|
|
236
|
-
this.read(object, data, type.extends);
|
|
237
|
-
|
|
238
|
-
if (data.extends) {
|
|
239
|
-
//console.log("EXTENDS", type.name, object.fullName, data.extends);
|
|
240
|
-
object.materializeExtends();
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
242
|
}
|
|
244
243
|
|
|
245
244
|
async loadType(name, type) {
|