swc_ecma_parser

Type Alias PResult

source
pub type PResult<T> = Result<T, Error>;
Expand description

When error occurs, error is emitted and parser returns Err(()).

Aliased Type§

enum PResult<T> {
    Ok(T),
    Err(Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value