pub enum LHSOfAssignment {
ObjectDestructuring(Vec<WithComment<ObjectDestructuringField<VariableFieldInSourceCode>>>, Span),
ArrayDestructuring(Vec<ArrayDestructuringField<VariableFieldInSourceCode>>, Span),
VariableOrPropertyAccess(VariableOrPropertyAccess),
}
Expand description
TODO should be different from VariableFieldInSourceCode here TODO visitable is current skipped… TODO cursor
Variants§
ObjectDestructuring(Vec<WithComment<ObjectDestructuringField<VariableFieldInSourceCode>>>, Span)
ArrayDestructuring(Vec<ArrayDestructuringField<VariableFieldInSourceCode>>, Span)
VariableOrPropertyAccess(VariableOrPropertyAccess)
Implementations§
source§impl LHSOfAssignment
impl LHSOfAssignment
pub fn get_position(&self) -> &Span
Trait Implementations§
source§impl Clone for LHSOfAssignment
impl Clone for LHSOfAssignment
source§fn clone(&self) -> LHSOfAssignment
fn clone(&self) -> LHSOfAssignment
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 LHSOfAssignment
impl Debug for LHSOfAssignment
source§impl From<VariableOrPropertyAccess> for LHSOfAssignment
impl From<VariableOrPropertyAccess> for LHSOfAssignment
source§fn from(item: VariableOrPropertyAccess) -> LHSOfAssignment
fn from(item: VariableOrPropertyAccess) -> LHSOfAssignment
Converts to this type from the input type.
source§impl PartialEq for LHSOfAssignment
impl PartialEq for LHSOfAssignment
source§impl SelfRustTokenize for LHSOfAssignment
impl SelfRustTokenize for LHSOfAssignment
fn append_to_token_stream(&self, token_stream: &mut TokenStream)
source§fn to_tokens(&self) -> TokenStream
fn to_tokens(&self) -> TokenStream
Returns the tokens used to construct self
source§impl Serialize for LHSOfAssignment
impl Serialize for LHSOfAssignment
source§impl Visitable for LHSOfAssignment
impl Visitable for LHSOfAssignment
fn visit<TData>( &self, visitors: &mut (impl VisitorReceiver<TData> + ?Sized), data: &mut TData, settings: &VisitSettings, chain: &mut Annex<'_, Chain> )
fn visit_mut<TData>( &mut self, visitors: &mut (impl VisitorMutReceiver<TData> + ?Sized), data: &mut TData, settings: &VisitSettings, chain: &mut Annex<'_, Chain> )
Auto Trait Implementations§
impl RefUnwindSafe for LHSOfAssignment
impl Send for LHSOfAssignment
impl Sync for LHSOfAssignment
impl Unpin for LHSOfAssignment
impl UnwindSafe for LHSOfAssignment
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