()
| 404 | } |
| 405 | |
| 406 | func (p *Parser) isNextNonwhitespaceTokenEndOfFile() bool { |
| 407 | // We must use infinite lookahead, as there could be any number of newlines :( |
| 408 | for { |
| 409 | p.nextTokenJSDoc() |
| 410 | if p.token == ast.KindEndOfFile { |
| 411 | return true |
| 412 | } |
| 413 | if !(p.token == ast.KindWhitespaceTrivia || p.token == ast.KindNewLineTrivia) { |
| 414 | return false |
| 415 | } |
| 416 | } |
| 417 | } |
| 418 | |
| 419 | func (p *Parser) skipWhitespace() { |
| 420 | if p.token == ast.KindWhitespaceTrivia || p.token == ast.KindNewLineTrivia { |
nothing calls this directly
no test coverage detected