module RuboCop::AST::NodePattern::MethodDefiner

def emit_method_code

def emit_method_code
  <<~RUBY
    return unless #{match_code}
    block_given? ? #{emit_yield_capture} : (return #{emit_retval})
  RUBY
end