(&mut self)
| 909 | } |
| 910 | |
| 911 | pub fn synchronize(&mut self) { |
| 912 | self.panic_mode = false; |
| 913 | |
| 914 | while !self.is_at_end() { |
| 915 | if self.previous.kind == TokenType::Semicolon { |
| 916 | return; |
| 917 | } |
| 918 | |
| 919 | if self.current.is_synchronize_keyword() { |
| 920 | return; |
| 921 | } |
| 922 | self.advance(); |
| 923 | } |
| 924 | } |
| 925 | } |
no test coverage detected