#NEWLINE# def _add_junction( item ) : #NEWLINE# #INDENT# '\n    Adds a junction to the _current_statement.\n    ' #NEWLINE# ( type_ , channels ) = _expand_one_key_dictionary ( item ) #NEWLINE# junction = UnnamedStatement ( type = 'junction' ) #NEWLINE# for item in channels : #NEWLINE# #INDENT# ( type_ , value ) = _expand_one_key_dictionary ( item ) #NEWLINE# channel = UnnamedStatement ( type = 'channel' ) #NEWLINE# for val in value : #NEWLINE# #INDENT# if _is_reference ( val ) : #NEWLINE# #INDENT# _add_reference ( val , channel ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if _is_inline_definition ( val ) : #NEWLINE# #INDENT# _add_inline_definition ( val , channel ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# junction . add_child ( channel ) #NEWLINE# #UNINDENT# _current_statement . add_child ( channels )