abstract class Bindgen::Call::Body

Overview

The body of a Call which is to be materialized as function or method of some sort. The Generator will later call #to_code with its platform to generate the code, which it will then embed into the function itself.

Choosing a body type

When building a custom Body, consider using HookableBody instead to allow later processors to augment your body.

Direct Known Subclasses

Defined in:

bindgen/call.cr

Instance Method Summary

Instance Method Detail

abstract def to_code(call : Call, platform : Graph::Platform) : String #

Will be called by a Generator later on, passing in the call and the target platform.


[View source]