(&self, tid: &TId)
| 245 | } |
| 246 | |
| 247 | pub fn lookup_table_decl(&self, tid: &TId) -> Option<&SqlTableDecl> { |
| 248 | let mut tid = tid; |
| 249 | loop { |
| 250 | let res = self.table_decls.get(tid)?; |
| 251 | match &res.redirect_to { |
| 252 | Some(redirect) => tid = redirect, |
| 253 | None => return Some(res), |
| 254 | } |
| 255 | } |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | /// Loads info about [Query] into [AnchorContext] |
no test coverage detected