method

visit_OR

visit_OR(node)
public

No documentation available.

# File actionpack/lib/action_dispatch/journey/nfa/builder.rb, line 38
        def visit_OR(node)
          from = @i += 1
          children = node.children.map { |c| visit(c) }
          to = @i += 1

          children.each do |child|
            @tt[from, child.first] = nil
            @tt[child.last, to]    = nil
          end

          @tt.accepting = to

          [from, to]
        end