pub fn new(file: &'file File) -> Lexer<'file> {
        let mut chars = file.contents().chars();
        let peeked = chars.next();

        Lexer {
            file,
            chars,
            peeked,
            token_start: ByteIndex::from(0),
            token_end: ByteIndex::from(0),
            diagnostics: Vec::new(),
        }
    }
/// Create a new lexer from the source file.
Create a new lexer from the source file.
Create a new lexer from the source file .
pub fn new(file: &'file File) -> Lexer<'file> {
        let mut chars = file.contents().chars();
        let peeked = chars.next();
        Lexer {
            file,
            chars,
            peeked,
            token_start: ByteIndex::from(0),
            token_end: ByteIndex::from(0),
            diagnostics: Vec::new(),
        }
    }
pub fn new ( file : & ' file File ) -> Lexer < ' file > { let mut chars = file . contents ( ) . chars ( ) ; let peeked = chars . next ( ) ; Lexer { file , chars , peeked , token_start : ByteIndex :: from ( 0 ) , token_end : ByteIndex :: from ( 0 ) , diagnostics : Vec :: new ( ) , } }
Create a new lexer from the source file.
Create a new lexer from the source file .
file
&'file File
file
&'file File