Skip to content

Commit cd91306

Browse files
committed
consistent comments for skip
1 parent 63e638b commit cd91306

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/oxlint/src-js/plugins/tokens.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ export function getFirstToken(
425425
debugAssertIsNonNull(tokens);
426426
debugAssertIsNonNull(comments);
427427

428-
// Number of tokens to skip
428+
// Number of tokens at the beginning of the given node to skip
429429
let skip =
430430
typeof skipOptions === "number"
431431
? skipOptions
@@ -617,7 +617,7 @@ export function getLastToken(
617617
debugAssertIsNonNull(tokens);
618618
debugAssertIsNonNull(comments);
619619

620-
// Number of tokens to skip from the end
620+
// Number of tokens at the end of the given node to skip
621621
let skip =
622622
typeof skipOptions === "number"
623623
? skipOptions
@@ -1001,6 +1001,7 @@ export function getTokenAfter(
10011001
debugAssertIsNonNull(tokens);
10021002
debugAssertIsNonNull(comments);
10031003

1004+
// Number of tokens following the given node to skip
10041005
let skip =
10051006
typeof skipOptions === "number"
10061007
? skipOptions
@@ -1288,6 +1289,7 @@ export function getFirstTokenBetween(
12881289
debugAssertIsNonNull(tokens);
12891290
debugAssertIsNonNull(comments);
12901291

1292+
// Number of tokens at the beginning of the "between" range to skip
12911293
let skip =
12921294
typeof skipOptions === "number"
12931295
? skipOptions
@@ -1477,6 +1479,7 @@ export function getLastTokenBetween(
14771479
debugAssertIsNonNull(tokens);
14781480
debugAssertIsNonNull(comments);
14791481

1482+
// Number of tokens at the end of the "between" range to skip
14801483
let skip =
14811484
typeof skipOptions === "number"
14821485
? skipOptions

0 commit comments

Comments
 (0)