Reads the previously-peeked token. Because `peek` reports read errors, this assumes that the caller already handled those errors and is thus not going to call this when an error is present.
(&mut self)
| 750 | /// Because `peek` reports read errors, this assumes that the caller already handled those |
| 751 | /// errors and is thus not going to call this when an error is present. |
| 752 | pub fn consume_peeked(&mut self) -> TokenSpan { |
| 753 | assert!(self.peeked.is_some()); |
| 754 | self.peeked.take().unwrap() |
| 755 | } |
| 756 | |
| 757 | /// Peeks the upcoming token. |
| 758 | /// |
no outgoing calls
no test coverage detected