parse_exports_context.ts view source
A class to track export context and determine export kinds.
log
type Logger | undefined
readonly
debug
constructor
type new (program: Program, log?: Logger | undefined): ParseExportsContext
program
type
Programlog?
type
Logger | undefinedoptional
analyze_source_file
Analyze a source file to prepare for export processing.
type (source_file: SourceFile): void
source_file
type
SourceFilereturns
voidprocess_exports
Process a list of exported symbols and identify their kinds.
type (source_file: SourceFile, exports: Symbol[], declarations?: ExportDeclaration[]): ExportDeclaration[]
source_file
type
SourceFileexports
type
Symbol[]declarations
type
ExportDeclaration[] default
[]returns
ExportDeclaration[]