Add support for def-env and export def-env (#887)

This commit is contained in:
JT
2022-01-29 15:45:46 -05:00
committed by GitHub
parent bffb4950c2
commit 44821d9941
9 changed files with 194 additions and 6 deletions

View File

@ -9,6 +9,7 @@ pub struct Block {
pub signature: Box<Signature>,
pub stmts: Vec<Statement>,
pub captures: Vec<VarId>,
pub redirect_env: bool,
}
impl Block {
@ -47,6 +48,7 @@ impl Block {
signature: Box::new(Signature::new("")),
stmts: vec![],
captures: vec![],
redirect_env: false,
}
}
}
@ -60,6 +62,7 @@ where
signature: Box::new(Signature::new("")),
stmts: stmts.collect(),
captures: vec![],
redirect_env: false,
}
}
}