class Bindgen::Call
- Bindgen::Call
- Reference
- Object
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.crConstructors
Instance Method Summary
-
#arguments : Array(Argument)
Arguments
-
#body : Body
The call body, semi-serialized.
-
#name : String
Full name of the method call, e.g.
-
#origin : Parser::Method
Origin method
-
#result : Result
Return type
Constructor Detail
def self.new(origin : Bindgen::Parser::Method, name : String, result : Bindgen::Call::Result, arguments : Array(Bindgen::Call::Argument), body : Bindgen::Call::Body)
#