Skip to main content

concat_call_to_template_literal

Function concat_call_to_template_literal 

Source
fn concat_call_to_template_literal(call_expr: &CallExpr) -> Option<Expr>
Expand description

Helper function that converts a CallExpr representing .concat() to a template literal.

§Arguments

  • call_expr - The call expression to convert

§Returns

  • Some(Expr) - Template literal expression if conversion is successful
  • None - If the call expression is not a valid concat call