(argCount: number)
| 761 | } |
| 762 | |
| 763 | function getCaseWhenValueIndexes(argCount: number): Array<number> { |
| 764 | const valueIndexes: Array<number> = [] |
| 765 | const hasDefaultValue = argCount % 2 === 1 |
| 766 | const pairCount = Math.floor(argCount / 2) |
| 767 | |
| 768 | for (let i = 0; i < pairCount; i++) { |
| 769 | valueIndexes.push(i * 2 + 1) |
| 770 | } |
| 771 | |
| 772 | if (hasDefaultValue) { |
| 773 | valueIndexes.push(argCount - 1) |
| 774 | } |
| 775 | |
| 776 | return valueIndexes |
| 777 | } |
| 778 | |
| 779 | function isExpressionValue(value: CaseWhenValue | undefined): boolean { |
| 780 | if (isRefProxy(value)) return true |
no outgoing calls
no test coverage detected
searching dependent graphs…