( value: any, replacement: ValClass, )
| 1975 | } |
| 1976 | |
| 1977 | function replaceIncludesValue( |
| 1978 | value: any, |
| 1979 | replacement: ValClass, |
| 1980 | ): { value: any; replaced: boolean } { |
| 1981 | if (value instanceof IncludesSubquery) { |
| 1982 | return { value: replacement, replaced: true } |
| 1983 | } |
| 1984 | |
| 1985 | if (value instanceof ConditionalSelect) { |
| 1986 | return replaceIncludesInConditionalSelect(value, [], replacement) |
| 1987 | } |
| 1988 | |
| 1989 | return { value, replaced: false } |
| 1990 | } |
| 1991 | |
| 1992 | function replaceIncludesInConditionalSelect( |
| 1993 | conditional: ConditionalSelect, |
no test coverage detected