def mk_id(field):
name = field.type_id<EOL>if name == "<STR_LIT:string>":<EOL><INDENT>return "<STR_LIT:%s>" % ("<STR_LIT>")<EOL><DEDENT>elif name == "<STR_LIT>" and field.size:<EOL><INDENT>if field.options['<STR_LIT>'].value not in CONSTRUCT_CODE:<EOL><INDENT>return "<STR_LIT:%s>" % convert(field.options['<STR_LIT>'].value)<EOL><DEDENT>else:<EOL><INDENT>return "<STR_LIT:%s>" % field.options['<STR_LIT>'].value<EOL><DEDENT><DEDENT>elif name == "<STR_LIT>":<EOL><INDENT>return "<STR_LIT:%s>" % convert(field.options['<STR_LIT>'].value)<EOL><DEDENT>elif name not in CONSTRUCT_CODE:<EOL><INDENT>return convert(name)<EOL><DEDENT>else:<EOL><INDENT>return name<EOL><DEDENT>
Builds an identifier from a field.