pub enum CallNodeStyle {
FunctionField(&'static str),
DirectMethod {
object_field: &'static str,
method_field: &'static str,
},
FirstChild,
}Expand description
How call nodes expose the callee/function.
Variants§
FunctionField(&'static str)
The call node has a field (e.g. “function”) containing either an identifier (bare call) or a member_expression (method call). Python, TS, Rust, Go, C#, C++.
DirectMethod
The call node directly has object (optional) + method name fields. Java: method_invocation(object, name). Ruby: call(receiver, method).
FirstChild
The callee is the first named child of the call node (no field name). Swift: call_expression(simple_identifier|navigation_expression, call_suffix) Kotlin: call_expression(identifier|navigation_expression, value_arguments)
Auto Trait Implementations§
impl Freeze for CallNodeStyle
impl RefUnwindSafe for CallNodeStyle
impl Send for CallNodeStyle
impl Sync for CallNodeStyle
impl Unpin for CallNodeStyle
impl UnsafeUnpin for CallNodeStyle
impl UnwindSafe for CallNodeStyle
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