(a: {key: string}, b: {key: string})
| 9 | // JSON serializer |
| 10 | |
| 11 | const typeFirstCompare = (a: {key: string}, b: {key: string}) => { |
| 12 | if (a.key === 'type') { |
| 13 | return -1; |
| 14 | } else if (b.key === 'type') { |
| 15 | return 1; |
| 16 | } else { |
| 17 | return a.key < b.key ? -1 : 1; |
| 18 | } |
| 19 | }; |
| 20 | |
| 21 | const replacer = (key: string, value: unknown) => { |
| 22 | if (value instanceof Lexer) { |
nothing calls this directly
no outgoing calls
no test coverage detected