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.



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

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



25
26
27
# File 'lib/milk_tea/core/ir.rb', line 25

def body
  @body
end

#entry_pointObject (readonly)

Returns the value of attribute entry_point

Returns:

  • (Object)

    the current value of entry_point



25
26
27
# File 'lib/milk_tea/core/ir.rb', line 25

def entry_point
  @entry_point
end

#linkage_nameObject (readonly)

Returns the value of attribute linkage_name

Returns:

  • (Object)

    the current value of linkage_name



25
26
27
# File 'lib/milk_tea/core/ir.rb', line 25

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



25
26
27
# File 'lib/milk_tea/core/ir.rb', line 25

def method_receiver_param
  @method_receiver_param
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



25
26
27
# File 'lib/milk_tea/core/ir.rb', line 25

def name
  @name
end

#paramsObject (readonly)

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



25
26
27
# File 'lib/milk_tea/core/ir.rb', line 25

def params
  @params
end

#return_typeObject (readonly)

Returns the value of attribute return_type

Returns:

  • (Object)

    the current value of return_type



25
26
27
# File 'lib/milk_tea/core/ir.rb', line 25

def return_type
  @return_type
end