( tabView: View, item: JSONObject, index: number, sourceRoot = "", )
| 1484 | } |
| 1485 | |
| 1486 | function tabItemSourceLocation( |
| 1487 | tabView: View, |
| 1488 | item: JSONObject, |
| 1489 | index: number, |
| 1490 | sourceRoot = "", |
| 1491 | ): JSONObject | null { |
| 1492 | const direct = item.sourceLocation as JSONObject | null | undefined; |
| 1493 | return ( |
| 1494 | direct || |
| 1495 | sourceLocationForView(item.view, sourceRoot) || |
| 1496 | sourceLocationForView(nativeScriptChildAt(tabView, index), sourceRoot) |
| 1497 | ); |
| 1498 | } |
| 1499 | |
| 1500 | function nativeScriptChildAt(view: View, targetIndex: number): View | null { |
| 1501 | return nativeScriptChildren(view)[targetIndex] ?? null; |
no test coverage detected