[−][src]Trait swc_ecma_parser::input::Tokens
Required methods
fn set_ctx(&mut self, ctx: Context)
fn ctx(&self) -> Context
fn syntax(&self) -> Syntax
fn target(&self) -> JscTarget
fn set_expr_allowed(&mut self, allow: bool)
fn token_context(&self) -> &TokenContexts
fn token_context_mut(&mut self) -> &mut TokenContexts
fn set_token_context(&mut self, _c: TokenContexts)
fn add_error(&self, error: Error)
Implementors should use Rc<RefCell<Vec
It is required because parser should backtrack while parsing typescript code.