[−][src]Struct swc_ecma_parser::Parser
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]
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]
session: Session<'a>,
syntax: Syntax,
input: I,
comments: Option<&'a Comments>
) -> Self
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
Auto Trait Implementations
impl<'a, I> !RefUnwindSafe for Parser<'a, I>
impl<'a, I> Send for Parser<'a, I> where
I: Send,
I: Send,
impl<'a, I> Sync for Parser<'a, I> where
I: Sync,
I: Sync,
impl<'a, I> Unpin for Parser<'a, I> where
I: Unpin,
I: Unpin,
impl<'a, I> !UnwindSafe for Parser<'a, I>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T, F> Fold<T> for F where
T: FoldWith<F>,
[src]
T: FoldWith<F>,
default fn fold(&mut self, t: T) -> T
[src]
fn then<F>(self, folder: F) -> AndThen<Self, F> where
F: Fold<T>,
[src]
F: Fold<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, F> Visit<T> for F where
T: VisitWith<F> + ?Sized,
[src]
T: VisitWith<F> + ?Sized,
default fn visit(&mut self, t: &T)
[src]
fn then<F>(self, visitor: F) -> AndThen<Self, F> where
F: Visit<T>,
[src]
F: Visit<T>,
impl<T, F> VisitMut<T> for F where
T: VisitMutWith<F> + ?Sized,
[src]
T: VisitMutWith<F> + ?Sized,