(&mut self, c: Cursor)
| 16 | |
| 17 | impl<'a> CursorSink for Vec<'a, Cursor> { |
| 18 | fn append(&mut self, c: Cursor) { |
| 19 | // If two adjacent cursors which could not be re-tokenized in the same way if they were written out adjacently occur |
| 20 | // then they should be separated by some token. |
| 21 | if let Some(last) = self.last() |
| 22 | && last.token().needs_separator_for(c.into()) |
| 23 | { |
| 24 | self.push(SEPARATOR); |
| 25 | } |
| 26 | self.push(c); |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | impl<'a> SourceCursorSink<'a> for Vec<'a, SourceCursor<'a>> { |
no test coverage detected