@@ -49,7 +49,8 @@ export function VariableDeclaration(node, context) {
4949 }
5050 const kind = node . kind ;
5151 if (
52- kind !== 'using' && kind !== 'await using' &&
52+ kind !== 'using' &&
53+ kind !== 'await using' &&
5354 init ?. type === 'AwaitExpression' &&
5455 context . state . analysis . instance ?. scope === context . state . scope &&
5556 ! is_expression_async ( init . argument )
@@ -72,10 +73,7 @@ export function VariableDeclaration(node, context) {
7273 id,
7374 init : /** @type {Expression } */ ( visited_init )
7475 } ;
75- if (
76- current_chunk &&
77- ( current_chunk . kind === kind || current_chunk . kind === null )
78- ) {
76+ if ( current_chunk && ( current_chunk . kind === kind || current_chunk . kind === null ) ) {
7977 current_chunk . declarators . push ( _declarator ) ;
8078 current_chunk . bindings . push ( ...bindings ) ;
8179 current_chunk . position = /** @type {Program } */ ( parent ) . body . indexOf ( node ) ;
@@ -187,7 +185,8 @@ export function VariableDeclaration(node, context) {
187185 context . state . analysis . instance ?. scope === context . state . scope &&
188186 value . type === 'AwaitExpression' &&
189187 ! is_expression_async ( value . argument ) &&
190- kind !== 'using' && kind !== 'await using' &&
188+ kind !== 'using' &&
189+ kind !== 'await using' &&
191190 can_be_parallelized ( value . argument , context . state . scope , context . state . analysis , [
192191 ...( current_chunk ?. bindings ?? [ ] ) ,
193192 ...bindings
@@ -327,7 +326,8 @@ export function VariableDeclaration(node, context) {
327326 context . state . scope === context . state . analysis . instance . scope &&
328327 // TODO make it work without this
329328 declarator . id . type === 'Identifier' &&
330- node . kind !== 'await using' && node . kind !== 'using'
329+ node . kind !== 'await using' &&
330+ node . kind !== 'using'
331331 ) {
332332 parallelize = can_be_parallelized ( value , context . state . scope , context . state . analysis , [
333333 ...( current_chunk ?. bindings ?? [ ] ) ,
0 commit comments