Class: MilkTea::IR::ExpressionStmt

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expression:, line: nil, source_path: nil) ⇒ ExpressionStmt

Returns a new instance of ExpressionStmt.



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

def initialize(expression:, line: nil, source_path: nil) = super

Instance Attribute Details

#expressionObject (readonly)

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



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

def expression
  @expression
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



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

def line
  @line
end

#source_pathObject (readonly)

Returns the value of attribute source_path

Returns:

  • (Object)

    the current value of source_path



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

def source_path
  @source_path
end