File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/svelte/src/compiler/phases/1-parse/state Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -95,8 +95,8 @@ export default function element(parser) {
9595
9696 if ( parent . type === 'RegularElement' ) {
9797 if ( ! parser . last_auto_closed_tag || parser . last_auto_closed_tag . tag !== name ) {
98- const opening_tag_end = parent . fragment . nodes [ 0 ] ?. start ?? start ;
99- w . element_implicitly_closed ( { start : parent . start , end : opening_tag_end } , parent . name ) ;
98+ const end = parent . fragment . nodes [ 0 ] ?. start ?? start ;
99+ w . element_implicitly_closed ( { start : parent . start , end } , parent . name ) ;
100100 }
101101 } else if ( ! parser . loose ) {
102102 if ( parser . last_auto_closed_tag && parser . last_auto_closed_tag . tag === name ) {
@@ -191,8 +191,8 @@ export default function element(parser) {
191191 parser . allow_whitespace ( ) ;
192192
193193 if ( parent . type === 'RegularElement' && closing_tag_omitted ( parent . name , name ) ) {
194- const opening_tag_end = parent . fragment . nodes [ 0 ] ?. start ?? start ;
195- w . element_implicitly_closed ( { start : parent . start , end : opening_tag_end } , parent . name ) ;
194+ const end = parent . fragment . nodes [ 0 ] ?. start ?? start ;
195+ w . element_implicitly_closed ( { start : parent . start , end } , parent . name ) ;
196196 parent . end = start ;
197197 parser . pop ( ) ;
198198 parser . last_auto_closed_tag = {
You can’t perform that action at this time.
0 commit comments