class Ikra::AST::UntilPostNode
Attributes
body_stmts[R]
condition[R]
Public Class Methods
new(condition:, body_stmts:)
click to toggle source
# File lib/ast/nodes.rb, line 524 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 152 def accept(visitor) return visitor.visit_until_post_node(self) end
clone()
click to toggle source
# File lib/ast/nodes.rb, line 532 def clone return UntilPostNode.new( condition: @condition.clone, body_stmts: @body_stmts.clone) end
to_s()
click to toggle source
# File lib/ast/printer.rb, line 144 def to_s return "[UntilPostNode: #{condition.to_s}, #{body_stmts.to_s}]" end