class JIS2::FunctionDefinition
- JIS2::FunctionDefinition
- JIS2::Statement
- Reference
- Object
Included Modules
Defined in:
jis2.crConstructors
Class Method Summary
Instance Method Summary
- #args : Array(TypeName)
- #body : Array(Statement)
- #diagnostic(io : IO)
- #diagnostic : String
- #name : String
- #return_type : Type
-
#to_s(io : IO)
Appends a short String representation of this object which includes its class name and its object address.
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
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
Constructor Detail
def self.new(return_type : JIS2::PrimitiveType, name : String, args : Array(JIS2::TypeName), body : Array(JIS2::Statement))
#
Class Method Detail
Instance Method Detail
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>