original_docstring: Writes the gles2 common utility header.
docstring: Writes the gles2 common utility header.
docstring_tokens: Writes the gles2 common utility header .
code: def WriteCommonUtilsHeader(self, filename):
      """Writes the gles2 common utility header."""
      file = CHeaderWriter(filename)
      type_infos = sorted(_NAMED_TYPE_INFO.keys())
      for type_info in type_infos:
        if _NAMED_TYPE_INFO[type_info]['type'] == 'GLenum':
          file.Write("static std::string GetString%s(uint32_t value);\n" %
                     type_info)
      file.Write("\n")
      file.Close()
      self.generated_cpp_filenames.append(file.filename)
code_tokens: def WriteCommonUtilsHeader ( self , filename ) : file = CHeaderWriter ( filename ) type_infos = sorted ( _NAMED_TYPE_INFO . keys ( ) ) for type_info in type_infos : if _NAMED_TYPE_INFO [ type_info ] [ 'type' ] == 'GLenum' : file . Write ( "static std::string GetString%s(uint32_t value);\n" % type_info ) file . Write ( "\n" ) file . Close ( ) self . generated_cpp_filenames . append ( file . filename )
short_docstring: Writes the gles2 common utility header.
short_docstring_tokens: Writes the gles2 common utility header .
comment: """Writes the gles2 common utility header."""