# frozen_string_literal: true module Unparser class Emitter # Emitter control flow modifiers class FlowModifier < self MAP = { return: 'return', next: 'next', break: 'break' }.freeze private_constant(*constants(false)) handle(*MAP.keys) private def dispatch write(MAP.fetch(node.type)) unless children.empty? emit_arguments end end def emit_arguments ws delimited(children) end end # Return end # Emitter end # Unparser