Ok, so its the combination of symbols.c and tagmanager, so its not as simple as just the switch that I suggested. And now I'm remembering why I don't touch any of that stuff :)

As for the type of xsq in the above, well, I don't think ctags handles any expression evaluation, so noticing that the lambda is called and returns a value is beyond its pay grade, and (I think, jsfiddle was happy with it):

const xsq = (function(x){ return x*x});

is a function, so the presence of the parens about the lambda can't be simply taken to not make it a function. And in a dynamic language like JS static inference is unlikely to always work anyway (see also Python and other dynamic languages).

And inference is necessary in C++ and heaps of other languages too now. I'm afraid the world (except C) has run away ahead of the capabilities of the ctags model.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.