@ -1,7 +1,6 @@
/** @import { AST } from '#compiler' */
/** @import { Context } from '../types' */
import { walk } from 'zimmerframe' ;
import { mark _subtree _dynamic } from './shared/fragment.js' ;
import * as w from '../../../warnings.js' ;
@ -11,16 +10,15 @@ import * as w from '../../../warnings.js';
* /
export function AttachTag ( node , context ) {
mark _subtree _dynamic ( context . path ) ;
context . next ( { ... context . state , expression : node . metadata . expression } ) ;
if ( ! context . state . analysis . runes ) {
walk (
node . expression ,
{ } ,
{
MemberExpression ( node ) {
w . attachment _legacy _member _access ( node ) ;
for ( const dep of node . metadata . expression . dependencies ) {
if ( dep . mutated ) {
w . attachment _legacy _member _access ( node . expression ) ;
break ;
}
}
) ;
}
context . next ( { ... context . state , expression : node . metadata . expression } ) ;
}