(lexer, start, firstCode)
| 1242 | ); |
| 1243 | } |
| 1244 | function readDigits(lexer, start, firstCode) { |
| 1245 | if (!(0, _characterClasses.isDigit)(firstCode)) { |
| 1246 | throw (0, _syntaxError.syntaxError)( |
| 1247 | lexer.source, |
| 1248 | start, |
| 1249 | `Invalid number, expected digit but got: ${printCodePointAt( |
| 1250 | lexer, |
| 1251 | start |
| 1252 | )}.` |
| 1253 | ); |
| 1254 | } |
| 1255 | const body = lexer.source.body; |
| 1256 | let position = start + 1; |
| 1257 | while ((0, _characterClasses.isDigit)(body.charCodeAt(position))) { |
| 1258 | ++position; |
| 1259 | } |
| 1260 | return position; |
| 1261 | } |
| 1262 | function readString(lexer, start) { |
| 1263 | const body = lexer.source.body; |
| 1264 | const bodyLength = body.length; |
no test coverage detected