pub enum LHSOfAssignment {
ObjectDestructuring(Vec<WithComment<ObjectDestructuringField<VariableFieldInSourceCode>>>, Span, ExpressionId),
ArrayDestructuring(Vec<ArrayDestructuringField<VariableFieldInSourceCode>>, Span, ExpressionId),
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, ExpressionId)
ArrayDestructuring(Vec<ArrayDestructuringField<VariableFieldInSourceCode>>, Span, ExpressionId)
VariableOrPropertyAccess(VariableOrPropertyAccess)
Implementations§
source§impl LHSOfAssignment
impl LHSOfAssignment
pub fn get_position(&self) -> Cow<'_, 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<LHSOfAssignment> for LHSOfAssignment
impl PartialEq<LHSOfAssignment> 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