(&mut self, kw: Keyword)
| 1840 | /// Look for an expected keyword and consume it if it exists |
| 1841 | #[must_use] |
| 1842 | fn parse_keyword(&mut self, kw: Keyword) -> bool { |
| 1843 | if self.peek_keyword(kw) { |
| 1844 | self.next_token(); |
| 1845 | true |
| 1846 | } else { |
| 1847 | false |
| 1848 | } |
| 1849 | } |
| 1850 | |
| 1851 | /// Look for an expected sequence of keywords and consume them if they exist |
| 1852 | #[must_use] |
no test coverage detected