public void OpenRelocation(sunRelocation relocation) { if (relocation == null) { throw new ArgumentNullException("relocation"); } mRelocations.Add(relocation); }
public bool AddContinue(sunRelocation point) { if (Count > 0) { Top.AddContinue(point); return(true); } return(false); }
public bool AddBreak(sunRelocation point) { if (Count > 0) { Top.AddBreak(point); return(true); } return(false); }
public bool AddContinue(sunRelocation point) { if (!HasFlag(sunLoopFlags.ConsumeContinue)) { return(false); } mContinues.Add(point); return(true); }
public bool AddBreak(sunRelocation point) { if (!HasFlag(sunLoopFlags.ConsumeBreak)) { return(false); } mBreaks.Add(point); return(true); }
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); }