(code: ErrorCode)
| 29 | } |
| 30 | |
| 31 | export function ngErrorCode(code: ErrorCode): number { |
| 32 | const absoluteCode = Math.abs(code); |
| 33 | return -(ERROR_CODE_MARKER * 10 ** decimalDigits(absoluteCode) + absoluteCode); |
| 34 | } |
| 35 | |
| 36 | export function formatCompilerErrorCode(code: number): string { |
| 37 | return `NG${Math.abs(code)}`; |
no test coverage detected