add additional type specifications to generated erlang files to support
corecursive structs
} else if (type->is_enum()) {
return "integer()";
} else if (type->is_struct() || type->is_xception()) {
- return "#" + uncapitalize(type->get_name()) + "{}";
+ return uncapitalize(type->get_name()) + "()";
} else if (type->is_map()) {
return "dict()";
} else if (type->is_set()) {
}
buf << "}).";
- out << buf.str() << endl << endl;
+ out << buf.str() << endl;
+ out <<
+ "-type "+type_name (tstruct) << "() :: #" + type_name (tstruct) + "{}."
+ << endl << endl;
}
/**