method
build_followpos
v4.2.1 -
Show latest stable
- Class:
ActionDispatch::Journey::GTG::Builder
build_followpos()private
No documentation available.
# File actionpack/lib/action_dispatch/journey/gtg/builder.rb, line 134
def build_followpos
table = Hash.new { |h, k| h[k] = [] }
@ast.each do |n|
case n
when Nodes::Cat
lastpos(n.left).each do |i|
table[i] += firstpos(n.right)
end
when Nodes::Star
lastpos(n).each do |i|
table[i] += firstpos(n)
end
end
end
table
end