private static replaceAnnotations(comment: Comment, reflections: Reflection[]) { const replacer = (_, name) => { const reflection = reflections.find((reflection) => reflection.name === name); return this.toLink(name, reflection); } comment.text = comment.text.replace(linkRegex, replacer); comment.shortText = comment.shortText.replace(linkRegex, replacer); }
(param) => (param.comment && !!param.comment.text) || (param.comment && !!param.comment.shortText) ); const hasComments = !comments.every((value) => !value); if (parameter.comment && parameter.comment.shortText) { commentsText.push( MarkdownTheme.handlebars.helpers.comment.call(stripLineBreaks.call(parameter.comment.shortText)) );