#NEWLINE# def compose_node( self , parent , index ) : #NEWLINE# #INDENT# self . descend_resolver ( parent , index ) #NEWLINE# if self . check_event ( events . ScalarEvent ) : #NEWLINE# #INDENT# node = self . compose_scalar_node ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if self . check_event ( events . SequenceStartEvent ) : #NEWLINE# #INDENT# node = self . compose_sequence_node ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if self . check_event ( events . MappingStartEvent ) : #NEWLINE# #INDENT# node = self . compose_mapping_node ( ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . ascend_resolver ( ) #NEWLINE# return node