Class: MilkTea::IR::Function

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/core/ir.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, linkage_name:, params:, return_type:, body:, entry_point:, method_receiver_param: false) ⇒ Function

Returns a new instance of Function.



24
# File 'lib/milk_tea/core/ir.rb', line 24

def initialize(name:, linkage_name:, params:, return_type:, body:, entry_point:, method_receiver_param: false) = super

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



23
24
25
# File 'lib/milk_tea/core/ir.rb', line 23

def body
  @body
end

#entry_pointObject (readonly)

Returns the value of attribute entry_point

Returns:

  • (Object)

    the current value of entry_point



23
24
25
# File 'lib/milk_tea/core/ir.rb', line 23

def entry_point
  @entry_point
end

#linkage_nameObject (readonly)

Returns the value of attribute linkage_name

Returns:

  • (Object)

    the current value of linkage_name



23
24
25
# File 'lib/milk_tea/core/ir.rb', line 23

def linkage_name
  @linkage_name
end

#method_receiver_paramObject (readonly)

Returns the value of attribute method_receiver_param

Returns:

  • (Object)

    the current value of method_receiver_param



23
24
25
# File 'lib/milk_tea/core/ir.rb', line 23

def method_receiver_param
  @method_receiver_param
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



23
24
25
# File 'lib/milk_tea/core/ir.rb', line 23

def name
  @name
end

#paramsObject (readonly)

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



23
24
25
# File 'lib/milk_tea/core/ir.rb', line 23

def params
  @params
end

#return_typeObject (readonly)

Returns the value of attribute return_type

Returns:

  • (Object)

    the current value of return_type



23
24
25
# File 'lib/milk_tea/core/ir.rb', line 23

def return_type
  @return_type
end