class RuboCop::AST::ArgsNode

to all ‘args` nodes within RuboCop.
node when the builder constructs the AST, making its methods available
A node extension for `args` nodes. This will be used in place of a plain

def argument_list

Returns:
  • (Array) - array of argument nodes.
def argument_list
  each_descendant(*ARGUMENT_TYPES).to_a.freeze
end

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