@ -1558,8 +1558,6 @@ function process_children(nodes, parent, { visit, state }) {
return ;
}
push _template _quasi ( state , ' ' ) ;
const text _id = get _node _id ( expression , state , 'text' ) ;
const contains _call _expression = sequence . some (
( n ) => n . type === 'ExpressionTag' && n . metadata . contains _call _expression
@ -1575,21 +1573,19 @@ function process_children(nodes, parent, { visit, state }) {
) ;
if ( contains _call _expression && ! within _bound _contenteditable ) {
push _template _quasi ( state , ' ' ) ;
state . update _effects . push ( singular ) ;
} else if (
sequence . some ( ( node ) => node . type === 'ExpressionTag' && node . metadata . dynamic ) &&
! within _bound _contenteditable
) {
push _template _quasi ( state , ' ' ) ;
state . update . push ( {
singular ,
grouped : b . stmt ( b . call ( '$.text' , text _id , assignment ) )
} ) ;
} else {
// TODO: uncomment this
// it causes a test to fail. need to understand if it's a valid test or if it should be adjusted or deleted
// see https://github.com/sveltejs/svelte/issues/6832 for more context on that test
// const { can_inline } = can_inline_all_nodes(sequence, state);
const can _inline = false ;
const { can _inline } = can _inline _all _nodes ( sequence , state ) ;
if ( can _inline ) {
for ( let i = 0 ; i < assignment . quasis . length ; i ++ ) {
push _template _quasi ( state , assignment . quasis [ i ] . value . raw ) ;
@ -1598,6 +1594,7 @@ function process_children(nodes, parent, { visit, state }) {
}
}
} else {
push _template _quasi ( state , ' ' ) ;
state . init . push ( init ) ;
}
}