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.



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

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



200
201
202
# File 'lib/milk_tea/core/ast.rb', line 200

def body
  @body
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



200
201
202
# File 'lib/milk_tea/core/ast.rb', line 200

def column
  @column
end

#conditionObject (readonly)

Returns the value of attribute condition

Returns:

  • (Object)

    the current value of condition



200
201
202
# File 'lib/milk_tea/core/ast.rb', line 200

def condition
  @condition
end

#inlineObject (readonly)

Returns the value of attribute inline

Returns:

  • (Object)

    the current value of inline



200
201
202
# File 'lib/milk_tea/core/ast.rb', line 200

def inline
  @inline
end

#lengthObject (readonly)

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



200
201
202
# File 'lib/milk_tea/core/ast.rb', line 200

def length
  @length
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



200
201
202
# File 'lib/milk_tea/core/ast.rb', line 200

def line
  @line
end