Look up a declaration by its [`FVarId`]. Returns `None` if the fvar is not bound in this context.
(&self, id: FVarId)
| 101 | /// Look up a declaration by its [`FVarId`]. Returns `None` if the fvar is |
| 102 | /// not bound in this context. |
| 103 | pub fn find(&self, id: FVarId) -> Option<&LocalDecl<M>> { |
| 104 | self.index.get(&id).map(|&i| &self.decls[i].1) |
| 105 | } |
| 106 | |
| 107 | /// Push a declaration. The caller is responsible for ensuring `id` is |
| 108 | /// fresh (typically from [`NameGenerator::fresh`]). |