コード例 #1
0
 public static ContinuationFrameList reverse(ContinuationFrameList original)
 {
     ContinuationFrameList result = null;
     while (original != null) {
         result = new ContinuationFrameList (original.first, result);
         original = original.rest;
     }
     return result;
 }
コード例 #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);
        }
コード例 #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;
     }
 }
コード例 #4
0
ファイル: ControlPoint.cs プロジェクト: xach/jrm-code-project
 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;
     }
 }
コード例 #5
0
 public ContinuationFrameList(ContinuationFrame first, ContinuationFrameList rest)
 {
     this.first = first;
     this.rest  = rest;
 }
コード例 #6
0
ファイル: Continuation.cs プロジェクト: xach/jrm-code-project
 internal Continuation(ContinuationFrameList new_frames, ContinuationFrameList old_frames)
 {
 }
コード例 #7
0
 public ContinuationFrameList(ContinuationFrame first, ContinuationFrameList rest)
 {
     this.first = first;
     this.rest = rest;
 }