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.



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

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



46
47
48
# File 'lib/milk_tea/core/ir.rb', line 46

def line
  @line
end

#source_pathObject (readonly)

Returns the value of attribute source_path

Returns:

  • (Object)

    the current value of source_path



46
47
48
# File 'lib/milk_tea/core/ir.rb', line 46

def source_path
  @source_path
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



46
47
48
# File 'lib/milk_tea/core/ir.rb', line 46

def value
  @value
end