private function commentPrecedesNode( Node\Comment $comment, Node\Node $node ) {
		// Comments should be on the same or an earlier line than the translation.
		if ( $node->getLocation()->getStart()->getLine() - $comment->getLocation()->getEnd()->getLine() > 1 ) {
			return false;
		}

		// Comments on the same line should be before the translation.
		if (
			$node->getLocation()->getStart()->getLine() === $comment->getLocation()->getEnd()->getLine() &&
			$node->getLocation()->getStart()->getColumn() < $comment->getLocation()->getStart()->getColumn()
		) {
			return false;
		}

		return true;
	}
private function commentPrecedesNode( Node\Comment $comment, Node\Node $node ) {
		// Comments should be on the same or an earlier line than the translation.
		if ( $node->getLocation()->getStart()->getLine() - $comment->getLocation()->getEnd()->getLine() > 1 ) {
			return false;
		}

		// Comments on the same line should be before the translation.
		if (
			$node->getLocation()->getStart()->getLine() === $comment->getLocation()->getEnd()->getLine() &&
			$node->getLocation()->getStart()->getColumn() < $comment->getLocation()->getStart()->getColumn()
		) {
			return false;
		}

		return true;
	}
private function commentPrecedesNode ( Node \ Comment $ comment , Node \ Node $ node ) { // Comments should be on the same or an earlier line than the translation. if ( $ node -> getLocation ( ) -> getStart ( ) -> getLine ( ) - $ comment -> getLocation ( ) -> getEnd ( ) -> getLine ( ) > 1 ) { return false ; } // Comments on the same line should be before the translation. if ( $ node -> getLocation ( ) -> getStart ( ) -> getLine ( ) === $ comment -> getLocation ( ) -> getEnd ( ) -> getLine ( ) && $ node -> getLocation ( ) -> getStart ( ) -> getColumn ( ) < $ comment -> getLocation ( ) -> getStart ( ) -> getColumn ( ) ) { return false ; } return true ; }
Returns wether or not a comment precedes a node.
The comment must be before the node and on the same line or the one before.

@param Node\Comment $comment The comment.
@param Node\Node    $node    The node.

@return bool Whether or not the comment precedes the node.
Returns wether or not a comment precedes a node . The comment must be before the node and on the same line or the one before .