def METHOD_NAME(self):
    if self.stream is None:
        return Mark(
            self.name, self.index, self.line, self.column, self.buffer, self.pointer
        )
    else:
        return Mark(self.name, self.index, self.line, self.column, None, None)