Class: MilkTea::IR::LocalDecl
- Inherits:
-
Data
- Object
- Data
- MilkTea::IR::LocalDecl
- 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) ⇒ LocalDecl
constructor
A new instance of LocalDecl.
Constructor Details
#initialize(name:, linkage_name:, type:, value:, line: nil, source_path: nil) ⇒ LocalDecl
Returns a new instance of LocalDecl.
29 |
# File 'lib/milk_tea/core/ir.rb', line 29 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
28 29 30 |
# File 'lib/milk_tea/core/ir.rb', line 28 def line @line end |
#linkage_name ⇒ Object (readonly)
Returns the value of attribute linkage_name
28 29 30 |
# File 'lib/milk_tea/core/ir.rb', line 28 def linkage_name @linkage_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name
28 29 30 |
# File 'lib/milk_tea/core/ir.rb', line 28 def name @name end |
#source_path ⇒ Object (readonly)
Returns the value of attribute source_path
28 29 30 |
# File 'lib/milk_tea/core/ir.rb', line 28 def source_path @source_path end |
#type ⇒ Object (readonly)
Returns the value of attribute type
28 29 30 |
# File 'lib/milk_tea/core/ir.rb', line 28 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value
28 29 30 |
# File 'lib/milk_tea/core/ir.rb', line 28 def value @value end |