pub enum ImmutableVariableOrProperty<'a> {
VariableFieldName(&'a str, &'a Span),
ArrayDestructuringMember(&'a ArrayDestructuringField<VariableField>),
ObjectDestructuringMember(&'a WithComment<ObjectDestructuringField<VariableField>>),
ClassName(Option<&'a VariableIdentifier>),
FunctionName(Option<&'a VariableIdentifier>),
ClassPropertyKey(&'a PropertyKey<PublicOrPrivate>),
ObjectPropertyKey(&'a PropertyKey<AlwaysPublic>),
}
Variants§
VariableFieldName(&'a str, &'a Span)
ArrayDestructuringMember(&'a ArrayDestructuringField<VariableField>)
ObjectDestructuringMember(&'a WithComment<ObjectDestructuringField<VariableField>>)
ClassName(Option<&'a VariableIdentifier>)
FunctionName(Option<&'a VariableIdentifier>)
ClassPropertyKey(&'a PropertyKey<PublicOrPrivate>)
ObjectPropertyKey(&'a PropertyKey<AlwaysPublic>)
Implementations§
source§impl<'a> ImmutableVariableOrProperty<'a>
impl<'a> ImmutableVariableOrProperty<'a>
pub fn get_variable_name(&self) -> Option<&'a str>
pub fn get_position(&self) -> Span
Trait Implementations§
source§impl<'a> Debug for ImmutableVariableOrProperty<'a>
impl<'a> Debug for ImmutableVariableOrProperty<'a>
impl SelfVisitable for ImmutableVariableOrProperty<'_>
Auto Trait Implementations§
impl<'a> Freeze for ImmutableVariableOrProperty<'a>
impl<'a> RefUnwindSafe for ImmutableVariableOrProperty<'a>
impl<'a> Send for ImmutableVariableOrProperty<'a>
impl<'a> Sync for ImmutableVariableOrProperty<'a>
impl<'a> Unpin for ImmutableVariableOrProperty<'a>
impl<'a> UnwindSafe for ImmutableVariableOrProperty<'a>
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