parameters: (self, position)
return_statement: return position < self.discardedbytes
docstring: returns True if the given position has already been discarded
          and is no longer valid.
docstring_summary: returns True if the given position has already been discarded
          and is no longer valid.
docstring_tokens: returns True if the given position has already been discarded and is no longer valid .
function: def hasbeendiscarded(self, position):
          """
          returns True if the given position has already been discarded
          and is no longer valid.
          """
          return position < self.discardedbytes
function_tokens: def hasbeendiscarded ( self , position ) : return position < self . discardedbytes