def fmt_type_name(data_type):
if is_user_defined_type(data_type):<EOL><INDENT>return fmt_pascal('<STR_LIT>' % (data_type.namespace.name, data_type.name))<EOL><DEDENT>else:<EOL><INDENT>fmted_type = _base_type_table.get(data_type.__class__, '<STR_LIT>')<EOL>if is_list_type(data_type):<EOL><INDENT>fmted_type += '<STR_LIT>' + fmt_type(data_type.data_type) + '<STR_LIT:>>'<EOL><DEDENT>return fmted_type<EOL><DEDENT>
Returns the JSDoc name for the given data type.
(Does not attempt to enumerate subtypes.)