Lines Matching refs:code
47 function isInAstralSet(code, set) { argument
51 if (pos > code) return false
53 if (pos >= code) return true
59 export function isIdentifierStart(code, astral) { argument
60 if (code < 65) return code === 36
61 if (code < 91) return true
62 if (code < 97) return code === 95
63 if (code < 123) return true
64 if (code <= 0xffff) return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code))
66 return isInAstralSet(code, astralIdentifierStartCodes)
71 export function isIdentifierChar(code, astral) { argument
72 if (code < 48) return code === 36
73 if (code < 58) return true
74 if (code < 65) return false
75 if (code < 91) return true
76 if (code < 97) return code === 95
77 if (code < 123) return true
78 if (code <= 0xffff) return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code))
80 …return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCode…