(msg: string, node: any)
| 1289 | |
| 1290 | // deno-lint-ignore no-explicit-any |
| 1291 | export function error(msg: string, node: any): never { |
| 1292 | if (node.loc) { |
| 1293 | const { start, end } = node.loc; |
| 1294 | throw new Error(`test.ts:${start.line}:${start.column + 1}-${end.line}:${end.column + 1} ${msg}`); |
| 1295 | } else { |
| 1296 | throw new Error(msg); |
| 1297 | } |
| 1298 | } |
| 1299 | |
| 1300 | // Returns a string that represents a given type |
| 1301 | export function typeShow(ty: Type): string { |
no outgoing calls
no test coverage detected