Skip to main content
Module

x/ts_morph/ts_morph.js>SourceFile

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
class SourceFile
import { SourceFile } from "https://deno.land/x/ts_morph@15.1.0/ts_morph.js";

Constructors

new
SourceFile(context, node)

Methods

_copyInternal(fileAbsoluteOrRelativePath, options?)
_moveInternal(fileRelativeOrAbsolutePath, options?)
_updateReferencesForMoveInternal(sourceFileReferences, oldDirPath)
applyTextChanges(textChanges)
copy(filePath, options?)
copyImmediately(filePath, options)
copyImmediatelySync(filePath, options)
copyToDirectory(dirPathOrDirectory, options)
emit(options)
emitSync(options)
fixMissingImports(formatSettings?, userPreferences?)
fixUnusedIdentifiers(formatSettings?, userPreferences?)
formatText(settings?)
getEmitOutput(options?)
getRelativePathAsModuleSpecifierTo(sourceFileDirOrFilePath)
getRelativePathTo(sourceFileDirOrPath)
indent(positionRangeOrPos, times?)
move(filePath, options?)
moveImmediately(filePath, options)
moveImmediatelySync(filePath, options)
moveToDirectory(dirPathOrDirectory, options)
onModified(subscription, subscribe?)
organizeImports(formatSettings?, userPreferences?)
set(structure)
unindent(positionRangeOrPos, times?)