* Locates the element within the given LView and returns the matching index
(lView: LView, target: RElement)
| 231 | * Locates the element within the given LView and returns the matching index |
| 232 | */ |
| 233 | function findViaNativeElement(lView: LView, target: RElement): number { |
| 234 | const tView = lView[TVIEW]; |
| 235 | for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) { |
| 236 | if (unwrapRNode(lView[i]) === target) { |
| 237 | return i; |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | return -1; |
| 242 | } |
| 243 | |
| 244 | /** |
| 245 | * Locates the next tNode (child, sibling or parent). |
no test coverage detected
searching dependent graphs…