class RuboCop::AST::ArgsNode

def empty_and_without_delimiters?

-> a {}
-> () {}
x { || }
def x a; end
def x(); end
# false

-> {}
x { }
def x; end
# true
@example:
It returns true if arguments are empty and delimiters do not exist.
def empty_and_without_delimiters?
  loc.expression.nil?
end