#[repr(C)]
pub struct Send { pub recv: Option<Box<Node>>, pub method_name: String, pub args: Vec<Node>, pub dot_l: Option<Loc>, pub selector_l: Option<Loc>, pub begin_l: Option<Loc>, pub end_l: Option<Loc>, pub operator_l: Option<Loc>, pub expression_l: Loc, }
Expand description

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 no parentheses

end_l: Option<Loc>

Location of closing parenthesis

foo(42)
      ~

None if there are no 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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.