valkyrie-parser 0.2.5

The hand write parser of valkyrie language
Documentation
1
2
3
4
5
6
7
use super::*;

impl crate::SwitchStatementNode {
    pub(crate) fn build(&self, ctx: &mut ProgramState) -> Result<SwitchStatement> {
        Ok(SwitchStatement { patterns: self.match_block.build(ctx), span: self.span.clone() })
    }
}