Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EmitAndSemanticDiagnosticsBuilderProgram

The builder that can handle the changes in program and iterate through changed file to emit the files The semantic diagnostics are cached per file and managed by clearing for the changed/affected files

Hierarchy

Index

Methods

emit

  • Emits the JavaScript and declaration files. When targetSource file is specified, emits the files corresponding to that source file, otherwise for the whole program. In case of EmitAndSemanticDiagnosticsBuilderProgram, when targetSourceFile is specified, it is assumed that that file is handled from affected file list. If targetSourceFile is not specified, it will only emit all the affected files instead of whole program

    The first of writeFile if provided, writeFile of BuilderProgramHost if provided, writeFile of compiler host in that order would be used to write the files

    Parameters

    Returns EmitResult

emitNextAffectedFile

  • Emits the next affected file's emit result (EmitResult and sourceFiles emitted) or returns undefined if iteration is complete The first of writeFile if provided, writeFile of BuilderProgramHost if provided, writeFile of compiler host in that order would be used to write the files

    Parameters

    Returns { affected: Program | SourceFile; result: EmitResult }

getAllDependencies

  • getAllDependencies(sourceFile: SourceFile): readonly string[]

getCompilerOptions

getConfigFileParsingDiagnostics

  • getConfigFileParsingDiagnostics(): readonly Diagnostic[]

getCurrentDirectory

  • getCurrentDirectory(): string

getDeclarationDiagnostics

getGlobalDiagnostics

getOptionsDiagnostics

getProgram

getSemanticDiagnostics

  • Gets the semantic diagnostics from the program corresponding to this state of file (if provided) or whole program The semantic diagnostics are cached and managed here Note that it is assumed that when asked about semantic diagnostics through this API, the file has been taken out of affected files so it is safe to use cache or get from program and cache the diagnostics In case of SemanticDiagnosticsBuilderProgram if the source file is not provided, it will iterate through all the affected files, to ensure that cache stays valid and yet provide a way to get all semantic diagnostics

    Parameters

    Returns readonly Diagnostic[]

getSemanticDiagnosticsOfNextAffectedFile

getSourceFile

getSourceFiles

getSyntacticDiagnostics

Generated using TypeDoc