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

Function tokenIsAssignment

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

Source from the content-addressed store, hash-verified

365}
366
367export function tokenIsAssignment(token: TokenType): boolean {
368 return token >= tt.eq && token <= tt.moduloAssign;
369}
370
371export function tokenIsFlowInterfaceOrTypeOrOpaque(token: TokenType): boolean {
372 return token >= tt._interface && token <= tt._opaque;

Callers 2

parseMaybeAssignFunction · 0.90
parseMaybeConditionalMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected