()
| 615 | } |
| 616 | |
| 617 | function getIdentifier() { |
| 618 | var start, ch; |
| 619 | |
| 620 | start = index++; |
| 621 | while (index < length) { |
| 622 | ch = source.charCodeAt(index); |
| 623 | if (ch === 0x5C) { |
| 624 | // Blackslash (U+005C) marks Unicode escape sequence. |
| 625 | index = start; |
| 626 | return getEscapedIdentifier(); |
| 627 | } |
| 628 | if (isIdentifierPart(ch)) { |
| 629 | ++index; |
| 630 | } else { |
| 631 | break; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | return source.slice(start, index); |
| 636 | } |
| 637 | |
| 638 | function scanIdentifier() { |
| 639 | var start, id, type; |
no test coverage detected