[−][src]Trait swc_ecma_parser::Tokens
Required methods
fn set_ctx(&mut self, ctx: Context)
fn ctx(&self) -> Context
fn syntax(&self) -> Syntax
fn target(&self) -> JscTarget
fn revert(&mut self)
Revert to lastest clone. THis method exists to removed captured token while backtracking.
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)
Implementors
impl Tokens for TokensInput
[src]
fn set_ctx(&mut self, ctx: Context)
[src]
fn ctx(&self) -> Context
[src]
fn syntax(&self) -> Syntax
[src]
fn target(&self) -> JscTarget
[src]
fn revert(&mut self)
[src]
no-op, as TokensInput
does not use Rc<RefCelll<T>>
.
fn set_expr_allowed(&mut self, _: bool)
[src]
fn token_context(&self) -> &TokenContexts
[src]
fn token_context_mut(&mut self) -> &mut TokenContexts
[src]
fn set_token_context(&mut self, c: TokenContexts)
[src]
impl<'_, I: Input> Tokens for Lexer<'_, I>
[src]
fn set_ctx(&mut self, ctx: Context)
[src]
fn ctx(&self) -> Context
[src]
fn syntax(&self) -> Syntax
[src]
fn target(&self) -> JscTarget
[src]
fn revert(&mut self)
[src]
no-op, as Lexer
does not use Rc<RefCelll<T>>
.