parameters: (self, path)
return_statement: return (self.SourceGroup(), True)
docstring: Returns a PBXGroup child of this object to which path should be added.
  
      This method is intended to choose between SourceGroup and
      IntermediatesGroup on the basis of whether path is present in a source
      directory or an intermediates directory.  For the purposes of this
      determination, any path located within a derived file directory such as
      PROJECT_DERIVED_FILE_DIR is treated as being in an intermediates
      directory.
  
      The returned value is a two-element tuple.  The first element is the
      PBXGroup, and the second element specifies whether that group should be
      organized hierarchically (True) or as a single flat list (False).
docstring_summary: Returns a PBXGroup child of this object to which path should be added.
docstring_tokens: Returns a PBXGroup child of this object to which path should be added .
function: def RootGroupForPath(self, path):
      """Returns a PBXGroup child of this object to which path should be added.
  
      This method is intended to choose between SourceGroup and
      IntermediatesGroup on the basis of whether path is present in a source
      directory or an intermediates directory.  For the purposes of this
      determination, any path located within a derived file directory such as
      PROJECT_DERIVED_FILE_DIR is treated as being in an intermediates
      directory.
  
      The returned value is a two-element tuple.  The first element is the
      PBXGroup, and the second element specifies whether that group should be
      organized hierarchically (True) or as a single flat list (False).
      """
  
      # TODO(mark): make this a class variable and bind to self on call?
      # Also, this list is nowhere near exhaustive.
      # INTERMEDIATE_DIR and SHARED_INTERMEDIATE_DIR are used by
      # gyp.generator.xcode.  There should probably be some way for that module
      # to push the names in, rather than having to hard-code them here.
      source_tree_groups = {
        'DERIVED_FILE_DIR':         (self.IntermediatesGroup, True),
        'INTERMEDIATE_DIR':         (self.IntermediatesGroup, True),
        'PROJECT_DERIVED_FILE_DIR': (self.IntermediatesGroup, True),
        'SHARED_INTERMEDIATE_DIR':  (self.IntermediatesGroup, True),
      }
  
      (source_tree, path) = SourceTreeAndPathFromPath(path)
      if source_tree != None and source_tree in source_tree_groups:
        (group_func, hierarchical) = source_tree_groups[source_tree]
        group = group_func()
        return (group, hierarchical)
  
      # TODO(mark): make additional choices based on file extension.
  
      return (self.SourceGroup(), True)
function_tokens: def RootGroupForPath ( self , path ) : # TODO(mark): make this a class variable and bind to self on call? # Also, this list is nowhere near exhaustive. # INTERMEDIATE_DIR and SHARED_INTERMEDIATE_DIR are used by # gyp.generator.xcode.  There should probably be some way for that module # to push the names in, rather than having to hard-code them here. source_tree_groups = { 'DERIVED_FILE_DIR' : ( self . IntermediatesGroup , True ) , 'INTERMEDIATE_DIR' : ( self . IntermediatesGroup , True ) , 'PROJECT_DERIVED_FILE_DIR' : ( self . IntermediatesGroup , True ) , 'SHARED_INTERMEDIATE_DIR' : ( self . IntermediatesGroup , True ) , } ( source_tree , path ) = SourceTreeAndPathFromPath ( path ) if source_tree != None and source_tree in source_tree_groups : ( group_func , hierarchical ) = source_tree_groups [ source_tree ] group = group_func ( ) return ( group , hierarchical ) # TODO(mark): make additional choices based on file extension. return ( self . SourceGroup ( ) , True )