()
| 3991 | } |
| 3992 | |
| 3993 | func (p *Parser) nextTokenCanFollowDefaultKeyword() bool { |
| 3994 | switch p.nextToken() { |
| 3995 | case ast.KindClassKeyword, ast.KindFunctionKeyword, ast.KindInterfaceKeyword, ast.KindAtToken: |
| 3996 | return true |
| 3997 | case ast.KindAbstractKeyword: |
| 3998 | return p.lookAhead((*Parser).nextTokenIsClassKeywordOnSameLine) |
| 3999 | case ast.KindAsyncKeyword: |
| 4000 | return p.lookAhead((*Parser).nextTokenIsFunctionKeywordOnSameLine) |
| 4001 | } |
| 4002 | return false |
| 4003 | } |
| 4004 | |
| 4005 | func (p *Parser) nextTokenIsIdentifierOrKeyword() bool { |
| 4006 | return tokenIsIdentifierOrKeyword(p.nextToken()) |
no test coverage detected