()
| 580 | } |
| 581 | |
| 582 | function getIdentifier() { |
| 583 | var start, ch; |
| 584 | |
| 585 | start = index++; |
| 586 | while (index < length) { |
| 587 | ch = source.charCodeAt(index); |
| 588 | if (ch === 0x5C) { |
| 589 | // Blackslash (U+005C) marks Unicode escape sequence. |
| 590 | index = start; |
| 591 | return getEscapedIdentifier(); |
| 592 | } |
| 593 | if (isIdentifierPart(ch)) { |
| 594 | ++index; |
| 595 | } else { |
| 596 | break; |
| 597 | } |
| 598 | } |
| 599 | |
| 600 | return source.slice(start, index); |
| 601 | } |
| 602 | |
| 603 | function scanIdentifier() { |
| 604 | var start, id, type; |
no test coverage detected