Class: MilkTea::AST::ReturnStmt

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/core/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:, line: nil, column: nil, length: nil) ⇒ ReturnStmt

Returns a new instance of ReturnStmt.



213
# File 'lib/milk_tea/core/ast.rb', line 213

def initialize(value:, line: nil, column: nil, length: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



212
213
214
# File 'lib/milk_tea/core/ast.rb', line 212

def column
  @column
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



212
213
214
# File 'lib/milk_tea/core/ast.rb', line 212

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



212
213
214
# File 'lib/milk_tea/core/ast.rb', line 212

def line
  @line
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



212
213
214
# File 'lib/milk_tea/core/ast.rb', line 212

def value
  @value
end