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, source_path: nil) ⇒ ReturnStmt

Returns a new instance of ReturnStmt.



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

def initialize(value:, line: nil, source_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

#source_pathObject (readonly)

Returns the value of attribute source_path

Returns:

  • (Object)

    the current value of source_path



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

def source_path
  @source_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