count_complexity(node)
click to toggle source
def count_complexity(node)
count_branches(node) + 1
end
decrease_depth()
click to toggle source
def decrease_depth
@counting = @counting - 1
if @counting <= 0
@counting = 0
evaluate_matching_end
end
end
increase_depth()
click to toggle source
def increase_depth
@count = 1 unless counting?
@counting = @counting + 1
end