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.
52 |
# File 'lib/milk_tea/core/ir.rb', line 52 def initialize(expression:, line: nil, source_path: nil) = super |
Instance Attribute Details
#expression ⇒ Object (readonly)
Returns the value of attribute expression
51 52 53 |
# File 'lib/milk_tea/core/ir.rb', line 51 def expression @expression end |
#line ⇒ Object (readonly)
Returns the value of attribute line
51 52 53 |
# File 'lib/milk_tea/core/ir.rb', line 51 def line @line end |
#source_path ⇒ Object (readonly)
Returns the value of attribute source_path
51 52 53 |
# File 'lib/milk_tea/core/ir.rb', line 51 def source_path @source_path end |