@@ -663,15 +663,6 @@ function createProcessingState(): ProcessingState {
663
663
declarationBuffer : null ,
664
664
importTracking : createImportTrackingState ( ) ,
665
665
defaultExports : new Set ( ) ,
666
- debug : {
667
- exports : {
668
- default : [ ] ,
669
- named : [ ] ,
670
- all : [ ] ,
671
- } ,
672
- declarations : [ ] ,
673
- currentProcessing : '' ,
674
- } ,
675
666
currentScope : 'top' ,
676
667
}
677
668
}
@@ -1322,7 +1313,7 @@ function processFunctionBlock(cleanDeclaration: string, state: ProcessingState):
1322
1313
// First check for generator functions
1323
1314
if ( / ^ (?: e x p o r t \s + ) ? (?: a s y n c \s + ) ? f u n c t i o n \s * \* / . test ( cleanDeclaration ) ) {
1324
1315
debugLog ( 'block-processing' , 'Processing generator function declaration' )
1325
- const processed = processGeneratorFunction ( cleanDeclaration , state )
1316
+ const processed = processGeneratorFunction ( cleanDeclaration )
1326
1317
if ( processed ) {
1327
1318
state . dtsLines . push ( processed )
1328
1319
return true
@@ -1503,11 +1494,7 @@ function processExportBlock(cleanDeclaration: string, declarationText: string, s
1503
1494
}
1504
1495
1505
1496
// Log unhandled export
1506
- debugLog (
1507
- state ,
1508
- 'processing' ,
1509
- `Unhandled exported declaration type: ${ cleanDeclaration . split ( '\n' ) [ 0 ] } ` ,
1510
- )
1497
+ debugLog ( 'processing' , `Unhandled exported declaration type: ${ cleanDeclaration . split ( '\n' ) [ 0 ] } ` )
1511
1498
return true
1512
1499
}
1513
1500
@@ -2071,7 +2058,7 @@ function getCleanDeclaration(declaration: string): string {
2071
2058
return lines . slice ( startIndex ) . join ( '\n' ) . trim ( )
2072
2059
}
2073
2060
2074
- function processGeneratorFunction ( declaration : string , state ?: ProcessingState ) : string {
2061
+ function processGeneratorFunction ( declaration : string ) : string {
2075
2062
debugLog ( 'generator-function' , `Processing generator function: ${ declaration } ` )
2076
2063
2077
2064
// Clean up the declaration but keep info for processing
0 commit comments