...because it's true from JS point of view (and from parser point of view). Nevertheless for end user (who just wants to find function/see it in sidebar) it probably doesn't matter.
I did experimented with detection of namespace assignments so there is probably code which can be reused.
As a user I would like to find functions by name assigned to namespace, even if they technically have no name (from JS parser point of view):
for example this code:
reports that function doesn't have name:
...because it's true from JS point of view (and from parser point of view). Nevertheless for end user (who just wants to find function/see it in sidebar) it probably doesn't matter.
I did experimented with detection of namespace assignments so there is probably code which can be reused.