Struct lib_ruby_parser::nodes::Send[][src]

#[repr(C)]pub struct Send {
    pub recv: MaybePtr<Node>,
    pub method_name: StringPtr,
    pub args: List<Node>,
    pub dot_l: MaybeLocPtr,
    pub selector_l: MaybeLocPtr,
    pub begin_l: MaybeLocPtr,
    pub end_l: MaybeLocPtr,
    pub operator_l: MaybeLocPtr,
    pub expression_l: LocPtr,
}

Represents a method call (e.g. foo.bar(42))

Fields

recv: MaybePtr<Node>

Receiver of the method call

None for implicit method call (e.g. foo(42))

method_name: StringPtr

Name of the method that is called

args: List<Node>

A list of arguments

dot_l: MaybeLocPtr

Location of the . operator

foo.bar(42)
   ~

None for implicit method call (e.g. foo(42))

selector_l: MaybeLocPtr

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: MaybeLocPtr

Location of open parenthesis

foo(42)
   ~

None if there are parentheses

end_l: MaybeLocPtr

Location of closing parenthesis

foo(42)
      ~

None if there are parentheses

operator_l: MaybeLocPtr

Location of the operator if method is a setter

foo.bar = 42
        ~

None otherwise

expression_l: LocPtr

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

impl Send for Send

impl Sync for Send

impl Unpin for Send

impl UnwindSafe for Send

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.