mol_view_tree2_lib 1.0.129 → 1.0.130
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/node.js +5 -5
- package/node.js.map +1 -1
- package/node.mjs +5 -5
- package/node.test.js +6 -6
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.js +5 -5
- package/web.js.map +1 -1
- package/web.mjs +5 -5
- package/web.test.js +1 -1
- package/web.test.js.map +1 -1
package/node.js
CHANGED
|
@@ -2114,7 +2114,7 @@ var $;
|
|
|
2114
2114
|
const parent = this.$mol_view_tree2_child(klass);
|
|
2115
2115
|
const props = this.$mol_view_tree2_class_props(klass);
|
|
2116
2116
|
const aliases = [];
|
|
2117
|
-
const context = {
|
|
2117
|
+
const context = { klass: parent, prop: null };
|
|
2118
2118
|
const klass_name = klass.type.slice(1);
|
|
2119
2119
|
types.push(klass.struct('line', [
|
|
2120
2120
|
klass.data('export class '),
|
|
@@ -2136,9 +2136,9 @@ var $;
|
|
|
2136
2136
|
'<=>': (input) => return_type.call(this, klass.data(klass.type), this.$mol_view_tree2_child(input)),
|
|
2137
2137
|
'<=': (input) => return_type.call(this, klass.data(klass.type), this.$mol_view_tree2_child(input)),
|
|
2138
2138
|
'=>': () => [],
|
|
2139
|
-
'^': (input) => {
|
|
2140
|
-
const host = input.kids.length ? klass :
|
|
2141
|
-
return return_type.call(this, host.data(host.type), input.kids.length ? input.kids[0] : prop);
|
|
2139
|
+
'^': (input, belt, context) => {
|
|
2140
|
+
const host = input.kids.length ? klass : context.klass;
|
|
2141
|
+
return return_type.call(this, host.data(host.type), input.kids.length ? input.kids[0] : (context.prop ?? prop));
|
|
2142
2142
|
},
|
|
2143
2143
|
'=': (input) => {
|
|
2144
2144
|
const left = input.kids[0];
|
|
@@ -2257,7 +2257,7 @@ var $;
|
|
|
2257
2257
|
const bind = this.$mol_view_tree2_child(over);
|
|
2258
2258
|
if (bind.type === '=>')
|
|
2259
2259
|
continue;
|
|
2260
|
-
types.push(type_enforce.call(this, over.data(`${input.type}__${name.value}_${klass_name}_${++assert_count}`), over.hack(belt), return_type.call(this, input.data(input.type), over)));
|
|
2260
|
+
types.push(type_enforce.call(this, over.data(`${input.type}__${name.value}_${klass_name}_${++assert_count}`), over.hack(belt, { ...context, klass: input, prop: over }), return_type.call(this, input.data(input.type), over)));
|
|
2261
2261
|
}
|
|
2262
2262
|
return [
|
|
2263
2263
|
input.data(input.type),
|