Class: MilkTea::IR::Function
- Inherits:
-
Data
- Object
- Data
- MilkTea::IR::Function
- Defined in:
- lib/milk_tea/core/ir.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#entry_point ⇒ Object
readonly
Returns the value of attribute entry_point.
-
#linkage_name ⇒ Object
readonly
Returns the value of attribute linkage_name.
-
#method_receiver_param ⇒ Object
readonly
Returns the value of attribute method_receiver_param.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#return_type ⇒ Object
readonly
Returns the value of attribute return_type.
Instance Method Summary collapse
-
#initialize(name:, linkage_name:, params:, return_type:, body:, entry_point:, method_receiver_param: false) ⇒ Function
constructor
A new instance of Function.
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
#body ⇒ Object (readonly)
Returns the value of attribute body
23 24 25 |
# File 'lib/milk_tea/core/ir.rb', line 23 def body @body end |
#entry_point ⇒ Object (readonly)
Returns the value of attribute entry_point
23 24 25 |
# File 'lib/milk_tea/core/ir.rb', line 23 def entry_point @entry_point end |
#linkage_name ⇒ Object (readonly)
Returns the value of attribute linkage_name
23 24 25 |
# File 'lib/milk_tea/core/ir.rb', line 23 def linkage_name @linkage_name end |
#method_receiver_param ⇒ Object (readonly)
Returns the value of attribute method_receiver_param
23 24 25 |
# File 'lib/milk_tea/core/ir.rb', line 23 def method_receiver_param @method_receiver_param end |
#name ⇒ Object (readonly)
Returns the value of attribute name
23 24 25 |
# File 'lib/milk_tea/core/ir.rb', line 23 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params
23 24 25 |
# File 'lib/milk_tea/core/ir.rb', line 23 def params @params end |
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type
23 24 25 |
# File 'lib/milk_tea/core/ir.rb', line 23 def return_type @return_type end |