(
output: &mut Vec<TemplateStrPart>,
pending: &mut Option<(String, StringLiteralPrefix, TextRange)>,
)
| 91 | } |
| 92 | |
| 93 | fn push_template_str_literal( |
| 94 | output: &mut Vec<TemplateStrPart>, |
| 95 | pending: &mut Option<(String, StringLiteralPrefix, TextRange)>, |
| 96 | ) { |
| 97 | if let Some((value, prefix, range)) = pending.take() |
| 98 | && !value.is_empty() |
| 99 | { |
| 100 | output.push(TemplateStrPart::Constant(Constant::new_str( |
| 101 | value, prefix, range, |
| 102 | ))); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | fn normalize_template_str_parts(values: Vec<TemplateStrPart>) -> Vec<TemplateStrPart> { |
| 107 | let mut output = Vec::with_capacity(values.len()); |
no test coverage detected