Class: MilkTea::AST::ExpressionStmt
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::ExpressionStmt
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#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, column: nil) ⇒ ExpressionStmt
constructor
A new instance of ExpressionStmt.
Constructor Details
#initialize(expression:, line: nil, column: nil) ⇒ ExpressionStmt
Returns a new instance of ExpressionStmt.
228 |
# File 'lib/milk_tea/core/ast.rb', line 228 def initialize(expression:, line: nil, column: nil) = super |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
227 228 229 |
# File 'lib/milk_tea/core/ast.rb', line 227 def column @column end |
#expression ⇒ Object (readonly)
Returns the value of attribute expression
227 228 229 |
# File 'lib/milk_tea/core/ast.rb', line 227 def expression @expression end |
#line ⇒ Object (readonly)
Returns the value of attribute line
227 228 229 |
# File 'lib/milk_tea/core/ast.rb', line 227 def line @line end |