Class: MilkTea::IR::SwitchStmt
- Inherits:
-
Data
- Object
- Data
- MilkTea::IR::SwitchStmt
- Defined in:
- lib/milk_tea/core/ir.rb
Instance Attribute Summary collapse
-
#cases ⇒ Object
readonly
Returns the value of attribute cases.
-
#exhaustive ⇒ Object
readonly
Returns the value of attribute exhaustive.
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
Instance Method Summary collapse
-
#initialize(expression:, cases:, exhaustive: false) ⇒ SwitchStmt
constructor
A new instance of SwitchStmt.
Constructor Details
#initialize(expression:, cases:, exhaustive: false) ⇒ SwitchStmt
Returns a new instance of SwitchStmt.
37 |
# File 'lib/milk_tea/core/ir.rb', line 37 def initialize(expression:, cases:, exhaustive: false) = super |
Instance Attribute Details
#cases ⇒ Object (readonly)
Returns the value of attribute cases
36 37 38 |
# File 'lib/milk_tea/core/ir.rb', line 36 def cases @cases end |
#exhaustive ⇒ Object (readonly)
Returns the value of attribute exhaustive
36 37 38 |
# File 'lib/milk_tea/core/ir.rb', line 36 def exhaustive @exhaustive end |
#expression ⇒ Object (readonly)
Returns the value of attribute expression
36 37 38 |
# File 'lib/milk_tea/core/ir.rb', line 36 def expression @expression end |