Add Context::resolve_ctx_vars

This commit is contained in:
Shunsuke Shibayama 2022-12-27 20:15:21 +09:00
parent 929f777960
commit 0af0241d34
2 changed files with 25 additions and 0 deletions

View file

@ -957,6 +957,7 @@ impl Context {
}
}
/// unlike `pop`, `outer` must be `None`.
pub fn pop_mod(&mut self) -> Option<Context> {
if self.outer.is_some() {
log!(err "not in the top-level context");