( lView: LView, serializedI18nBlock: SerializedI18nBlock, context: HydrationContext, nodes: I18nNode[], )
| 211 | } |
| 212 | |
| 213 | function serializeI18nBlock( |
| 214 | lView: LView, |
| 215 | serializedI18nBlock: SerializedI18nBlock, |
| 216 | context: HydrationContext, |
| 217 | nodes: I18nNode[], |
| 218 | ): Node | null { |
| 219 | let prevRNode = null; |
| 220 | for (const node of nodes) { |
| 221 | const nextRNode = serializeI18nNode(lView, serializedI18nBlock, context, node); |
| 222 | if (nextRNode) { |
| 223 | if (isDisjointNode(prevRNode, nextRNode)) { |
| 224 | serializedI18nBlock.disjointNodes.add(node.index - HEADER_OFFSET); |
| 225 | } |
| 226 | prevRNode = nextRNode; |
| 227 | } |
| 228 | } |
| 229 | return prevRNode; |
| 230 | } |
| 231 | |
| 232 | /** |
| 233 | * Helper to determine whether the given nodes are "disjoint". |
no test coverage detected