Class: MilkTea::AST::WhileStmt

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(condition:, body:, inline: false, line: nil, column: nil, length: nil) ⇒ WhileStmt

Returns a new instance of WhileStmt.



185
# File 'lib/milk_tea/core/ast.rb', line 185

def initialize(condition:, body:, inline: false, line: nil, column: nil, length: nil) = super

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



184
185
186
# File 'lib/milk_tea/core/ast.rb', line 184

def body
  @body
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



184
185
186
# File 'lib/milk_tea/core/ast.rb', line 184

def column
  @column
end

#conditionObject (readonly)

Returns the value of attribute condition

Returns:

  • (Object)

    the current value of condition



184
185
186
# File 'lib/milk_tea/core/ast.rb', line 184

def condition
  @condition
end

#inlineObject (readonly)

Returns the value of attribute inline

Returns:

  • (Object)

    the current value of inline



184
185
186
# File 'lib/milk_tea/core/ast.rb', line 184

def inline
  @inline
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



184
185
186
# File 'lib/milk_tea/core/ast.rb', line 184

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



184
185
186
# File 'lib/milk_tea/core/ast.rb', line 184

def line
  @line
end