class SourceFile
extends SourceFileBase
import { SourceFile } from "https://dotland.deno.dev/x/ts_morph@15.1.0/ts_morph.js";
Methods
_copyInternal(fileAbsoluteOrRelativePath, options?)
_doActionPreNextModification(action)
_moveInternal(fileRelativeOrAbsolutePath, options?)
_refreshFromFileSystemInternal(fileReadResult)
_replaceCompilerNodeFromFactory(compilerNode)
_setIsSaved(value)
_updateReferencesForCopyInternal(literalReferences)
_updateReferencesForMoveInternal(sourceFileReferences, oldDirPath)
applyTextChanges(textChanges)
copy(filePath, options?)
copyImmediately(filePath, options)
copyImmediatelySync(filePath, options)
copyToDirectory(dirPathOrDirectory, options)
delete()
emit(options)
emitSync(options)
fixMissingImports(formatSettings?, userPreferences?)
fixUnusedIdentifiers(formatSettings?, userPreferences?)
formatText(settings?)
getEmitOutput(options?)
getRelativePathAsModuleSpecifierTo(sourceFileDirOrFilePath)
getRelativePathTo(sourceFileDirOrPath)
indent(positionRangeOrPos, times?)
isSaved()
move(filePath, options?)
moveImmediately(filePath, options)
moveImmediatelySync(filePath, options)
moveToDirectory(dirPathOrDirectory, options)
onModified(subscription, subscribe?)
organizeImports(formatSettings?, userPreferences?)
save()
saveSync()
set(structure)
unindent(positionRangeOrPos, times?)