Module

x/ts_morph/mod.ts>RefactorEditInfo

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

Set of edits to make in response to a refactor action, plus an optional location where renaming should be invoked from.

Constructors

new
private
RefactorEditInfo()

Properties

readonly
compilerObject: ts.RefactorEditInfo

Gets the compiler refactor edit info.

Methods

Executes the combined code actions.

WARNING: This will cause all nodes to be forgotten in the changed files.

Gets refactor file text changes

getRenameFilePath(): string | undefined

Gets the file path for a rename refactor.

getRenameLocation(): number | undefined

Location where renaming should be invoked from.