(style: string | Skeleton)
| 166 | } |
| 167 | |
| 168 | function printArgumentStyle(style: string | Skeleton) { |
| 169 | if (typeof style === 'string') { |
| 170 | return printEscapedMessage(style) |
| 171 | } else if (style.type === SKELETON_TYPE.dateTime) { |
| 172 | return `::${printDateTimeSkeleton(style)}` |
| 173 | } else { |
| 174 | return `::${style.tokens.map(printNumberSkeletonToken).join(' ')}` |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | export function printDateTimeSkeleton(style: DateTimeSkeleton): string { |
| 179 | return style.pattern |
no test coverage detected