()
| 381 | } |
| 382 | |
| 383 | func (p *Parser) nextToken() ast.Kind { |
| 384 | // if the keyword had an escape |
| 385 | if ast.IsKeyword(p.token) && (p.scanner.HasUnicodeEscape() || p.scanner.HasExtendedUnicodeEscape()) { |
| 386 | // issue a parse error for the escape |
| 387 | p.parseErrorAtCurrentToken(diagnostics.Keywords_cannot_contain_escape_characters) |
| 388 | } |
| 389 | p.token = p.scanner.Scan() |
| 390 | return p.token |
| 391 | } |
| 392 | |
| 393 | func (p *Parser) nextTokenWithoutCheck() ast.Kind { |
| 394 | p.token = p.scanner.Scan() |
no test coverage detected