lib/actions/edit-point.js
function isAtCodePoint(stream) {
	const code = stream.peek();

	// between quotes, looks like an empty attribute value
	return (isQuote(code) && getPrevCode(stream) === code)
		// between tags, e.g. > and <
		|| (code === 60 /* < */ && getPrevCode(stream) === 62 /* > */)
		// on empty line
		|| (isLineBreak(code) && reEmptyLine.test(stream.buffer.lineForRow(stream.pos.row)));
}
function isAtCodePoint(stream) {
	const code = stream.peek();

	// between quotes, looks like an empty attribute value
	return (isQuote(code) && getPrevCode(stream) === code)
		// between tags, e.g. > and <
		|| (code === 60 /* < */ && getPrevCode(stream) === 62 /* > */)
		// on empty line
		|| (isLineBreak(code) && reEmptyLine.test(stream.buffer.lineForRow(stream.pos.row)));
}
function isAtCodePoint ( stream ) { const code = stream . peek ( ) ; // between quotes, looks like an empty attribute value return ( isQuote ( code ) && getPrevCode ( stream ) === code ) // between tags, e.g. > and < || ( code === 60 /* < */ && getPrevCode ( stream ) === 62 /* > */ ) // on empty line || ( isLineBreak ( code ) && reEmptyLine . test ( stream . buffer . lineForRow ( stream . pos . row ) ) ) ; }
Check if stream is currently at edit code point
@param  {BufferStreamReader}  stream
@return {Boolean}
Check if stream is currently at edit code point