mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 05:31:11 +00:00
Add Context::resolve_ctx_vars
This commit is contained in:
parent
929f777960
commit
0af0241d34
2 changed files with 25 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue