()
| 5118 | } |
| 5119 | |
| 5120 | func (p *Parser) isAwaitExpression() bool { |
| 5121 | if p.token == ast.KindAwaitKeyword { |
| 5122 | if p.inAwaitContext() { |
| 5123 | return true |
| 5124 | } |
| 5125 | // here we are using similar heuristics as 'isYieldExpression' |
| 5126 | return p.lookAhead((*Parser).nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine) |
| 5127 | } |
| 5128 | return false |
| 5129 | } |
| 5130 | |
| 5131 | func (p *Parser) parseAwaitExpression() *ast.Node { |
| 5132 | pos := p.nodePos() |
no test coverage detected