erlang_ls
erlang_ls copied to clipboard
POIs not generated for function clauses in anonymous funs.
For
foo() ->
fun
('div') -> a;
('baz') -> b;
(_Foo) -> c
end.
there should be function_clause
poi()
s generated for the for the three clauses.
What would be the use of such POIs?
I think only sorting out scope inside the body of the clause.
Yeah, that makes sense!
I thought about this and I think it would be easiest if we made fun expressions and clauses be their own POI types.