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