mam 1.11.855 → 1.11.856
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/node.js
CHANGED
|
@@ -4704,7 +4704,7 @@ var $;
|
|
|
4704
4704
|
const parent = this.$mol_view_tree2_child(klass);
|
|
4705
4705
|
const props = this.$mol_view_tree2_class_props(klass);
|
|
4706
4706
|
const aliases = [];
|
|
4707
|
-
const context = {
|
|
4707
|
+
const context = { klass: parent, prop: null };
|
|
4708
4708
|
const klass_name = klass.type.slice(1);
|
|
4709
4709
|
types.push(klass.struct('line', [
|
|
4710
4710
|
klass.data('export class '),
|
|
@@ -4726,9 +4726,9 @@ var $;
|
|
|
4726
4726
|
'<=>': (input) => return_type.call(this, klass.data(klass.type), this.$mol_view_tree2_child(input)),
|
|
4727
4727
|
'<=': (input) => return_type.call(this, klass.data(klass.type), this.$mol_view_tree2_child(input)),
|
|
4728
4728
|
'=>': () => [],
|
|
4729
|
-
'^': (input) => {
|
|
4730
|
-
const host = input.kids.length ? klass :
|
|
4731
|
-
return return_type.call(this, host.data(host.type), input.kids.length ? input.kids[0] : prop);
|
|
4729
|
+
'^': (input, belt, context) => {
|
|
4730
|
+
const host = input.kids.length ? klass : context.klass;
|
|
4731
|
+
return return_type.call(this, host.data(host.type), input.kids.length ? input.kids[0] : (context.prop ?? prop));
|
|
4732
4732
|
},
|
|
4733
4733
|
'=': (input) => {
|
|
4734
4734
|
const left = input.kids[0];
|
|
@@ -4847,7 +4847,7 @@ var $;
|
|
|
4847
4847
|
const bind = this.$mol_view_tree2_child(over);
|
|
4848
4848
|
if (bind.type === '=>')
|
|
4849
4849
|
continue;
|
|
4850
|
-
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)));
|
|
4850
|
+
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)));
|
|
4851
4851
|
}
|
|
4852
4852
|
return [
|
|
4853
4853
|
input.data(input.type),
|