parameters: (self)
return_statement: return iter(children)
docstring: Return an iterator for accessing the children of this cursor.
docstring_summary: Return an iterator for accessing the children of this cursor.
docstring_tokens: Return an iterator for accessing the children of this cursor .
function: def get_children(self):
          """Return an iterator for accessing the children of this cursor."""
  
          # FIXME: Expose iteration from CIndex, PR6125.
          def visitor(child, parent, children):
              # FIXME: Document this assertion in API.
              # FIXME: There should just be an isNull method.
              assert child != conf.lib.clang_getNullCursor()
  
              # Create reference to TU so it isn't GC'd before Cursor.
              child._tu = self._tu
              children.append(child)
              return 1 # continue
          children = []
          conf.lib.clang_visitChildren(self, callbacks['cursor_visit'](visitor),
              children)
          return iter(children)
function_tokens: def get_children ( self ) : # FIXME: Expose iteration from CIndex, PR6125. def visitor ( child , parent , children ) : # FIXME: Document this assertion in API. # FIXME: There should just be an isNull method. assert child != conf . lib . clang_getNullCursor ( ) # Create reference to TU so it isn't GC'd before Cursor. child . _tu = self . _tu children . append ( child ) return 1 # continue children = [ ] conf . lib . clang_visitChildren ( self , callbacks [ 'cursor_visit' ] ( visitor ) , children ) return iter ( children )