File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
packages/svelte/src/compiler/phases/3-transform/client/visitors Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -53,10 +53,6 @@ export function CallExpression(node, context) {
5353 ) ;
5454 const property = get_name ( parent . left . property ) ;
5555 source_tag = `${ constructor ?. id ?. name ?? '[class]' } .${ property } ` ;
56- } else if ( dev && parent ?. type === 'PropertyDefinition' && context . state . in_constructor ) {
57- const constructor = /** @type {ClassDeclaration | ClassExpression } */ ( context . path . at ( - 3 ) ) ;
58- const property = get_name ( parent . key ) ;
59- source_tag = `${ constructor ?. id ?. name ?? '[class]' } .${ property } ` ;
6056 }
6157 const call = b . call ( '$.state' , value ) ;
6258 return dev ? b . call ( '$.tag' , call , b . literal ( /** @type {string } */ ( source_tag ) ) ) : call ;
@@ -80,10 +76,6 @@ export function CallExpression(node, context) {
8076 ) ;
8177 const property = get_name ( parent . left . property ) ;
8278 source_tag = `${ constructor ?. id ?. name ?? '[class]' } .${ property } ` ;
83- } else if ( dev && parent ?. type === 'PropertyDefinition' && context . state . in_constructor ) {
84- const constructor = /** @type {ClassDeclaration | ClassExpression } */ ( context . path . at ( - 3 ) ) ;
85- const property = get_name ( parent . key ) ;
86- source_tag = `${ constructor ?. id ?. name ?? '[class]' } .${ property } ` ;
8779 }
8880 const call = b . call ( '$.derived' , fn ) ;
8981 return dev ? b . call ( '$.tag' , call , b . literal ( /** @type {string } */ ( source_tag ) ) ) : call ;
You can’t perform that action at this time.
0 commit comments