Lines Matching refs:comment
378 comment,
384 const defaultData = getTagData('default', comment);
399 comment={comment}
510 comment?: CommentData;
523 comment?: CommentData,
525 ) => comment || (signatures && signatures[0]?.comment);
527 export const getTagData = (tagName: string, comment?: CommentData) =>
528 getAllTagData(tagName, comment)?.[0];
530 export const getAllTagData = (tagName: string, comment?: CommentData) =>
531 comment?.blockTags?.filter(tag => tag.tag.substring(1) === tagName);
533 export const getTagNamesList = (comment?: CommentData) =>
534 comment && [
535 ...(getAllTagData('platform', comment)?.map(platformData =>
538 ...(getTagData('deprecated', comment) ? ['deprecated'] : []),
539 ...(getTagData('experimental', comment) ? ['experimental'] : []),
576 comment,
583 const content = comment && comment.summary ? getCommentContent(comment.summary) : undefined;
585 if (emptyCommentFallback && (!comment || !content || !content.length)) {
596 const examples = getAllTagData('example', comment);
610 const see = getTagData('see', comment);
619 const hasPlatforms = (getAllTagData('platform', comment)?.length || 0) > 0;
624 <APISectionPlatformTags comment={comment} prefix="Only for:" />