summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/lib/source-code/token-store/cursors.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/lib/source-code/token-store/cursors.js')
-rw-r--r--tools/node_modules/eslint/lib/source-code/token-store/cursors.js36
1 files changed, 17 insertions, 19 deletions
diff --git a/tools/node_modules/eslint/lib/source-code/token-store/cursors.js b/tools/node_modules/eslint/lib/source-code/token-store/cursors.js
index b315c7e65e..30c72b69b8 100644
--- a/tools/node_modules/eslint/lib/source-code/token-store/cursors.js
+++ b/tools/node_modules/eslint/lib/source-code/token-store/cursors.js
@@ -28,8 +28,8 @@ class CursorFactory {
/**
* Initializes this cursor.
- * @param {Function} TokenCursor - The class of the cursor which iterates tokens only.
- * @param {Function} TokenCommentCursor - The class of the cursor which iterates the mix of tokens and comments.
+ * @param {Function} TokenCursor The class of the cursor which iterates tokens only.
+ * @param {Function} TokenCommentCursor The class of the cursor which iterates the mix of tokens and comments.
*/
constructor(TokenCursor, TokenCommentCursor) {
this.TokenCursor = TokenCursor;
@@ -38,13 +38,12 @@ class CursorFactory {
/**
* Creates a base cursor instance that can be decorated by createCursor.
- *
- * @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 {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.
* @returns {Cursor} The created base cursor.
*/
createBaseCursor(tokens, comments, indexMap, startLoc, endLoc, includeComments) {
@@ -55,16 +54,15 @@ class CursorFactory {
/**
* 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.
+ * @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.
*/
createCursor(tokens, comments, indexMap, startLoc, endLoc, includeComments, filter, skip, count) {