[][src]Struct swc_ecma_parser::Parser

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

EcmaScript parser.

Methods

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

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

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

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

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

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

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

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

Trait Implementations

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T