pub struct FreeVariableResult {
pub parameters: Vec<String>,
pub has_this_or_self: bool,
}Expand description
Classification result for free variables in a selected byte range.
Fields§
§parameters: Vec<String>Identifiers declared in an enclosing function scope that the range references — these become parameters of the extracted function.
has_this_or_self: boolWhether this (JS/TS) or self (Python) appears in the range.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FreeVariableResult
impl RefUnwindSafe for FreeVariableResult
impl Send for FreeVariableResult
impl Sync for FreeVariableResult
impl Unpin for FreeVariableResult
impl UnsafeUnpin for FreeVariableResult
impl UnwindSafe for FreeVariableResult
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more