Skip to content

Commit a958eb5

Browse files
committed
chore: wip
1 parent b7f8212 commit a958eb5

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

src/extract.ts

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -663,15 +663,6 @@ function createProcessingState(): ProcessingState {
663663
declarationBuffer: null,
664664
importTracking: createImportTrackingState(),
665665
defaultExports: new Set(),
666-
debug: {
667-
exports: {
668-
default: [],
669-
named: [],
670-
all: [],
671-
},
672-
declarations: [],
673-
currentProcessing: '',
674-
},
675666
currentScope: 'top',
676667
}
677668
}
@@ -1322,7 +1313,7 @@ function processFunctionBlock(cleanDeclaration: string, state: ProcessingState):
13221313
// First check for generator functions
13231314
if (/^(?:export\s+)?(?:async\s+)?function\s*\*/.test(cleanDeclaration)) {
13241315
debugLog('block-processing', 'Processing generator function declaration')
1325-
const processed = processGeneratorFunction(cleanDeclaration, state)
1316+
const processed = processGeneratorFunction(cleanDeclaration)
13261317
if (processed) {
13271318
state.dtsLines.push(processed)
13281319
return true
@@ -1503,11 +1494,7 @@ function processExportBlock(cleanDeclaration: string, declarationText: string, s
15031494
}
15041495

15051496
// 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]}`)
15111498
return true
15121499
}
15131500

@@ -2071,7 +2058,7 @@ function getCleanDeclaration(declaration: string): string {
20712058
return lines.slice(startIndex).join('\n').trim()
20722059
}
20732060

2074-
function processGeneratorFunction(declaration: string, state?: ProcessingState): string {
2061+
function processGeneratorFunction(declaration: string): string {
20752062
debugLog('generator-function', `Processing generator function: ${declaration}`)
20762063

20772064
// Clean up the declaration but keep info for processing

0 commit comments

Comments
 (0)