Skip to main content
Module

x/ts_morph/mod.ts>FileTextChanges

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

Constructors

new
private
FileTextChanges()

Methods

applyChanges(options?: ApplyFileTextChangesOptions): this | undefined

Applies the text changes to the file. This modifies and possibly creates a new source file.

WARNING: This will forget any previously navigated descendant nodes in the source file.

getFilePath(): string

Gets the file path.

getSourceFile(): SourceFile | undefined

Gets the source file if it was in the cache at the time of this class' creation.

Gets the text changes

isNewFile(): boolean

Gets if this change is for creating a new file.