|
|
|
@ -1610,6 +1610,10 @@ export const template_visitors = {
|
|
|
|
context.visit(node, state);
|
|
|
|
context.visit(node, state);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (is_anchored) {
|
|
|
|
|
|
|
|
body.push(b.stmt(b.call('$.next')));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @param {import('estree').Identifier} template_name
|
|
|
|
* @param {import('estree').Identifier} template_name
|
|
|
|
* @param {import('estree').Expression[]} args
|
|
|
|
* @param {import('estree').Expression[]} args
|
|
|
|
@ -1668,11 +1672,7 @@ export const template_visitors = {
|
|
|
|
state
|
|
|
|
state
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
body.push(
|
|
|
|
body.push(b.var(id, b.call('$.text')), ...state.before_init, ...state.init);
|
|
|
|
b.var(id, b.call('$.text', is_anchored && b.true)),
|
|
|
|
|
|
|
|
...state.before_init,
|
|
|
|
|
|
|
|
...state.init
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
close = b.stmt(b.call('$.append', b.id('$$anchor'), id));
|
|
|
|
close = b.stmt(b.call('$.append', b.id('$$anchor'), id));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (is_standalone) {
|
|
|
|
if (is_standalone) {
|
|
|
|
|