#NEWLINE# def p_if_stmt4( p ) : #NEWLINE# #INDENT# ' if_stmt : IF test COLON suite elif_stmts else_stmt ' #NEWLINE# if_stmt = ast . If ( ) #NEWLINE# if_stmt . test = p [ 2 ] #NEWLINE# if_stmt . body = p [ 4 ] #NEWLINE# if_stmt . lineno = p . lineno ( 1 ) #NEWLINE# elif_stmt = p [ 5 ] #NEWLINE# if_stmt . orelse = [ elif_stmt ] #NEWLINE# else_stmt = p [ 6 ] #NEWLINE# while elif_stmt . orelse : #NEWLINE# #INDENT# elif_stmt = elif_stmt . orelse [ 0 ] #NEWLINE# #UNINDENT# elif_stmt . orelse = else_stmt #NEWLINE# ast . fix_missing_locations ( if_stmt ) #NEWLINE# p [ 0 ] = if_stmt