(handler: LoggingFunctionWithPosition)
| 98 | |
| 99 | const getLogHandler = |
| 100 | (handler: LoggingFunctionWithPosition): LoggingFunctionWithPosition => |
| 101 | (log, pos) => { |
| 102 | log = normalizeLog(log); |
| 103 | if (pos) augmentCodeLocation(log, pos, currentSource, id); |
| 104 | log.id = id; |
| 105 | log.hook = 'transform'; |
| 106 | handler(log); |
| 107 | }; |
| 108 | |
| 109 | let code: string; |
| 110 |
no test coverage detected
searching dependent graphs…