Struct parse_js::error::SyntaxError
source · pub struct SyntaxError<'a> { /* private fields */ }Implementations§
source§impl<'a> SyntaxError<'a>
impl<'a> SyntaxError<'a>
pub fn new( typ: SyntaxErrorType, source: &'a [u8], position: usize, actual_token: Option<TokenType> ) -> SyntaxError<'a>
pub fn from_loc( loc: SourceRange<'a>, typ: SyntaxErrorType, actual_token: Option<TokenType> ) -> SyntaxError<'a>
pub fn typ(&self) -> SyntaxErrorType
Trait Implementations§
source§impl<'a> Clone for SyntaxError<'a>
impl<'a> Clone for SyntaxError<'a>
source§fn clone(&self) -> SyntaxError<'a>
fn clone(&self) -> SyntaxError<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more