class Bindgen::Call

Overview

Stores a representation of a method call, or a method definition. These are nuilt by language-specific processors, and are written by the generators.

A Call is generally platform-specific: They are bound to a certain context which is described by the code around it.

Think about a call like a piece of code that has no side-effects on its surroundings: Its body is self-contained, which expects variables as given in the arguments list, and returns something described by the result.

Defined in:

bindgen/call.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(origin : Bindgen::Parser::Method, name : String, result : Bindgen::Call::Result, arguments : Array(Bindgen::Call::Argument), body : Bindgen::Call::Body) #

[View source]

Instance Method Detail

def arguments : Array(Argument) #

Arguments


[View source]
def body : Body #

The call body, semi-serialized.


[View source]
def name : String #

Full name of the method call, e.g. new Foo or _self_->doIt.


[View source]
def origin : Parser::Method #

Origin method


[View source]
def result : Result #

Return type


[View source]