* Locates the element within the given LView and returns the matching index
(lView: LView, target: RElement)
| 215 | * Locates the element within the given LView and returns the matching index |
| 216 | */ |
| 217 | function findViaNativeElement(lView: LView, target: RElement): number { |
| 218 | const tView = lView[TVIEW]; |
| 219 | for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) { |
| 220 | if (unwrapRNode(lView[i]) === target) { |
| 221 | return i; |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | return -1; |
| 226 | } |
| 227 | |
| 228 | /** |
| 229 | * Locates the next tNode (child, sibling or parent). |
no test coverage detected