Struct parse_js::error::SyntaxError
source · pub struct SyntaxError { /* private fields */ }
Implementations§
source§impl SyntaxError
impl SyntaxError
pub fn new(
typ: SyntaxErrorType,
source: Source,
position: usize,
actual_token: Option<TokenType>
) -> SyntaxError
pub fn from_loc(
loc: &SourceRange,
typ: SyntaxErrorType,
actual_token: Option<TokenType>
) -> SyntaxError
pub fn typ(&self) -> SyntaxErrorType
Trait Implementations§
source§impl Clone for SyntaxError
impl Clone for SyntaxError
source§fn clone(&self) -> SyntaxError
fn clone(&self) -> SyntaxError
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