lib/inch/language/elixir/provider/reader/object/function_object.rb in inch-0.7.0 vs lib/inch/language/elixir/provider/reader/object/function_object.rb in inch-0.7.1
- old
+ new
@@ -40,10 +40,15 @@
def name_from_tuple(a, _, b)
if b.nil? || b == 'Elixir'
a
else
if a == '\\\\'
- name_from_tuple(*b.first)
+ candidate = b.first
+ if candidate.is_a?(Array)
+ name_from_tuple(*candidate)
+ else
+ candidate
+ end
else
warn "[WARN] could not parse FunctionSignature: #{[a, _, b].inspect}"
end
end
end