pmcf 4.25.2 → 4.25.3
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 +1 -1
- package/src/base.mjs +0 -1
- package/src/initialization-context.mjs +13 -14
- package/src/service-owner.mjs +0 -2
package/package.json
CHANGED
package/src/base.mjs
CHANGED
|
@@ -18,28 +18,24 @@ export class InitializationContext {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
resolveOutstanding() {
|
|
21
|
-
for (let { object, attribute, name, value } of this
|
|
21
|
+
nextOutstanding: for (let { object, attribute, name, value } of this
|
|
22
|
+
.outstandingResolves) {
|
|
22
23
|
value = object.expand(value);
|
|
23
24
|
|
|
24
25
|
for (const type of attribute.type.members || [attribute.type]) {
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
this.assign(object, name, attribute, o);
|
|
32
|
-
|
|
33
|
-
// console.log("RESOLVE", object.fullName,name,o.fullName);
|
|
34
|
-
// continue;
|
|
26
|
+
for (const node of object.walkDirections(["this", "owner"])) {
|
|
27
|
+
const resolved = node.typeNamed(type.name, value);
|
|
28
|
+
if (resolved) {
|
|
29
|
+
this.assign(object, name, attribute, resolved);
|
|
30
|
+
continue nextOutstanding;
|
|
31
|
+
}
|
|
35
32
|
}
|
|
36
33
|
}
|
|
37
34
|
|
|
38
|
-
/*
|
|
39
35
|
this.error(
|
|
40
|
-
`
|
|
36
|
+
`Unable to resolve "${value}" (${attribute.type.name}) for attribute ${name}`,
|
|
41
37
|
object.root.named(value)?.toString()
|
|
42
|
-
)
|
|
38
|
+
);
|
|
43
39
|
}
|
|
44
40
|
}
|
|
45
41
|
|
|
@@ -85,6 +81,9 @@ export class InitializationContext {
|
|
|
85
81
|
if (value instanceof Set) {
|
|
86
82
|
object[name] = current.union(value);
|
|
87
83
|
} else {
|
|
84
|
+
/*if(name === 'extends') {
|
|
85
|
+
console.log("EXT",object.fullName,value.fullName)
|
|
86
|
+
}*/
|
|
88
87
|
object[name].add(value);
|
|
89
88
|
}
|
|
90
89
|
} else if (current instanceof Map) {
|
package/src/service-owner.mjs
CHANGED
|
@@ -30,10 +30,8 @@ export class ServiceOwner extends Base {
|
|
|
30
30
|
const present = this._services.get(service.name);
|
|
31
31
|
|
|
32
32
|
if (present) {
|
|
33
|
-
//console.log("LINK SERVICE", this.fullName, present.fullName, service.fullName);
|
|
34
33
|
present.extends.add(service);
|
|
35
34
|
} else {
|
|
36
|
-
//console.log("ADD SERVICE", this.fullName, service.fullName);
|
|
37
35
|
this.services = service.forOwner(this);
|
|
38
36
|
}
|
|
39
37
|
}
|