(&self)
| 181 | } |
| 182 | |
| 183 | pub(crate) fn env(&self) -> &Env { |
| 184 | match self { |
| 185 | Context::Root { env, .. } => env.as_ref(), |
| 186 | Context::Child { parent, .. } => parent.env(), |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | #[allow(dead_code)] |
| 191 | pub(crate) fn get_function(&self, name: &str) -> Option<&Function> { |