(
output: &mut Vec<JoinedStrPart>,
pending: &mut Option<(String, StringLiteralPrefix, TextRange)>,
)
| 48 | } |
| 49 | |
| 50 | fn push_joined_str_literal( |
| 51 | output: &mut Vec<JoinedStrPart>, |
| 52 | pending: &mut Option<(String, StringLiteralPrefix, TextRange)>, |
| 53 | ) { |
| 54 | if let Some((value, prefix, range)) = pending.take() |
| 55 | && !value.is_empty() |
| 56 | { |
| 57 | output.push(JoinedStrPart::Constant(Constant::new_str( |
| 58 | value, prefix, range, |
| 59 | ))); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | fn normalize_joined_str_parts(values: Vec<JoinedStrPart>) -> Vec<JoinedStrPart> { |
| 64 | let mut output = Vec::with_capacity(values.len()); |
no test coverage detected