PHP-Parser icon indicating copy to clipboard operation
PHP-Parser copied to clipboard

Annotate names with symbol type?

Open nikic opened this issue 5 years ago • 0 comments

Something I just ran into ... if you look just at a Name node, you can't tell whether it refers to a class, function or constant. I had to replicate parts of the NameResolver logic to determine that. It might make sense to make NameResolver also add an attribute with the symbol type.

nikic avatar Jan 26 '20 09:01 nikic