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.



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

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



51
52
53
# File 'lib/milk_tea/core/ir.rb', line 51

def expression
  @expression
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



51
52
53
# File 'lib/milk_tea/core/ir.rb', line 51

def line
  @line
end

#source_pathObject (readonly)

Returns the value of attribute source_path

Returns:

  • (Object)

    the current value of source_path



51
52
53
# File 'lib/milk_tea/core/ir.rb', line 51

def source_path
  @source_path
end