code: def _process_execs(self, contents, modulename, atype, mode="insert"):
          
          #We only want to look at text after the contains statement
          match = self.RE_CONTAINS.search(contents)
  
          #It is possible for the type to not have any executables
          if match is not None:
              exectext = match.group("remainder")
              self._process_execs_contents(exectext, modulename, atype, mode)
docs: Extracts all the executable methods that belong to the type.