(lexer, start)
| 1490 | ); |
| 1491 | } |
| 1492 | function readName(lexer, start) { |
| 1493 | const body = lexer.source.body; |
| 1494 | const bodyLength = body.length; |
| 1495 | let position = start + 1; |
| 1496 | while (position < bodyLength) { |
| 1497 | const code = body.charCodeAt(position); |
| 1498 | if ((0, _characterClasses.isNameContinue)(code)) { |
| 1499 | ++position; |
| 1500 | } else { |
| 1501 | break; |
| 1502 | } |
| 1503 | } |
| 1504 | return createToken( |
| 1505 | lexer, |
| 1506 | _tokenKind.TokenKind.NAME, |
| 1507 | start, |
| 1508 | position, |
| 1509 | body.slice(start, position) |
| 1510 | ); |
| 1511 | } |
| 1512 | } |
| 1513 | }); |
| 1514 |
no test coverage detected