lib/loxxy/ast/lox_for_stmt.rb in loxxy-0.2.02 vs lib/loxxy/ast/lox_for_stmt.rb in loxxy-0.2.03

- old
+ new

@@ -23,19 +23,15 @@ super(aPosition, child) @test_expr = testExpr @update_expr = updateExpr end - # Part of the 'visitee' role in Visitor design pattern. - # @param visitor [Ast::ASTVisitor] the visitor - def accept(visitor) - visitor.visit_for_stmt(self) - end - # Accessor to the condition expression # @return [LoxNode] def condition subnodes[0] end + + define_accept # Add `accept` method as found in Visitor design pattern end # class end # module end # module