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