()
| 6338 | } |
| 6339 | |
| 6340 | func (p *Parser) isUsingDeclaration() bool { |
| 6341 | // 'using' always starts a lexical declaration if followed by an identifier. We also eagerly parse |
| 6342 | // |ObjectBindingPattern| so that we can report a grammar error during check. We don't parse out |
| 6343 | // |ArrayBindingPattern| since it potentially conflicts with element access (i.e., `using[x]`). |
| 6344 | return p.lookAhead(func(p *Parser) bool { |
| 6345 | return p.nextTokenIsBindingIdentifierOrStartOfDestructuringOnSameLine( /*disallowOf*/ false) |
| 6346 | }) |
| 6347 | } |
| 6348 | |
| 6349 | func (p *Parser) nextTokenIsEqualsOrSemicolonOrColonToken() bool { |
| 6350 | p.nextToken() |
no test coverage detected