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