()
| 417 | } |
| 418 | |
| 419 | func (p *Parser) skipWhitespace() { |
| 420 | if p.token == ast.KindWhitespaceTrivia || p.token == ast.KindNewLineTrivia { |
| 421 | if p.lookAhead((*Parser).isNextNonwhitespaceTokenEndOfFile) { |
| 422 | return |
| 423 | // Don't skip whitespace prior to EoF (or end of comment) - that shouldn't be included in any node's range |
| 424 | } |
| 425 | } |
| 426 | for p.token == ast.KindWhitespaceTrivia || p.token == ast.KindNewLineTrivia { |
| 427 | p.nextTokenJSDoc() |
| 428 | } |
| 429 | } |
| 430 | |
| 431 | func (p *Parser) skipWhitespaceOrAsterisk() string { |
| 432 | if p.token == ast.KindWhitespaceTrivia || p.token == ast.KindNewLineTrivia { |
no test coverage detected