Strips any RelabelType nodes from the expression, returning the underlying expression. */
| 1980 | |
| 1981 | /* Strips any RelabelType nodes from the expression, returning the underlying expression. */ |
| 1982 | static Expr * |
| 1983 | StripRelabels(Expr *expr) |
| 1984 | { |
| 1985 | while (expr != NULL && IsA(expr, RelabelType)) |
| 1986 | { |
| 1987 | expr = (Expr *) ((RelabelType *) expr)->arg; |
| 1988 | } |
| 1989 | |
| 1990 | return expr; |
| 1991 | } |
| 1992 | |
| 1993 | |
| 1994 | /* Returns the sort path from a constant BSON expression, or NULL if not applicable. */ |
no outgoing calls
no test coverage detected