MCPcopy Create free account
hub / github.com/babel/babel / tokenIsLoop

Function tokenIsLoop

packages/babel-parser/src/tokenizer/types.ts:375–377  ·  view source on GitHub ↗
(token: TokenType)

Source from the content-addressed store, hash-verified

373}
374
375export function tokenIsLoop(token: TokenType): boolean {
376 return token >= tt._do && token <= tt._while;
377}
378
379export function tokenIsKeyword(token: TokenType): boolean {
380 return token >= tt._in && token <= tt._while;

Callers 1

parseLabeledStatementFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected