class Ikra::AST::WhilePostNode
Attributes
body_stmts[R]
condition[R]
Public Class Methods
new(condition:, body_stmts:)
click to toggle source
# File lib/ast/nodes.rb, line 486 def initialize(condition:, body_stmts:) @condition = condition @body_stmts = body_stmts condition.parent = self body_stmts.parent = self end
Public Instance Methods
accept(visitor)
click to toggle source
# File lib/ast/visitor.rb, line 140 def accept(visitor) return visitor.visit_while_post_node(self) end
clone()
click to toggle source
# File lib/ast/nodes.rb, line 494 def clone return WhilePostNode.new( condition: @condition.clone, body_stmts: @body_stmts.clone) end
to_s()
click to toggle source
# File lib/ast/printer.rb, line 132 def to_s return "[WhilePostNode: #{condition.to_s}, #{body_stmts.to_s}]" end