Skip to content

Commit

Permalink
chore(typescript-estree): use SyntaxKind.LastPunctuation as upper b…
Browse files Browse the repository at this point in the history
…ound to determine `Punctuator` token type (#3519)
  • Loading branch information
MichaelDeBoey committed Jun 14, 2021
1 parent b15a2b2 commit c7a95ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typescript-estree/src/node-utils.ts
Expand Up @@ -518,7 +518,7 @@ export function getTokenType(

if (
token.kind >= SyntaxKind.FirstPunctuation &&
token.kind <= SyntaxKind.LastBinaryOperator
token.kind <= SyntaxKind.LastPunctuation
) {
return AST_TOKEN_TYPES.Punctuator;
}
Expand Down

0 comments on commit c7a95ab

Please sign in to comment.