(value: any)
| 469 | } |
| 470 | |
| 471 | function isCodeModification(value: any): value is CodeModification { |
| 472 | return ( |
| 473 | value && |
| 474 | typeof value === 'object' && |
| 475 | value.from !== undefined && |
| 476 | value.to !== undefined |
| 477 | ); |
| 478 | } |
| 479 | |
| 480 | /** |
| 481 | * Create a code modification that inserts a piece of code. |