Enum swc_ecma_parser::error::SyntaxError [−][src]
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fields of ExpectedDigit
radix: u8
Fields of EscapeInReservedWord
word: JsWord
Fields of UnexpectedChar
c: char
Fields of ExpectedHexChars
count: u8
Number of expected characters.
"implements", "interface", "let", "package",
"private", "protected", "public", "static", or "yield"
'eval' and 'arguments' are invalid identfier in strict mode.
Unexpected token
Fields of ExpectedSemiForExprStmt
expr: Span
Fields of MultipleDefault
previous: Span
Span of the previous default case
()
DuplicateLabel(JsWord)
Fields of JSXExpectedClosingTag
tag: JsWord
Implementations
impl SyntaxError
[src]
Trait Implementations
impl Clone for SyntaxError
[src]
fn clone(&self) -> SyntaxError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SyntaxError
[src]
impl PartialEq<SyntaxError> for SyntaxError
[src]
fn eq(&self, other: &SyntaxError) -> bool
[src]
fn ne(&self, other: &SyntaxError) -> bool
[src]
impl StructuralPartialEq for SyntaxError
[src]
Auto Trait Implementations
impl RefUnwindSafe for SyntaxError
[src]
impl Send for SyntaxError
[src]
impl Sync for SyntaxError
[src]
impl Unpin for SyntaxError
[src]
impl UnwindSafe for SyntaxError
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,