@staticmethod<EOL><INDENT>def _type_size(ty):<DEDENT>
if ty[<NUM_LIT:0>] in ('<STR_LIT:int>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>return <NUM_LIT:32><EOL><DEDENT>elif ty[<NUM_LIT:0>] in ('<STR_LIT>'):<EOL><INDENT>result = <NUM_LIT:0><EOL>for ty_i in ty[<NUM_LIT:1>]:<EOL><INDENT>result += ABI._type_size(ty_i)<EOL><DEDENT>return result<EOL><DEDENT>elif ty[<NUM_LIT:0>] in ('<STR_LIT>'):<EOL><INDENT>rep = ty[<NUM_LIT:1>]<EOL>result = <NUM_LIT:32>  <EOL>return result<EOL><DEDENT>elif ty[<NUM_LIT:0>] in ('<STR_LIT>', '<STR_LIT:string>'):<EOL><INDENT>result = <NUM_LIT:32>  <EOL>return result<EOL><DEDENT>raise ValueError<EOL>
Calculate `static` type size