(left: GoDiscriminatorValue, right: GoDiscriminatorValue)
| 802 | } |
| 803 | |
| 804 | function compareGoDiscriminatorValues(left: GoDiscriminatorValue, right: GoDiscriminatorValue): number { |
| 805 | if (typeof left === "boolean" && typeof right === "boolean") { |
| 806 | return Number(left) - Number(right); |
| 807 | } |
| 808 | return String(left).localeCompare(String(right)); |
| 809 | } |
| 810 | |
| 811 | function goDiscriminatorValueExpr(value: GoDiscriminatorValue, enumName: string | undefined): string { |
| 812 | if (typeof value === "boolean") return value ? "true" : "false"; |
nothing calls this directly
no test coverage detected
searching dependent graphs…