pub fn scan_with_comments(&mut self, mode: i32) -> Token {
        let mut token;
        loop {
            token = self._scan(mode);
            if token.tok != TokenType::Comment {
                break;
            }
            self.comments.push(Comment { text: token.lit });
        }
        token.comments.append(&mut self.comments);
        token
    }
/// Produces the next comment token from the input.
Produces the next comment token from the input.
Produces the next comment token from the input .
pub fn scan_with_comments(&mut self, mode: i32) -> Token {
        let mut token;
        loop {
            token = self._scan(mode);
            if token.tok != TokenType::Comment {
                break;
            }
            self.comments.push(Comment { text: token.lit });
        }
        token.comments.append(&mut self.comments);
        token
    }
pub fn scan_with_comments ( & mut self , mode : i32 ) -> Token { let mut token ; loop { token = self . _scan ( mode ) ; if token . tok != TokenType :: Comment { break ; } self . comments . push ( Comment { text : token . lit } ) ; } token . comments . append ( & mut self . comments ) ; token }
Produces the next comment token from the input.
Produces the next comment token from the input .
&mut self
mode
i32
&mut self
mode
i32