lib/dentaku/ast/case/case_when.rb in dentaku-3.4.2 vs lib/dentaku/ast/case/case_when.rb in dentaku-3.5.0
- old
+ new
@@ -1,8 +1,10 @@
module Dentaku
module AST
class CaseWhen < Operation
+ attr_reader :node
+
def initialize(node)
@node = node
end
def value(context = {})
@@ -21,9 +23,17 @@
1
end
def self.max_param_count
1
+ end
+
+ def accept(visitor)
+ visitor.visit_when(self)
+ end
+
+ def to_s
+ 'WHEN'
end
end
end
end