class ActionDispatch::Journey::GTG::Builder
def lastpos(node)
Experimental RBS support (using type sampling data from the type_fusion
project).
def lastpos: (ActionDispatch::Journey::Nodes::Cat node) -> untyped
This signature was generated using 1 sample from 1 application.
def lastpos(node) case node when Nodes::Star lastpos(node.left) when Nodes::Or node.children.flat_map { |c| lastpos(c) }.tap(&:uniq!) when Nodes::Cat if nullable?(node.right) lastpos(node.left) | lastpos(node.right) else lastpos(node.right) end when Nodes::Terminal nullable?(node) ? [] : [node] when Nodes::Unary lastpos(node.left) else raise ArgumentError, "unknown lastpos: %s" % node.class.name end end