erlang_ls icon indicating copy to clipboard operation
erlang_ls copied to clipboard

POIs not generated for function clauses in anonymous funs.

Open alanz opened this issue 2 years ago • 4 comments

For

foo() ->
  fun
    ('div') -> a;
    ('baz') -> b;
    (_Foo) -> c
  end.

there should be function_clause poi()s generated for the for the three clauses.

alanz avatar Jun 14 '22 14:06 alanz

What would be the use of such POIs?

plux avatar Jun 14 '22 14:06 plux

I think only sorting out scope inside the body of the clause.

alanz avatar Jun 15 '22 08:06 alanz

Yeah, that makes sense!

plux avatar Jun 15 '22 08:06 plux

I thought about this and I think it would be easiest if we made fun expressions and clauses be their own POI types.

plux avatar Jun 15 '22 20:06 plux