grom358 / pharborist

A PHP library to query and transform source code via tree operations.
GNU General Public License v3.0
44 stars 10 forks source link

Index objects should know how to remove themselves #209

Open phenaproxima opened 9 years ago

phenaproxima commented 9 years ago

When something is deleted from the index, each index object should know how to handle itself being deleted. Like for a ClassIndex, it should know to remove itself from the indexed interfaces which implement it, and from the indexed traits which it imports. I think each index object should have a remove() method which can handle this as needed.