Struct swc_ecma_parser::Parser [−][src]
pub struct Parser<I: Tokens> { /* fields omitted */ }
Expand description
EcmaScript parser.
Implementations
impl<'a, I: Tokens> Parser<I>
[src]
impl<'a, I: Tokens> Parser<I>
[src]pub fn parse_stmt(&mut self, top_level: bool) -> PResult<Stmt>
[src]
impl<I: Tokens> Parser<I>
[src]
impl<I: Tokens> Parser<I>
[src]pub fn parse_type(&mut self) -> PResult<Box<TsType>>
[src]
pub fn parse_ts_type_args(&mut self) -> PResult<TsTypeParamInstantiation>
[src]
pub fn parse_ts_type_args(&mut self) -> PResult<TsTypeParamInstantiation>
[src]tsParseTypeArguments
impl<I: Tokens> Parser<I>
[src]
impl<I: Tokens> Parser<I>
[src]pub fn new_from(input: I) -> Self
[src]
pub fn take_errors(&mut self) -> Vec<Error>
[src]
pub fn parse_script(&mut self) -> PResult<Script>
[src]
pub fn parse_typescript_module(&mut self) -> PResult<Module>
[src]
pub fn parse_program(&mut self) -> PResult<Program>
[src]
pub fn parse_program(&mut self) -> PResult<Program>
[src]pub fn parse_module(&mut self) -> PResult<Module>
[src]
Trait Implementations
Auto Trait Implementations
impl<I> RefUnwindSafe for Parser<I> where
I: RefUnwindSafe,
I: RefUnwindSafe,
impl<I> Send for Parser<I> where
I: Send,
I: Send,
impl<I> Sync for Parser<I> where
I: Sync,
I: Sync,
impl<I> Unpin for Parser<I> where
I: Unpin,
I: Unpin,
impl<I> UnwindSafe for Parser<I> where
I: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> Node for T where
T: Any + ?Sized,
[src]
T: Any + ?Sized,
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,