|
|
|
@ -10,7 +10,7 @@ export default function (node, renderer, options) {
|
|
|
|
const filename = options.filename || null;
|
|
|
|
const filename = options.filename || null;
|
|
|
|
const { line, column } = options.locate(node.start + 1);
|
|
|
|
const { line, column } = options.locate(node.start + 1);
|
|
|
|
const obj = x`{
|
|
|
|
const obj = x`{
|
|
|
|
${node.expressions.map((e) => p`${e.node.name}`)}
|
|
|
|
${node.expressions.map((e) => p`${/** @type {import('estree').Identifier} */ (e.node).name}`)}
|
|
|
|
}`;
|
|
|
|
}`;
|
|
|
|
renderer.add_expression(
|
|
|
|
renderer.add_expression(
|
|
|
|
x`@debug(${filename ? x`"${filename}"` : x`null`}, ${line - 1}, ${column}, ${obj})`
|
|
|
|
x`@debug(${filename ? x`"${filename}"` : x`null`}, ${line - 1}, ${column}, ${obj})`
|
|
|
|
|