parameters: (self, typeinfo, typeName, alias)
docstring: Generate struct (e.g. C "struct" type).
  
          Add the struct name to the 'structs' dictionary, with the
          value being an ordered list of the struct member names.
docstring_summary: Generate struct (e.g. C "struct" type).
docstring_tokens: Generate struct ( e . g . C struct type ) .
function: def genStruct(self, typeinfo, typeName, alias):
          """Generate struct (e.g. C "struct" type).
  
          Add the struct name to the 'structs' dictionary, with the
          value being an ordered list of the struct member names."""
          OutputGenerator.genStruct(self, typeinfo, typeName, alias)
  
          if alias:
              # Add name -> alias mapping
              self.addName(self.alias, typeName, alias)
          else:
              # May want to only emit definition on this branch
              True
  
          members = [member.text for member in typeinfo.elem.findall('.//member/name')]
          self.structs[typeName] = members
          memberTypes = [member.text for member in typeinfo.elem.findall('.//member/type')]
          for member_type in memberTypes:
              self.addMapping(typeName, member_type)
function_tokens: def genStruct ( self , typeinfo , typeName , alias ) : OutputGenerator . genStruct ( self , typeinfo , typeName , alias ) if alias : # Add name -> alias mapping self . addName ( self . alias , typeName , alias ) else : # May want to only emit definition on this branch True members = [ member . text for member in typeinfo . elem . findall ( './/member/name' ) ] self . structs [ typeName ] = members memberTypes = [ member . text for member in typeinfo . elem . findall ( './/member/type' ) ] for member_type in memberTypes : self . addMapping ( typeName , member_type )