()
| 432 | } |
| 433 | |
| 434 | private tryReadIdentifierStart(): string | undefined { |
| 435 | if (this.stream.eof) { |
| 436 | return; |
| 437 | } |
| 438 | if (identifierStart.test(this.stream.char)) { |
| 439 | const value = this.stream.char; |
| 440 | this.stream.next(); |
| 441 | return value; |
| 442 | } |
| 443 | if (this.stream.char === '\\') { |
| 444 | this.stream.next(); |
| 445 | return '\\' + this.readUnicodeEscapeSequence(); |
| 446 | } |
| 447 | return; |
| 448 | } |
| 449 | |
| 450 | private tryReadIdentifierPart(): string | undefined { |
| 451 | if (this.stream.eof) { |
no test coverage detected