pub fn next(&mut self, diagnostics: &mut Diagnostics) -> bool {
        if self.is_eof() {
            false
        } else {
            self.position += 1;
            if self.position >= self.tokens.len() {
                let tok_res =
                    self.lexer.generate_token(&mut self.reader, diagnostics);
                self.tokens.push(tok_res);
            }
            true
        }
    }
/// Advances the stream's position by one, possibly generating a new token,
/// given a diagnostics collection where errors will be placed. Returns
/// whether the stream does have a next positon (and thus advanced).
Advances the stream's position by one, possibly generating a new token,
given a diagnostics collection where errors will be placed. Returns
whether the stream does have a next positon (and thus advanced).
Advances the stream ' s position by one possibly generating a new token given a diagnostics collection where errors will be placed . Returns whether the stream does have a next positon ( and thus advanced ) .
pub fn next(&mut self, diagnostics: &mut Diagnostics) -> bool {
        if self.is_eof() {
            false
        } else {
            self.position += 1;
            if self.position >= self.tokens.len() {
                let tok_res =
                    self.lexer.generate_token(&mut self.reader, diagnostics);
                self.tokens.push(tok_res);
            }
            true
        }
    }
pub fn next ( & mut self , diagnostics : & mut Diagnostics ) -> bool { if self . is_eof ( ) { false } else { self . position += 1 ; if self . position >= self . tokens . len ( ) { let tok_res = self . lexer . generate_token ( & mut self . reader , diagnostics ) ; self . tokens . push ( tok_res ) ; } true } }
Advances the stream's position by one, possibly generating a new token,
given a diagnostics collection where errors will be placed.
Advances the stream ' s position by one possibly generating a new token given a diagnostics collection where errors will be placed .
&mut self
diagnostics
&mut Diagnostics
&mut self
diagnostics
&mut Diagnostics