#NEWLINE# def match( self , node ) : #NEWLINE# #INDENT# if ( node . type != symbols . file_input ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# leaves_after_last_newline = get_leaves_after_last_newline ( node ) #NEWLINE# if ( not any ( ( leaf . prefix . count ( '\n' ) for leaf in leaves_after_last_newline ) ) ) : #NEWLINE# #INDENT# return leaves_after_last_newline [ 0 ]