parse_exports.ts

Declarations
#

5 declarations

view source

Declaration
#

ExportDeclaration
#

infer_declarations_from_file_type
#

parse_exports.ts view source

(file_path: PathId, declarations?: ExportDeclaration[]): ExportDeclaration[]

file_path

type PathId

declarations

type ExportDeclaration[]
default []

returns

ExportDeclaration[]

parse_exports
#

parse_exports.ts view source

(id: PathId, program?: Program | undefined, declarations?: ExportDeclaration[], log?: Logger | undefined): ExportDeclaration[]

Parse exports from a file based on its file type and content.

id

type PathId

program?

type Program | undefined
optional

declarations

type ExportDeclaration[]
default []

log?

type Logger | undefined
optional

returns

ExportDeclaration[]

process_ts_exports
#

parse_exports.ts view source

(source_file: SourceFile, program: Program, exports: Symbol[], declarations?: ExportDeclaration[], log?: Logger | undefined): ExportDeclaration[]

Process TypeScript exports, identifying their kinds.

source_file

type SourceFile

program

type Program

exports

type Symbol[]

declarations

type ExportDeclaration[]
default []

log?

type Logger | undefined
optional

returns

ExportDeclaration[]

Depends on
#

Imported by
#