lib/ruby-next/language/rewriters/base.rb
# Returns true if the syntax is supported
# by the current Ruby (performs syntax check, not version check)
Returns true if the syntax is supported
by the current Ruby (performs syntax check, not version check)
Returns true if the syntax is supported by the current Ruby ( performs syntax check not version check )
def unsupported_syntax?
            save_verbose, $VERBOSE = $VERBOSE, nil
            eval_mid = Kernel.respond_to?(:eval_without_ruby_next) ? :eval_without_ruby_next : :eval
            Kernel.send eval_mid, self::SYNTAX_PROBE, nil, __FILE__, __LINE__
            false
          rescue SyntaxError, StandardError
            true
          ensure
            $VERBOSE = save_verbose
          end
def unsupported_syntax? save_verbose , $VERBOSE = $VERBOSE , nil eval_mid = Kernel . respond_to? ( :eval_without_ruby_next ) ? :eval_without_ruby_next : :eval Kernel . send eval_mid , self :: SYNTAX_PROBE , nil , __FILE__ , __LINE__ false rescue SyntaxError , StandardError true ensure $VERBOSE = save_verbose end
Returns true if the syntax is supported
by the current Ruby (performs syntax check, not version check)
Returns true if the syntax is supported by the current Ruby ( performs syntax check not version check )