3
3
// found in the LICENSE file.
4
4
5
5
import {
6
- type GeneratedRangeBindingsItem ,
7
6
GeneratedRangeFlags ,
8
7
type GeneratedRangeStartItem ,
9
8
OriginalScopeFlags ,
10
9
type OriginalScopeStartItem ,
11
- type OriginalScopeVariablesItem ,
12
10
Tag ,
13
11
} from "../codec.ts" ;
14
12
import type {
@@ -121,7 +119,7 @@ class Decoder {
121
119
variableIdxs . push ( iter . nextSignedVLQ ( ) ) ;
122
120
}
123
121
124
- this . #handleOriginalScopeVariablesItem( { variableIdxs } ) ;
122
+ this . #handleOriginalScopeVariablesItem( variableIdxs ) ;
125
123
break ;
126
124
}
127
125
case Tag . ORIGINAL_SCOPE_END : {
@@ -170,7 +168,7 @@ class Decoder {
170
168
valueIdxs . push ( iter . nextSignedVLQ ( ) ) ;
171
169
}
172
170
173
- this . #handleGeneratedRangeBindingsItem( { valueIdxs } ) ;
171
+ this . #handleGeneratedRangeBindingsItem( valueIdxs ) ;
174
172
break ;
175
173
}
176
174
}
@@ -236,7 +234,7 @@ class Decoder {
236
234
this . #flatOriginalScopes. push ( scope ) ;
237
235
}
238
236
239
- #handleOriginalScopeVariablesItem( item : OriginalScopeVariablesItem ) {
237
+ #handleOriginalScopeVariablesItem( variableIdxs : number [ ] ) {
240
238
const scope = this . #scopeStack. at ( - 1 ) ;
241
239
if ( ! scope ) {
242
240
this . #throwInStrictMode(
@@ -245,7 +243,7 @@ class Decoder {
245
243
return ;
246
244
}
247
245
248
- for ( const variableIdx of item . variableIdxs ) {
246
+ for ( const variableIdx of variableIdxs ) {
249
247
this . #scopeState. variable += variableIdx ;
250
248
scope . variables . push ( this . #names[ this . #scopeState. variable ] ) ;
251
249
@@ -311,7 +309,7 @@ class Decoder {
311
309
this . #rangeStack. push ( range ) ;
312
310
}
313
311
314
- #handleGeneratedRangeBindingsItem( item : GeneratedRangeBindingsItem ) {
312
+ #handleGeneratedRangeBindingsItem( valueIdxs : number [ ] ) {
315
313
const range = this . #rangeStack. at ( - 1 ) ;
316
314
if ( ! range ) {
317
315
this . #throwInStrictMode(
@@ -320,7 +318,7 @@ class Decoder {
320
318
return ;
321
319
}
322
320
323
- for ( const valueIdx of item . valueIdxs ) {
321
+ for ( const valueIdx of valueIdxs ) {
324
322
if ( valueIdx === - 1 ) {
325
323
range . values . push ( null ) ;
326
324
} else {
0 commit comments