Add edition to all parse functions of the parser crate

This commit is contained in:
Johann Hemmann 2024-01-30 16:45:10 +01:00 committed by Lukas Wirth
parent 392538c830
commit 454e481422
9 changed files with 16 additions and 20 deletions

View file

@ -40,13 +40,7 @@ static PARSER_STEP_LIMIT: Limit = Limit::new(15_000_000);
impl<'t> Parser<'t> {
pub(super) fn new(inp: &'t Input, edition: Edition) -> Parser<'t> {
Parser {
inp,
pos: 0,
events: Vec::new(),
steps: Cell::new(0),
edition,
}
Parser { inp, pos: 0, events: Vec::new(), steps: Cell::new(0), edition }
}
pub(crate) fn finish(self) -> Vec<Event> {