(text string)
| 2970 | } |
| 2971 | |
| 2972 | func (p *Parser) newIdentifier(text string) *ast.Node { |
| 2973 | p.identifierCount++ |
| 2974 | id := p.factory.NewIdentifier(text) |
| 2975 | if text == "await" { |
| 2976 | p.statementHasAwaitIdentifier = true |
| 2977 | } |
| 2978 | return id |
| 2979 | } |
| 2980 | |
| 2981 | func (p *Parser) createMissingIdentifier() *ast.Node { |
| 2982 | return p.finishNode(p.newIdentifier(""), p.nodePos()) |
no test coverage detected