class SyntaxTree::Parser

def on_next(arguments)

on_next: (Args arguments) -> Next
:call-seq:
def on_next(arguments)
  keyword = consume_keyword(:next)
  location = keyword.location
  location = location.to(arguments.location) if arguments.parts.any?
  Next.new(arguments: arguments, location: location)
end