class JIS2::FunctionDefinition

Included Modules

Defined in:

jis2.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Parser::AST

pos : Hash(Symbol, Pos) pos, pos=(pos : Hash(Symbol, Pos)) pos=, pos? : Hash(Symbol, Pos) | Nil pos?

Class methods inherited from module Parser::AST

compose_known_rules(builder : Parser::Analysis(T)) forall T compose_known_rules

Macros inherited from module Parser::AST

rule(*t, given_target = nil) rule, smart_enum(e, h) smart_enum

Instance methods inherited from module Parser::AST

pos : Hash(Symbol, Pos) pos, pos=(pos : Hash(Symbol, Pos)) pos=, pos? : Hash(Symbol, Pos) | Nil pos?

Class methods inherited from module Parser::AST

compose_known_rules(builder : Parser::Analysis(T)) forall T compose_known_rules

Macros inherited from module Parser::AST

rule(*t, given_target = nil) rule, smart_enum(e, h) smart_enum

Constructor Detail

def self.new(return_type : JIS2::PrimitiveType, name : String, args : Array(JIS2::TypeName), body : Array(JIS2::Statement)) #

[View source]

Class Method Detail

def self._structure__temp_64 #

[View source]

Instance Method Detail

def args : Array(TypeName) #

[View source]
def body : Array(Statement) #

[View source]
def diagnostic(io : IO) #

[View source]
def diagnostic : String #

[View source]
def name : String #

[View source]
def return_type : Type #

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

Appends a short String representation of this object which includes its class name and its object address.

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

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]