def to_type(f, type_map=CONSTRUCT_CODE):
name = f.type_id<EOL>if name.startswith('<STR_LIT>'):<EOL><INDENT>name = '<STR_LIT>' + name[<NUM_LIT:3>:]<EOL><DEDENT>if type_map.get(name, None):<EOL><INDENT>return type_map.get(name, None)<EOL><DEDENT>elif name == '<STR_LIT>':<EOL><INDENT>fill = f.options['<STR_LIT>'].value<EOL>f_ = copy.copy(f)<EOL>f_.type_id = fill<EOL>return "<STR_LIT>" % to_type(f_)<EOL><DEDENT>return name<EOL>
Format a the proper type.