cas_compiler/expr/branch.rs
1use cas_error::Error;
2use cas_parser::parser::ast::branch::{Of, Then};
3use crate::{Compile, Compiler};
4
5impl Compile for Then {
6 fn compile(&self, compiler: &mut Compiler) -> Result<(), Error> {
7 self.expr.compile(compiler)
8 }
9}
10
11impl Compile for Of {
12 fn compile(&self, compiler: &mut Compiler) -> Result<(), Error> {
13 self.expr.compile(compiler)
14 }
15}