* Returns the index of this input, excluding inputs without connections, on its * source block. * * @internal
()
| 435 | * @internal |
| 436 | */ |
| 437 | getIndex(): number { |
| 438 | const noConnectionInputTypes = [inputTypes.DUMMY, inputTypes.END_ROW]; |
| 439 | const allInputs = this.getSourceBlock().inputList; |
| 440 | const allConnectionInputs = allInputs.filter( |
| 441 | (input) => !noConnectionInputTypes.includes(input.type), |
| 442 | ); |
| 443 | return allConnectionInputs.indexOf(this); |
| 444 | } |
| 445 | } |
no test coverage detected