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
Link copied to clipboard
abstract val resolveModuleNameLiterals: (<Error class: unknown class><StringLiteralLike>, containingFile: String, redirectedReference: ResolvedProjectReference?, options: CompilerOptions, containingSourceFile: SourceFile, <Error class: unknown class><StringLiteralLike>?) -> <Error class: unknown class><ResolvedModuleWithFailedLookupLocations>?
Link copied to clipboard
abstract val resolveModuleNames: (<Error class: unknown class><String>, containingFile: String, <Error class: unknown class><String>?, redirectedReference: ResolvedProjectReference?, options: CompilerOptions, containingSourceFile: SourceFile?) -> <Error class: unknown class><ResolvedModule?>?
Link copied to clipboard
Link copied to clipboard
abstract val resolveTypeReferenceDirectives: (typeReferenceDirectiveNames: Any, containingFile: String, redirectedReference: ResolvedProjectReference?, options: CompilerOptions, ResolutionMode) -> <Error class: unknown class><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