Enum biome_js_parser::JsReLexContext
source · pub enum JsReLexContext {
Regex,
BinaryOperator,
TypeArgumentLessThan,
JsxIdentifier,
JsxChild,
}Expand description
Context in which the JsLexContext’s current should be re-lexed.
Variants§
Regex
Re-lexes a / or /= token as a regular expression.
BinaryOperator
Re-lexes
> >as>>> > >as>>>,> =as ‘>=’> > =as ‘>>=’> > > =as>>>=
TypeArgumentLessThan
Re-lexes '<', '<' as << in places where a type argument is expected to support
B<<A>()>
JsxIdentifier
Re-lexes an identifier or keyword as a JSX identifier (that allows - tokens)
JsxChild
Trait Implementations§
source§impl Clone for JsReLexContext
impl Clone for JsReLexContext
source§fn clone(&self) -> JsReLexContext
fn clone(&self) -> JsReLexContext
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 moresource§impl Debug for JsReLexContext
impl Debug for JsReLexContext
source§impl PartialEq for JsReLexContext
impl PartialEq for JsReLexContext
source§fn eq(&self, other: &JsReLexContext) -> bool
fn eq(&self, other: &JsReLexContext) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for JsReLexContext
impl Eq for JsReLexContext
impl StructuralPartialEq for JsReLexContext
Auto Trait Implementations§
impl RefUnwindSafe for JsReLexContext
impl Send for JsReLexContext
impl Sync for JsReLexContext
impl Unpin for JsReLexContext
impl UnwindSafe for JsReLexContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.