[−][src]Trait swc_ecma_parser::Input
Required methods
fn cur(&mut self) -> Option<char>
fn peek(&mut self) -> Option<char>
fn peek_ahead(&mut self) -> Option<char>
fn bump(&mut self)
fn is_at_start(&self) -> bool
fn cur_pos(&mut self) -> BytePos
fn last_pos(&self) -> BytePos
fn slice(&mut self, start: BytePos, end: BytePos) -> &str
fn uncons_while<F>(&mut self, f: F) -> &str where
F: FnMut(char) -> bool,
F: FnMut(char) -> bool,
Takes items from stream, testing each one with predicate. returns the range of items which passed predicate.
fn reset_to(&mut self, to: BytePos)
Implementors
impl<'a> Input for SourceFileInput<'a>
[src]
impl<'a> Input for SourceFileInput<'a>
fn cur_pos(&mut self) -> BytePos | [src] |
fn last_pos(&self) -> BytePos | [src] |
fn bump(&mut self) | [src] |
fn cur(&mut self) -> Option<char> | [src] |
fn peek(&mut self) -> Option<char> | [src] |
fn peek_ahead(&mut self) -> Option<char> | [src] |
fn slice(&mut self, start: BytePos, end: BytePos) -> &str | [src] |
fn uncons_while<F>(&mut self, pred: F) -> &str where | [src] |
fn reset_to(&mut self, to: BytePos) | [src] |
fn is_at_start(&self) -> bool | [src] |