Takes an expression from the local context of the `index`th input and creates a new version where column references have been remapped to the global context.
(&self, mut expr: C, index: usize)
| 192 | /// creates a new version where column references have been remapped to the |
| 193 | /// global context. |
| 194 | pub fn map_expr_to_global<C: Columns + Sized>(&self, mut expr: C, index: usize) -> C { |
| 195 | expr.visit_columns(|c| { |
| 196 | *c += self.prior_arities[index]; |
| 197 | }); |
| 198 | expr |
| 199 | } |
| 200 | |
| 201 | /// Remap column numbers from the global to the local context. |
| 202 | /// Returns a 2-tuple `(<new column number>, <index of input>)` |
no test coverage detected