(
items: Vec<InterpolateItem<rq::Expr>>,
ctx: &mut Context,
)
| 707 | } |
| 708 | |
| 709 | pub(super) fn translate_sstring( |
| 710 | items: Vec<InterpolateItem<rq::Expr>>, |
| 711 | ctx: &mut Context, |
| 712 | ) -> Result<String> { |
| 713 | Ok(items |
| 714 | .into_iter() |
| 715 | .map(|s_string_item| match s_string_item { |
| 716 | InterpolateItem::String(string) => Ok(string), |
| 717 | InterpolateItem::Expr { expr, .. } => { |
| 718 | translate_expr(*expr, ctx).map(|expr| expr.into_source()) |
| 719 | } |
| 720 | }) |
| 721 | .collect::<Result<Vec<String>>>()? |
| 722 | .join("")) |
| 723 | } |
| 724 | |
| 725 | /// Aggregate several ordered ranges into one, computing the intersection. |
| 726 | /// |
no test coverage detected