findVarArgs method

List<LuaObject> findVarArgs()

Find the hidden variable "arg" if the function parameter list includes the special identifier "...".

Implementation

List<LuaObject> findVarArgs() {
  final arg = findVar('arg');
  return arg?.fields?.values.nonNulls.toList() ?? [];
}