(p: html.Element | html.Component)
| 672 | } |
| 673 | |
| 674 | function _getI18nAttr(p: html.Element | html.Component): html.Attribute | null { |
| 675 | return ( |
| 676 | (p.attrs.find((attr) => attr instanceof html.Attribute && attr.name === _I18N_ATTR) as |
| 677 | | html.Attribute |
| 678 | | undefined) || null |
| 679 | ); |
| 680 | } |
| 681 | |
| 682 | function _parseMessageMeta(i18n?: string): {meaning: string; description: string; id: string} { |
| 683 | if (!i18n) return {meaning: '', description: '', id: ''}; |
no test coverage detected
searching dependent graphs…