[][src]Struct swc_ecma_parser::Parser

pub struct Parser<'a, I: Tokens> { /* fields omitted */ }

EcmaScript parser.

Methods

impl<'a, I: Tokens> Parser<'a, I>[src]

pub fn parse_expr(&mut self) -> PResult<'a, Box<Expr>>[src]

impl<'_, I: Tokens> Parser<'_, I>[src]

pub fn input(&mut self) -> &mut I[src]

impl<'a, I: Tokens> Parser<'a, I>[src]

pub fn parse_stmt(&mut self, top_level: bool) -> PResult<'a, Stmt>[src]

impl<'a, I: Tokens> Parser<'a, I>[src]

pub fn parse_type(&mut self) -> PResult<'a, Box<TsType>>[src]

pub fn parse_ts_type_args(&mut self) -> PResult<'a, TsTypeParamInstantiation>[src]

tsParseTypeArguments

impl<'a, I: Input> Parser<'a, Lexer<'a, I>>[src]

pub fn new(
    session: Session<'a>,
    syntax: Syntax,
    input: I,
    comments: Option<&'a Comments>
) -> Self
[src]

impl<'a, I: Tokens> Parser<'a, I>[src]

pub fn new_from(session: Session<'a>, input: I) -> Self[src]

pub fn parse_script(&mut self) -> PResult<'a, Script>[src]

pub fn parse_typescript_module(&mut self) -> PResult<'a, Module>[src]

pub fn parse_module(&mut self) -> PResult<'a, Module>[src]

Trait Implementations

impl<'a, I: Clone + Tokens> Clone for Parser<'a, I>[src]

Auto Trait Implementations

impl<'a, I> !RefUnwindSafe for Parser<'a, I>

impl<'a, I> Send for Parser<'a, I> where
    I: Send

impl<'a, I> Sync for Parser<'a, I> where
    I: Sync

impl<'a, I> Unpin for Parser<'a, I> where
    I: Unpin

impl<'a, I> !UnwindSafe for Parser<'a, I>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> Erased for T

impl<T, F> Fold<T> for F where
    T: FoldWith<F>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, F> Visit<T> for F where
    T: VisitWith<F> + ?Sized
[src]