| /** |
| * @license |
| * Copyright Google LLC All Rights Reserved. |
| * |
| * Use of this source code is governed by an MIT-style license that can be |
| * found in the LICENSE file at https://angular.io/license |
| */ |
| /// <amd-module name="@angular/core/schematics/migrations/relative-link-resolution/update_recorder" /> |
| import * as ts from 'typescript'; |
| /** |
| * Update recorder interface that is used to transform source files in a non-colliding |
| * way. Also this indirection makes it possible to re-use logic for both TSLint rules |
| * and CLI devkit schematic updates. |
| */ |
| export interface UpdateRecorder { |
| updateNode(node: ts.Node, newText: string): void; |
| commitUpdate(): void; |
| } |