(pos int, jsdoc jsdocScannerInfo, modifiers *ast.ModifierList)
| 2083 | } |
| 2084 | |
| 2085 | func (p *Parser) parseInterfaceDeclaration(pos int, jsdoc jsdocScannerInfo, modifiers *ast.ModifierList) *ast.Node { |
| 2086 | p.parseExpected(ast.KindInterfaceKeyword) |
| 2087 | name := p.parseIdentifier() |
| 2088 | typeParameters := p.parseTypeParameters() |
| 2089 | heritageClauses := p.parseHeritageClauses() |
| 2090 | members := p.parseObjectTypeMembers() |
| 2091 | result := p.finishNode(p.factory.NewInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members), pos) |
| 2092 | p.withJSDoc(result, jsdoc) |
| 2093 | p.checkJSSyntax(result) |
| 2094 | return result |
| 2095 | } |
| 2096 | |
| 2097 | func (p *Parser) parseTypeAliasDeclaration(pos int, jsdoc jsdocScannerInfo, modifiers *ast.ModifierList) *ast.Node { |
| 2098 | p.parseExpected(ast.KindTypeKeyword) |
no test coverage detected