createCursor(
		tokens,
		comments,
		indexMap,
		startLoc,
		endLoc,
		includeComments,
		filter,
		skip,
		count,
	) {
		let cursor = this.createBaseCursor(
			tokens,
			comments,
			indexMap,
			startLoc,
			endLoc,
			includeComments,
		);

		if (filter) {
			cursor = new FilterCursor(cursor, filter);
		}
		if (skip >= 1) {
			cursor = new SkipCursor(cursor, skip);
		}
		if (count >= 0) {
			cursor = new LimitCursor(cursor, count);
		}

		return cursor;
	}
Creates a cursor that iterates tokens with normalized options.
@param {Token[]} tokens The array of tokens.
@param {Comment[]} comments The array of comments.
@param {Object} indexMap The map from locations to indices in `tokens`.
@param {number} startLoc The start location of the iteration range.
@param {number} endLoc The end location of the iteration range.
@param {boolean} includeComments The flag to iterate comments as well.
@param {Function|null} filter The predicate function to choose tokens.
@param {number} skip The count of tokens the cursor skips.
@param {number} count The maximum count of tokens the cursor iterates. Zero is no iteration for backward compatibility.
@returns {Cursor} The created cursor.