Struct ress::ManualScanner [−][src]
pub struct ManualScanner<'a> {
pub stream: Tokenizer<'a>,
pub eof: bool,
pub pending_new_line: bool,
pub last_skipped_whitespace: usize,
pub new_line_count: usize,
// some fields omitted
}
Fields
stream: Tokenizer<'a>
eof: bool
pending_new_line: bool
last_skipped_whitespace: usize
new_line_count: usize
Implementations
Skip any upcoming comments to get the next valid js token
Get a copy of the scanner’s current state
Set the scanner’s current state to the state provided
Get the next token as a regular expression. The previous token
should have been /
or /=
,
Get a string for any given span