class SuffixOffsetVisitor
Only makes sense from OrderedDFS
Attributes
result[R]
Public Class Methods
new()
click to toggle source
# File lib/visitor/suffix_offset_visitor.rb, line 8 def initialize @result = [] end
Public Instance Methods
postVisit(node)
click to toggle source
# File lib/visitor/suffix_offset_visitor.rb, line 19 def postVisit(node) # do nothing end
preVisit(node)
click to toggle source
# File lib/visitor/suffix_offset_visitor.rb, line 12 def preVisit(node) if (node.isLeaf) then @result << node.suffixOffset end return true end