| 153 | } |
| 154 | |
| 155 | String concatWhitespace(FormattedJson::ElementList const& elements, FormattedJson::ElementLocation from, |
| 156 | FormattedJson::ElementLocation to) { |
| 157 | String whitespace; |
| 158 | for (JsonElement const& elem : elements.slice(from, to)) { |
| 159 | if (elem.is<WhitespaceElement>()) |
| 160 | whitespace += elem.get<WhitespaceElement>().whitespace; |
| 161 | } |
| 162 | return whitespace; |
| 163 | } |
| 164 | |
| 165 | WhitespaceStyle detectWhitespace(FormattedJson::ElementList const& elements, |
| 166 | FormattedJson::ElementLocation insertLoc, bool array) { |
no test coverage detected