8000 chore(typescript-estree): use `SyntaxKind.LastPunctuation` as upper b… · mrmckeb/typescript-eslint@c7a95ab · GitHub
[go: up one dir, main page]

Skip to content

Commit c7a95ab

Browse files
chore(typescript-estree): use SyntaxKind.LastPunctuation as upper bound to determine Punctuator token type (typescript-eslint#3519)
1 parent b15a2b2 commit c7a95ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/typescript-estree/src/node-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ export function getTokenType(
518518

519519
if (
520520
token.kind >= SyntaxKind.FirstPunctuation &&
521-
token.kind <= SyntaxKind.LastBinaryOperator
521+
token.kind <= SyntaxKind.LastPunctuation
522522
) {
523523
return AST_TOKEN_TYPES.Punctuator;
524524
}

0 commit comments

Comments
 (0)
0