func pattern_expr_fragment(consume syntax: Syntax<Pattern>) -> Syntax<Expr>These fragments are valid only inside an expression quotation at the corresponding grammar position. The completed quotation is parsed before it can escape, so a pattern or type can never materialize as a standalone expression result.
View Source
pub func pattern_expr_fragment(consume syntax: Syntax<Pattern>) -> Syntax<Expr> {
raw_expr_fragment(raw: consume syntax.raw)
}