#NEWLINE# def leave_Document( self , node , key , parent , path , ancestors ) : #NEWLINE# #INDENT# fragment_names_used = set ( ) #NEWLINE# for operation in self . operation_definitions : #NEWLINE# #INDENT# fragments = self . context . get_recursively_referenced_fragments ( operation ) #NEWLINE# for fragment in fragments : #NEWLINE# #INDENT# fragment_names_used . add ( fragment . name . value ) #NEWLINE# #UNINDENT# #UNINDENT# for fragment_definition in self . fragment_definitions : #NEWLINE# #INDENT# if ( fragment_definition . name . value not in fragment_names_used ) : #NEWLINE# #INDENT# self . context . report_error ( GraphQLError ( self . unused_fragment_message ( fragment_definition . name . value ) , [ fragment_definition ] ) )