parameters: (self)
return_statement: return iter(fields)
docstring: Return an iterator for accessing the fields of this type.
docstring_summary: Return an iterator for accessing the fields of this type.
docstring_tokens: Return an iterator for accessing the fields of this type .
function: def get_fields(self):
          """Return an iterator for accessing the fields of this type."""
  
          def visitor(field, children):
              assert field != conf.lib.clang_getNullCursor()
  
              # Create reference to TU so it isn't GC'd before Cursor.
              field._tu = self._tu
              fields.append(field)
              return 1 # continue
          fields = []
          conf.lib.clang_Type_visitFields(self,
                              callbacks['fields_visit'](visitor), fields)
          return iter(fields)
function_tokens: def get_fields ( self ) : def visitor ( field , children ) : assert field != conf . lib . clang_getNullCursor ( ) # Create reference to TU so it isn't GC'd before Cursor. field . _tu = self . _tu fields . append ( field ) return 1 # continue fields = [ ] conf . lib . clang_Type_visitFields ( self , callbacks [ 'fields_visit' ] ( visitor ) , fields ) return iter ( fields )