matchCommentToNode

This function matches a comment to the closest node according to a heuristic: Comments are assigned to the closest successor node on their ast hierarchy level. Only Exception, if they don't have a successor starting in the same line but they have a predecessor in the same line, the comment is matched to that closest predecessor.