* Replaces text within a file. * @param sourceFile File in which to replace the text. * @param start Index from which to replace the text. * @param removeLength Length of the text being replaced. * @param text Text to be inserted instead of the old one.
(sourceFile: ts.SourceFile, start: number, removeLength: number, text: string)
| 67 | * @param text Text to be inserted instead of the old one. |
| 68 | */ |
| 69 | replaceText(sourceFile: ts.SourceFile, start: number, removeLength: number, text: string): void { |
| 70 | this._trackChange(sourceFile, {start, removeLength, text}); |
| 71 | } |
| 72 | |
| 73 | /** |
| 74 | * Replaces the text of an AST node with a new one. |
no test coverage detected