()
| 763 | } |
| 764 | |
| 765 | func (p *Parser) parseJSDocLinkPrefix() (string, bool) { |
| 766 | p.skipWhitespaceOrAsterisk() |
| 767 | if p.token == ast.KindOpenBraceToken && p.nextTokenJSDoc() == ast.KindAtToken && tokenIsIdentifierOrKeyword(p.nextTokenJSDoc()) { |
| 768 | kind := p.scanner.TokenValue() |
| 769 | if isJSDocLinkTag(kind) { |
| 770 | return kind, true |
| 771 | } |
| 772 | } |
| 773 | return "NONE", false |
| 774 | } |
| 775 | |
| 776 | func isJSDocLinkTag(kind string) bool { |
| 777 | return kind == "link" || kind == "linkcode" || kind == "linkplain" |
no test coverage detected