class DeepestValueDepthVisitor
Attributes
deepestValueDepth[R]
deepestValueDepthNode[R]
Public Class Methods
new()
click to toggle source
Calls superclass method
BaseVisitor::new
# File lib/visitor/value_depth_visitor.rb, line 22 def initialize @deepestValueDepthNode = nil @deepestValueDepth = 0 super end
Public Instance Methods
postVisit(node)
click to toggle source
# File lib/visitor/value_depth_visitor.rb, line 28 def postVisit(node) if (node.valueDepth > @deepestValueDepth) then @deepestValueDepth = node.valueDepth @deepestValueDepthNode = node end end