[][src]Trait swc_ecma_parser::Tokens

pub trait Tokens: Clone + Iterator<Item = TokenAndSpan> {
    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); }

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)

Loading content...

Implementors

impl Tokens for TokensInput[src]

impl<'_, I: Input> Tokens for Lexer<'_, I>[src]

impl<I: Tokens> Tokens for Capturing<I>[src]

Loading content...