@@ -345,11 +345,11 @@ function get_assignment_value(node, { state, visit }) {
345
345
return operator === '='
346
346
? /** @type {import('estree').Expression } */ ( visit ( node . right ) )
347
347
: // turn something like x += 1 into x = x + 1
348
- b . binary (
348
+ b . binary (
349
349
/** @type {import('estree').BinaryOperator } */ ( operator . slice ( 0 , - 1 ) ) ,
350
350
serialize_get_binding ( node . left , state ) ,
351
351
/** @type {import('estree').Expression } */ ( visit ( node . right ) )
352
- ) ;
352
+ ) ;
353
353
} else {
354
354
return /** @type {import('estree').Expression } */ ( visit ( node . right ) ) ;
355
355
}
@@ -801,7 +801,7 @@ function serialize_element_spread_attributes(
801
801
b . id ( 'join' )
802
802
) ,
803
803
b . literal ( ' ' )
804
- )
804
+ )
805
805
: b . literal ( '' ) ;
806
806
args . push (
807
807
b . object ( [
@@ -965,7 +965,7 @@ function serialize_inline_component(node, component_name, context) {
965
965
: b . call (
966
966
'$.spread_props' ,
967
967
b . array ( props_and_spreads . map ( ( p ) => ( Array . isArray ( p ) ? b . object ( p ) : p ) ) )
968
- ) ;
968
+ ) ;
969
969
970
970
/** @type {import('estree').Statement } */
971
971
let statement = b . stmt (
@@ -974,7 +974,7 @@ function serialize_inline_component(node, component_name, context) {
974
974
? b . call (
975
975
'$.validate_component' ,
976
976
typeof component_name === 'string' ? b . id ( component_name ) : component_name
977
- )
977
+ )
978
978
: component_name ,
979
979
b . id ( '$$payload' ) ,
980
980
props_expression
@@ -1066,7 +1066,7 @@ const javascript_visitors_legacy = {
1066
1066
'$.value_or_fallback' ,
1067
1067
prop ,
1068
1068
/** @type {import('estree').Expression } */ ( visit ( declarator . init ) )
1069
- )
1069
+ )
1070
1070
: prop ;
1071
1071
1072
1072
declarations . push ( b . declarator ( declarator . id , init ) ) ;
@@ -1204,7 +1204,7 @@ const template_visitors = {
1204
1204
template : [ ] ,
1205
1205
init : [ ]
1206
1206
}
1207
- }
1207
+ }
1208
1208
: { ...context , state } ;
1209
1209
1210
1210
const { hoisted, trimmed } = clean_nodes (
@@ -1532,9 +1532,9 @@ const template_visitors = {
1532
1532
b . let (
1533
1533
node . expression . type === 'ObjectExpression'
1534
1534
? // @ts -expect-error types don't match, but it can't contain spread elements and the structure is otherwise fine
1535
- b . object_pattern ( node . expression . properties )
1535
+ b . object_pattern ( node . expression . properties )
1536
1536
: // @ts -expect-error types don't match, but it can't contain spread elements and the structure is otherwise fine
1537
- b . array_pattern ( node . expression . elements ) ,
1537
+ b . array_pattern ( node . expression . elements ) ,
1538
1538
b . member ( b . id ( '$$slotProps' ) , b . id ( node . name ) )
1539
1539
) ,
1540
1540
b . return ( b . object ( bindings . map ( ( binding ) => b . init ( binding . node . name , binding . node ) ) ) )
@@ -1768,12 +1768,12 @@ function serialize_element_attributes(node, context) {
1768
1768
? b . call (
1769
1769
b . member ( attribute . expression , b . id ( 'includes' ) ) ,
1770
1770
serialize_attribute_value ( value_attribute . value , context )
1771
- )
1771
+ )
1772
1772
: b . binary (
1773
1773
'===' ,
1774
1774
attribute . expression ,
1775
1775
serialize_attribute_value ( value_attribute . value , context )
1776
- ) ,
1776
+ ) ,
1777
1777
metadata : {
1778
1778
contains_call_expression : false ,
1779
1779
dynamic : false
0 commit comments