Find the first node of a given type. If no such node exists the return value is `None`.
(self, node_type)
| 175 | yield item |
| 176 | |
| 177 | def find(self, node_type): |
| 178 | """Find the first node of a given type. If no such node exists the |
| 179 | return value is `None`. |
| 180 | """ |
| 181 | for result in self.find_all(node_type): |
| 182 | return result |
| 183 | |
| 184 | def find_all(self, node_type): |
| 185 | """Find all the nodes of a given type. If the type is a tuple, |