function isNodeFirstInLine(node, byEndLocation) {
		var firstToken = byEndLocation === true ? context.getLastToken(node, 1) : context.getTokenBefore(node),
			startLine = byEndLocation === true ? node.loc.end.line : node.loc.start.line,
			endLine = firstToken ? firstToken.loc.end.line : -1;

		return startLine !== endLine;
	}
function isNodeFirstInLine(node, byEndLocation) {
		var firstToken = byEndLocation === true ? context.getLastToken(node, 1) : context.getTokenBefore(node),
			startLine = byEndLocation === true ? node.loc.end.line : node.loc.start.line,
			endLine = firstToken ? firstToken.loc.end.line : -1;

		return startLine !== endLine;
	}
function isNodeFirstInLine ( node , byEndLocation ) { var firstToken = byEndLocation === true ? context . getLastToken ( node , 1 ) : context . getTokenBefore ( node ) , startLine = byEndLocation === true ? node . loc . end . line : node . loc . start . line , endLine = firstToken ? firstToken . loc . end . line : - 1 ; return startLine !== endLine ; }
Checks node is the first in its own start line. By default it looks by start line.
@param {ASTNode} node The node to check
@param {boolean} [byEndLocation=false] Lookup based on start position or end
@returns {boolean} true if its the first in the its start line
Checks node is the first in its own start line . By default it looks by start line .