How can I find if a tree node has some subchild node which is incomplete or has error ?

In the image attached below, it shows a tree generated by parsing text using custom grammar. My aim is to identify if a node has error or not ? Here for FilterList I would like to know if it contains a child which has error.


Is there a way to achieve that ?