class Savi::Program::Function

Defined in:

savi/program.cr

Constant Summary

KNOWN_TAGS = [:async, :compiler_intrinsic, :constant, :constructor, :copies, :ffi, :ffi_call, :ffi_global_constant, :ffi_global_cpointer_getter, :ffi_global_getter, :ffi_global_setter, :field, :hygienic, :inline, :is, :it, :let, :variadic]

Constructors

Instance Method Summary

Constructor Detail

def self.new(*args) #

[View source]

Instance Method Detail

def ==(other) #
Description copied from class Reference

Returns false (other can only be a Value here).


[View source]
def accept(ctx : Compiler::Context, visitor : AST::CopyOnMutateVisitor) #

[View source]
def add_tag(tag : Symbol) #

[View source]
def ast : AST::Function #

[View source]
def ast=(ast : AST::Function) #

[View source]
def body #

[View source]
def body=(x) #

[View source]
def cap #

[View source]
def cap=(x) #

[View source]
def dup #
Description copied from class Reference

Returns a shallow copy of this object.

This allocates a new object and copies the contents of self into it.


[View source]
def dup_init #

[View source]
def error_out #

[View source]
def error_out=(x) #

[View source]
def has_tag?(tag : Symbol) #

[View source]
def ident #

[View source]
def ident=(x) #

[View source]
def inspect(io : IO) #
Description copied from class Reference

Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>

[View source]
def make_link(package_or_link, type : Type) #

[View source]
def make_link(type : Type::Link) #

[View source]
def param_count #

[View source]
def params #

[View source]
def params=(x) #

[View source]
def ret #

[View source]
def ret=(x) #

[View source]
def tags_sorted #

[View source]
def yield_in #

[View source]
def yield_in=(x) #

[View source]
def yield_out #

[View source]
def yield_out=(x) #

[View source]