( hydrationInfo: DehydratedView, lView: LView<unknown>, noOffsetIndex: number, )
| 97 | * @returns an RNode that corresponds to the instruction index or null if no path exists |
| 98 | */ |
| 99 | export function tryLocateRNodeByPath( |
| 100 | hydrationInfo: DehydratedView, |
| 101 | lView: LView<unknown>, |
| 102 | noOffsetIndex: number, |
| 103 | ): RNode | null { |
| 104 | const nodes = hydrationInfo.data[NODES]; |
| 105 | const path = nodes?.[noOffsetIndex]; |
| 106 | return path ? locateRNodeByPath(path, lView) : null; |
| 107 | } |
| 108 | |
| 109 | /** |
| 110 | * Locate a node in DOM tree that corresponds to a given TNode. |
no test coverage detected
searching dependent graphs…