1
0

Implement return for root

This commit is contained in:
Jeff 2024-02-16 11:23:07 -05:00
parent 8c4b2c9eef
commit ee692b360e

View File

@ -113,6 +113,10 @@ impl AbstractTree for Root {
for statement in &self.statements { for statement in &self.statements {
value = statement.run(source, context)?; value = statement.run(source, context)?;
if statement.is_return() {
return Ok(value);
}
} }
Ok(value) Ok(value)