MCPcopy Index your code
hub / github.com/BloombergGraphics/whatiscode / isIdentifierStart

Function isIdentifierStart

scripts/libs/esprima.js:253–259  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

251 // 7.6 Identifier Names and Identifiers
252
253 function isIdentifierStart(ch) {
254 return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)
255 (ch >= 0x41 && ch <= 0x5A) || // A..Z
256 (ch >= 0x61 && ch <= 0x7A) || // a..z
257 (ch === 0x5C) || // \ (backslash)
258 ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch)));
259 }
260
261 function isIdentifierPart(ch) {
262 return (ch === 0x24) || (ch === 0x5F) || // $ (dollar) and _ (underscore)

Callers 7

getEscapedIdentifierFunction · 0.85
scanHexLiteralFunction · 0.85
scanBinaryLiteralFunction · 0.85
scanOctalLiteralFunction · 0.85
scanNumericLiteralFunction · 0.85
advanceFunction · 0.85
parseReturnStatementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected