Class: MilkTea::IR::Constant
- Inherits:
-
Data
- Object
- Data
- MilkTea::IR::Constant
- Defined in:
- lib/milk_tea/core/ir.rb
Instance Attribute Summary collapse
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#linkage_name ⇒ Object
readonly
Returns the value of attribute linkage_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#source_path ⇒ Object
readonly
Returns the value of attribute source_path.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name:, linkage_name:, type:, value:, line: nil, source_path: nil) ⇒ Constant
constructor
A new instance of Constant.
Constructor Details
#initialize(name:, linkage_name:, type:, value:, line: nil, source_path: nil) ⇒ Constant
Returns a new instance of Constant.
10 |
# File 'lib/milk_tea/core/ir.rb', line 10 def initialize(name:, linkage_name:, type:, value:, line: nil, source_path: nil) = super |
Instance Attribute Details
#line ⇒ Object (readonly)
Returns the value of attribute line
9 10 11 |
# File 'lib/milk_tea/core/ir.rb', line 9 def line @line end |
#linkage_name ⇒ Object (readonly)
Returns the value of attribute linkage_name
9 10 11 |
# File 'lib/milk_tea/core/ir.rb', line 9 def linkage_name @linkage_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name
9 10 11 |
# File 'lib/milk_tea/core/ir.rb', line 9 def name @name end |
#source_path ⇒ Object (readonly)
Returns the value of attribute source_path
9 10 11 |
# File 'lib/milk_tea/core/ir.rb', line 9 def source_path @source_path end |
#type ⇒ Object (readonly)
Returns the value of attribute type
9 10 11 |
# File 'lib/milk_tea/core/ir.rb', line 9 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value
9 10 11 |
# File 'lib/milk_tea/core/ir.rb', line 9 def value @value end |