Beispiel #1
0
 public void OpenRelocation(sunRelocation relocation)
 {
     if (relocation == null)
     {
         throw new ArgumentNullException("relocation");
     }
     mRelocations.Add(relocation);
 }
Beispiel #2
0
 public bool AddContinue(sunRelocation point)
 {
     if (Count > 0)
     {
         Top.AddContinue(point);
         return(true);
     }
     return(false);
 }
Beispiel #3
0
 public bool AddBreak(sunRelocation point)
 {
     if (Count > 0)
     {
         Top.AddBreak(point);
         return(true);
     }
     return(false);
 }
Beispiel #4
0
 public bool AddContinue(sunRelocation point)
 {
     if (!HasFlag(sunLoopFlags.ConsumeContinue))
     {
         return(false);
     }
     mContinues.Add(point);
     return(true);
 }
Beispiel #5
0
 public bool AddBreak(sunRelocation point)
 {
     if (!HasFlag(sunLoopFlags.ConsumeBreak))
     {
         return(false);
     }
     mBreaks.Add(point);
     return(true);
 }
Beispiel #6
0
 public bool AddBreak(sunRelocation point, string name)
 {
     if (name == null)
     {
         throw new ArgumentNullException("name");
     }
     if (Count > 0)
     {
         var loop = this[name];
         if (loop != null)
         {
             loop.AddBreak(point);
             return(true);
         }
     }
     return(false);
 }