|
|
@ -23,11 +23,13 @@ export function CallExpression(node, context) {
|
|
|
|
case '$state.raw': {
|
|
|
|
case '$state.raw': {
|
|
|
|
let should_proxy = rune === '$state' && true; // TODO
|
|
|
|
let should_proxy = rune === '$state' && true; // TODO
|
|
|
|
|
|
|
|
|
|
|
|
return b.call(
|
|
|
|
let value = node.arguments[0] && /** @type {Expression} */ (context.visit(node.arguments[0]));
|
|
|
|
'$.state',
|
|
|
|
|
|
|
|
node.arguments[0] && /** @type {Expression} */ (context.visit(node.arguments[0])),
|
|
|
|
if (value && should_proxy) {
|
|
|
|
should_proxy && b.true
|
|
|
|
value = b.call('$.proxy', value);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return b.call('$.state', value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
case '$derived':
|
|
|
|
case '$derived':
|
|
|
|