CompilerHost
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the module resolution cache used by a provided resolveModuleNames
implementation so that any non-name module resolution operations (eg, package.json lookup) can reuse it
Link copied to clipboard
Link copied to clipboard
abstract val getSourceFileByPath: (fileName: String, Path, languageVersionOrOptions: CompilerHostGetSourceFileByPathLanguageVersionOrOptions, onError: (message: String) -> Unit?, shouldCreateNewSourceFile: Boolean?) -> SourceFile??
Link copied to clipboard
If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives
Link copied to clipboard
Link copied to clipboard
abstract val readDirectory: (rootDir: String, ReadonlyArray<String>, ReadonlyArray<String>?, ReadonlyArray<String>, depth: Double?) -> ReadonlyArray<String>?
Link copied to clipboard
abstract val resolveModuleNameLiterals: (ReadonlyArray<StringLiteralLike>, containingFile: String, redirectedReference: ResolvedProjectReference?, options: CompilerOptions, containingSourceFile: SourceFile, ReadonlyArray<StringLiteralLike>?) -> ReadonlyArray<ResolvedModuleWithFailedLookupLocations>?
Link copied to clipboard
abstract val resolveModuleNames: (ReadonlyArray<String>, containingFile: String, ReadonlyArray<String>?, redirectedReference: ResolvedProjectReference?, options: CompilerOptions, containingSourceFile: SourceFile?) -> ReadonlyArray<ResolvedModule?>?
Link copied to clipboard
Link copied to clipboard
abstract val resolveTypeReferenceDirectives: (typeReferenceDirectiveNames: Any, containingFile: String, redirectedReference: ResolvedProjectReference?, options: CompilerOptions, ResolutionMode) -> ReadonlyArray<ResolvedTypeReferenceDirective?>?
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getSourceFile(fileName: String, languageVersionOrOptions: CreateSourceFileOptions, onError: (message: String) -> Unit = definedExternally, shouldCreateNewSourceFile: Boolean = definedExternally): SourceFile?
abstract fun getSourceFile(fileName: String, languageVersionOrOptions: ScriptTarget, onError: (message: String) -> Unit = definedExternally, shouldCreateNewSourceFile: Boolean = definedExternally): SourceFile?
Link copied to clipboard