|
|
|
@ -299,28 +299,41 @@ export const javascript_visitors_runes = {
|
|
|
|
|
return b.call('$.effect_active');
|
|
|
|
|
}
|
|
|
|
|
if (rune === '$log') {
|
|
|
|
|
const args = /** @type {import('estree').Expression[]} */ (
|
|
|
|
|
node.arguments.map((arg) => visit(arg))
|
|
|
|
|
);
|
|
|
|
|
return b.call('$.log', b.thunk(b.array(args)));
|
|
|
|
|
if (state.options.dev) {
|
|
|
|
|
const args = /** @type {import('estree').Expression[]} */ (
|
|
|
|
|
node.arguments.map((arg) => visit(arg))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
return b.call('$.log', b.thunk(b.array(args)));
|
|
|
|
|
}
|
|
|
|
|
return b.unary('void', b.literal(0));
|
|
|
|
|
}
|
|
|
|
|
if (rune === '$log.trace') {
|
|
|
|
|
const args = /** @type {import('estree').Expression[]} */ (
|
|
|
|
|
node.arguments.map((arg) => visit(arg))
|
|
|
|
|
);
|
|
|
|
|
return b.call('$.log_trace', b.thunk(b.array(args)));
|
|
|
|
|
if (state.options.dev) {
|
|
|
|
|
const args = /** @type {import('estree').Expression[]} */ (
|
|
|
|
|
node.arguments.map((arg) => visit(arg))
|
|
|
|
|
);
|
|
|
|
|
return b.call('$.log_trace', b.thunk(b.array(args)));
|
|
|
|
|
}
|
|
|
|
|
return b.unary('void', b.literal(0));
|
|
|
|
|
}
|
|
|
|
|
if (rune === '$log.break') {
|
|
|
|
|
const args = /** @type {import('estree').Expression[]} */ (
|
|
|
|
|
node.arguments.map((arg) => visit(arg))
|
|
|
|
|
);
|
|
|
|
|
return b.call('$.log_break', b.thunk(b.array(args)));
|
|
|
|
|
if (state.options.dev) {
|
|
|
|
|
const args = /** @type {import('estree').Expression[]} */ (
|
|
|
|
|
node.arguments.map((arg) => visit(arg))
|
|
|
|
|
);
|
|
|
|
|
return b.call('$.log_break', b.thunk(b.array(args)));
|
|
|
|
|
}
|
|
|
|
|
return b.unary('void', b.literal(0));
|
|
|
|
|
}
|
|
|
|
|
if (rune === '$log.table') {
|
|
|
|
|
const args = /** @type {import('estree').Expression[]} */ (
|
|
|
|
|
node.arguments.map((arg) => visit(arg))
|
|
|
|
|
);
|
|
|
|
|
return b.call('$.log_table', b.thunk(b.array(args)));
|
|
|
|
|
if (state.options.dev) {
|
|
|
|
|
const args = /** @type {import('estree').Expression[]} */ (
|
|
|
|
|
node.arguments.map((arg) => visit(arg))
|
|
|
|
|
);
|
|
|
|
|
return b.call('$.log_table', b.thunk(b.array(args)));
|
|
|
|
|
}
|
|
|
|
|
return b.unary('void', b.literal(0));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
next();
|
|
|
|
|