MCPcopy Create free account
hub / github.com/microsoft/SandDance / isLineTerminator

Function isLineTerminator

docs/app/js/sanddance-app.js:143488–143490  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

143486 ].indexOf(ch) >= 0;
143487} // 7.3 Line Terminators
143488function isLineTerminator(ch) {
143489 return ch === 0x0A || ch === 0x0D || ch === 0x2028 || ch === 0x2029;
143490} // 7.6 Identifier Names and Identifiers
143491function isIdentifierStart(ch) {
143492 return ch === 0x24 || ch === 0x5F || ch >= 0x41 && ch <= 0x5A || ch >= 0x61 && ch <= 0x7A || ch === 0x5C || ch >= 0x80 && RegexNonAsciiIdentifierStart.test(String.fromCharCode(ch));
143493}

Callers 3

skipCommentFunction · 0.70
scanStringLiteralFunction · 0.70
scanRegExpBodyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected