pop tokens into a new stream for syn2 until the given operator character
(&mut self)
| 530 | } |
| 531 | /// pop tokens into a new stream for syn2 until the given operator character |
| 532 | fn create_stream_remaining(&mut self) -> TokenStream { |
| 533 | let mut t = vec![]; |
| 534 | while !self.tokens.is_empty() { |
| 535 | t.push(self.pop().unwrap()); |
| 536 | } |
| 537 | let mut stream = TokenStream::new(); |
| 538 | stream.extend(t.into_iter()); |
| 539 | stream |
| 540 | } |
| 541 | /// get the span of the blamed token |
| 542 | fn get_error_span(&self) -> Span { |
| 543 | if let Some(span) = self.last_span { |
no test coverage detected