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

Function chStartsBindingPattern

packages/babel-parser/src/parser/statement.ts:298–302  ·  view source on GitHub ↗
(ch: number)

Source from the content-addressed store, hash-verified

296 }
297
298 chStartsBindingPattern(ch: number) {
299 return (
300 ch === charCodes.leftSquareBracket || ch === charCodes.leftCurlyBrace
301 );
302 }
303
304 /**
305 * Assuming we have seen a contextual `let` and declaration is allowed, check if it

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected