public SequenceComprehension(Block block, Parameters parameters, Region region = null) { this.block = block; this.parameters = parameters; if (region == null) { this.region = new Region(); RegionManager.Regions.Current.CopyAllVariablesTo(this.region); } else { this.region = region; } index = -1; arrayValue = null; sequence = null; }