* Check if a function can recover gracefully.
(error: TSError)
| 753 | * Check if a function can recover gracefully. |
| 754 | */ |
| 755 | function isRecoverable(error: TSError) { |
| 756 | return error.diagnosticCodes.every((code) => { |
| 757 | const deps = RECOVERY_CODES.get(code); |
| 758 | return ( |
| 759 | deps === null || |
| 760 | (deps && error.diagnosticCodes.some((code) => deps.has(code))) |
| 761 | ); |
| 762 | }); |
| 763 | } |
| 764 | |
| 765 | /** |
| 766 | * @internal |
no test coverage detected
searching dependent graphs…