lib/parse.js
function throwSyntaxError(message) {
		let curr = getSourcePoint(),
			snippet = getSnippet(source, curr.line, curr.line),
			err = new SyntaxError(`${message}\n${snippet}`)
		err.pos = getSourcePoint()
		throw err
	}
function throwSyntaxError(message) {
		let curr = getSourcePoint(),
			snippet = getSnippet(source, curr.line, curr.line),
			err = new SyntaxError(`${message}\n${snippet}`)
		err.pos = getSourcePoint()
		throw err
	}
function throwSyntaxError ( message ) { let curr = getSourcePoint ( ) , snippet = getSnippet ( source , curr . line , curr . line ) , err = new SyntaxError ( ` ${ message } \n ${ snippet } ` ) err . pos = getSourcePoint ( ) throw err }
Throw a syntax error in the current position
@param {string} message
@throws {SyntaxError}
Throw a syntax error in the current position