Class: MilkTea::IR::ReturnStmt

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:, line: nil, path: nil) ⇒ ReturnStmt

Returns a new instance of ReturnStmt.



49
# File 'lib/milk_tea/core/ir.rb', line 49

def initialize(value:, line: nil, path: nil) = super

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



48
49
50
# File 'lib/milk_tea/core/ir.rb', line 48

def line
  @line
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



48
49
50
# File 'lib/milk_tea/core/ir.rb', line 48

def path
  @path
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



48
49
50
# File 'lib/milk_tea/core/ir.rb', line 48

def value
  @value
end