public override void Reset() { sourceGenerator.Reset(); blockGenerator.Reset(); region = new Region(); blockGenerating = false; sourceValue = NilValue; index = -1; }
public override void Reset() { base.Reset(); block.Reset(); region?.RemoveAll(); }
protected IMaybe <Value> evaluateGenerator(INSGenerator generator, int i) { _currentGenerator = generator.Some(); generator.Region = Region; generator.Reset(); var returnValue = generator.Next(); if (returnValue.IsNil) { _currentGenerator = none <INSGenerator>(); return(none <Value>()); } index = i + 1; return(block.evaluateReturn(returnValue).Some()); }
public static Value Reset(INSGenerator generator) { generator.Reset(); return((Value)generator); }
public override void Reset() { base.Reset(); blockGenerator.Reset(); checkPredicate = true; }