compiler/cpp/src/generate/t_go_generator.cc
/**
 * Generates a typedef. This is not done in go, types are all implicit.
 *
 * @param ttypedef The type definition
 */
Generates a typedef. This is not done in go, types are all implicit.
@param ttypedef The type definition
Generates a typedef . This is not done in go types are all implicit . @param ttypedef The type definition
void t_go_generator::generate_typedef(t_typedef* ttypedef) {
  generate_go_docstring(f_types_, ttypedef);
  string newTypeDef(publicize(ttypedef->get_symbolic()));
  string baseType(type_to_go_type(ttypedef->get_type()));
  if(baseType == newTypeDef)
    return;
  f_types_ <<
    "type " << newTypeDef << " " << baseType << endl << endl;
}
void t_go_generator :: generate_typedef ( t_typedef * ttypedef ) { generate_go_docstring ( f_types_ , ttypedef ) ; string newTypeDef ( publicize ( ttypedef -> get_symbolic ( ) ) ) ; string baseType ( type_to_go_type ( ttypedef -> get_type ( ) ) ) ; if ( baseType == newTypeDef ) return ; f_types_ << " " << newTypeDef << " " << baseType << endl << endl ; }
Generates a typedef.
Generates a typedef .