Struct lib_ruby_parser::nodes::Send [−][src]
Represents a method call (e.g. foo.bar(42)
)
Fields
recv: Option<Box<Node>>
Receiver of the method call
None
for implicit method call (e.g. foo(42)
)
method_name: String
Name of the method that is called
args: Vec<Node>
A list of arguments
dot_l: Option<Loc>
Location of the .
operator
foo.bar(42)
~
None
for implicit method call (e.g. foo(42)
)
selector_l: Option<Loc>
Location of the method name
foo.bar(42)
~~~
None
in a very special case when method call is implicit (i.e. foo.(42)
)
begin_l: Option<Loc>
Location of open parenthesis
foo(42)
~
None
if there are parentheses
end_l: Option<Loc>
Location of closing parenthesis
foo(42)
~
None
if there are parentheses
operator_l: Option<Loc>
Location of the operator if method is a setter
foo.bar = 42
~
None
otherwise
expression_l: Loc
Location of the full expression
foo.bar(42)
~~~~~~~~~~~
Trait Implementations
impl Clone for Send
[src]
impl Debug for Send
[src]
impl PartialEq<Send> for Send
[src]
impl StructuralPartialEq for Send
[src]
Auto Trait Implementations
impl RefUnwindSafe for Send
[src]
impl Send for Send
[src]
impl Sync for Send
[src]
impl Unpin for Send
[src]
impl UnwindSafe for Send
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,