Browse Source

Update boa/src/syntax/lexer/mod.rs

Co-Authored-By: HalidOdat <halidodat@gmail.com>
pull/293/head
Jason Williams 5 years ago committed by HalidOdat
parent
commit
63b02cb797
  1. 3
      boa/src/syntax/lexer/mod.rs

3
boa/src/syntax/lexer/mod.rs

@ -131,7 +131,8 @@ impl error::Error for LexerError {
/// A lexical analyzer for JavaScript source code
#[derive(Debug)]
pub struct Lexer<'a> {
/// The list of tokens generated so far.\
/// The list of tokens generated so far.
///
/// This field is public so you can use them once lexing has finished.
pub tokens: Vec<Token>,
/// The current line number in the script

Loading…
Cancel
Save