PHP-Parser
PHP-Parser copied to clipboard
Annotate names with symbol type?
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.