public static ContinuationFrameList reverse(ContinuationFrameList original)
 {
     ContinuationFrameList result = null;
     while (original != null) {
         result = new ContinuationFrameList (original.first, result);
         original = original.rest;
     }
     return result;
 }
Exemplo n.º 2
0
        public static ContinuationFrameList reverse(ContinuationFrameList original)
        {
            ContinuationFrameList result = null;

            while (original != null)
            {
                result   = new ContinuationFrameList(original.first, result);
                original = original.rest;
            }
            return(result);
        }
Exemplo n.º 3
0
 public ControlPoint(ContinuationFrameList newFrames, ContinuationFrameList oldFrames)
 {
     // The new frames don't know what the continuation is below them.
     // We take them one by one and push them onto the old_frames
     // while setting their continuation to the list of frames below.
     frames = oldFrames;
     while (newFrames != null) {
         ContinuationFrame new_frame = newFrames.first;
         newFrames = newFrames.rest;
         if (new_frame.continuation != null)
             throw new Exception ("Continuation not empty?");
         frames = new ContinuationFrameList (new_frame, frames);
         new_frame.continuation = frames;
     }
 }
Exemplo n.º 4
0
 public ControlPoint(ContinuationFrameList newFrames, ContinuationFrameList oldFrames)
 {
     // The new frames don't know what the continuation is below them.
     // We take them one by one and push them onto the old_frames
     // while setting their continuation to the list of frames below.
     frames = oldFrames;
     while (newFrames != null)
     {
         ContinuationFrame new_frame = newFrames.first;
         newFrames = newFrames.rest;
         if (new_frame.continuation != null)
         {
             throw new Exception("Continuation not empty?");
         }
         frames = new ContinuationFrameList(new_frame, frames);
         new_frame.continuation = frames;
     }
 }
Exemplo n.º 5
0
 public ContinuationFrameList(ContinuationFrame first, ContinuationFrameList rest)
 {
     this.first = first;
     this.rest  = rest;
 }
Exemplo n.º 6
0
 internal Continuation(ContinuationFrameList new_frames, ContinuationFrameList old_frames)
 {
 }
 public ContinuationFrameList(ContinuationFrame first, ContinuationFrameList rest)
 {
     this.first = first;
     this.rest = rest;
 }