pub fn convert_simple_tpl_to_str_expr(expr: Expr) -> ExprExpand description
Converts a simple template literal expression to a regular string literal expression.
This is a convenience wrapper around convert_tpl_to_string_lit that works with Expr::Tpl.
§Arguments
expr- The expression to check and potentially convert
§Returns
Expr- The original expression if it’s not a simple template literal- A string literal expression if the template is simple (no interpolations)