mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
close: #3878 The implementation is copied from `SeparatedList`'s `print_list`. ```diff fn parse_list(&mut self, p: &mut ParserImpl<'a>) -> Result<()> { p.expect(self.open())?; let mut first = true; while !p.at(self.close()) && !p.at(Kind::Eof) { if first { first = false; } else { p.expect(self.separator())?; - if p.at(self.close()) { - break; - } } self.parse_element(p)?; } p.expect(self.close())?; Ok(()) } ``` |
||
|---|---|---|
| .. | ||
| examples | ||
| src | ||
| Cargo.toml | ||
| CHANGELOG.md | ||