MCPcopy Create free account
hub / github.com/davidkingzyb/SCAST / isClassSetSyntaxCharacter

Function isClassSetSyntaxCharacter

lib/acorn.js:5124–5133  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

5122
5123 // https://tc39.es/ecma262/#prod-ClassSetSyntaxCharacter
5124 function isClassSetSyntaxCharacter(ch) {
5125 return (
5126 ch === 0x28 /* ( */ ||
5127 ch === 0x29 /* ) */ ||
5128 ch === 0x2D /* - */ ||
5129 ch === 0x2F /* / */ ||
5130 ch >= 0x5B /* [ */ && ch <= 0x5D /* ] */ ||
5131 ch >= 0x7B /* { */ && ch <= 0x7D /* } */
5132 )
5133 }
5134
5135 // https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator
5136 pp$1.regexp_eatClassSetReservedPunctuator = function(state) {

Callers 1

acorn.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected