Skip to main content

lambda_body_src

Function lambda_body_src 

Source
pub fn lambda_body_src(lambda: &LambdaExpr) -> LambdaBodySrc<'_>
Expand description

#2712: the body a lambda with pattern parameters was written with. The parser wraps it, one level per pattern parameter (first outermost), in { let __letElse = __lambdaArg; match __letElse { P => { <rest> } } }; this peels those back off. A lambda with no pattern parameter is untouched.