module Crygen::Helpers::Annotation

Overview

This module provides helper methods for adding annotations to objects easily.

Direct including types

Defined in:

helpers/annotation.cr

Instance Method Summary

Instance Method Detail

def always_inline : self #

Add a @[AlwaysInline] annotation. Returns: an object class itself.


[View source]
def call_convention(name : String) : self #

Add a @[CallConvention] annotation. Returns: an object class itself.


[View source]
def deprecated(message : String) : self #

Add a @[Deprecated] annotation on the method with a custom message. Returns: an object class itself.


[View source]
def deprecated : self #

Add a @[Deprecated] annotation. Returns: an object class itself.


[View source]
def experimental(message : String) : self #

Add a @[Experimental] annotation on the method with a custom message. Returns: an object class itself.


[View source]
def experimental : self #

Add a @[Experimental] annotation. Returns: an object class itself.


[View source]
def extern : self #

Add a @[Extern] annotation. Returns: an object class itself.


[View source]
def flags : self #

Add a @[Flags] annotation. Returns: an object class itself.


[View source]
def link(name : String) : self #

Add a @[Link] annotation on the method with the library name. Returns: an object class itself.


[View source]
def no_inline : self #

Add a @[NoInline] annotation. Returns: an object class itself.


[View source]
def thread_local : self #

Add a @[ThreadLocal] annotation. Returns: an object class itself.


[View source]