#NEWLINE# @ lower_builtin ( 'list.append' , types . List , types . Any ) #NEWLINE# def list_append( context , builder , sig , args ) : #NEWLINE# #INDENT# inst = ListInstance ( context , builder , sig . args [ 0 ] , args [ 0 ] ) #NEWLINE# item = args [ 1 ] #NEWLINE# n = inst . size #NEWLINE# new_size = builder . add ( n , ir . Constant ( n . type , 1 ) ) #NEWLINE# inst . resize ( new_size ) #NEWLINE# inst . setitem ( n , item ) #NEWLINE# return context . get_dummy_value ( )