@@ -49,7 +49,8 @@ export function VariableDeclaration(node, context) {
49
49
}
50
50
const kind = node . kind ;
51
51
if (
52
- kind !== 'using' && kind !== 'await using' &&
52
+ kind !== 'using' &&
53
+ kind !== 'await using' &&
53
54
init ?. type === 'AwaitExpression' &&
54
55
context . state . analysis . instance ?. scope === context . state . scope &&
55
56
! is_expression_async ( init . argument )
@@ -72,10 +73,7 @@ export function VariableDeclaration(node, context) {
72
73
id,
73
74
init : /** @type {Expression } */ ( visited_init )
74
75
} ;
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 ) ) {
79
77
current_chunk . declarators . push ( _declarator ) ;
80
78
current_chunk . bindings . push ( ...bindings ) ;
81
79
current_chunk . position = /** @type {Program } */ ( parent ) . body . indexOf ( node ) ;
@@ -187,7 +185,8 @@ export function VariableDeclaration(node, context) {
187
185
context . state . analysis . instance ?. scope === context . state . scope &&
188
186
value . type === 'AwaitExpression' &&
189
187
! is_expression_async ( value . argument ) &&
190
- kind !== 'using' && kind !== 'await using' &&
188
+ kind !== 'using' &&
189
+ kind !== 'await using' &&
191
190
can_be_parallelized ( value . argument , context . state . scope , context . state . analysis , [
192
191
...( current_chunk ?. bindings ?? [ ] ) ,
193
192
...bindings
@@ -327,7 +326,8 @@ export function VariableDeclaration(node, context) {
327
326
context . state . scope === context . state . analysis . instance . scope &&
328
327
// TODO make it work without this
329
328
declarator . id . type === 'Identifier' &&
330
- node . kind !== 'await using' && node . kind !== 'using'
329
+ node . kind !== 'await using' &&
330
+ node . kind !== 'using'
331
331
) {
332
332
parallelize = can_be_parallelized ( value , context . state . scope , context . state . analysis , [
333
333
...( current_chunk ?. bindings ?? [ ] ) ,
0 commit comments