class Savi::Program::Function
- Savi::Program::Function
- Reference
- Object
Defined in:
savi/program.crConstant 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
-
#==(other)
Returns
false
(other can only be aValue
here). - #accept(ctx : Compiler::Context, visitor : AST::CopyOnMutateVisitor)
- #add_tag(tag : Symbol)
- #ast : AST::Function
- #ast=(ast : AST::Function)
- #body
- #body=(x)
- #cap
- #cap=(x)
-
#dup
Returns a shallow copy of this object.
- #dup_init
- #error_out
- #error_out=(x)
- #has_tag?(tag : Symbol)
- #ident
- #ident=(x)
-
#inspect(io : IO)
Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.
- #make_link(package_or_link, type : Type)
- #make_link(type : Type::Link)
- #param_count
- #params
- #params=(x)
- #ret
- #ret=(x)
- #tags_sorted
- #yield_in
- #yield_in=(x)
- #yield_out
- #yield_out=(x)
Constructor Detail
Instance Method Detail
def ==(other)
#
Description copied from class Reference
Returns false
(other can only be a Value
here).
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.
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>