function getAdjacentCommentTokensFromCursor(cursor) {
	const tokens = [];
	let currentToken = cursor.getOneToken();

	while (currentToken && isCommentToken(currentToken)) {
		tokens.push(currentToken);
		currentToken = cursor.getOneToken();
	}

	return tokens;
}
Gets comment tokens that are adjacent to the current cursor position.
@param {Cursor} cursor A cursor instance.
@returns {Array} An array of comment tokens adjacent to the current cursor position.
@private