File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
packages/svelte/src/compiler/phases/3-transform/client/visitors Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -294,14 +294,11 @@ export function RegularElement(node, context) {
294
294
295
295
context . state . template . push ( '>' ) ;
296
296
297
- /** @type {SourceLocation[] } */
298
- const child_locations = [ ] ;
299
-
300
297
/** @type {ComponentClientTransformState } */
301
298
const state = {
302
299
...context . state ,
303
300
metadata : child_metadata ,
304
- locations : child_locations ,
301
+ locations : [ ] ,
305
302
scope : /** @type {Scope } */ ( context . state . scopes . get ( node . fragment ) ) ,
306
303
preserve_whitespace :
307
304
context . state . preserve_whitespace || node . name === 'pre' || node . name === 'textarea'
@@ -391,9 +388,9 @@ export function RegularElement(node, context) {
391
388
context . state . update . push ( b . stmt ( b . assignment ( '=' , dir , dir ) ) ) ;
392
389
}
393
390
394
- if ( child_locations . length > 0 ) {
391
+ if ( state . locations . length > 0 ) {
395
392
// @ts -expect-error
396
- location . push ( child_locations ) ;
393
+ location . push ( state . locations ) ;
397
394
}
398
395
399
396
if ( ! is_void ( node . name ) ) {
You can’t perform that action at this time.
0 commit comments