44 */
55"use strict" ;
66
7+ //------------------------------------------------------------------------------
8+ // Typedefs
9+ //------------------------------------------------------------------------------
10+
11+ /**
12+ * @import { SourceRange } from "@eslint/core";
13+ */
14+
715/* eslint class-methods-use-this: off -- Methods desired on instance */
816
917//------------------------------------------------------------------------------
1826
1927/**
2028 * Creates a fix command that inserts text at the specified index in the source text.
21- * @param {int } index The 0-based index at which to insert the new text.
29+ * @param {number } index The 0-based index at which to insert the new text.
2230 * @param {string } text The text to insert.
2331 * @returns {Object } The fix command.
2432 * @private
@@ -69,7 +77,7 @@ class RuleFixer {
6977 /**
7078 * Creates a fix command that inserts text after the specified range in the source text.
7179 * The fix is not applied until applyFixes() is called.
72- * @param {int[] } range The range to replace, first item is start of range, second
80+ * @param {SourceRange } range The range to replace, first item is start of range, second
7381 * is end of range.
7482 * @param {string } text The text to insert.
7583 * @returns {Object } The fix command.
@@ -94,7 +102,7 @@ class RuleFixer {
94102 /**
95103 * Creates a fix command that inserts text before the specified range in the source text.
96104 * The fix is not applied until applyFixes() is called.
97- * @param {int[] } range The range to replace, first item is start of range, second
105+ * @param {SourceRange } range The range to replace, first item is start of range, second
98106 * is end of range.
99107 * @param {string } text The text to insert.
100108 * @returns {Object } The fix command.
@@ -119,7 +127,7 @@ class RuleFixer {
119127 /**
120128 * Creates a fix command that replaces text at the specified range in the source text.
121129 * The fix is not applied until applyFixes() is called.
122- * @param {int[] } range The range to replace, first item is start of range, second
130+ * @param {SourceRange } range The range to replace, first item is start of range, second
123131 * is end of range.
124132 * @param {string } text The text to insert.
125133 * @returns {Object } The fix command.
@@ -146,7 +154,7 @@ class RuleFixer {
146154 /**
147155 * Creates a fix command that removes the specified range of text from the source.
148156 * The fix is not applied until applyFixes() is called.
149- * @param {int[] } range The range to remove, first item is start of range, second
157+ * @param {SourceRange } range The range to remove, first item is start of range, second
150158 * is end of range.
151159 * @returns {Object } The fix command.
152160 */
0 commit comments