* Returns the last selected element index in the `HostBindingOpCodes` * * For perf reasons we don't need to update the selected element index in `HostBindingOpCodes` only * if it changes. This method returns the last index (or '0' if not found.) * * Selected element index are only the ones whic
(hostBindingOpCodes: HostBindingOpCodes)
| 517 | * Selected element index are only the ones which are negative. |
| 518 | */ |
| 519 | function lastSelectedElementIdx(hostBindingOpCodes: HostBindingOpCodes): number { |
| 520 | let i = hostBindingOpCodes.length; |
| 521 | while (i > 0) { |
| 522 | const value = hostBindingOpCodes[--i]; |
| 523 | if (typeof value === 'number' && value < 0) { |
| 524 | return value; |
| 525 | } |
| 526 | } |
| 527 | return 0; |
| 528 | } |
| 529 | |
| 530 | /** |
| 531 | * Builds up an export map as directives are created, so local refs can be quickly mapped |
no outgoing calls
no test coverage detected
searching dependent graphs…