(message: string, node: Node, input: string)
| 2 | import {getLineInfo} from "acorn"; |
| 3 | |
| 4 | export function syntaxError(message: string, node: Node, input: string): SyntaxError { |
| 5 | const {line, column} = getLineInfo(input, node.start); |
| 6 | return new SyntaxError(`${message} (${line}:${column})`); |
| 7 | } |
no outgoing calls
no test coverage detected