parameters: (self, cls)
return_statement: return result
docstring: Specialized traverse() that only supports instance checks.
docstring_summary: Specialized traverse() that only supports instance checks.
docstring_tokens: Specialized traverse () that only supports instance checks .
function: def _fast_traverse(self, cls):
          """Specialized traverse() that only supports instance checks."""
          result = []
          if isinstance(self, cls):
              result.append(self)
          for child in self.children:
              result.extend(child._fast_traverse(cls))
          return result
function_tokens: def _fast_traverse ( self , cls ) : result = [ ] if isinstance ( self , cls ) : result . append ( self ) for child in self . children : result . extend ( child . _fast_traverse ( cls ) ) return result