(b *strings.Builder, c *checker.Checker, comments []*ast.Node, isMarkdown bool)
| 1011 | } |
| 1012 | |
| 1013 | func (l *LanguageService) writeComments(b *strings.Builder, c *checker.Checker, comments []*ast.Node, isMarkdown bool) { |
| 1014 | for _, comment := range comments { |
| 1015 | switch comment.Kind { |
| 1016 | case ast.KindJSDocText: |
| 1017 | b.WriteString(comment.Text()) |
| 1018 | case ast.KindJSDocLink, ast.KindJSDocLinkPlain: |
| 1019 | l.writeJSDocLink(b, c, comment, false /*quote*/, isMarkdown) |
| 1020 | case ast.KindJSDocLinkCode: |
| 1021 | l.writeJSDocLink(b, c, comment, true /*quote*/, isMarkdown) |
| 1022 | } |
| 1023 | } |
| 1024 | } |
| 1025 | |
| 1026 | func (l *LanguageService) writeJSDocLink(b *strings.Builder, c *checker.Checker, link *ast.Node, quote bool, isMarkdown bool) { |
| 1027 | name := link.Name() |
no test coverage detected