Struct lib_ruby_parser::nodes::CSend[][src]

#[repr(C)]
pub struct CSend { pub recv: Ptr<Node>, pub method_name: StringPtr, pub args: List<Node>, pub dot_l: Loc, pub selector_l: MaybeLoc, pub begin_l: MaybeLoc, pub end_l: MaybeLoc, pub operator_l: MaybeLoc, pub expression_l: Loc, }

Represents conditional method call using &. operator

Fields

recv: Ptr<Node>

Receiver of the method call, Int("1") for 1&.foo

method_name: StringPtr

Name of the method, String("foo") for 1&.foo

args: List<Node>

List of arguments

foo&.bar(42)
# and also setters like
foo&.bar = 42
dot_l: Loc

Location of the &. operator

foo&.bar
   ~~
selector_l: MaybeLoc

Location of the method name

foo&.bar(42)
     ~~~

None in a very special case when method call is implicit (i.e. foo&.())

begin_l: MaybeLoc

Location of the open parenthesis

foo&.bar(42)
        ~

None if there are no parentheses

end_l: MaybeLoc

Location of the closing parenthesis

foo&.bar(42)
           ~

None if there are no parentheses

operator_l: MaybeLoc

Location of the operator if CSend is a part of assignment like

foo&.bar = 1
         ~

None for a regular call.

expression_l: Loc

Location of the full expression

foo&.bar(42)
~~~~~~~~~~~~

Trait Implementations

impl Clone for CSend[src]

impl Debug for CSend[src]

impl PartialEq<CSend> for CSend[src]

impl StructuralPartialEq for CSend[src]

Auto Trait Implementations

impl RefUnwindSafe for CSend

impl Send for CSend

impl Sync for CSend

impl Unpin for CSend

impl UnwindSafe for CSend

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.