original_docstring: Add a module to the build rules of the project.
  
      :param name: Name of the module to be added.
      :type name: :class:`basestring`
  
      :raises: :exc:`~exceptions.EOFError` if no insertion point can be found.
  
      This adds an ``add_subdirectory()`` call for ``name`` to the build script.
      If possible, the new call is inserted immediately before a placeholder
      comment which is designated for this purpose. Otherwise, the new call is
      inserted after the last existing call to ``add_subdirectory()``.
      
docstring: Add a module to the build rules of the project.
docstring_tokens: Add a module to the build rules of the project .
code: def addModule(self, name):
      """Add a module to the build rules of the project.
  
      :param name: Name of the module to be added.
      :type name: :class:`basestring`
  
      :raises: :exc:`~exceptions.EOFError` if no insertion point can be found.
  
      This adds an ``add_subdirectory()`` call for ``name`` to the build script.
      If possible, the new call is inserted immediately before a placeholder
      comment which is designated for this purpose. Otherwise, the new call is
      inserted after the last existing call to ``add_subdirectory()``.
      """
  
      indent = ""
      after = -1
  
      for n in xrange(len(self._scriptContents.tokens)):
        t = self._scriptContents.tokens[n]
  
        if isinstance(t, CMakeParser.Comment) and \
           t.text.startswith(self._moduleInsertPlaceholder):
          indent = t.indent
          after = n
          t.indent = _trimIndent(t.indent)
          break
  
        if _isCommand(t, "add_subdirectory"):
          indent = _trimIndent(t.indent)
          after = n + 1
  
      if after < 0:
        raise EOFError("failed to find insertion point for module")
  
      arguments = [CMakeParser.String(text=name)]
      t = CMakeParser.Command(text="add_subdirectory", arguments=arguments,
                              indent=indent)
      self._scriptContents.tokens.insert(after, t)
code_tokens: def addModule ( self , name ) : indent = "" after = - 1 for n in xrange ( len ( self . _scriptContents . tokens ) ) : t = self . _scriptContents . tokens [ n ] if isinstance ( t , CMakeParser . Comment ) and t . text . startswith ( self . _moduleInsertPlaceholder ) : indent = t . indent after = n t . indent = _trimIndent ( t . indent ) break if _isCommand ( t , "add_subdirectory" ) : indent = _trimIndent ( t . indent ) after = n + 1 if after < 0 : raise EOFError ( "failed to find insertion point for module" ) arguments = [ CMakeParser . String ( text = name ) ] t = CMakeParser . Command ( text = "add_subdirectory" , arguments = arguments , indent = indent ) self . _scriptContents . tokens . insert ( after , t )
short_docstring: Add a module to the build rules of the project.
short_docstring_tokens: Add a module to the build rules of the project .
comment: """Add a module to the build rules of the project.
  
      :param name: Name of the module to be added.
      :type name: :class:`basestring`
  
      :raises: :exc:`~exceptions.EOFError` if no insertion point can be found.
  
      This adds an ``add_subdirectory()`` call for ``name`` to the build script.
      If possible, the new call is inserted immediately before a placeholder
      comment which is designated for this purpose. Otherwise, the new call is
      inserted after the last existing call to ``add_subdirectory()``.
      """