Lines Matching refs:code
72 // Out-of-range surrogate code (above 0xD800)
1058 // code point above 128.
1069 // >0xffff code points that are a valid part of identifiers. The
1080 // This has a complexity linear to the value of the code. The
1083 function isInAstralSet(code, set) {
1087 if (pos > code) return false
1089 if (pos >= code) return true
1093 // Test whether a given character code starts an identifier.
1095 function isIdentifierStart(code, astral) {
1096 if (code < 65) return code === 36
1097 if (code < 91) return true
1098 if (code < 97) return code === 95
1099 if (code < 123) return true
1100 if (code <= 0xffff) return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code))
1102 return isInAstralSet(code, astralIdentifierStartCodes)
1107 function isIdentifierChar(code, astral) {
1108 if (code < 48) return code === 36
1109 if (code < 58) return true
1110 if (code < 65) return false
1111 if (code < 91) return true
1112 if (code < 97) return code === 95
1113 if (code < 123) return true
1114 if (code <= 0xffff) return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code))
1116 return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes)