Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Program

Hierarchy

Index

Methods

emit

  • Emits the JavaScript and declaration files. If targetSourceFile is not specified, then the JavaScript and declaration files will be produced for all the files in this program. If targetSourceFile is specified, then only the JavaScript and declaration for that specific file will be generated.

    If writeFile is not specified then the writeFile callback from the compiler host will be used for writing the JavaScript and declaration files. Otherwise, the writeFile parameter will be invoked when writing the JavaScript and declaration files.

    Parameters

    Returns EmitResult

getCompilerOptions

getConfigFileParsingDiagnostics

  • getConfigFileParsingDiagnostics(): readonly Diagnostic[]
  • Returns readonly Diagnostic[]

getCurrentDirectory

  • getCurrentDirectory(): string

getDeclarationDiagnostics

getGlobalDiagnostics

  • Parameters

    Returns readonly Diagnostic[]

getIdentifierCount

  • getIdentifierCount(): number
  • Returns number

getInstantiationCount

  • getInstantiationCount(): number
  • Returns number

getNodeCount

  • getNodeCount(): number
  • Returns number

getOptionsDiagnostics

  • Parameters

    Returns readonly Diagnostic[]

getProjectReferences

  • Returns readonly ProjectReference[]

getRelationCacheSizes

  • getRelationCacheSizes(): { assignable: number; identity: number; strictSubtype: number; subtype: number }
  • Returns { assignable: number; identity: number; strictSubtype: number; subtype: number }

    • assignable: number
    • identity: number
    • strictSubtype: number
    • subtype: number

getResolvedProjectReferences

getRootFileNames

  • getRootFileNames(): readonly string[]
  • Get a list of root file names that were passed to a 'createProgram'

    Returns readonly string[]

getSemanticDiagnostics

  • The first time this is called, it will return global diagnostics (no location).

    Parameters

    Returns readonly Diagnostic[]

getSourceFile

getSourceFileByPath

getSourceFiles

  • Get a list of files in the program

    Returns readonly SourceFile[]

getSymbolCount

  • getSymbolCount(): number
  • Returns number

getSyntacticDiagnostics

getTypeChecker

  • Gets a type checker that can be used to semantically analyze source files in the program.

    Returns TypeChecker

getTypeCount

  • getTypeCount(): number
  • Returns number

isSourceFileDefaultLibrary

  • isSourceFileDefaultLibrary(file: SourceFile): boolean
  • Parameters

    Returns boolean

isSourceFileFromExternalLibrary

  • isSourceFileFromExternalLibrary(file: SourceFile): boolean
  • Parameters

    Returns boolean

Generated using TypeDoc