valkyrie-parser 0.2.5

The hand write parser of valkyrie language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

impl crate::DefineLambdaNode {
    pub(crate) fn build(&self, ctx: &mut ProgramState) -> Result<LambdaNode> {
        let returns = self.function_middle.returns(ctx)?;
        Ok(LambdaNode {
            annotations: build_annotation_terms(&self.annotation_term, ctx).into(),
            generics: self.function_middle.generics(ctx),
            parameters: self.function_middle.parameters(ctx),
            returns,
            body: self.continuation.build(ctx),
            span: self.span.clone(),
        })
    }
}