pub fn new(source_file: Rc<SourceFile>) -> Scanner {
        let src = source_file.src.clone();
        let mut sc = Scanner {
            source_file,
            src,
            peek_ch: Some('\n'),
            pos: BytePos(0),
            next_pos: BytePos(0),
        };

        sc.bump();
        sc
    }
/// Creates a scanner for a source file.
Creates a scanner for a source file.
Creates a scanner for a source file .
pub fn new(source_file: Rc<SourceFile>) -> Scanner {
        let src = source_file.src.clone();
        let mut sc = Scanner {
            source_file,
            src,
            peek_ch: Some('\n'),
            pos: BytePos(0),
            next_pos: BytePos(0),
        };
        sc.bump();
        sc
    }
pub fn new ( source_file : Rc < SourceFile > ) -> Scanner { let src = source_file . src . clone ( ) ; let mut sc = Scanner { source_file , src , peek_ch : Some ( '\n' ) , pos : BytePos ( 0 ) , next_pos : BytePos ( 0 ) , } ; sc . bump ( ) ; sc }
Creates a scanner for a source file.
Creates a scanner for a source file .
source_file
Rc<SourceFile>
source_file
Rc<SourceFile>