(pos int, jsdoc jsdocScannerInfo, modifiers *ast.ModifierList, identifier *ast.Node, isTypeOnly bool)
| 2296 | } |
| 2297 | |
| 2298 | func (p *Parser) parseImportEqualsDeclaration(pos int, jsdoc jsdocScannerInfo, modifiers *ast.ModifierList, identifier *ast.Node, isTypeOnly bool) *ast.Node { |
| 2299 | p.parseExpected(ast.KindEqualsToken) |
| 2300 | moduleReference := p.parseModuleReference() |
| 2301 | p.parseSemicolon() |
| 2302 | result := p.finishNode(p.factory.NewImportEqualsDeclaration(modifiers, isTypeOnly, identifier, moduleReference), pos) |
| 2303 | p.withJSDoc(result, jsdoc) |
| 2304 | return result |
| 2305 | } |
| 2306 | |
| 2307 | func (p *Parser) parseModuleReference() *ast.Node { |
| 2308 | if p.token == ast.KindRequireKeyword && p.lookAhead((*Parser).nextTokenIsOpenParen) { |
no test coverage detected