parameters: (self, main_target_instance)
docstring: Helper rules to detect cycles in main target references.
docstring_summary: Helper rules to detect cycles in main target references.
docstring_tokens: Helper rules to detect cycles in main target references .
function: def start_building (self, main_target_instance):
          """ Helper rules to detect cycles in main target references.
          """
          assert isinstance(main_target_instance, MainTarget)
          if id(main_target_instance) in self.targets_being_built_:
              names = []
              for t in self.targets_being_built_.values() + [main_target_instance]:
                  names.append (t.full_name())
  
              get_manager().errors()("Recursion in main target references\n")
  
          self.targets_being_built_[id(main_target_instance)] = main_target_instance
function_tokens: def start_building ( self , main_target_instance ) : assert isinstance ( main_target_instance , MainTarget ) if id ( main_target_instance ) in self . targets_being_built_ : names = [ ] for t in self . targets_being_built_ . values ( ) + [ main_target_instance ] : names . append ( t . full_name ( ) ) get_manager ( ) . errors ( ) ( "Recursion in main target references\n" ) self . targets_being_built_ [ id ( main_target_instance ) ] = main_target_instance